/* ============================================
   ATELIER AM DEICH - Stylesheet
   ============================================

   Design: Kühl & Nordisch + Künstlerisch-organisch

   Inspiriert von:
   - Nordsee-Himmel und Wolkenformationen
   - Aquarell- und Pastelltechniken
   - Weiche, fließende Formen

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


/* ============================================
   1. CSS-VARIABLEN
   Nordische Farbpalette
   ============================================ */
:root {
    /* Hauptfarben - Nordsee-Himmel */
    --color-primary: #5d7a8c;        /* Gedämpftes Blaugrau (Horizont) */
    --color-primary-light: #7a9aad;  /* Helleres Blaugrau */
    --color-primary-dark: #3d5a6c;   /* Dunkles Blaugrau (Sturmwolken) */

    /* Akzentfarben */
    --color-accent: #c4a882;         /* Sandfarbener Akzent (Strand/Dünen) */
    --color-accent-warm: #b8856c;    /* Warmer Akzent (Leuchtturm-Rot gedämpft) */

    /* Neutrale Farben - wie Aquarellpapier */
    --color-white: #fdfcfa;          /* Warmes Weiß (Büttenpapier) */
    --color-off-white: #f5f3ef;      /* Cremiges Off-White */
    --color-light: #e8e4de;          /* Heller Hintergrund (wie nasses Papier) */
    --color-muted: #d1ccc4;          /* Gedämpftes Grau */
    --color-gray: #8a8580;           /* Mittleres Grau */
    --color-dark: #3a3632;           /* Warmes Fast-Schwarz */

    /* Schriften */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Abstände */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Organische Werte */
    --max-width: 1200px;
    --border-radius: 8px;            /* Weichere Rundungen */
    --border-radius-lg: 16px;        /* Größere Rundungen für Karten */
    --border-radius-xl: 24px;        /* Sehr weiche Rundungen */
    --transition: 0.4s ease;         /* Sanftere Animationen */
    --transition-slow: 0.6s ease;

    /* Schatten - weich und diffus wie Aquarell */
    --shadow-soft: 0 4px 20px rgba(93, 122, 140, 0.08);
    --shadow-medium: 0 8px 40px rgba(93, 122, 140, 0.12);
    --shadow-lifted: 0 12px 50px rgba(93, 122, 140, 0.15);
}


/* ============================================
   2. RESET & BASIS
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-dark);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;

    /* Subtile Papier-Textur */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

ul {
    list-style: none;
}


/* ============================================
   3. TYPOGRAFIE
   Elegant und künstlerisch
   ============================================ */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;  /* Leichter für organischen Look */
    line-height: 1.3;
    color: var(--color-dark);
    letter-spacing: 0.01em;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 400;
}

h2 {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 600;
}

p {
    margin-bottom: var(--space-sm);
    color: var(--color-gray);
}

p:last-child {
    margin-bottom: 0;
}


/* ============================================
   4. LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-3xl) 0;
}

.section-alt {
    background-color: var(--color-off-white);
    position: relative;
}

/* Organische Trennlinie zwischen Sektionen */
.section-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--color-muted) 20%,
        var(--color-muted) 80%,
        transparent 100%
    );
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-md);
    position: relative;
}

/* Dekorative Linie unter Titeln */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary-light), var(--color-accent));
    margin: var(--space-md) auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-gray);
    margin-bottom: var(--space-xl);
    font-size: 1.1rem;
}


/* ============================================
   5. HEADER & NAVIGATION
   Leicht und luftig
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(253, 252, 250, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition);
}

.header.header-scrolled {
    box-shadow: var(--shadow-soft);
}

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

/* Logo - künstlerisch */
.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--color-dark);
    letter-spacing: 0.02em;
}

.logo-sub {
    font-size: 0.8rem;
    color: var(--color-primary);
    letter-spacing: 0.15em;
    text-transform: lowercase;
}

.logo:hover {
    color: inherit;
}

/* Navigation */
.nav-list {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--color-gray);
    padding: var(--space-xs) 0;
    position: relative;
    letter-spacing: 0.02em;
    transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-dark);
}

/* Organischer Hover-Effekt */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary-light), var(--color-accent));
    transition: all var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.hamburger {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--color-dark);
    position: relative;
    transition: background-color var(--transition);
    border-radius: 2px;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-dark);
    transition: transform var(--transition);
    border-radius: 2px;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }


/* ============================================
   6. HERO
   Atmosphärisch und einladend
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('images/dithmarscher-landschaft.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Sanfter Verlauf statt hartem Overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(253, 252, 250, 0.1) 0%,
        rgba(93, 122, 140, 0.3) 50%,
        rgba(58, 54, 50, 0.5) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--color-white);
    padding: var(--space-lg);
    max-width: 800px;
}

.hero-title {
    color: var(--color-white);
    margin-bottom: var(--space-sm);
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
    font-weight: 400;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: var(--space-lg);
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 0.05em;
}


/* ============================================
   7. SEKTIONEN
   ============================================ */

/* Einleitung */
.intro-content {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.intro-text {
    font-size: 1.15rem;
    color: var(--color-gray);
    margin-bottom: var(--space-lg);
    line-height: 1.9;
}

/* Bildvorschau */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.preview-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    aspect-ratio: 4 / 3;

    /* Weicher Rahmen wie ein Passepartout */
    border: 8px solid var(--color-white);
    background: var(--color-white);
}

.preview-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--color-muted);
    border-radius: calc(var(--border-radius-lg) - 8px);
    pointer-events: none;
    z-index: 1;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.preview-item:hover img {
    transform: scale(1.03);
}

.preview-cta {
    text-align: center;
}

/* Atelier-Sektion */
.atelier-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.atelier-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);

    /* Polaroid-artiger Rahmen */
    background: var(--color-white);
    padding: var(--space-sm);
    padding-bottom: var(--space-lg);
}

.atelier-image img {
    border-radius: var(--border-radius);
}

.atelier-content .section-title {
    text-align: left;
    margin-bottom: var(--space-md);
}

.atelier-content .section-title::after {
    margin: var(--space-md) 0 0;
}

.atelier-content p {
    color: var(--color-gray);
    margin-bottom: var(--space-md);
}


/* ============================================
   8. BUTTONS
   Weich und einladend
   ============================================ */
.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: var(--border-radius-xl);
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.02em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(93, 122, 140, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(93, 122, 140, 0.4);
    color: var(--color-white);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    margin-left: var(--space-sm);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
}


/* ============================================
   9. GALERIE & LIGHTBOX
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    aspect-ratio: 1;

    /* Passepartout-Effekt */
    background: var(--color-white);
    padding: 6px;
    transition: all var(--transition);
}

.gallery-item:hover {
    box-shadow: var(--shadow-lifted);
    transform: translateY(-4px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--border-radius-lg) - 6px);
    transition: transform var(--transition-slow);
}

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

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(58, 54, 50, 0.95);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: var(--color-white);
    padding: var(--space-sm);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lifted);
}

.lightbox-content img {
    max-width: 100%;
    max-height: calc(90vh - 80px);
    object-fit: contain;
    border-radius: var(--border-radius);
}

.lightbox-close {
    position: fixed;
    top: var(--space-lg);
    right: var(--space-lg);
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    padding: var(--space-sm);
    line-height: 1;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    transition: background var(--transition);
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    padding: var(--space-md);
    cursor: pointer;
    transition: background var(--transition);
    border-radius: var(--border-radius);
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-prev { left: var(--space-lg); }
.lightbox-next { right: var(--space-lg); }


/* ============================================
   10. FORMULARE
   ============================================ */
.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
    color: var(--color-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--color-light);
    border-radius: var(--border-radius-lg);
    background: var(--color-white);
    transition: all var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 4px rgba(93, 122, 140, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
}

.contact-info h2,
.contact-form h2 {
    margin-bottom: var(--space-sm);
}

.contact-info p {
    color: var(--color-gray);
}

.contact-info ul {
    margin-top: var(--space-lg);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    background: var(--color-off-white);
    border-radius: var(--border-radius-lg);
    transition: background var(--transition);
}

.contact-info li:hover {
    background: var(--color-light);
}

.contact-info li svg {
    flex-shrink: 0;
    color: var(--color-primary);
    margin-top: 2px;
}


/* ============================================
   11. FOOTER
   Ruhig und elegant
   ============================================ */
.footer {
    background: linear-gradient(to bottom, var(--color-dark) 0%, #2d2a27 100%);
    color: var(--color-white);
    padding: var(--space-2xl) 0 var(--space-lg);
    position: relative;
}

/* Dekorative Wellenlinie oben */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--color-primary-light) 0%,
        var(--color-accent) 50%,
        var(--color-primary-light) 100%
    );
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-section h3 {
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    letter-spacing: 0.05em;
}

.footer-section p {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.footer-contact a {
    color: rgba(255,255,255,0.7);
    transition: color var(--transition);
}

.footer-contact a:hover {
    color: var(--color-white);
}

.footer-contact svg {
    flex-shrink: 0;
    color: var(--color-primary-light);
}

/* Social Links */
.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    color: var(--color-white);
    transition: all var(--transition);
}

.social-links a:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
}

.maps-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: rgba(255,255,255,0.7);
    margin-top: var(--space-sm);
    font-size: 0.9rem;
}

.maps-link:hover {
    color: var(--color-white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

.footer-nav {
    display: flex;
    gap: var(--space-md);
}

.footer-nav a {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

.footer-nav a:hover {
    color: var(--color-white);
}


/* ============================================
   12. RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .atelier-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .atelier-content .section-title {
        text-align: center;
    }

    .atelier-content .section-title::after {
        margin: var(--space-md) auto 0;
    }
}

@media (max-width: 767px) {
    .nav-toggle {
        display: block;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        box-shadow: var(--shadow-medium);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all var(--transition);
        border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    }

    .nav.nav-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: var(--space-sm) 0;
    }

    .nav-link {
        display: block;
        padding: var(--space-sm) var(--space-md);
    }

    .nav-link::after {
        display: none;
    }

    .nav-toggle[aria-expanded="true"] .hamburger {
        background-color: transparent;
    }

    .nav-toggle[aria-expanded="true"] .hamburger::before {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .nav-toggle[aria-expanded="true"] .hamburger::after {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero {
        min-height: 85vh;
        background-attachment: scroll;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: var(--space-sm);
    }
}

@media (max-width: 479px) {
    .container {
        padding: 0 var(--space-sm);
    }

    .section {
        padding: var(--space-2xl) 0;
    }

    .preview-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .preview-item,
    .gallery-item {
        padding: 4px;
    }
}


/* ============================================
   UTILITY KLASSEN
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }


/* ============================================
   SEITEN-SPEZIFISCH
   ============================================ */

/* Seiten-Header */
.page-header {
    padding-top: calc(80px + var(--space-2xl));
    padding-bottom: var(--space-xl);
    background: linear-gradient(to bottom, var(--color-off-white) 0%, var(--color-white) 100%);
    text-align: center;
}

.page-header h1 {
    margin-bottom: var(--space-sm);
}

.page-header p {
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Künstler-Seite */
.artist-profile {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-2xl);
    align-items: start;
}

.artist-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    position: sticky;
    top: calc(80px + var(--space-md));

    /* Rahmen wie gerahmtes Foto */
    background: var(--color-white);
    padding: var(--space-sm);
}

.artist-image img {
    border-radius: var(--border-radius);
}

.artist-bio h2 {
    margin-bottom: var(--space-md);
}

.artist-bio h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary-light), var(--color-accent));
    margin-top: var(--space-md);
    border-radius: 2px;
}

.artist-bio h3 {
    color: var(--color-dark);
    margin-bottom: var(--space-sm);
}

.artist-bio p {
    color: var(--color-gray);
    margin-bottom: var(--space-md);
}

@media (max-width: 767px) {
    .artist-profile {
        grid-template-columns: 1fr;
    }

    .artist-image {
        position: static;
        max-width: 350px;
        margin: 0 auto;
    }
}

/* Erwerb-Seite */
.purchase-info {
    max-width: 900px;
    margin: 0 auto;
}

.purchase-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.purchase-card {
    background: var(--color-white);
    padding: var(--space-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: all var(--transition);
    border: 1px solid var(--color-light);
}

.purchase-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-4px);
}

.purchase-card h3 {
    margin-bottom: var(--space-sm);
    color: var(--color-dark);
}

.purchase-card p {
    color: var(--color-gray);
    margin-bottom: var(--space-md);
}

/* FAQ */
.faq-item h3 {
    color: var(--color-dark);
    margin-bottom: var(--space-xs);
}

.faq-item p {
    color: var(--color-gray);
}


/* ============================================
   ANFRAGE-BUTTON AUF GALERIE-BILDERN
   Erscheint beim Hover über ein Galerie-Bild.
   Wird per JavaScript dynamisch eingefügt.
   ============================================ */

/* Button-Positionierung: zentriert am unteren Bildrand */
.gallery-inquiry-btn {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    z-index: 2;

    /* Aussehen: gleicher Stil wie .btn-primary */
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    border: none;
    padding: 0.6rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: var(--border-radius-xl);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);

    /* Standardmäßig unsichtbar, wird beim Hover eingeblendet */
    opacity: 0;
    transition: all var(--transition);
}

/* Einblenden wenn über das Galerie-Bild gehovert wird */
.gallery-item:hover .gallery-inquiry-btn {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Hover-Effekt auf dem Button selbst */
.gallery-inquiry-btn:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}


/* ============================================
   ANFRAGE-MODAL (Popup-Formular)
   Fullscreen-Overlay mit zentriertem Formular
   ============================================ */

/* Modal-Container: füllt den ganzen Bildschirm */
.inquiry-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;              /* Über der Lightbox (z-index: 2000) */
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

/* Wenn aktiv: als Flexbox anzeigen (zentriert den Inhalt) */
.inquiry-modal.active {
    display: flex;
}

/* Halbtransparenter Hintergrund hinter dem Formular */
.inquiry-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(58, 54, 50, 0.85);
    backdrop-filter: blur(5px);
}

/* Formular-Box: weißer Kasten mit Schatten */
.inquiry-modal-content {
    position: relative;
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lifted);

    /* Sanfte Einblend-Animation von unten */
    animation: inquirySlideIn 0.3s ease;
}

/* Keyframe-Animation: Modal gleitet von unten herein */
@keyframes inquirySlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal-Überschrift */
.inquiry-modal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: var(--space-xs);
    color: var(--color-dark);
}

/* Beschreibungstext unter der Überschrift */
.inquiry-modal-subtitle {
    color: var(--color-gray);
    font-size: 0.95rem;
    margin-bottom: var(--space-lg);
}

/* Schließen-Button: runder X-Button oben rechts */
.inquiry-modal-close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--color-gray);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition);
    line-height: 1;
}

.inquiry-modal-close:hover {
    background: var(--color-light);
    color: var(--color-dark);
}

/* Vorausgefülltes Bildtitel-Feld: optisch als "nicht editierbar" erkennbar */
.inquiry-form input[readonly] {
    background: var(--color-off-white);
    color: var(--color-primary-dark);
    font-weight: 500;
    cursor: default;
}

/* Absenden-Button: volle Breite im Modal */
.inquiry-submit {
    width: 100%;
    margin-top: var(--space-sm);
}

/* ============================================
   ANFRAGE-MODAL & BUTTON - Responsive
   ============================================ */
@media (max-width: 767px) {
    /* Auf Mobilgeräten: Anfrage-Button immer sichtbar
       (da es keinen Hover-Effekt gibt) */
    .gallery-inquiry-btn {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    /* Modal-Box: weniger Padding auf kleinen Bildschirmen */
    .inquiry-modal-content {
        padding: var(--space-lg);
        margin: var(--space-sm);
    }
}


/* ============================================
   RECHTSTEXT-SEITEN (Datenschutz, Impressum)
   Gut lesbare Typografie für längere Texte
   ============================================ */

/* Zentrierter Container mit maximaler Lesebreite */
.legal-content {
    max-width: 780px;
    margin: 0 auto;
}

/* Überschriften: deutlich abgesetzt vom Fließtext */
.legal-content h2 {
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    font-weight: 600;
    color: var(--color-dark);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--color-light);
}

/* Erste Überschrift braucht keinen oberen Abstand */
.legal-content h2:first-child {
    margin-top: 0;
}

/* Fließtext: gut lesbar mit großzügigem Zeilenabstand */
.legal-content p {
    color: var(--color-gray);
    line-height: 1.9;
    margin-bottom: var(--space-md);
}

/* Links im Rechtstext: unterstrichen zur besseren Erkennbarkeit */
.legal-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-content a:hover {
    color: var(--color-primary-dark);
}


/* ============================================
   GOOGLE MAPS - Click-to-Load (DSGVO)
   Platzhalter wird angezeigt bis der Nutzer
   aktiv auf "Karte laden" klickt.
   ============================================ */

/* Container für Karte/Platzhalter: feste Höhe, abgerundete Ecken */
.map-container {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    height: 400px;
    position: relative;
}

/* Platzhalter: grauer Bereich mit zentriertem Inhalt */
.map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-light) 0%, var(--color-muted) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    text-align: center;
}

/* Karten-Pin Icon über dem Button */
.map-placeholder-icon {
    color: var(--color-primary-light);
    opacity: 0.6;
}

/* "Karte laden"-Button: etwas größer als normal */
.map-load-btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

/* Datenschutz-Hinweistext unter dem Button */
.map-placeholder-hint {
    font-size: 0.8rem;
    color: var(--color-gray);
    max-width: 360px;
    line-height: 1.5;
    margin-bottom: 0;
}

.map-placeholder-hint a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Geladenes iframe: füllt den gesamten Container */
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
