/* Lokale Schriftart einbinden (muss im Ordner /fonts/ liegen) */
@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair-display-regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* CSS Variablen für einfaches Theming */
:root {
    --primary-color: #2c303a;    /* Anthrazit Grau/Blau für Text und Footer */
    --secondary-color: #d4af37;  /* Edles Gold für Akzente */
    --bg-color: #ffffff;         /* Reines Weiß als Haupt-Hintergrund */
    --text-color: #333333;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    overflow-x: hidden; /* Verhindert horizontales Scrollen auf Smartphones (z.B. iOS) */
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    cursor: url('../images/nadel.png') 0 0, auto; /* Standard-Mauszeiger als Nadel */
    overflow-x: hidden; /* Sperrt die Breite strikt auf 100% */
    width: 100%;
}

h1, h2, h3, .logo {
    font-family: var(--font-heading);
    color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: rgba(44, 48, 58, 0.65); /* Etwas transparenter für mehr Durchsicht */
    backdrop-filter: blur(25px); /* Stärkerer Milchglas-Effekt */
    -webkit-backdrop-filter: blur(25px); /* Safari-Unterstützung */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Feine Lichtkante für den Glas-Look */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo a {
    display: flex;
    align-items: center; /* Zentriert das "U" und den Text exakt auf gleicher Höhe */
    text-decoration: none;
}

.logo-text {
    color: #ffffff; /* Weiß für die dunkle Navbar */
    margin-left: 2px; /* Minimaler Abstand zum U */
    -webkit-text-stroke: 0.5px #000000; /* Dünner schwarzer Rand (Webkit/Chrome/Safari) */
    text-shadow: 0.5px #000000; /* Standard für andere Browser */
    font-weight: 900; /* Schrift maximal dicker machen (Black/Extra Bold) */
    letter-spacing: 1.5px; /* Etwas mehr Luft für eine saubere Kontur */
}

/* Styling für das Bild-Logo */
.logo-img {
    max-height: 50px; /* Passt perfekt in die 80px hohe Navbar */
    width: auto;
    display: block;
    flex-shrink: 0; /* Verhindert, dass das Bild auf Handys gequetscht wird */
}

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

.nav-links a {
    text-decoration: none;
    color: #ffffff; /* Weiße Schriftart, da das Menü jetzt dunkel ist */
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 900; /* Schrift maximal dicker machen (Black/Extra Bold) */
    letter-spacing: 1.5px; /* Etwas mehr Luft zwischen den Buchstaben */
    -webkit-text-stroke: 0.5px #000000; /* Dünner schwarzer Rand für Menüpunkte */
    text-shadow: 0.5px #000000;
    transition: color 0.3s;
}

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

/* Zeigt eine leicht andere Nadel (z.B. geneigt), wenn man über etwas klickbares fährt */
a, button, .hamburger {
    cursor: url('../images/nadel-klick.png') 0 0, pointer;
}

/* Hamburger Menu (Desktop: versteckt) */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #ffffff; /* Hamburger-Striche jetzt auch in Weiß */
    transition: all 0.3s ease-in-out;
}

/* Hero Section mit Video */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    margin-top: 80px;
    cursor: url('../images/nadel-klick.png') 0 0, pointer; /* Spezieller Cursor für das Hero-Bild */
}

.hero-image {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%) scale(1.05); /* Leicht vergrößert, um unscharfe Bildränder zu verstecken */
    z-index: -2;
    object-fit: cover;
    filter: blur(20px); /* Starker initialer Milchglas-Effekt */
    transition: filter 0.8s ease, transform 0.8s ease; /* Weiche Animation */
}

/* Diese Klasse wird per JavaScript hinzugefügt, um das Bild scharf zu machen */
.hero-image.sharp {
    filter: blur(0);
    transform: translateX(-50%) translateY(-50%) scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dunkelt das Video ab */
    z-index: -1;
}

/* Klick-Hinweis Styling & Animation */
.hero-click-hint {
    position: absolute;
    bottom: 12%; /* Nach unten verschoben, aus dem Weg der Schrift */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.05); /* Edler Glas-Look */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-family: var(--font-body);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: none; /* Klicks gehen durch den Hinweis hindurch auf die Sektion */
    transition: opacity 0.5s ease;
    z-index: 5;
}

.hero-click-hint.hidden {
    opacity: 0;
}

/* Pulsierender Punkt */
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 1px solid var(--secondary-color);
    border-radius: 50%;
    animation: pulse-ring 2s infinite cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes pulse-ring {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Stich-Effekt beim Klicken (kleines Kreuz/Knoten) */
.stitch-mark {
    position: absolute;
    width: 12px;
    height: 12px;
    pointer-events: none; /* Klicks gehen durch den Faden hindurch */
    z-index: 9999;
    transform: translate(-50%, -50%) rotate(var(--stitch-angle, 0deg));
    animation: fadeStitch 2.5s ease-out forwards; /* Längere Anzeige-Dauer */
}

.stitch-mark::before,
.stitch-mark::after {
    content: '';
    position: absolute;
    background-color: var(--secondary-color);
    border-radius: 2px;
    box-shadow: 0 0 2px rgba(0,0,0,0.5); /* Leichter Schatten für Plastizität */
}

/* Die beiden Linien des Kreuzes */
.stitch-mark::before {
    top: 50%; left: 0; width: 100%; height: 2px;
    transform: translateY(-50%) rotate(45deg);
}
.stitch-mark::after {
    top: 0; left: 50%; width: 2px; height: 100%;
    transform: translateX(-50%) rotate(45deg);
}

@keyframes fadeStitch {
    0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--stitch-angle, 0deg)) scale(0); }
    10% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--stitch-angle, 0deg)) scale(1.2); }
    20% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--stitch-angle, 0deg)) scale(1); }
    80% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--stitch-angle, 0deg)) scale(1); } /* Hält den Stich scharf sichtbar */
    100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--stitch-angle, 0deg)) scale(1); } /* Blendet am Ende weich aus */
}

/* Ziehende Fäden (Thread Pull Animation) */
.pulling-thread {
    position: absolute;
    width: 35px;
    height: 1.5px;
    background-color: var(--secondary-color);
    border-radius: 1px;
    pointer-events: none;
    z-index: 9998;
    animation: threadPull 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    box-shadow: 0 0 2px rgba(0,0,0,0.3);
}

@keyframes threadPull {
    0% {
        /* Fängt 40px entfernt an */
        transform: translate(-50%, -50%) rotate(var(--angle)) translateX(40px) scaleX(1);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        /* Zieht sich superschnell in die Mitte zusammen */
        transform: translate(-50%, -50%) rotate(var(--angle)) translateX(5px) scaleX(0);
        opacity: 0;
    }
}

.hero-content h1 {
    color: white;
    font-size: 4rem;
    margin-bottom: 20px;
}

/* Hervorhebungstext in Gold */
.highlight {
    color: var(--secondary-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s;
    border-radius: 3px;
}

.btn:hover {
    background-color: #b5952f;
}

/* Allgemeine Sektionen */
.section {
    padding: 100px 0;
}

.section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
}

.section.bg-light {
    background-color: #f4f4f4;
}

.section.bg-dark {
    background-color: var(--primary-color);
    color: white;
}

.section.bg-dark h2 {
    color: white;
}

.lead-text {
    font-size: 1.2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Grids für Leistungen und Reviews */
.grid-services {
    display: flex;
    justify-content: center;
    perspective: 2000px; /* Erzeugt den 3D-Raum */
    padding: 40px 0; /* Platz für den Hover-Effekt nach oben und unten */
}

.grid-reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    position: relative;
    width: 320px; /* Feste Breite für das Nebeneinander-Layout */
    flex-shrink: 0; /* Verhindert das Stauchen der Karten */
    min-height: 450px; /* Macht die Karten deutlich höher */
    margin-left: -50px; /* Erzeugt die seitliche Überlagerung (Overlap) */
    border-radius: 10px;
    box-shadow: -15px 10px 30px rgba(0,0,0,0.4); /* Starker Schatten nach links betont die Tiefe */
    transform-style: preserve-3d;
    transform: rotateY(25deg) scale(0.9); /* Startposition: Eingerollt und leicht kleiner */
    z-index: 1; /* Standard-Ebene */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s ease, z-index 0s;
}

.card:first-child {
    margin-left: 0; /* Die erste Karte braucht keinen negativen Abstand nach links */
}

.card:hover {
    transform: rotateY(0) scale(1.05) translateY(-15px); /* Rollt aus, vergrößert sich und hebt sich an */
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    z-index: 10; /* Holt die Karte komplett in den Vordergrund über alle anderen */
}

.card.is-open {
    transform: rotateY(0) scale(1.05) translateY(-15px); /* Hält die geöffnete Karte im Vordergrund */
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    z-index: 20; /* Priorität über alle anderen Elementen */
}

/* Der goldene "Scherenschnitt" - Die goldene Linie */
.card::before {
    content: '';
    position: absolute;
    top: 25px; /* Wie eine edle Naht etwas vom Rand entfernt */
    left: 0;
    width: 0; /* Startet mit 0 Breite */
    height: 3px;
    background: var(--secondary-color);
    box-shadow: 0 0 10px var(--secondary-color); /* Goldenes Leuchten für den Schnitt */
    z-index: 3;
}

/* Die Schere selbst, die vor der Linie herfährt */
.card::after {
    content: '✂';
    position: absolute;
    top: -4px; /* Klingen genau auf der goldenen Linie positioniert (noch weiter nach oben korrigiert) */
    left: 0;
    font-size: 38px; /* Schere deutlich massiver und größer */
    color: #e0e0e0; /* Silberne Scherenfarbe */
    z-index: 4;
    opacity: 0;
    transform: translateX(-50%) rotate(45deg); /* Dreht die Schere in die Schnittrichtung */
    filter: drop-shadow(3px 3px 3px rgba(0,0,0,0.8));
}

/* Animation wird per JS getriggert */
.card.is-visible::before {
    animation: scissor-cut-line 4.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; /* Sehr langsamer Schnitt */
}

.card.is-visible::after {
    animation: scissor-cut-icon 4.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; /* Fährt langsam parallel */
}

@keyframes scissor-cut-line {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes scissor-cut-icon {
    0% { left: 0%; opacity: 1; }
    90% { opacity: 1; } /* Bleibt sichtbar bis kurz vorm Rand */
    100% { left: 100%; opacity: 0; }
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    border-radius: 10px; /* Damit der Hintergrund nicht übersteht, da .card kein overflow: hidden mehr hat */
    clip-path: inset(0 0 0 0 round 10px);
    transform: scale(1.1);
    transition: filter 0.5s ease, transform 0.5s ease;
    z-index: 0;
}

.card-background.sharp {
    filter: blur(0);
    transform: scale(1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    clip-path: inset(0 0 0 0 round 10px);
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Schiebt den Text nach unten */
    height: 100%;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 2.2rem; /* Überschrift vergrößert für die großen Karten */
    color: white; /* Überschrift jetzt weiß */
}

/* Aufklappender Stoff-Container (volle Breite) */
.fabric-container {
    position: relative;
    margin-top: 20px;
    background-color: #fdfaf6; /* Helles cremeweiß für Stoff-Look */
    color: #2c303a;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transform-origin: top center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, max-height 0.7s ease-in-out;
    z-index: 5;
    overflow: hidden;
    max-height: 0; /* Startet komplett geschlossen */
    /* Stoff Textur & Ziernaht */
    background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 2px, transparent 2px, transparent 4px);
    border-top: 2px dashed var(--secondary-color);
}

.fabric-container.is-open {
    max-height: 1500px; /* Großer Wert, damit der Inhalt Platz hat */
}

/* Scrollbar für den Stoff */
.fabric-content { 
    padding: 40px; 
    text-align: left; 
    max-height: 50vh; /* Maximale Höhe, bevor Scrollen beginnt */
    overflow-y: auto;
}

/* Scrollbar für den Stoff */
.fabric-content::-webkit-scrollbar { width: 8px; }
.fabric-content::-webkit-scrollbar-track { background: rgba(0,0,0,0.05); border-radius: 4px; }
.fabric-content::-webkit-scrollbar-thumb { background: var(--secondary-color); border-radius: 4px; }

.fabric-content h4 {
    color: var(--primary-color);
    margin: 20px 0 10px 0;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.fabric-content p, .fabric-content li {
    font-size: 0.95rem;
    margin-bottom: 10px;
    line-height: 1.6;
}
.fabric-content ul { padding-left: 20px; margin-bottom: 15px; }

/* Reviews */
.review-card {
    position: relative;
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 4px solid var(--secondary-color); /* Goldene Kante oben */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
}

.review-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Großes, dekoratives Anführungszeichen im Hintergrund */
.review-card::before {
    content: '“';
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 8rem;
    font-family: var(--font-heading);
    color: rgba(212, 175, 55, 0.1); /* Helles, transparentes Gold */
    line-height: 1;
    z-index: -1;
    pointer-events: none;
}

.stars {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
    letter-spacing: 3px; /* Etwas mehr Abstand zwischen den Sternen */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.15); /* Leichter 3D-Effekt für die Sterne */
}

.review-card p {
    font-size: 0.95rem;
    font-style: italic; /* Kursiv für Zitate */
    color: #555;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.review-author {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

/* Kontakt & Map */
.grid-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start; /* Zieht Formular und Karte oben auf eine Linie */
}

/* Edler Einleitungstext über den Kontakt-Infos */
.grid-contact > div > p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 300;
}

.contact-info {
    list-style: none;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Macht 2 Spalten, bricht auf dem Handy um */
    gap: 20px;
}

.contact-info li {
    background: rgba(255, 255, 255, 0.03); /* Transparenter Glas-Look passend zum Formular */
    padding: 20px;
    border-radius: 8px;
    border-left: 2px solid var(--secondary-color); /* Goldene Linie links */
    transition: transform 0.3s ease, background 0.3s ease;
}

.contact-info li:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px); /* Schwebt leicht nach rechts beim Hover */
}

.info-label {
    display: block;
    color: var(--secondary-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.info-value {
    display: block;
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Kleines Grid für tabellarische Öffnungszeiten */
.hours-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 15px; /* Abstand zwischen Tagen und Uhrzeiten */
}

/* Kontakt Formular */
.contact-form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    background: rgba(255, 255, 255, 0.03); /* Edler, transparenter Karten-Look */
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05); /* Zarte Lichtkante */
    box-shadow: 0 15px 35px rgba(0,0,0,0.2); /* Sanfter Schatten für mehr Tiefe */
}

/* Honeypot unsichtbar machen */
.honeypot {
    display: none !important;
    position: absolute;
    left: -9999px;
}

/* Schwebende Labels (Floating Labels) */
.input-group {
    position: relative;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 10px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-family: var(--font-body);
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    transition: border-color 0.3s ease;
    resize: vertical;
}

.input-group textarea {
    min-height: 80px;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-bottom-color: transparent; /* Macht Platz für die animierte Linie */
}

/* Animierte goldene Linie, die von der Mitte aus aufklappt */
.input-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.4s ease-out;
}

.input-group:focus-within::after {
    width: 100%;
}

.input-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    font-family: var(--font-heading);
    font-style: italic; /* Kursiver Luxus-Look für Platzhalter */
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Schiebt das Label nach oben, wenn das Feld fokussiert ist oder Text enthält */
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -22px;
    font-size: 0.75rem;
    color: var(--secondary-color);
    font-family: var(--font-body);
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 2px; /* Weiter Buchstabenabstand beim Hochfahren */
    font-weight: 600;
}

/* Checkbox für DSGVO */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: -10px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    width: 16px;
    height: 16px;
    accent-color: var(--secondary-color); /* Goldene Checkbox */
    cursor: pointer;
}

.checkbox-group label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    line-height: 1.5;
    font-weight: 300;
}

.checkbox-group a {
    color: var(--secondary-color);
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* Eleganter Outline-Button für das Formular */
.btn-outline {
    align-self: flex-start;
    background-color: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    margin-top: 15px;
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 2px;
    padding: 12px 35px;
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4); /* Sanftes goldenes Leuchten */
}

/* Form Feedback Messages */
.form-feedback {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 3px;
    color: white;
    text-align: center;
}

.form-feedback.success {
    background-color: #28a745; /* Green */
}

.form-feedback.error {
    background-color: #dc3545; /* Red */
}

.map-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px; /* Passt nun zur Kontaktformular-Karte */
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    align-self: center; /* Zentriert die Karte vertikal neben dem Formular */
    min-height: 500px; /* Macht die Karte deutlich größer/höher */
}

.map-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Verhindert Verzerrungen trotz der neuen Höhe */
    transition: transform 0.3s;
}

.map-container:hover .map-image {
    transform: scale(1.05);
}

.map-overlay-text {
    position: absolute;
    bottom: 20px; /* In die untere Ecke verschoben */
    right: 20px;  /* In die rechte Ecke verschoben */
    background: var(--secondary-color);
    color: white;
    padding: 8px 15px; /* Etwas kleiner gemacht */
    font-size: 0.85rem; /* Schriftgröße verkleinert */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); /* Leichter Schatten zur Hervorhebung */
    border-radius: 3px;
    pointer-events: none;
}

/* Footer */
footer {
    background-color: #20232a; /* Etwas dunkleres Antrazit/Blau für den Footer */
    color: #888;
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.legal-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: #888;
    text-decoration: none;
}

.legal-links a:hover {
    color: white;
}

/* Legal Pages (Impressum, Datenschutz) */
.legal-page {
    padding-top: 80px; /* Offset for fixed navbar */
}

.legal-page .section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.legal-page h2 {
    text-align: left;
}

/* Fade-In Scroll Animationen */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Galerie (Vorher/Nachher) */
.grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.gallery-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--secondary-color);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.gallery-caption {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 25px rgba(0,0,0,0.3);
    background-color: #128c7e;
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
}

/* Visueller Wisch-Hinweis für Mobile */
.swipe-hint {
    display: none; /* Auf dem Desktop unsichtbar */
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: bold;
}

.swipe-hint .arrow-left { display: inline-block; animation: swipe-bounce-left 2s infinite; margin-right: 5px; }
.swipe-hint .arrow-right { display: inline-block; animation: swipe-bounce-right 2s infinite; margin-left: 5px; }

@keyframes swipe-bounce-left {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-5px); }
}

@keyframes swipe-bounce-right {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* Tablet & Mobile Layout: Horizontales Scrollen (Wischen) statt untereinander */
@media (max-width: 1200px) {
    .swipe-hint {
        display: block; /* Wird auf Tablets und Handys eingeblendet */
    }
    .grid-services,
    .grid-gallery {
        display: flex; /* Überschreibt das normale Grid */
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory; /* Zwingt die Karten beim Wischen einzurasten */
        justify-content: flex-start;
        padding: 20px 20px 40px 20px; /* Platz für Schatten und Hover-Effekt */
        margin: 0 -20px; /* Erlaubt das Wischen bis ganz an den Bildschirmrand */
        gap: 20px;
        scrollbar-width: none; /* Versteckt die Scrollbar für einen sauberen Look */
        -webkit-overflow-scrolling: touch;
    }
    .grid-services::-webkit-scrollbar,
    .grid-gallery::-webkit-scrollbar {
        display: none;
    }
    .card {
        margin-left: 0;
        scroll-snap-align: center;
        transform: rotateY(0) scale(1);
    }
    .card:hover, .card.is-open {
        transform: translateY(-10px) scale(1.02);
        z-index: 10;
    }
    .gallery-item {
        flex-shrink: 0;
        width: 320px; /* Ähnlich wie die großen Karten auf dem Tablet */
        scroll-snap-align: center;
    }
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-container {
        height: 60px; /* Macht die Navbar auf Handys schmaler */
    }

    .logo {
        font-size: 1.4rem; /* Text im Logo leicht anpassen */
    }

    .logo-img {
        max-height: 35px; /* Logo-Bild proportional zur Navbar verkleinern */
    }

    nav {
        position: fixed;
        top: 60px; /* Angepasst an die neue schmalere Navbar */
        bottom: 0; /* Zieht das Menü bis ganz nach unten */
        right: -100%; /* Versteckt das Menü rechts außerhalb des Bildschirms */
        width: 70%; /* Nicht mehr die volle Breite */
        max-width: 300px; /* Begrenzung für Tablets/große Handys */
        background-color: rgba(44, 48, 58, 0.95); /* Etwas dunkler für Kontrast */
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        box-shadow: -10px 0 20px rgba(0,0,0,0.2); /* Schatten nach links */
        border-left: 1px solid rgba(255, 255, 255, 0.05); /* Edle Lichtkante */
        transition: right 0.3s ease;
    }

    nav.active {
        right: 0; /* Schiebt das Menü von rechts ins Bild */
    }

    .nav-links {
        flex-direction: column;
        align-items: center; /* Zentriert die Links im schmaleren Menü */
        padding: 50px 0;
        gap: 30px;
    }

    /* Hamburger Animation (wird zu einem X) */
    .hamburger.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    
    .hero-content h1 {
        font-size: 2.2rem; /* Etwas kleiner für sehr schmale Handys */
        overflow-wrap: break-word; /* Bricht ultra-lange Wörter auf dem Handy um */
        hyphens: auto; /* Erlaubt Silbentrennung NUR auf kleinen Bildschirmen */
    }

    /* Macht die Karten auf dem Handy kompakter und zeigt ein Stück der nächsten Karte (als Wisch-Hinweis) */
    .card {
        width: 85vw; 
        min-height: 380px; 
    }

    .card h3 {
        font-size: 1.8rem;
    }

    .gallery-item {
        width: 85vw; /* Gleiche kompakte Breite wie die Leistungskarten auf dem Smartphone */
    }
    
    .grid-contact {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
}
