:root {
    --green: #1f5b35;
    --green-dark: #153e27;
    --green-soft: #e9f2eb;
    --gold: #c9a35b;
    --ink: #1c2420;
    --muted: #69746f;
    --line: #dfe6e1;
    --paper: #ffffff;
    --wash: #f5f7f4;
    --danger: #b64632;
    --ok: #2f8a4f;
    --warn: #c58a18;
    --shadow: 0 18px 50px rgba(24, 40, 31, 0.12);
    --radius: 8px;
    --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-sans); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.service-notice {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px 16px;
    padding: 8px clamp(20px, 5vw, 72px);
    background: var(--green-dark);
    color: white;
    font-size: 13px;
    text-align: center;
    border-top: 3px solid var(--gold);
}
.service-notice-label {
    color: #e7c783;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.service-notice-copy { color: rgba(255, 255, 255, .9); }
.service-notice-copy::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 14px;
    margin-right: 16px;
    vertical-align: -2px;
    background: rgba(255, 255, 255, .3);
}
.service-notice a { color: white; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 104px;
    padding: 6px clamp(20px, 5vw, 72px);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(31, 91, 53, 0.1);
    backdrop-filter: blur(16px);
}
.brand img { width: 92px; height: 92px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); font-size: 14px; }
.main-nav a { padding: 10px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--green); border-color: var(--green); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); }
.nav-toggle span { display: block; height: 2px; background: var(--green); margin: 5px 9px; }

.hero {
    min-height: min(680px, calc(100vh - 92px));
    display: grid;
    align-items: center;
    padding: clamp(80px, 12vw, 150px) clamp(20px, 7vw, 110px);
    background: linear-gradient(90deg, rgba(0,0,0,.50), rgba(0,0,0,.12)), url("../images/source/aussen-bei-nacht.jpg") center / cover no-repeat;
    color: white;
}
.hero-content { max-width: 820px; }
.hero h1 { font-family: var(--font-serif); font-size: clamp(48px, 6.4vw, 86px); line-height: .94; font-weight: 600; margin: 0 0 24px; letter-spacing: 0; }
.hero h1 span { display: block; }
.hero h1 span + span { font-size: .72em; white-space: nowrap; }
.hero p { max-width: 680px; font-size: clamp(18px, 2vw, 24px); margin: 0 0 34px; color: rgba(255,255,255,.92); }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: 14px; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
}
.button.primary { background: var(--green); color: white; }
.button.secondary { border-color: rgba(31,91,53,.35); color: var(--green-dark); background: rgba(255,255,255,.78); }
.button:disabled { opacity: .55; cursor: not-allowed; }
.button.primary:disabled { background: #7f9888; }
.hero .button.secondary { color: white; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); }
.ghost { border: 1px solid var(--line); background: var(--paper); color: var(--green); border-radius: var(--radius); padding: 9px 12px; cursor: pointer; }
.ghost.danger { color: var(--danger); border-color: rgba(182,70,50,.28); }

.section { padding: clamp(64px, 9vw, 120px) clamp(20px, 6vw, 88px); }
.section.narrow { max-width: 900px; margin: 0 auto; }
.section-label { margin: 0 0 10px; color: var(--green); text-transform: uppercase; letter-spacing: 0; font-size: 12px; font-weight: 800; }
.section h2, .page-hero h1 { font-family: var(--font-serif); font-weight: 500; line-height: 1.08; font-size: clamp(34px, 5vw, 64px); margin: 0 0 22px; }
.intro { text-align: center; font-size: 19px; }
.intro p { text-align: left; }
.intro a, .request a { color: var(--green); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.section-head { max-width: 880px; margin: 0 auto 38px; text-align: center; }
.section-cta { margin: 28px 0 0; text-align: center; }

.area-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.area-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: white; box-shadow: 0 12px 28px rgba(24,40,31,.06); }
.area-card a { display: block; height: 100%; }
.area-card div { padding: 18px; }
.area-card h3, .area-card h2 { margin: 0 0 8px; font-family: var(--font-serif); font-size: 26px; line-height: 1.12; }
.area-card p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.area-card span { color: var(--green-dark); font-weight: 700; font-size: 13px; }
.area-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.highlight-band {
    margin: 0 clamp(20px, 6vw, 88px);
    padding: 28px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.highlight-band h3 { margin: 0 0 8px; font-size: 17px; }
.highlight-band p, .highlight-band .richtext { margin: 0; color: rgba(255,255,255,.82); font-size: 14px; }
.rental-note {
    margin: 0 clamp(20px, 6vw, 88px) clamp(64px, 9vw, 120px);
    padding: 28px clamp(24px, 4vw, 48px);
    display: grid;
    grid-template-columns: minmax(280px, .8fr) minmax(320px, 1.2fr);
    gap: 24px 48px;
    align-items: center;
    border-top: 1px solid rgba(31,91,53,.22);
    border-bottom: 1px solid rgba(31,91,53,.22);
    background: var(--green-soft);
}
.rental-note h2 { margin: 0; font-family: var(--font-serif); font-size: clamp(28px, 3.5vw, 44px); line-height: 1.08; }
.rental-note p:last-child { margin: 0; color: #34423c; font-size: 17px; }
.richtext > :first-child { margin-top: 0; }
.richtext > :last-child { margin-bottom: 0; }
.richtext h2, .richtext h3, .richtext h4 { margin: 1.1em 0 .45em; line-height: 1.18; }
.richtext ul, .richtext ol { padding-left: 1.35em; }
.richtext blockquote { margin: 1em 0; padding: .2em 0 .2em 1em; border-left: 3px solid var(--gold); color: var(--green-dark); }
.richtext table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.richtext th, .richtext td { border: 1px solid var(--line); padding: 8px; }
.richtext a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

.split-section, .request-grid, .gallery-grid, .before-after, .overnight {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 72px);
    align-items: center;
}
.split-copy p, .history p, .rich-copy { font-size: 18px; color: #34423c; }
.large-slot, .video-frame video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.video-frame video { background: #000; }
.renovation { background: var(--wash); }
.event-list { max-width: 980px; margin: 0 auto; display: grid; gap: 14px; }
.event-row { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.event-link-row:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(31,91,53,.35); }
.event-row time { color: var(--green); font-weight: 800; }
.event-row h3, .event-row h2 { margin: 0 0 6px; font-size: 22px; }
.event-row p { margin: 0; color: var(--muted); }
.event-row span { display: inline-flex; margin-top: 10px; color: var(--green); font-weight: 800; }

.availability { background: linear-gradient(180deg, var(--wash), #fff); }
.availability-checker {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
    gap: 26px;
    align-items: stretch;
}
.checker-calendar, .checker-side {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
    padding: 22px;
}
.checker-calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.checker-calendar-head strong { font-family: var(--font-serif); font-size: 26px; text-transform: capitalize; }
.visually-hidden-date { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.calendar-weekdays { margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 900; text-align: center; }
.calendar-day {
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    font-weight: 800;
    cursor: pointer;
}
.calendar-day:hover, .calendar-day.selected { background: var(--green); border-color: var(--green); color: white; }
.calendar-day.muted-day { color: #a0aaa5; background: #f8faf8; }
.checker-side { display: grid; gap: 18px; }
.checker-label { margin: 0 0 10px; font-weight: 900; color: var(--green-dark); }
.checker-area-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.checker-area-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.checker-area-card input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.checker-area-card strong, .checker-area-card span { display: block; }
.checker-area-card span { color: var(--muted); font-weight: 600; font-size: 13px; }
.checker-area-card.active { border-color: var(--green); background: var(--green-soft); transform: translateY(-1px); }
.checker-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.availability-result {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px 12px;
    align-items: center;
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #fff;
    animation: resultIn .28s ease;
}
.availability-result strong { font-size: 20px; }
.availability-result small { grid-column: 2; color: var(--muted); }
.availability-result.green { border-color: rgba(47,138,79,.38); background: #edf8f0; }
.availability-result.yellow { border-color: rgba(197,138,24,.4); background: #fff7e5; }
.availability-result.red { border-color: rgba(182,70,50,.35); background: #fff0ec; }
.signal { width: 18px; height: 18px; border-radius: 999px; background: #9aa5a0; box-shadow: 0 0 0 5px rgba(154,165,160,.15); }
.signal.green { background: var(--ok); box-shadow: 0 0 0 5px rgba(47,138,79,.15); }
.signal.yellow { background: var(--warn); box-shadow: 0 0 0 5px rgba(197,138,24,.16); }
.signal.red { background: var(--danger); box-shadow: 0 0 0 5px rgba(182,70,50,.16); }
.available-area-list { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.available-area-list span { padding: 5px 9px; border-radius: 999px; background: white; color: var(--green); font-size: 12px; font-weight: 900; }
@keyframes resultIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.checker { max-width: 860px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; }
label { display: grid; gap: 6px; font-weight: 700; color: #2c3933; font-size: 14px; }
input, select, textarea {
    width: 100%;
    border: 1px solid #cfd8d2;
    border-radius: var(--radius);
    padding: 12px 13px;
    background: white;
    color: var(--ink);
}
textarea { resize: vertical; }
output { grid-column: 1 / -1; padding: 13px 15px; border-radius: var(--radius); background: var(--green-soft); }
output.blocked { background: #f8eae6; color: var(--danger); }

.request { background: linear-gradient(180deg, #fff, var(--wash)); }
.request-form { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.checkbox { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; }
.checkbox input { width: auto; margin-top: 4px; }
.field-error { color: var(--danger); font-weight: 700; }
.alert { padding: 13px 15px; border-radius: var(--radius); margin: 0 0 18px; }
.alert.success { background: var(--green-soft); color: var(--green-dark); }
.alert.error { background: #f8eae6; color: var(--danger); }
.overnight { border-top: 1px solid var(--line); }
.overnight img { max-width: 280px; justify-self: end; }

.page-hero { padding: 90px clamp(20px, 6vw, 88px); background: var(--green-dark); color: white; }
.page-hero.compact { padding-block: 70px; }
.page-hero > div { max-width: 900px; }
.page-hero p { max-width: 740px; color: rgba(255,255,255,.82); font-size: 20px; }
.rich-copy { margin-bottom: 34px; }
.page-grid { margin-top: 34px; }
.legal-copy { font-size: 15px; color: #27332e; }

.media-placeholder {
    min-height: 230px;
    padding: 22px;
    display: grid;
    align-content: center;
    gap: 8px;
    border: 1px dashed rgba(31,91,53,.48);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(31,91,53,.12), rgba(201,163,91,.08)),
        repeating-linear-gradient(45deg, rgba(31,91,53,.06) 0 8px, transparent 8px 16px);
    color: var(--green-dark);
}
.media-placeholder span { display: inline-flex; width: fit-content; padding: 4px 8px; border-radius: 999px; background: white; color: var(--green); font-size: 12px; font-weight: 800; }
.media-placeholder strong { font-size: 20px; }
.media-placeholder p, .media-placeholder small, .media-placeholder em { margin: 0; color: #4e6258; }

.site-footer { padding: 54px clamp(20px, 6vw, 88px); background: #101b15; color: white; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.footer-logo { width: 220px; aspect-ratio: 1; object-fit: contain; border-radius: 50%; }
.site-footer h2 { font-size: 16px; margin-top: 0; }
.site-footer p, .site-footer a { color: rgba(255,255,255,.78); }

.event-detail-hero {
    min-height: 520px;
    display: grid;
    align-items: end;
    padding: clamp(70px, 12vw, 140px) clamp(20px, 7vw, 110px);
    color: white;
    background: linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.18)), url("../images/source/aussen-bei-nacht.jpg") center / cover no-repeat;
}
.event-detail-hero h1 { max-width: 920px; font-family: var(--font-serif); font-size: clamp(44px, 7vw, 92px); line-height: 1; margin: 14px 0 18px; }
.event-detail-hero p { font-size: clamp(18px, 2vw, 24px); margin: 0 0 28px; color: rgba(255,255,255,.88); }
.back-link { display: inline-flex; color: rgba(255,255,255,.82); font-weight: 800; }
.event-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(26px, 5vw, 70px); align-items: start; }
.event-detail-copy { font-size: 19px; }
.event-detail-facts { position: sticky; top: 110px; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); background: white; }
.event-detail-facts h2 { font-family: var(--font-sans); font-size: 15px; margin: 0 0 4px; color: var(--green); text-transform: uppercase; }
.event-detail-facts p { margin: 0 0 20px; color: var(--muted); }
.event-media-section { background: var(--wash); }

.gallery-hero { background: linear-gradient(180deg, #fff, var(--wash)); }
.gallery-slider {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #101b15;
}
.gallery-slider-track { position: relative; min-height: clamp(320px, 54vw, 620px); }
.gallery-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity .45s ease, transform .6s ease;
}
.gallery-slide.active { opacity: 1; transform: none; z-index: 1; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.6)); }
.gallery-slide figcaption {
    position: absolute;
    left: clamp(18px, 4vw, 46px);
    bottom: clamp(18px, 4vw, 42px);
    z-index: 2;
    color: white;
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 52px);
    line-height: 1;
}
.gallery-slider-controls {
    position: absolute;
    left: clamp(14px, 3vw, 34px);
    right: clamp(14px, 3vw, 34px);
    bottom: 18px;
    z-index: 3;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}
.gallery-slider-controls .ghost { background: rgba(255,255,255,.92); }
.gallery-dots { display: flex; gap: 6px; }
.gallery-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.5); cursor: pointer; }
.gallery-dots button.active { width: 24px; background: white; }
.album-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.album-card {
    display: grid;
    grid-template-rows: auto 1fr;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
    box-shadow: 0 12px 28px rgba(24,40,31,.06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.album-card:hover { transform: translateY(-2px); border-color: rgba(31,91,53,.35); box-shadow: var(--shadow); }
.album-cover img, .album-cover .media-placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; box-shadow: none; }
.album-card > div:last-child { padding: 18px; display: grid; gap: 8px; }
.album-card h2 { margin: 0; font-size: 26px; line-height: 1.1; font-family: var(--font-serif); }
.album-card p { margin: 0; color: var(--muted); }
.album-card span { color: var(--green); font-weight: 900; }
.gallery-album-hero .hero-richtext { max-width: 760px; color: rgba(255,255,255,.86); }
.gallery-album-hero .hero-richtext p { margin: 0 0 12px; font-size: clamp(17px, 2vw, 22px); }
.gallery-masonry { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: stretch; }
.gallery-media-card {
    display: grid;
    grid-template-rows: auto 1fr;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
    box-shadow: 0 12px 28px rgba(24,40,31,.06);
}
.gallery-media-card button {
    position: relative;
    width: 100%;
    padding: 0;
    border: 0;
    background: #101b15;
    cursor: zoom-in;
    aspect-ratio: 16 / 10;
}
.gallery-media-card img, .gallery-media-card video { width: 100%; height: 100%; object-fit: cover; }
.gallery-media-card > div { padding: 15px; }
.gallery-media-card h2 { margin: 0 0 8px; font-size: 18px; }
.gallery-media-card .richtext { color: var(--muted); font-size: 14px; }
.play-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 900;
}
.gallery-lightbox {
    width: min(980px, calc(100vw - 28px));
    border: 0;
    border-radius: var(--radius);
    padding: 0;
    background: white;
    box-shadow: var(--shadow);
}
.gallery-lightbox::backdrop { background: rgba(8,15,11,.78); }
.gallery-lightbox [data-lightbox-stage] { background: #050806; display: grid; place-items: center; }
.gallery-lightbox img, .gallery-lightbox video { max-width: 100%; max-height: 78vh; }
.lightbox-copy { padding: 18px 22px; }
.lightbox-copy h2 { margin: 0 0 6px; }
.lightbox-copy p { margin: 0; color: var(--muted); }
.lightbox-close {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 4;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.9);
    color: var(--green-dark);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.directions-section { background: linear-gradient(180deg, #fff, var(--wash)); }
.directions-grid { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 70px); align-items: stretch; }
.directions-card, .map-consent { border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); overflow: hidden; }
.directions-card { padding: clamp(24px, 4vw, 42px); }
.directions-card h2 { font-family: var(--font-serif); font-size: clamp(32px, 4vw, 52px); margin: 0 0 12px; }
.directions-card address { font-style: normal; font-size: 22px; color: var(--green-dark); font-weight: 800; margin: 0 0 22px; }
.map-consent { min-height: 430px; display: grid; }
.map-placeholder {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    padding: clamp(24px, 4vw, 44px);
    text-align: center;
    background:
        linear-gradient(135deg, rgba(31,91,53,.13), rgba(201,163,91,.08)),
        repeating-linear-gradient(45deg, rgba(31,91,53,.06) 0 10px, transparent 10px 20px);
}
.map-placeholder h2 { margin: 0; font-family: var(--font-serif); font-size: clamp(30px, 4vw, 48px); }
.map-placeholder p { max-width: 560px; margin: 0; color: #42524a; }
.map-consent iframe { width: 100%; min-height: 430px; border: 0; }
.area-photo-grid { margin: 28px 0; }
.event-open-note { cursor: default; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

.auth-page { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, var(--green-dark), #f4f7f1); padding: 20px; }
.auth-card { width: min(420px, 100%); padding: 32px; background: white; border-radius: var(--radius); box-shadow: var(--shadow); }
.auth-card img { width: 210px; aspect-ratio: 1; object-fit: contain; margin: 0 auto 20px; }
.auth-card h1 { text-align: center; margin: 0 0 22px; }
.stack-form { display: grid; gap: 16px; }
.muted { color: var(--muted); }

.admin { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; background: #f3f6f4; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; padding: 20px; background: linear-gradient(180deg, var(--green-dark), var(--green)); color: white; display: flex; flex-direction: column; gap: 22px; }
.admin-brand img { width: 164px; aspect-ratio: 1; object-fit: contain; margin: 0 auto; border-radius: 50%; }
.admin-sidebar nav { display: grid; gap: 6px; }
.admin-sidebar a, .logout { color: white; padding: 11px 13px; border-radius: var(--radius); }
.admin-sidebar a.active, .admin-sidebar a:hover { background: rgba(255,255,255,.14); }
.logout { margin-top: auto; width: 100%; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.08); }
.admin-main { min-width: 0; padding: 26px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.admin-kicker { margin: 0 0 2px; color: var(--green); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.admin-topbar h1 { margin: 0; font-size: 32px; }
.admin-user { text-align: right; }
.admin-user span { display: block; color: var(--muted); font-size: 13px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 20px; }
.admin-stats article, .admin-panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 28px rgba(24,40,31,.06); }
.admin-stats article { padding: 20px; display: grid; gap: 4px; }
.admin-stats span { color: var(--muted); }
.admin-stats strong { font-size: 36px; line-height: 1; }
.admin-panel { padding: 20px; overflow: hidden; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .75fr); gap: 20px; margin-bottom: 20px; }
.admin-panel.wide { grid-column: span 1; }
.panel-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 14px; }
.panel-head h2, .admin-panel h2 { margin: 0 0 14px; font-size: 20px; }
.panel-head h2 { margin: 0; }
.panel-head a { color: var(--green); font-weight: 800; font-size: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0; }
.status { display: inline-flex; border-radius: 999px; padding: 4px 9px; background: var(--green-soft); color: var(--green-dark); font-size: 12px; font-weight: 800; }
.status.warn { background: #fff1d6; color: var(--warn); }
.status.ok { background: var(--green-soft); color: var(--ok); }
.availability-table { display: grid; gap: 9px; }
.availability-row { display: grid; grid-template-columns: 150px repeat(9, minmax(28px, 1fr)); gap: 6px; align-items: center; }
.availability-row span { display: grid; place-items: center; min-height: 28px; border-radius: 6px; font-size: 12px; font-weight: 800; }
.availability-row .ok { background: var(--green-soft); color: var(--ok); }
.availability-row .blocked { background: #fde8e2; color: var(--danger); }
.availability-table.full .availability-row { grid-template-columns: 160px repeat(45, 54px); }
.availability-table.full span { min-height: 44px; gap: 0; }
.availability-table.full span b { font-size: 13px; }
.calendar-scroll { overflow: auto; padding-bottom: 8px; }
.mini-row, .missing-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.missing-row { grid-template-columns: 1fr auto; }
.mini-row em { font-style: normal; color: var(--green); font-weight: 800; }
.admin-actions, .quick-actions { margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.admin-form { display: grid; gap: 16px; }
.grid-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: end; }
.grid-form .full, .form-grid .full { grid-column: 1 / -1; }
.checkbox-group { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-wrap: wrap; gap: 14px; }
.checkbox-group label { display: flex; align-items: center; gap: 8px; }
.checkbox-group input { width: auto; }
.media-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.media-admin-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: grid; gap: 8px; }
.media-admin-card img, .file-tile { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 6px; background: var(--wash); }
.file-tile { display: grid; place-items: center; color: var(--green); font-weight: 900; }
.media-admin-card h3 { margin: 0; font-size: 16px; }
.media-admin-card p, .media-admin-card small { margin: 0; color: var(--muted); }
.area-admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.area-admin-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
    display: grid;
    grid-template-rows: auto 1fr;
}
.area-admin-card > div { padding: 16px; display: grid; gap: 8px; }
.area-admin-card h3 { margin: 0; font-size: 22px; font-family: var(--font-serif); }
.area-admin-card p { margin: 0; }
.area-admin-card small { color: var(--green-dark); font-weight: 800; }
.area-admin-cover { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; box-shadow: none; }
.gallery-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-top: 16px; }
.gallery-admin-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: grid; gap: 8px; background: white; }
.gallery-admin-card.is-cover { border-color: rgba(31,91,53,.45); box-shadow: inset 0 0 0 2px rgba(31,91,53,.12); }
.gallery-admin-card img, .gallery-admin-card video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--wash); }
.gallery-admin-card h3 { margin: 0; font-size: 16px; }
.gallery-admin-card p, .gallery-admin-card small { margin: 0; color: var(--muted); }
.detail-list { display: grid; grid-template-columns: 130px 1fr; gap: 10px 14px; }
.detail-list dt { color: var(--muted); font-weight: 800; }
.detail-list dd { margin: 0; }
.field-checkbox { align-self: end; min-height: 46px; align-items: center; }
.table-tools { display: grid; grid-template-columns: 1fr 210px 210px; gap: 14px; margin-bottom: 18px; align-items: end; }
.action-row { display: flex; flex-wrap: wrap; gap: 7px; }
.action-row form { margin: 0; }
.action-row .ghost { min-height: 34px; padding: 7px 9px; font-size: 12px; }
.status-anfrage, .status-draft { background: #e8f0ff; color: #2e5fbd; }
.status-angebot { background: #fff1d6; color: var(--warn); }
.status-reserviert { background: #efe9ff; color: #6c43b6; }
.status-bestätigt, .status-published { background: var(--green-soft); color: var(--ok); }
.status-abgesagt { background: #fde8e2; color: var(--danger); }
.status-abgeschlossen { background: #eceff1; color: #5e6863; }
.event-media-picker { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--wash); }
.media-select-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.media-select-card {
    position: relative;
    display: grid;
    gap: 7px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    cursor: pointer;
}
.media-select-card input { position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; }
.media-select-card img, .media-select-card .file-tile { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.media-select-card strong { font-size: 14px; line-height: 1.2; }
.media-select-card small { color: var(--muted); }
.richtext-source-original { display: none; }
.richtext-editor-wrap { border: 1px solid #cfd8d2; border-radius: var(--radius); overflow: hidden; background: white; }
.richtext-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    border-bottom: 1px solid var(--line);
    background: #f8faf8;
}
.richtext-toolbar button {
    min-width: 34px;
    min-height: 32px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: white;
    color: var(--green-dark);
    font-weight: 900;
    cursor: pointer;
}
.richtext-toolbar button:hover { border-color: var(--green); color: var(--green); }
.richtext-editor, .richtext-source {
    min-height: 170px;
    width: 100%;
    padding: 13px;
    outline: none;
    border: 0;
    background: white;
    color: var(--ink);
    font: inherit;
    overflow: auto;
}
.richtext-editor table { width: 100%; border-collapse: collapse; }
.richtext-editor th, .richtext-editor td { border: 1px solid var(--line); padding: 6px; }
code { background: var(--wash); padding: 2px 5px; border-radius: 4px; }

@media (max-width: 1040px) {
    .area-grid, .highlight-band, .admin-stats, .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split-section, .request-grid, .gallery-grid, .before-after, .overnight, .admin-grid, .availability-checker, .event-detail-grid, .directions-grid { grid-template-columns: 1fr; }
    .checker, .checker-fields, .checker-area-grid { grid-template-columns: 1fr; }
    .admin { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; }
    .admin-sidebar nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .grid-form, .form-grid.three, .table-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .service-notice { align-items: center; flex-direction: column; gap: 1px; padding-block: 8px; }
    .service-notice-label { display: none; }
    .service-notice-copy::before { display: none; }
    .site-header { min-height: 80px; padding: 4px 18px; }
    .brand img { width: 70px; height: 70px; }
    .nav-toggle { display: block; }
    .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 14px 20px 20px; background: white; border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; }
    .site-header.open .main-nav { display: flex; }
    .hero { min-height: 680px; align-items: end; }
    .hero h1 { font-size: clamp(46px, 13vw, 62px); }
    .hero h1 span + span { font-size: .82em; white-space: normal; }
    .area-grid, .highlight-band, .footer-grid, .form-grid, .form-grid.two, .grid-form, .admin-stats, .table-tools, .album-grid, .rental-note { grid-template-columns: 1fr; }
    .event-row { grid-template-columns: 1fr; }
    .gallery-slider-track { min-height: 360px; }
    .gallery-slider-controls { justify-content: center; }
    .gallery-slide figcaption { bottom: 78px; max-width: calc(100% - 36px); font-size: 30px; }
    .gallery-masonry { grid-template-columns: 1fr; }
    .calendar-day { min-height: 42px; }
    .checker-calendar, .checker-side { padding: 16px; }
    .admin-main { padding: 18px; }
    .admin-sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .availability-row { grid-template-columns: 120px repeat(9, 26px); }
    .admin-topbar { align-items: flex-start; flex-direction: column; }
    .admin-user { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}
