@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
    /* Lage des F+J-Emblems: Breite und Abstand vom rechten Rand (auch für die Header-Linie) */
    --emblem-w: min(511px, 46vw);   /* 511 px Breite = 625 px Höhe */
    --emblem-r: max(-30px, calc(50% - 744px));
    --bg: #b1b1b1;            /* Grauton der alten Seite */
    --paper: #e6e6e6;         /* helles Grau der alten Inhaltsfläche */
    --surface: #f5f5f5bf;
    --ink: #2b2b2e;
    --muted: #5c5c62;
    --line: #cdcdcd;
    --accent: #76a5cc;        /* Blau aus dem Logo */
    --accent-ink: #3d6a92;    /* dunkler für lesbaren Text */
    --serif: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --radius: 14px;
    --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 8px 30px rgb(60 50 30 / .07);
    --pad: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    /* Verlauf wie background.png der alten Seite: hell oben links, nach rechts unten dunkler */
    background:
        radial-gradient(130% 1100px at 18% 0%, #e9e9e9 0%, #d6d6d6 32%, #bdbdbd 62%, transparent 85%) no-repeat,
        linear-gradient(90deg, #c4c4c4, #adadad) var(--bg);
    color: var(--ink);
    font: 400 1rem/1.7 var(--sans);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: .2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100%); margin-inline: auto; padding-inline: var(--pad); }
.narrow { max-width: 760px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: .5rem; left: .5rem; z-index: 100; background: var(--surface); padding: .5rem 1rem; }

.eyebrow {
    font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 1rem;
    display: flex; align-items: center; gap: .75rem;
}
.eyebrow::before { content: ""; width: 2.5rem; height: 1px; background: currentColor; opacity: .6; }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--accent-ink); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.button {
    display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
    padding: .7rem 1.4rem; border-radius: 999px; border: 1px solid var(--ink);
    background: var(--ink); color: #fff; font: 600 .95rem/1 var(--sans); text-decoration: none;
    cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.button:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.button--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button--ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }

/* Hinweisleiste über dem Header */
.notice { background: linear-gradient(180deg, #d9bd78, #b8913e); color: #2e2210; font-size: .95rem; border-bottom: 1px solid #8a6a2a; }
.notice__inner { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; padding-block: .6rem; justify-content: center; text-align: center; }
.notice a { color: inherit; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: rgb(230 230 230 / .88); backdrop-filter: blur(10px);
}
.site-header::after {
    /* Untere Linie blendet über dem Emblem aus, damit es nahtlos an den Header anschließt */
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
    --l: calc(100% - var(--emblem-r) - var(--emblem-w));
    --r: calc(100% - var(--emblem-r));
    background: linear-gradient(90deg,
        var(--line) calc(var(--l) - 220px), transparent calc(var(--l) + 30px),
        transparent calc(var(--r) - 10px), var(--line) calc(var(--r) + 160px));
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 88px; }
/* Logo: Signet (SVG) + Schriftzug als Text mit dezentem Glanz */
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand__mark { width: auto; height: clamp(40px, 4.5vw, 54px); }
.brand__name {
    font: 600 clamp(1rem, 1.6vw, 1.3rem)/1.15 "Montserrat", var(--sans);
    text-transform: uppercase; letter-spacing: .03em; color: #808080;
    /* Grau wie im Signet; ein Glanz im Blau des Logos läuft gelegentlich darüber */
    background: linear-gradient(120deg, #808080 0 39%, #7f97ad 44%, #6ea3d1 48%, #9fc9eb 50%, #6ea3d1 52%, #7f97ad 56%, #808080 61% 100%);
    background-size: 250% 100%; background-position: 100% 0;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: shine 14s ease-in-out 1.2s infinite;
}
@keyframes shine { 0% { background-position: 100% 0; } 32%, 100% { background-position: 0 0; } }
.brand:hover .brand__name { animation-duration: 10s; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2.25rem; }
.site-nav a {
    color: var(--ink); text-decoration: none; font-size: 1.08rem; letter-spacing: .04em;
    padding-block: .4rem; border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-color: var(--accent); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
    .site-header__inner { min-height: 68px; }
    .nav-toggle {
        display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px;
        border: 0; background: transparent; cursor: pointer;
    }
    .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
        display: block; width: 22px; height: 1.5px; background: var(--ink); position: relative; transition: transform .25s, background .25s;
    }
    .nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
    .nav-toggle__bar::before { top: -7px; }
    .nav-toggle__bar::after { top: 7px; }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }
    .site-nav {
        position: absolute; inset: 100% 0 auto; background: var(--paper);
        border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgb(0 0 0 / .06);
        display: none;
    }
    .site-nav.is-open { display: block; }
    .site-nav ul { flex-direction: column; gap: 0; padding: .5rem var(--pad) 1rem; }
    .site-nav a { display: block; padding: .9rem 0; font-family: var(--serif); font-size: 1.5rem; border-bottom: 1px solid var(--line); }
    .site-nav li:last-child a { border-bottom: 0; }
    .site-nav a[aria-current="page"] { color: var(--accent-ink); }
}

/* Hero */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 2.5rem); }
.hero, .section--first {
    /* z-index hebt die Sektion samt Monogramm über die folgende Sektion */
    position: relative; z-index: 1; overflow-x: clip;
}
.hero::after, .section--first::after {
    /* F+J-Monogramm: oben bündig am Header, unten in die nächste Sektion hinein */
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    /* PNG hat 533 × 652 px – nie größer anzeigen, damit es scharf bleibt */
    top: 0; width: var(--emblem-w); aspect-ratio: 533 / 652; max-height: calc(100% + 5rem);
    right: var(--emblem-r);
    background: url("../img/monogramm.png") no-repeat right top / contain;
    min-width: 414px;
}
@media (max-width: 899px) {
    :root { --emblem-w: 62vw; --emblem-r: -14vw; }
    /* .hero::after, .section--first::after { opacity: .45; } */
    /* Emblem oben voll deckend (Anschluss an den Header), nach unten auf 30 % ausblenden */
    .hero::after, .section--first::after {
        -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgb(0 0 0 / .2) 100%);
        mask-image: linear-gradient(to bottom, #000 0%, rgb(0 0 0 / .2) 100%);
    }
}
@media (max-width: 590px) {
    .hero::after, .section--first::after { 
    min-width: calc(115vw * -1);
    right: -15vw;

        min-width: 76vw;
        right: -21vw;
     }
}
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: 1fr; align-items: center; }
.hero__text { max-width: 38rem; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.25fr 1fr; } }

/* Öffnungszeiten-Karte */
.hours {
    background: rgb(245 245 245 / .72); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgb(255 255 255 / .7); border-radius: var(--radius);
    padding: clamp(1.5rem, 4vw, 2.25rem); position: relative;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), var(--shadow);
}
.hours__title { font-size: 1.7rem; margin-bottom: 1rem; }
.hours__list { margin: 0; }
.hours__row { display: flex; justify-content: space-between; gap: 1rem; padding-block: .7rem; border-bottom: 1px dashed var(--line); }
.hours__row dt { font-weight: 600; }
.hours__row dd { margin: 0; text-align: right; color: var(--muted); }


.special { margin: 0 0 1.25rem; padding: 1rem 1.1rem; border-radius: 10px; background: rgb(255 255 255 / .6); border: 1px dashed #b9a06a; }
.special__title { font-family: var(--serif); font-size: 1.35rem; margin: 0 0 .4rem; }
.special ul { margin: 0; padding: 0; list-style: none; font-weight: 600; }
.special__range { margin: .5rem 0 0; font-size: .85rem; color: var(--muted); }
.hours__phone {
    display: flex; justify-content: space-between; align-items: baseline; margin-top: 1.25rem;
    font-family: var(--serif); font-size: 1.55rem; text-decoration: none; color: var(--ink);
}
.hours__phone span { font: 600 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hours__phone:hover { color: var(--accent-ink); }

/* Zitat-/Aussagenband */
.statement { border-block: 1px solid var(--line); background: var(--paper); }
.statement p {
    position: relative; z-index: 2; /* Text liegt über dem hineinragenden Monogramm */
    margin: 0; padding-block: clamp(2rem, 5vw, 3rem); text-align: center;
    font: italic 500 clamp(1.4rem, 3.4vw, 2.1rem)/1.35 var(--serif); color: var(--ink);
    max-width: 52rem; margin-inline: auto;
}

/* Sektionen */
.section { padding-block: clamp(2.5rem, 7vw, 5rem); }
.section--first { padding-top: clamp(2.5rem, 8vw, 5rem); }
.section__title { text-align: center; max-width: 40rem; margin-inline: auto; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }

/* Galerie: Mauerwerk-Layout, damit kein Schmuckstück beschnitten wird */
.gallery { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: .75rem; }
@media (min-width: 640px) { .gallery { columns: 3; column-gap: 1rem; } }
@media (min-width: 1000px) { .gallery { columns: 5; } }
.gallery__item { break-inside: avoid; margin-bottom: .75rem; }
@media (min-width: 640px) { .gallery__item { margin-bottom: 1rem; } }
.gallery__item[hidden] { display: none; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; background: #ddd; box-shadow: 0 6px 20px rgb(0 0 0 / .12); }
.gallery img { width: 100%; transition: transform .5s ease, opacity .3s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery__more { text-align: center; margin-top: 2rem; }

/* Lightbox */
.lightbox {
    border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
    width: 100vw; height: 100vh; margin: 0;
}
.lightbox::backdrop { background: rgb(20 20 22 / .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__figure { margin: 0; display: grid; gap: .75rem; justify-items: center; padding: 4rem 1rem; }
.lightbox__figure img {
    width: auto; max-width: min(92vw, 640px); max-height: 72vh; border-radius: 8px;
    min-width: min(80vw, 420px); object-fit: contain;
}
.lightbox figcaption { color: #ddd; font-size: .9rem; text-align: center; }
.lightbox__btn {
    position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .3);
    background: rgb(255 255 255 / .08); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.lightbox__btn:hover { background: rgb(255 255 255 / .2); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 1rem; top: 50%; translate: 0 -50%; }
@media (max-width: 640px) {
    .lightbox__prev, .lightbox__next { top: auto; bottom: 1.25rem; translate: none; }
    .lightbox__prev { left: calc(50% - 60px); }
    .lightbox__next { right: calc(50% - 60px); }
}

/* Über uns */
.prose-grid { display: grid; gap: 2.5rem; align-items: center; }
.prose-grid > div { max-width: 40rem; }
@media (min-width: 900px) { .prose-grid { grid-template-columns: 1.4fr 1fr; min-height: 440px; } }
.house { margin: 0; justify-self: center; padding: 0; background: var(--surface); border-radius: 50%; aspect-ratio: 1; display: grid; place-items: center; width: min(100%, 360px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.house img { width: 80%; mix-blend-mode: multiply; }

/* Anfahrt */
.cards { display: grid; gap: 1rem; margin-block: 2rem; }
@media (min-width: 800px) { .cards { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.card h2 { font-size: 1.5rem; }
.card p { margin: 0; color: var(--muted); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); min-height: 380px; display: grid; }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }
.map__placeholder { display: grid; place-items: center; text-align: center; padding: 2rem; gap: .5rem; }
.map__placeholder img { width: 180px; mix-blend-mode: multiply; opacity: .85; }
.map__placeholder p { color: var(--muted); font-size: .9rem; max-width: 30rem; margin: 0; }
.map__placeholder .actions { justify-content: center; margin-top: 1rem; }

/* Kontakt & Impressum */
.contact-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.2fr 1fr; } }
.contact { font-style: normal; font-size: 1.15rem; margin-bottom: 1.5rem; }
.contact-list, .facts { margin: 0; display: grid; gap: 1rem; }
.contact-list dt, .facts dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-list dd { margin: 0; font-family: var(--serif); font-size: 1.6rem; }
.contact-list a { color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--accent-ink); }
.facts { margin-top: 1.5rem; }
.facts > div { padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.facts dd { margin: .2rem 0 0; font-size: 1.05rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--paper); font-size: .92rem; color: var(--muted); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; padding-block: 2.5rem; }
.site-footer__name { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); margin-bottom: .4rem; }
.site-footer address { font-style: normal; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-content: start; }

@media (prefers-reduced-motion: reduce) {
    .brand__name { animation: none; }
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Footer auch auf kurzen Seiten unten halten */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
