/* --- GLOBALE VARIABLEN & RESET --- */
:root {
    --bg-dark: #121417;        /* Tiefschwarz/Grau für Sektionen */
    --bg-medium: #1a1d21;      /* Etwas heller für Karten & Kacheln */
    --accent-green: #24bc8c;    /* Dein TB-Dental-Grün */
    --accent-hover: #1f9e76;    /* Dunkleres Grün für Hover-Effekte */
    --text-white: #ffffff;
    --text-dim: #a0a6ac;       /* Für weniger wichtige Texte */
    --border-color: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html {
    scroll-behavior: smooth; /* Sanftes Gleiten beim Klicken auf Menü-Links */
}

/* --- DAS WICHTIGSTE: HINTERGRUNDBILD FÜR DIE GANZE SEITE --- */
/* In der css/style.css nur das Basiskleid: */
body {
    background-color: #121417; /* Dunkler Fallback-Hintergrund */
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- NAVIGATION --- */
nav {
    background: rgba(18, 20, 23, 0.98);
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px); /* Moderner Glas-Effekt */
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    margin-left: 35px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-green);
}

/* --- HERO-BEREICH --- */
.hero {
    padding: 120px 0;
    text-align: center;
    /* Ein zusätzlicher Gradient über dem Hero, damit der Text besser lesbar ist */
    background: radial-gradient(circle at center, rgba(28, 46, 42, 0.8) 0%, rgba(18, 20, 23, 0.9) 100%);
}

/* --- BUTTONS --- */
.btn-primary, .btn-submit {
    background: var(--accent-green);
    color: #121417;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1rem;
}

.btn-primary:hover, .btn-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(36, 188, 140, 0.3);
}

.btn-secondary, .btn-cancel {
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 15px 32px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover, .btn-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-dim);
}

/* --- PRODUKT-CARDS --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: var(--bg-medium);
    padding: 45px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

.card:hover {
    border-color: var(--accent-green);
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent-green);
    letter-spacing: 0.5px;
}

.card .icon {
    font-size: 2.5rem;
    color: var(--accent-green);
    margin-bottom: 25px;
}

.link-green {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 25px;
}

/* --- FOOTER & REST --- */
.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 50px;
    font-weight: 800;
}

/* ============================================================
   FINALE MOBILE OPTIMIERUNG (Schrift + Menü + Layout)
   ============================================================ */

/* 1. DESKTOP-SICHERHEIT: Hamburger-Menü am PC verstecken */
.menu-toggle {
    display: none !important;
}

/* 2. AB HIER: REGELN FÜR SMARTPHONES (max. 768px) */
@media screen and (max-width: 768px) {

    /* --- SCHRIFTEN & HERO BEREICH --- */
    h1 {
        font-size: 2.2rem !important; /* Schön kompakt für kleine Displays */
        line-height: 1.2 !important;
        margin-bottom: 20px !important;
    }

    .hero-content p {
        font-size: 1.05rem !important;
        line-height: 1.5 !important;
    }

    .hero-btns {
        display: flex;
        flex-direction: column; /* Buttons untereinander stapeln */
        gap: 15px;
    }

    /* --- HAMBURGER NAVIGATION --- */
    .menu-toggle {
        display: block !important; /* Zeigt die 3 Striche rechts */
    }

    .nav-links {
        display: none; /* Menü standardmäßig zu */
        flex-direction: column;
        position: absolute;
        top: 80px; /* Höhe der Nav-Leiste */
        left: 0;
        width: 100%;
        background: rgba(25, 28, 32, 0.98);
        padding: 20px 0;
        border-bottom: 2px solid var(--accent-green);
        text-align: center;
        z-index: 1000;
    }

    /* Diese Klasse wird per Klick vom JavaScript hinzugefügt */
    .nav-links.active {
        display: flex !important;
    }

    .nav-links a {
        padding: 15px;
        font-size: 1.2rem;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    /* --- ALLGEMEINE ANPASSUNGEN --- */
    section {
        padding: 50px 0 !important; /* Weniger Leerraum auf dem Handy */
    }
}