/*
Theme Name: DBHITSysteme
Theme URI: https://blake-hofer.ch
Author: Blake Hofer
Author URI: https://blake-hofer.ch
Description: Premium B2B WordPress Security Theme f¸«är Schweizer KMU.
Version: 1.1.3
Text Domain: dbhitsystems
*/

/* ==========================================================================
   CSS VARIABLES & RESETS
   ========================================================================== */
:root {
    --bg-dark: #0d1117;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.05);
    --text-main: #a3a3a3;
    --text-heading: #ffffff;
    --gold: #d4af37;
    --gold-hover: #b5952f;
    --gold-transparent: rgba(212, 175, 55, 0.15);
    --border-color: rgba(255, 255, 255, 0.1);
    --container-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    color: var(--text-heading);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold-hover);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--bg-dark);
    border-color: var(--gold);
}

.btn-primary:hover {
    background-color: var(--gold-hover);
    border-color: var(--gold-hover);
    color: var(--bg-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--gold);
    border-color: var(--gold);
}

.btn-outline:hover {
    background-color: var(--gold-transparent);
}

/* ==========================================================================
   HEADER NAVIGATION
   ========================================================================== */
header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background-color: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 20px 0;
    transition: top 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--gold);
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a, .nav-links li a {
    color: var(--text-heading);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links li a:hover {
    color: var(--gold);
}

.mobile-menu-btn {
    display: none;
    color: var(--text-heading);
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* WP Admin Bar Fix */
body.admin-bar header { top: 32px; }
@media screen and (max-width: 782px) {
    body.admin-bar header { top: 46px; }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden; /* Verhindert das Herausragen des Bildes aus der Sektion */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr; /* Setzt alles in EINE Zelle, damit es ¸«äberlappen kann */
    align-items: center;
    position: relative;
}

.hero-content {
    grid-column: 1; /* Positioniert den Text in Zelle 1 */
    grid-row: 1;
    z-index: 2; /* Text ist im Vordergrund */
    max-width: 75%; /* Text nimmt 75% der Breite ein */
}

.hero-badge {
    color: var(--gold);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: block;
}

.hero h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    max-width: 90%;
    color: #8b949e;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    grid-column: 1; /* Setzt das Bild ebenfalls in Zelle 1 */
    grid-row: 1;
    justify-self: end; /* Schiebt das Bild an den rechten Rand der Zelle */
    z-index: 1; /* Bild ist im Hintergrund */
    width: 65%; /* Breite des Bildes (¸«äberlappt somit mit den 75% des Textes) */
    opacity: 0.4; /* Deutlich erh¸«Óht, damit das Gold kr¸«£ftig wirkt */
    pointer-events: none; /* Klicks gehen durch das Bild hindurch auf den Text/Buttons */
    position: relative;
    right: -10%; /* Schiebt das Bild dezent nach rechts aus dem Container hinaus */
}

.hero-image img {
    width: 100%;
    height: auto;
    /* Weicher Verlauf: links transparent, rechts sichtbar. 
       Bei 60% blendet es weicher aus, um den Text sauber freizuhalten. */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 60%);
    mask-image: linear-gradient(to right, transparent 0%, black 60%);
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    display: inline-block;
    border-bottom: 2px solid var(--gold-transparent);
    padding-bottom: 15px;
}

/* ==========================================================================
   FEATURES (Vorteile)
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--gold-transparent);
    border-radius: 12px;
    padding: 40px 30px;
    position: relative;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card:hover {
    transform: translateY(-5px);
    background-color: var(--bg-card-hover);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.feature-icon {
    width: 60px; height: 60px;
    background-color: var(--gold-transparent);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card p {
    margin-bottom: 25px;
    flex-grow: 1;
}

/* ==========================================================================
   PRICING (Pakete)
   ========================================================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.pricing-card {
    background-color: var(--bg-card);
    border: 1px solid var(--gold-transparent);
    border-radius: 12px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border-color: var(--gold);
    background-color: rgba(212, 175, 55, 0.05);
    transform: scale(1.05);
    z-index: 1;
}

.pricing-header h3 {
    font-size: 1.5rem;
    color: var(--text-heading);
    margin-bottom: 10px;
}

.pricing-card.featured .pricing-header h3 {
    color: var(--gold);
}

.pricing-desc {
    font-size: 0.9rem;
    margin-bottom: 20px;
    min-height: 45px;
}

.pricing-prices {
    border-top: 1px solid var(--gold-transparent);
    border-bottom: 1px solid var(--gold-transparent);
    padding: 20px 0;
    margin-bottom: 20px;
    min-height: 160px; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
}

.price-row {
    margin-bottom: 10px;
    font-size: 1rem;
}

.price-row strong {
    color: var(--gold);
    font-size: 1.1rem;
}

.price-note {
    font-size: 0.8rem;
    color: var(--text-main);
}

.pricing-features {
    font-size: 0.9rem;
    margin-bottom: 30px;
    flex-grow: 1; 
}

/* ==========================================================================
   TWO COLUMN GRIDS (Services / About)
   ========================================================================== */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.service-item {
    background-color: var(--bg-card);
    border: 1px solid var(--gold-transparent);
    border-radius: 12px;
    padding: 40px;
    height: 100%;
}

.service-item h3 i {
    color: var(--gold);
    margin-right: 10px;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--gold-transparent);
    height: 100%;
    min-height: 400px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
    text-align: center;
}

.footer-cta h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.footer-cta p {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 40px;
}

.contact-info {
    font-size: 1.2rem;
    margin-bottom: 60px;
    font-weight: 300;
}

.contact-info a {
    color: var(--text-heading);
    border-bottom: 1px solid var(--gold);
    padding-bottom: 2px;
}

.contact-info a:hover {
    color: var(--gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.swiss-cross {
    color: #ff0000;
    font-size: 1.2rem;
    margin-right: 8px;
}

/* ==========================================================================
   INNER PAGE TEMPLATE
   ========================================================================== */
.inner-page-template {
    padding: 160px 0 100px;
    min-height: 80vh;
}

.inner-page-content {
    background-color: var(--bg-card);
    border: 1px solid var(--gold-transparent);
    border-radius: 12px;
    padding: 50px;
    margin-top: 30px;
}

.inner-page-content h1, .inner-page-content h2, .inner-page-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.inner-page-content p {
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-size: 1.1rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
    .two-col-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-image {
        width: 90%;
        opacity: 0.2; /* Auf dem Tablet moderat abgedunkelt, um Text lesbar zu halten */
        right: -20%;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .footer-cta h2 {
        font-size: 2.5rem;
    }
    .pricing-card.featured {
        transform: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background-color: var(--bg-dark);
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links ul {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero {
        padding: 120px 0 60px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .btn {
        width: 100%;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}