/* Einläuten-Markt — öffentliches Design
   Leitidee: Winternacht statt Weihnachtskitsch. Tiefes Nachtblau, warmes Gold,
   Schnee-Weiß, goldene Sterne und feine Flocken-/Zweig-Motive — angelehnt an
   die vorherige Seite, aber ruhig und zurückhaltend gehalten. */

@font-face {
    font-family: "Fraunces";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/fraunces-400.woff2") format("woff2");
}

@font-face {
    font-family: "Fraunces";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/fraunces-600.woff2") format("woff2");
}

@font-face {
    font-family: "Fraunces";
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/fraunces-500italic.woff2") format("woff2");
}

@font-face {
    font-family: "Dancing Script";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/dancing-script-700.woff2") format("woff2");
}

:root {
    --color-navy-deep: #0a1322;
    --color-navy: #101c33;
    --color-navy-soft: #22314f;
    --color-snow: #f3f6fa;
    --color-snow-deep: #e7edf4;
    --color-ink: #1b2436;
    --color-ink-soft: #53607a;
    --color-gold: #ad8228;
    --color-gold-soft: #e3c06b;
    --color-cream: #f4efe0;
    --color-line: #dbe3ee;
    --color-line-dark: rgba(207, 224, 245, 0.18);
    --color-burgundy: #5c1a22;
    /* Textfarben auf dunklem Grund */
    --color-text: #e9eef7;
    --color-text-muted: #a8b5cb;
    /* Karten als sanft erhellte Flächen über der Nacht.
       Bewusst deckend, damit das Schneemuster nicht durch den Text läuft. */
    --color-card: #16233c;
    --color-card-hover: #1d2c49;
    --color-card-line: rgba(207, 224, 245, 0.14);
    --font-serif: "Fraunces", Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", serif;
    --font-script: "Dancing Script", "Brush Script MT", var(--font-serif);
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --max-width: 1120px;
    --snow-pattern: url("../img/pattern-snow.svg");
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--snow-pattern), var(--color-navy);
    background-repeat: repeat;
    background-attachment: fixed;
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
    color: var(--color-gold-soft);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p {
    margin: 0 0 1em;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 0.6em;
}

/* Header */
.site-header {
    background: var(--color-navy);
    background-image: var(--snow-pattern);
    background-repeat: repeat;
    border-bottom: 1px solid var(--color-line-dark);
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
    gap: 24px;
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-script);
    font-weight: 700;
    font-size: 2.15rem;
    color: var(--color-gold-soft);
    letter-spacing: 0;
}

.site-header__bell {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    color: var(--color-gold-soft);
}

.site-header__brand span {
    display: block;
    font-family: var(--font-sans);
    font-style: normal;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b9c3d6;
    margin-top: 2px;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
}

.site-nav a {
    font-size: 0.92rem;
    color: #d6ddea;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
}

.site-nav a.is-active,
.site-nav a:hover {
    color: var(--color-gold-soft);
    border-bottom-color: var(--color-gold);
}

.nav-toggle {
    display: none;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: 96px 24px 0;
    color: var(--color-cream);
    text-align: left;
}

.hero__photo {
    position: absolute;
    inset: 0;
    background-image: url("../img/hero-photo.jpeg");
    background-size: cover;
    background-position: center 55%;
}

/* Zwei Schleier übereinander: einer schützt die Textspalte links,
   einer dunkelt oben/unten ab. Dazwischen bleibt das Marktgelände sichtbar. */
.hero__scrim {
    position: absolute;
    inset: 0;
    background:
        var(--snow-pattern),
        linear-gradient(90deg,
            rgba(8, 15, 28, 0.9) 0%,
            rgba(8, 15, 28, 0.7) 38%,
            rgba(8, 15, 28, 0.25) 68%,
            rgba(8, 15, 28, 0.5) 100%),
        linear-gradient(180deg,
            rgba(8, 15, 28, 0.72) 0%,
            rgba(8, 15, 28, 0.12) 30%,
            rgba(8, 15, 28, 0.18) 68%,
            rgba(8, 15, 28, 0.72) 100%);
    background-repeat: repeat, no-repeat, no-repeat;
}

.hero__pennant {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 172px;
    padding: 18px 12px 26px;
    background: var(--color-navy-deep);
    border: 1px solid var(--color-gold);
    border-top: none;
    clip-path: polygon(0 0, 100% 0, 100% 76%, 50% 100%, 0 76%);
    text-align: center;
}

.hero__pennant-place {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--color-gold-soft);
}

.hero__pennant-region {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    color: #b9c3d6;
    margin-top: 3px;
}

.hero__pennant-sprig {
    width: 52px;
    height: 12px;
    color: var(--color-gold);
    opacity: 0.7;
    margin-top: 8px;
}

.hero__social {
    position: absolute;
    top: 22px;
    right: 24px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero__social-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold-soft);
    border: 1px solid rgba(227, 192, 107, 0.5);
    transition: background 0.15s ease;
}

.hero__social-icon svg {
    width: 16px;
    height: 16px;
}

.hero__social-icon:hover {
    background: rgba(227, 192, 107, 0.12);
    color: var(--color-gold-soft);
}

.hero__medallion {
    position: absolute;
    top: 96px;
    right: 40px;
    z-index: 3;
    width: 168px;
    height: 168px;
    border-radius: 50%;
    background: var(--color-burgundy);
    border: 2px solid var(--color-gold);
    box-shadow: 0 0 0 5px rgba(10, 19, 34, 0.5), 0 0 0 6px rgba(227, 192, 107, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-gold-soft);
}

.hero__medallion-sprig {
    width: 44px;
    height: 10px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.hero__medallion-days {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    line-height: 1;
}

.hero__medallion-month {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    margin-top: 4px;
}

.hero__medallion-year {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    opacity: 0.85;
    margin-top: 2px;
}

.hero__main {
    position: relative;
    z-index: 2;
    padding-top: 56px;
    max-width: 620px;
}

.hero__bell {
    width: 60px;
    height: 60px;
    color: var(--color-gold-soft);
    margin-bottom: 8px;
}

.hero__wordmark {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(3rem, 7vw, 4.6rem);
    color: var(--color-gold-soft);
    margin: 0 0 8px;
    line-height: 1;
}

.hero__claim {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    letter-spacing: 0.26em;
    color: var(--color-gold-soft);
    margin: 0 0 18px;
}

.hero__flourish {
    display: block;
    width: 200px;
    height: 18px;
    color: var(--color-gold);
    opacity: 0.85;
    margin-bottom: 32px;
}

.hero__headline {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    line-height: 1.6;
    max-width: 460px;
    margin: 0 0 22px;
}

.hero__highlights {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    letter-spacing: 0.13em;
    color: var(--color-gold-soft);
    max-width: 420px;
    line-height: 1.9;
    margin: 0 0 40px;
}

.hero__cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-bottom: 56px;
}

.hero__greeting {
    font-family: var(--font-script);
    font-weight: 700;
    font-size: 1.7rem;
    color: var(--color-gold-soft);
    margin: 0;
}

.hero__greeting-sprig {
    width: 78px;
    height: 14px;
    color: var(--color-gold);
    opacity: 0.8;
    margin-bottom: 16px;
}

.hero__btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 999px;
    background: var(--color-gold);
    color: var(--color-navy-deep);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: background 0.15s ease;
}

.hero__btn:hover {
    background: var(--color-gold-soft);
}

.hero__wave {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 22px;
    color: rgba(227, 192, 107, 0.55);
}

.hero__features {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 64px;
    flex-wrap: wrap;
    padding: 6px 24px 40px;
}

.hero__feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-cream);
}

.hero__feature svg {
    width: 30px;
    height: 30px;
    color: var(--color-gold-soft);
}

.hero__feature span {
    font-family: var(--font-serif);
    font-size: 0.95rem;
}

@media (max-width: 760px) {
    .hero {
        text-align: center;
        padding-top: 130px;
    }
    .hero__main {
        max-width: 100%;
        margin: 0 auto;
    }
    .hero__wordmark,
    .hero__claim,
    .hero__flourish,
    .hero__headline,
    .hero__highlights {
        margin-left: auto;
        margin-right: auto;
    }
    .hero__cta {
        align-items: center;
    }
    .hero__medallion {
        /* relative statt static: sonst greift z-index nicht und
           das Medaillon verschwindet hinter dem Schleier */
        position: relative;
        top: auto;
        right: auto;
        margin: 0 auto 28px;
    }
    .hero__social {
        top: 14px;
        right: 14px;
    }
    .hero__features {
        gap: 32px;
    }
}

.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 4px;
    font-size: 0.95rem;
    border: 1px solid var(--color-gold);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
    background: var(--color-gold);
    color: var(--color-navy-deep);
    border-color: var(--color-gold);
}

.btn--primary:hover {
    background: var(--color-gold-soft);
    border-color: var(--color-gold-soft);
    color: var(--color-navy-deep);
}

.btn--ghost {
    background: transparent;
    color: var(--color-gold-soft);
    border-color: rgba(227, 192, 107, 0.6);
}

.btn--ghost:hover {
    background: rgba(227, 192, 107, 0.12);
    color: var(--color-gold-soft);
}

/* Sections */
.section {
    padding: 64px 0;
    background: rgba(10, 19, 34, 0.72);
    border-bottom: 1px solid var(--color-line-dark);
}

.section:last-of-type {
    border-bottom: none;
}

.section--alt {
    background: rgba(10, 19, 34, 0.85);
}

.section__intro {
    max-width: 680px;
    margin-bottom: 40px;
}

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

.prose p {
    max-width: 720px;
}

/* Vendor grid */
.category-block {
    margin-bottom: 48px;
}

.category-block:last-child {
    margin-bottom: 0;
}

.category-block h3 {
    color: var(--color-gold-soft);
    border-bottom: 1px solid var(--color-line-dark);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.vendor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.vendor-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--color-card);
    border: 1px solid var(--color-card-line);
    border-radius: 6px;
    padding: 20px 22px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.vendor-card:hover {
    background: var(--color-card-hover);
    border-color: rgba(227, 192, 107, 0.4);
}

.vendor-gallery {
    position: relative;
    flex: 0 0 auto;
    width: 84px;
    height: 84px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(10, 19, 34, 0.6);
}

.vendor-gallery:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

.vendor-gallery__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.vendor-gallery__img.is-active {
    opacity: 1;
}

.vendor-card__body {
    flex: 1 1 auto;
    min-width: 0;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(10, 19, 34, 0.92);
    padding: 24px;
}

.lightbox.is-open {
    display: flex;
}

.lightbox__figure {
    position: relative;
    max-width: min(90vw, 900px);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox__img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox__caption {
    color: var(--color-cream);
    margin-top: 14px;
    font-size: 0.9rem;
    text-align: center;
}

.lightbox__close {
    position: absolute;
    top: -44px;
    right: 0;
    background: transparent;
    border: none;
    color: var(--color-cream);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    padding: 6px;
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(244, 239, 224, 0.12);
    border: 1px solid rgba(227, 192, 107, 0.4);
    color: var(--color-gold-soft);
    font-size: 1.6rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
}

.lightbox__nav:hover {
    background: rgba(227, 192, 107, 0.2);
}

.lightbox__nav--prev {
    left: -8px;
}

.lightbox__nav--next {
    right: -8px;
}

@media (max-width: 640px) {
    .lightbox__nav--prev { left: 4px; }
    .lightbox__nav--next { right: 4px; }
    .lightbox__close { top: 4px; right: 4px; }
}

.vendor-card__body h4 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--color-cream);
}

.vendor-card__body p {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* Info cards (Anfahrt / Eckdaten) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.info-card {
    background: var(--color-card);
    border: 1px solid var(--color-card-line);
    border-radius: 6px;
    padding: 24px;
}

.info-card h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-gold-soft);
    font-family: var(--font-sans);
    margin-bottom: 10px;
}

/* Eingebettete Karte (Anfahrt) */
.map-frame {
    margin-top: 32px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(227, 192, 107, 0.35);
}

/* Footer */
.site-footer {
    background: var(--color-navy-deep);
    background-image: var(--snow-pattern);
    background-repeat: repeat;
    color: var(--color-cream);
    padding: 48px 0 28px;
}

.site-footer a {
    color: var(--color-cream);
}

.site-footer a:hover {
    color: var(--color-gold-soft);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 28px;
    margin-bottom: 32px;
}

.site-footer h4 {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gold-soft);
    margin-bottom: 12px;
}

.site-footer__bottom {
    border-top: 1px solid var(--color-line-dark);
    padding-top: 20px;
    font-size: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    justify-content: space-between;
    color: #9aa7c0;
}

.site-footer__bottom a {
    color: #9aa7c0;
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

@media (max-width: 720px) {
    .site-header__bar {
        flex-wrap: wrap;
    }
    .site-nav {
        gap: 6px 16px;
    }
    .section {
        padding: 48px 0;
    }
    .hero::before,
    .hero::after {
        width: 130px;
        opacity: 0.35;
    }
}
