/* ================================================================
   tavira.css — Haupt-Stylesheet für tavira.info
   Theme: tavira (Grav CMS Child-Theme auf Quark-Basis)

   INHALTSVERZEICHNIS
   1. Design-Variablen & Erläuterungen
   2. Reset & Basis-Typografie
   3. Navigation
   4. Hero Slider
   5. Content-Bereich (Standard-Seiten)
   6. Footer
   7. Responsive (Mobile ≤ 768px)
   ================================================================ */


/* ================================================================
   1. DESIGN-VARIABLEN
   Alle Farb- und Font-Entscheidungen hier kommentiert.
   Bei Änderungen: nur hier anpassen, alles zieht mit.

   FARBEN
   --gold:           #c8920a   Primärfarbe, Überschriften & Links
   --gold-hover:     #e8a020   Hover-Zustand (etwas heller)
   --gold-dark:      #B8860B   Footer-Hintergrund (dunkler)
   --text-default:   #555      Standard-Fließtext
   --text-light:     #666      Fließtext im Content-Bereich (weicher)
   --bg-content:     #f8f6f0   Warmes Off-White für Content-Sektionen
   --nav-bg:         rgba(90,82,72,0.35)  Nav-Hintergrund beim Scrollen

   FONTS
   Montserrat (Google Fonts):  Navigation, Überschriften — modern, klar
   Georgia (Systemfont):       Fließtext, Slide-Untertitel — warm, lesbar
   Fallback sans-serif / serif für Offline-Fälle
   ================================================================ */


/* ================================================================
   2. RESET & BASIS-TYPOGRAFIE
   ================================================================ */

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

html, body {
    width: 100%;
    overflow-x: hidden;
}



/* Basis: Georgia für alle Fließtexte.
   Georgia ist auf allen Geräten vorinstalliert → kein Extra-Laden nötig. */
body {
    font-family: Georgia, serif;
    font-weight: 400;
    color: #555;
    background: #f8f6f0;
}

/* Alle Hyperlinks: Gold, kein Unterstrich */
a {
    color: #c8920a;
    text-decoration: none;
}
a:hover {
    color: #e8a020;
}


/* ================================================================
   3. NAVIGATION
   Position fixed: immer oben sichtbar, überlagert den Hero.
   Transparent auf der Startseite / Vollbild-Slides.
   Bekommt via JavaScript die Klasse .scrolled ab 60px Scrolltiefe
   → halbtransparenter Warm-Braun-Hintergrund erscheint.
   ================================================================ */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: background 0.4s ease;
}

/* Scrolled-Zustand: leichter Hintergrund für Lesbarkeit über Seiteninhalt */
.site-nav.scrolled {
    background: rgba(90, 82, 72, 0.35);
}

/* Flex-Container der Menüpunkte, asymmetrisches Padding:
   mehr oben → Text sitzt optisch weiter oben im Hero */
.nav-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2.6rem 1rem 0.8rem;
    min-height: 60px;
}

/* Wrapper je Menüpunkt (Positionierungs-Anker für Dropdown) */
.nav-item {
    position: relative;
}

/* Hauptmenü-Links: Montserrat, Weiß, uppercase
   Gilt für <a> (normale Links) und <span> (Parent mit Submenü) */
.nav-link {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    display: block;
    padding: 0.3rem 0;
    transition: color 0.25s;
    cursor: pointer; /* auch für <span> */
    user-select: none;
}

/* Hover & Dropdown-offen: Gold */
.nav-link:hover              { color: #e8a020; }
.nav-item:hover .nav-link    { color: #e8a020; }

/* Aktive Seite / aktive Hauptkategorie: dauerhaft Gold.
   In Grav wird diese Klasse dynamisch gesetzt. */
.nav-link.active             { color: #e8a020; }

/* ── Dropdown-Submenü ──
   Linker Rand bündig mit dem Eltern-Menüpunkt (left: 0).
   Warm-dunkler Hintergrund passend zur Nav-Palette.
   Trennstriche zwischen den Einträgen via border-bottom. */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: 0;
    background: rgba(45, 38, 30, 0.96);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
    margin-top: 0.3rem;
}

/* Desktop: Hover öffnet Dropdown */
.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
}

/* Mobile/Klick: JS setzt .open — bleibt bis Klick woanders */
.nav-item.open .nav-dropdown {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown a {
    display: block;
    padding: 0.75rem 1.2rem;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: color 0.2s;
}

.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a:hover      { color: #e8a020; }


/* ================================================================
   4. HERO SLIDER
   Vollbild (100vh). Slides gestapelt per absolute positioning.
   Ken-Burns-Zoom auf Hintergrundbild (separater div-Layer).
   Auto-Play alle 7s, manuell per Pfeile/Punkte steuerbar.
   ================================================================ */

.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Einzelne Slide: übereinander, standardmäßig unsichtbar */
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 15vh; /* Freiraum für fixe Navigation */
}

.slide.active { opacity: 1; }

/* Hintergrundbild-Layer: separater div damit Ken-Burns
   die Caption nicht mitbewegt */
.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.75) saturate(1.2);
    animation: kenburns 14s ease-out forwards;
}

/* Ken-Burns: sanfter Zoom von 106% auf 100% */
@keyframes kenburns {
    0%   { transform: scale(1.06); }
    100% { transform: scale(1.00); }
}

/* Text-Container: zentriert, über Hintergrundbild */
.slide-caption {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 2rem;
    max-width: 800px;
}

/* Slide-Haupttitel: Montserrat, Weiß, groß, responsive */
.slide-title {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 3.5vw, 2.8rem); /* min | preferred | max */
    text-transform: uppercase;
    letter-spacing: 5px;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
    margin-bottom: 0.8rem;
}

/* Slide-Untertitel: Georgia kursiv, halbtransparent Weiß */
.slide-subtitle {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Navigations-Pfeile ── */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 2.2rem;
    line-height: 1;
    padding: 0.5rem;
    color: rgba(255, 255, 255, 0.45);
    font-family: Georgia, serif;
    transition: color 0.25s;
}
.slider-arrow:hover { color: rgba(255, 255, 255, 0.9); }
.slider-arrow.prev  { left: 1.5rem; }
.slider-arrow.next  { right: 1.5rem; }

/* ── Positions-Punkte (Dots) ── */
.slider-dots {
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 5;
}
.slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
}
.slider-dot.active { background: rgba(255, 255, 255, 0.92); }


/* ================================================================
   5. CONTENT-BEREICH
   Geteilt von mehreren Templates (default, pricing, etc.).
   Warmes Off-White (#f8f6f0), zentriert, max. 720px Textbreite.

   .page-header:      Großes Headerbild (alle Templates außer home + legal)
   .content-section:  Haupt-Inhaltsbereich
   .content-headline: Abschnitts-Überschrift (Montserrat, Gold)
   .content-text:     Fließtext (Georgia)
   ================================================================ */

/* Header-Bild (Subseiten): festes Verhältnis, Bild über gesamte Breite */
.page-header {
    width: 100%;
    height: 45vh;
    background-size: cover;
    background-position: center;
    filter: brightness(0.8);
    margin-top: 0; /* Nav ist fixed, kein Offset nötig */
}

/* Inhalts-Sektion */
.content-section {
    background: #f8f6f0;
    padding: 5rem 2rem;
}
.content-section--videos {
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
}
.content-section--videos + .content-section--videos {
    padding-top: 0.5rem;
}
.map-fullwidth-wrap {
    margin-top: 2rem;
    background: #f8f6f0;
}

.content-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

/* Abschnitts-Überschrift: Montserrat, Gold, Kapitälchen-Stil */
.content-headline {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #c8920a;
    margin-bottom: 1.5rem;
}

/* Fließtext: Georgia, gut lesbar, großzügige Zeilenhöhe */
.content-text {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.9;
    color: #666;
}

/* Abstand zwischen Textabsätzen */
.content-text + .content-text {
    margin-top: 1.5rem;
}

/* Listen: deutlich eingerückt, konsistenter Zeilenabstand */
.content-text ul,
.content-text ol {
    padding-left: 4rem;
    margin: 0.8rem 0 1rem 3.5rem;
    text-align: left;
}
.content-text li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
    text-align: left;
}
.content-text li p {
    margin: 0;
}


/* ================================================================
   6. FOOTER
   Dreispaltiges Grid: Kontakt | Navigation | Rechtliches.
   Dunkelgold-Hintergrund, Weiß-Text.
   Footer-Links überschreiben globales Gold → Weiß.
   ================================================================ */

.site-footer {
    background: #B8860B;
    color: #fff;
    padding: 1.4rem 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    max-width: 1140px;
    margin: 0 auto;
}

.footer-col {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: 0.82rem;
    line-height: 1.7;
}

.footer-col:first-child       { text-align: left; }
.footer-col:not(:first-child) { text-align: center; }

/* Spalten-Titel: Montserrat, klein, gesperrt */
.footer-col strong {
    font-family: Georgia, serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0;
    display: block;
    margin-bottom: 0.2rem;
}

/* Footer-Links: Weiß (überschreibt globales Gold) */
.footer-col a       { color: #fff; }
.footer-col a:hover { opacity: 0.7; }


/* ================================================================
   7. GALERIE (Lightbox Gallery Plugin)
   Responsives Grid. Hover-Overlay mit Zoom-Icon.
   Das Plugin sucht nach [rel="lightbox"] Links und übernimmt Overlay,
   Navigation und Zoom automatisch. Kein eigenes JS nötig.
   ================================================================ */

.gallery-section {
    padding: 2rem 3rem 4rem;
    background: #f8f6f0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1140px;
    margin: 0 auto;
}

.gallery-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    aspect-ratio: 4 / 3;
    background: #e8e0d0;
    text-decoration: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Hover-Overlay: dunkelt leicht ab + zeigt Zoom-Icon */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 18, 8, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    background: rgba(30, 18, 8, 0.35);
}

.gallery-zoom {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 300;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.3s ease, transform 0.3s ease;
    line-height: 1;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.gallery-item:hover .gallery-zoom {
    opacity: 1;
    transform: scale(1);
}


/* ================================================================
   8. RESPONSIVE (Mobile ≤ 768px)
   Nav: kompakter, umbrechend.
   Footer: einspaltig, zentriert.
   Gallery: 2-spaltig auf Tablet, 1-spaltig auf Mobile.
   ================================================================ */

@media (max-width: 768px) {
    .nav-inner {
        gap: 1rem;
        flex-wrap: wrap;
        font-size: 0.65rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-col { text-align: center !important; }

    .gallery-section { padding: 1.5rem 1rem 3rem; }
    .gallery-grid    { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
}


/* ================================================================
   9. HAMBURGER-MENÜ (Mobile ≤ 768px)
   Hamburger-Button ersetzt Desktop-Nav-Links auf kleinen Screens.
   Slide-down Overlay unterhalb der fixierten Nav-Leiste.
   ================================================================ */

/* ── Hamburger Button (Desktop: unsichtbar) ─────────────── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    z-index: 1001;
}
.nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #c8920a;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
/* X-Animation beim Öffnen */
.nav-hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ── Mobile Nav Overlay ─────────────────────────────────── */
/* IMMER im DOM, Sichtbarkeit nur über max-height gesteuert */
.nav-mobile {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(45, 30, 15, 0.97);
    z-index: 998;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
}
.nav-mobile.open {
    max-height: calc(100dvh - 60px);
    overflow-y: auto;
}
.nav-mobile ul {
    list-style: none;
    margin: 0;
    padding: 8px 0 24px;
}
.nav-mobile li {
    border-bottom: 1px solid rgba(200, 146, 10, 0.15);
}
.nav-mobile li:last-child {
    border-bottom: none;
}
.nav-mobile a,
.nav-mobile .mobile-parent {
    display: block;
    padding: 13px 28px;
    color: #f5e8cc;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}
.nav-mobile a:hover,
.nav-mobile a.active,
.nav-mobile .mobile-parent.active {
    color: #c8920a;
    background: rgba(200, 146, 10, 0.08);
}
/* Sub-Items einrücken */
.nav-mobile li.sub-item a {
    padding-left: 46px;
    font-size: 0.78rem;
    color: #c8a870;
    letter-spacing: 0.06em;
    text-transform: none;
}
.nav-mobile li.sub-item a:hover {
    color: #c8920a;
}

/* ── Responsive Aktivierung ──────────────────────────────── */

/* Mobile (Phones ≤ 767px): immer Hamburger */
@media (max-width: 767px) {
    .nav-hamburger { display: flex; }
    .nav-inner .nav-item { display: none !important; }
    .nav-inner {
        justify-content: flex-end;
        flex-wrap: nowrap;
    }
}

/* Tablet Portrait (768–1024px): auch Hamburger */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .nav-hamburger { display: flex; }
    .nav-inner .nav-item { display: none !important; }
    .nav-inner {
        justify-content: flex-end;
        flex-wrap: nowrap;
    }
}

/* Desktop (1025px+) und Tablet Landscape: normales Menü, nav-mobile sperren */
@media (min-width: 1025px),
       (min-width: 768px) and (orientation: landscape) {
    .nav-mobile { max-height: 0 !important; pointer-events: none; }
    .nav-hamburger { display: none !important; }
}

/* ── Sibling-Navigation (Subnav) ─────────────────────────── */
/* ================================================================
   SPRACHUMSCHALTER (Flaggen DE / EN)
   ================================================================ */

.lang-switch {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.lang-flag {
    display: block !important;
    opacity: 0.55;
    border-radius: 2px;
    transition: opacity 0.2s, box-shadow 0.2s;
    line-height: 0;
}

.lang-flag:hover {
    opacity: 0.9;
}

.lang-flag.active {
    opacity: 1;
    box-shadow: 0 0 0 2px #c8920a;
    border-radius: 2px;
}

/* ================================================================ */

.subnav {
    background: transparent;
    padding: 1.2rem 0 0.8rem;
    margin-bottom: 0.5rem;
}
.subnav-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.3rem 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.92rem;
}
.subnav-item {
    color: #5a3e28;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}
a.subnav-item:hover {
    color: #c8920a;
}
.subnav-active {
    font-weight: 700;
    color: #2a1a08;
}
.subnav-sep {
    color: #c8a84a;
    padding: 0 0.5rem;
    font-weight: 300;
}
@media (max-width: 600px) {
    .subnav-inner {
        font-size: 0.82rem;
        gap: 0.2rem 0;
    }
}

/* ── YouTube Video Grid ──────────────────────────────────── */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* ── Kontaktformular ─────────────────────────────────────── */
.contact-form {
    max-width: 640px;
    margin: 1.5rem 0;
}
.form-row { display: flex; gap: 1.5rem; }
.form-row--half .form-group { flex: 1; min-width: 0; }
.form-group {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
}
.form-group label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #5a3e28;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.65rem 0.9rem;
    border: 1px solid #d4b896;
    border-radius: 4px;
    font-family: 'Merriweather', Georgia, serif;
    font-size: 0.95rem;
    color: #2a1a08;
    background: #faf7f2;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c8920a;
    background: #fff;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit {
    background: #c8920a;
    color: #fff;
    border: none;
    padding: 0.8rem 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-submit:hover { background: #a87208; }
.btn-submit:disabled { background: #ccc; cursor: not-allowed; }
@media (max-width: 600px) {
    .form-row { flex-direction: column; gap: 0; }
}

/* ── Preistabelle ────────────────────────────────────────── */
.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}
.price-table th {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #5a3e28;
    border-bottom: 2px solid #c8920a;
    padding: 0.5rem 0.75rem;
    text-align: left;
}
.price-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e8dcc8;
    color: #2a1a08;
}
.price-table tbody tr:last-child td {
    border-bottom: none;
}
.price-table tbody tr:hover td {
    background: #faf5ea;
}
@media (max-width: 600px) {
    .price-table th:last-child,
    .price-table td:last-child { display: none; }
}
