/* DESIGN SYSTEM & FARBEN */
:root {
    --bg-dark: #1a1a1a;       --bg-light: #f0f2f5;      --bg-white: #ffffff;
    --text-dark: #2d3748;     --text-light: #f8f9fa;
    --primary: #00b4d8;       --primary-hover: #0077b6;  --border-color: #e2e8f0;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* GLOBALE STYLES & INTERNALS */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); color: var(--text-dark); line-height: 1.6; background-color: #ffffff !important; background: #ffffff important; }
h1, h2, h3 { font-weight: 700; margin-bottom: 1rem; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.btn {
    display: inline-block; background-color: var(--primary); color: var(--bg-white);
    padding: 12px 28px; text-decoration: none; border-radius: 4px; font-weight: 600;
    transition: background 0.3s; border: none; cursor: pointer;
}
.btn:hover { background-color: var(--primary-hover); }
section { padding: 80px 0; }
section#unterricht, section#lehrer, section#preise, section#kontakt { background-color: var(--bg-light); }

.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; position: relative; }
.section-title::after { content: ''; display: block; width: 60px; height: 4px; background-color: var(--primary); margin: 15px auto 0 auto; border-radius: 2px; }

/* NAVIGATION */
header { background-color: var(--bg-light); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Zwingt Logo und Menüpunkte auf exakt dieselbe Höhe */
    height: 80px;
}

.logo { color: var(--bg-white); font-size: 1.5rem; text-decoration: none; font-weight: bold; }
.logo span { color: var(--primary); }
.nav-menu { display: flex; list-style: none; gap: 30px; }
.nav-menu a { color: var(--text-dark); text-decoration: none; font-size: 1.1rem; font-weight: 600; transition: color 0.3s; }
.nav-menu a:hover { color: var(--primary); }

/* HERO SECTION */
.hero { color: var(--bg-white); height: 70vh; display: flex; align-items: center; text-align: center; }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; }
.hero-content p { font-size: 1.25rem; margin-bottom: 30px; }

/* PORTFOLIO BLÖCKE (BAND-LAYOUT) */
.portfolio-block { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; padding: 60px 0; }
.portfolio-block.block-white { background-color: var(--bg-white); }
.portfolio-block.block-gray { background-color: var(--bg-light); }
.portfolio-inner { display: flex; align-items: center; gap: 60px; max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
.portfolio-block.block-gray .portfolio-inner { flex-direction: row-reverse; }
.portfolio-text { flex: 1; }
.portfolio-image { flex: 1; width: 100%; max-width: 100%; }
.portfolio-image img { width: 100%; height: auto; display: block; border-radius: 8px; box-shadow: 0 22px 40px rgba(0, 0, 0, 0.32); object-fit: cover; max-height: 400px; }

/* PREISE GESTALTUNG & METALL-FARBEN */
.price-grid { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap;}
.price-card { display: flex; flex-direction: column; justify-content: space-between; background-color: var(--bg-white); border: 1px solid var(--border-color); border-radius: 8px; padding: 40px 30px; text-align: center; flex: 1; min-width: 280px; max-width: 360px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); transition: transform 0.3s, border-color 0.3s; }

.price-card.card-bronze { border-top: 5px solid #cd7f32; background: linear-gradient(to bottom, #fffdfb, #ffffff); box-shadow: 0 10px 25px rgba(212, 175, 55, 0.1); transform: scale(1.02); }
.price-card.card-bronze .price-amount, .price-card.card-bronze .card-icon svg { color: #b0651f; fill: #b0651f; }
.price-card.card-bronze .btn-price { background-color: #cd7f32; }
.price-card.card-bronze .btn-price:hover { background-color: #b0651f; }
.price-card.card-bronze:hover { transform: translateY(-5px) scale(1.02); }

.price-card.card-silver { border-top: 5px solid #c0c0c0; background: linear-gradient(to bottom, #fafdff, #ffffff); box-shadow: 0 10px 25px rgba(212, 175, 55, 0.1); transform: scale(1.02); }
.price-card.card-silver .price-amount, .price-card.card-silver .card-icon svg { color: #7a828a; fill: #7a828a; }
.price-card.card-silver .btn-price { background-color: #7a828a; }
.price-card.card-silver .btn-price:hover { background-color: #616970; }
.price-card.card-silver:hover { transform: translateY(-5px) scale(1.02); }

.price-card.card-gold { border-top: 5px solid #d4af37; background: linear-gradient(to bottom, #fffef0, #ffffff); box-shadow: 0 10px 25px rgba(212, 175, 55, 0.1); transform: scale(1.02); }
.price-card.card-gold .price-amount, .price-card.card-gold .card-icon svg { color: #aa8411; fill: #aa8411; }
.price-card.card-gold .btn-price { background-color: #d4af37; color: #1a1a1a; }
.price-card.card-gold .btn-price:hover { background-color: #aa8411; color: #ffffff; }
.price-card.card-gold:hover { transform: translateY(-5px) scale(1.02); }

.price-card h3 { font-size: 1.5rem; color: var(--bg-dark); }
.price-amount { font-size: 2.5rem; font-weight: bold; margin: 20px 0; }
.price-amount span { font-size: 1rem; color: #718096; }
.btn-price { display: block; width: 100%; padding: 12px; margin-top: 25px; color: #ffffff; text-decoration: none; border-radius: 4px; font-weight: 600; transition: background 0.3s, color 0.3s; }

.card-icon { margin-bottom: 15px; display: flex; justify-content: center; align-items: center; }
.card-icon svg { width: 42px; height: 42px; transition: transform 0.3s; }
.price-card:hover .card-icon svg { transform: scale(1.1); }
.card-content { flex-grow: 1; }

/* Zusätzlicher Abstand nach oben, falls zwei Preissektionen untereinander stehen */
.price-grid-4 {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px; /* Verhindert das Zusammenkleben nach oben */
}

/* Diese Klasse überschreibt NUR die Breite für die 4er-Karten */
.price-card.is-four-columns {
    flex: 1;
    min-width: 220px; 
    max-width: 280px;
    padding: 35px 20px; /* Leicht angepasst für schmale Spalten */
}



/* KONTAKTFORMULAR & FOOTER */
.contact-wrapper { max-width: 600px; margin: 0 auto; background-color: var(--bg-white); padding: 40px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.04); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 4px; font-family: var(--font-main); font-size: 1rem; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.2); }
footer { background-color: var(--bg-dark); color: var(--text-light); text-align: center; padding: 40px 0; font-size: 0.9rem; }

/* ERWEITERTER FOOTER (3 MATHEMTISCH GLEICHE SPALTEN) */
.footer-grid {
    display: grid;
    /* Erstellt exakt 3 gleich breite Spalten (1 fraction von 3) */
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px;
    text-align: left;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
    margin-bottom: 30px;
}

.footer-col {
    /* Kein flex mehr nötig, das Grid regelt die Breite starr */
    width: 100%; 
}

.footer-col h4 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-col p, .footer-col ul {
    color: #cbd5e1;
    font-size: 0.95rem;
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--primary);
}

/* MOBIL-UMSCHALTUNG: Auf Handys untereinander stapeln */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Wechselt auf Smartphones zu einer einzigen Spalte */
        gap: 30px;
    }
}


/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-menu { gap: 15px; }
    .hero-content h1 { font-size: 2.2rem; }
    .portfolio-inner { flex-direction: column !important; gap: 25px; }
    .portfolio-block { padding: 40px 0; }
    .section-title { font-size: 2rem; }
    .contact-wrapper { padding: 20px; }
}

/* Styling für das HTML-Akkordeon */
.accordion-item::-webkit-details-marker {
    display: none; /* Entfernt den Standard-Browser-Pfeil im Safari/Chrome */
}

.accordion-item[open] {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05) !important;
}

/* Dreht das Pluszeichen oder ändert den Text, wenn geöffnet */
.accordion-item[open] .accordion-icon {
    transform: rotate(45deg); /* Dreht das Plus-Symbol stilvoll */
    color: var(--primary);    /* Setzt deine Akzentfarbe ein, falls definiert */
}

/* --- RESPONSIVE MENÜ RULES --- */

/* Standard-Verhalten für große Monitore & Laptops */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}
.menu-toggle {
    display: none; /* Auf großen Bildschirmen unsichtbar */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}
.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--bg-dark, #1a1a1a);
    margin: 5px 0;
    transition: 0.3s;
}

/* AB HIER: Verhalten für kleinere Laptop-Fenster, Tablets & Handys */
@media screen and (max-width: 992px) { /* Erhöht auf 992px, damit es auch auf kleinen Laptops umschaltet */
    .menu-toggle {
        display: block; /* Button wird jetzt garantiert sichtbar */
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background-color: var(--bg-white, #ffffff);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        gap: 15px;
        z-index: 999;
        
        /* Im Normalzustand versteckt */
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    .nav-menu li a {
        display: block;
        padding: 10px 0;
        width: 100%;
    }

    /* Wenn das Menü geöffnet ist */
    .nav-menu.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    
    /* Animation der 3 Striche zum X */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
/* Standard-Größe für Computer und Laptops */
.nav-logo-img {
    height: 50px;
    width: auto;
    display: block;
    max-width: 100%;
    transition: height 0.3s ease; /* Macht Größenänderungen geschmeidig */
}

/* Automatische Verkleinerung auf Handys und Tablets (max. 768px) */
@media screen and (max-width: 768px) {
    .nav-logo-img {
        height: 35px; /* Verringert die Höhe auf Handys, die Breite rechnet sich automatisch mit */
        max-width: 220px; /* Garantiert, dass das Logo niemals breiter wird als der halbe Bildschirm */
    }
}

