:root {
  color-scheme: light;
  --bg: oklch(0.96 0.008 250);
  --surface: oklch(1 0 0);
  --surface-alt: oklch(0.92 0.018 242);
  --ink: oklch(0.18 0.035 250);
  --muted: oklch(0.42 0.035 250);
  --line: oklch(0.83 0.019 248);
  --brand: oklch(0.47 0.14 242);
  --brand-strong: oklch(0.38 0.16 245);
  --accent: oklch(0.63 0.16 35);
  --danger: oklch(0.49 0.17 25);
  --radius: 12px;
  --shadow: 0 8px 18px oklch(0.24 0.05 250 / 0.12);
  /* Kraeftige Easing-Kurven (Emil Kowalski): die CSS-Defaults sind zu schwach. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Event-Galerie: Freigabe und oeffentliche Ansicht ---------- */
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 12px;
  resize: vertical;
}

.field-stack { display: grid; gap: 6px; }
.field-stack > span { color: var(--muted); font-size: 0.85rem; font-weight: 800; }
.event-gallery-admin h1 { max-width: none; font-size: clamp(2.2rem, 5vw, 4rem); }
.gallery-link-panel, .gallery-review-toolbar { gap: 18px; }
.gallery-feature-toggles { display: flex; flex-wrap: wrap; gap: 12px 24px; border-block: 1px solid var(--line); padding: 16px 0; }
.gallery-design-settings { display: grid; gap: 18px; border-top: 1px solid var(--line); padding-top: 20px; }
.gallery-design-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.gallery-design-field { display: grid; align-content: start; gap: 12px; min-width: 0; border-top: 3px solid var(--line); padding-top: 14px; }
.gallery-design-field > div { display: grid; gap: 4px; }
.gallery-design-field > div > span { color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
.gallery-design-field > img { display: block; width: 100%; height: auto; max-height: 260px; object-fit: contain; object-position: left center; border-radius: 6px; }
.gallery-design-field input[type="file"] { width: 100%; }
.admin-photo-upload { gap: 18px; }
.admin-photo-upload [hidden] { display: none !important; }
.admin-photo-dropzone { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 132px; border: 2px dashed var(--line); border-radius: 8px; background: var(--surface-alt); padding: 22px; cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease; }
.admin-photo-dropzone:hover, .admin-photo-dropzone.is-dragging { border-color: var(--brand); background: oklch(0.965 0.025 82); }
.admin-photo-dropzone:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 3px; }
.admin-photo-dropzone > svg { color: var(--brand-strong); }
.admin-photo-dropzone > div { display: grid; gap: 3px; min-width: 0; }
.admin-photo-dropzone strong { font-size: 1rem; }
.admin-photo-dropzone span { color: var(--muted); font-size: 0.84rem; }
.admin-upload-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.admin-upload-overall { display: grid; gap: 9px; border-top: 1px solid var(--line); padding-top: 16px; }
.admin-upload-overall > div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.admin-upload-overall span { color: var(--muted); font-size: 0.8rem; }
.admin-upload-overall progress, .admin-upload-file progress { display: block; width: 100%; height: 8px; accent-color: var(--brand-strong); }
.admin-upload-file-list { display: grid; max-height: 430px; overflow: auto; margin: 0; border-block: 1px solid var(--line); padding: 0; list-style: none; }
.admin-upload-file { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 0.65fr) auto; align-items: center; gap: 14px; min-height: 66px; border-bottom: 1px solid var(--line); padding: 10px 2px; }
.admin-upload-file:last-child { border-bottom: 0; }
.admin-upload-file-name, .admin-upload-file-state { display: grid; gap: 4px; min-width: 0; }
.admin-upload-file-name { grid-column: 1; grid-row: 1; }
.admin-upload-file-state { grid-column: 2; grid-row: 1; }
.admin-upload-file-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-upload-file-name small, .admin-upload-file-state span { color: var(--muted); font-size: 0.78rem; }
.admin-upload-file.is-success .admin-upload-file-state span { color: oklch(0.48 0.12 150); }
.admin-upload-file.is-duplicate .admin-upload-file-state span { color: var(--brand-strong); }
.admin-upload-file.is-failed .admin-upload-file-state span { color: var(--danger); }
.admin-upload-file-error { grid-column: 1 / -1; grid-row: 2; margin: -5px 0 2px; color: var(--danger); font-size: 0.78rem; overflow-wrap: anywhere; }
.admin-upload-file-retry { grid-column: 3; grid-row: 1; min-height: 38px; }
.admin-upload-live { min-height: 1.2em; margin: 0; color: var(--muted); font-size: 0.84rem; }
.gallery-link-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.text-action { display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--brand-strong); padding: 0; font-weight: 800; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; }
.gallery-filter-row, .bulk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); padding: 0 13px; font-weight: 800; text-decoration: none; }
.filter-chip small { color: var(--muted); }
.filter-chip.is-active { border-color: var(--brand); background: var(--surface-alt); }
.filter-chip.status-approved { border-color: oklch(0.78 0.08 150); background: oklch(0.96 0.025 150); }
.filter-chip.status-rejected { border-color: oklch(0.8 0.08 25); background: oklch(0.97 0.025 25); }
.bulk-actions { border-top: 1px solid var(--line); padding-top: 14px; }
.gallery-review-actions { margin-top: 14px; padding-block: 14px; }
.gallery-page-size-form { display: flex; align-items: end; gap: 8px; }
.gallery-page-size-form label { display: grid; gap: 5px; color: var(--muted); font-size: 0.78rem; font-weight: 800; }
.gallery-page-size-form select { min-width: 92px; }
.selection-count { min-width: 88px; color: var(--muted); font-size: 0.8rem; }
.secondary-action.is-danger { color: var(--danger); }
.approval-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.approval-photo-card { position: relative; display: grid; overflow: hidden; border: 1px solid var(--line); border-top: 4px solid var(--line); border-radius: 8px; background: var(--surface); }
.approval-photo-card.status-approved { border-color: oklch(0.72 0.1 150); background: oklch(0.97 0.022 150); }
.approval-photo-card.status-rejected { border-color: oklch(0.74 0.11 25); background: oklch(0.97 0.025 25); }
.approval-photo-card.status-pending { border-top-color: oklch(0.7 0.12 80); }
.approval-photo-link { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-alt); }
.approval-photo-link img { width: 100%; height: 100%; object-fit: cover; }
.approval-select { position: absolute; z-index: 2; top: 10px; left: 10px; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 8px; background: rgb(255 255 255 / 0.9); box-shadow: 0 3px 10px rgb(0 0 0 / 0.15); }
.approval-select input { width: 20px; height: 20px; }
.approval-photo-meta { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; }
.approval-status { font-size: 0.82rem; font-weight: 850; }
.status-approved .approval-status { color: oklch(0.4 0.12 150); }
.status-rejected .approval-status { color: oklch(0.46 0.16 25); }
.approval-photo-meta small { color: var(--muted); }
.approval-photo-actions { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.approval-photo-actions button { min-height: 40px; border: 0; border-right: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 0.8rem; font-weight: 800; cursor: pointer; }
.approval-photo-actions button:last-child { border-right: 0; }
.approval-photo-actions button:not(:disabled):hover { background: var(--surface-alt); }
.approval-photo-actions .is-approve.is-current { background: oklch(0.91 0.055 150); color: oklch(0.34 0.12 150); cursor: default; }
.approval-photo-actions .is-reject.is-current { background: oklch(0.92 0.055 25); color: oklch(0.4 0.16 25); cursor: default; }
.photo-delete-button { min-height: 38px; border: 0; border-top: 1px solid oklch(0.84 0.06 25); background: oklch(0.97 0.025 25); color: var(--danger); font-size: 0.76rem; font-weight: 800; cursor: pointer; }
.photo-delete-button:hover { background: oklch(0.93 0.05 25); }
.pagination-container { container-type: inline-size; min-width: 0; width: 100%; }
.numbered-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; }
.pagination-pages { display: flex; align-items: center; gap: 5px; }
.pagination-direction, .pagination-page, .pagination-ellipsis { display: inline-flex; flex-shrink: 0; min-width: 44px; height: 44px; align-items: center; justify-content: center; }
.pagination-direction { gap: 5px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); padding: 0 12px; font-size: 0.8rem; font-weight: 800; text-decoration: none; }
.pagination-direction[aria-disabled="true"] { opacity: 0.42; cursor: default; }
.pagination-page { border: 1px solid var(--line); border-radius: 6px; color: var(--ink); font-size: 0.82rem; font-weight: 800; text-decoration: none; }
.pagination-page:hover, .pagination-direction:hover { border-color: var(--brand); background: var(--surface-alt); }
.pagination-page.is-current { border-color: var(--brand); background: var(--brand); color: white; }
.pagination-ellipsis { color: var(--muted); }
@container (max-width: 720px) {
  .numbered-pagination, .pagination-pages { gap: 4px; }
  .pagination-desktop-only { display: none; }
  .pagination-direction { padding-inline: 0; }
  .pagination-direction > span { display: none; }
}
@container (max-width: 349px) {
  .pagination-wide-neighbor { display: none; }
}
.impressions-filter-panel { gap: 18px; }
.impressions-filter-form { display: grid; grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(140px, 0.8fr)) auto; align-items: end; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.impressions-filter-form label { display: grid; gap: 6px; color: var(--muted); font-size: 0.78rem; font-weight: 800; }
.impression-photo-meta { display: grid; gap: 3px; min-width: 0; padding: 11px 12px; }
.impression-photo-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.88rem; }
.impression-photo-meta > span:not(.approval-status) { overflow: hidden; color: var(--muted); font-size: 0.73rem; text-overflow: ellipsis; white-space: nowrap; }
.impression-photo-meta .approval-status { margin-top: 5px; }
.impression-approval-button { min-height: 50px; border: 0; border-top: 1px solid oklch(0.78 0.075 230); background: oklch(0.94 0.035 230); color: oklch(0.34 0.1 235); padding: 8px 12px; font-size: 0.78rem; font-weight: 850; cursor: pointer; }
.impression-approval-button:hover { background: oklch(0.9 0.05 230); }
.impression-approval-button.is-approved { border-top-color: oklch(0.74 0.09 25); background: oklch(0.97 0.025 25); color: var(--danger); }
.manage-copy-form { display: grid; gap: 14px; max-width: 760px; margin-bottom: 24px; }
.event-community-admin h1, .reviews-admin h1 { max-width: none; }
.community-status-band { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)) auto; align-items: center; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
.community-status-band > div, .community-status-band > a { min-height: 72px; display: grid; align-content: center; gap: 3px; background: var(--surface); padding: 14px 18px; }
.community-status-band span { color: var(--muted); font-size: 0.76rem; font-weight: 800; }
.community-status-band a { color: var(--brand-strong); font-weight: 850; text-decoration: none; }
.community-admin-section { scroll-margin-top: 20px; }
.community-admin-list, .review-admin-list { display: grid; gap: 12px; }
.community-admin-item { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: stretch; overflow: hidden; border: 1px solid var(--line); border-left: 4px solid oklch(0.59 0.14 150); border-radius: 8px; background: var(--surface); }
.community-admin-item.status-hidden, .review-admin-item.status-hidden { border-left-color: var(--danger); opacity: 0.82; }
.community-admin-item .community-photo-link { display: flex; flex-direction: column; min-width: 0; border-radius: 0; height: 100%; background: var(--surface-alt); text-decoration: none; }
.community-photo-link img { width: 100%; height: 92px; object-fit: cover; }
.community-photo-link > span { display: grid; place-items: center; min-height: 44px; padding: 6px; color: var(--brand-strong); font-size: 0.76rem; font-weight: 800; text-align: center; }
.community-admin-copy { min-width: 0; padding: 16px; }
.community-admin-copy > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.community-admin-copy time, .review-admin-item time { color: var(--muted); font-size: 0.74rem; }
.community-admin-copy p { margin: 10px 0; white-space: pre-line; }
.community-admin-copy > span { color: var(--muted); font-size: 0.74rem; font-weight: 800; }
.community-admin-item > form { display: flex; align-items: center; gap: 8px; border-left: 1px solid var(--line); padding: 14px; }
.community-admin-item-text { grid-template-columns: minmax(0, 1fr) auto; }
.review-filter-row { margin-top: 24px; }
.review-rating-filter { display: flex; justify-content: flex-end; }
.review-rating-filter label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.8rem; font-weight: 850; }
.review-admin-item { display: grid; gap: 16px; border: 1px solid var(--line); border-left: 4px solid oklch(0.7 0.12 80); border-radius: 8px; background: var(--surface); padding: 20px; }
.review-admin-item.status-visible { border-left-color: oklch(0.59 0.14 150); }
.review-admin-item > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.review-admin-item > header > div { display: grid; gap: 5px; }
.review-stars { color: oklch(0.65 0.15 75); font-size: 1.2rem; letter-spacing: 0; }
.review-admin-text { margin: 0; font-size: 1.05rem; line-height: 1.6; white-space: pre-line; }
.review-admin-item dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; border-top: 1px solid var(--line); padding-top: 14px; }
.review-admin-item dt { color: var(--muted); font-size: 0.7rem; font-weight: 850; text-transform: uppercase; }
.review-admin-item dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.review-admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.public-gallery-body { background: oklch(0.985 0.008 75); }
.public-gallery { min-height: 100vh; overflow-x: hidden; }
.public-gallery-hero { position: relative; min-height: clamp(280px, 38vh, 430px); overflow: hidden; isolation: isolate; background-image: var(--gallery-design-image); background-position: center; background-size: cover; color: white; }
.public-gallery-hero.has-banner { min-height: clamp(390px, 52vw, 610px); }
.public-gallery-hero::after { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(to bottom, rgb(20 17 14 / 0.18), rgb(20 17 14 / 0.18) 36%, rgb(20 17 14 / 0.76)); }
.public-gallery-banner { position: absolute; z-index: -2; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.public-gallery-brand { position: absolute; top: clamp(18px, 3vw, 30px); left: max(20px, calc((100% - 1180px) / 2)); display: flex; align-items: center; gap: 10px; font-weight: 850; }
.public-gallery-brand img { border-radius: 8px; }
.public-gallery-heading { position: absolute; left: max(20px, calc((100% - 1180px) / 2)); right: max(20px, calc((100% - 1180px) / 2)); bottom: clamp(28px, 5vw, 58px); display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.public-gallery-title-group { min-width: 0; }
.public-gallery-heading h1 { max-width: 16ch; color: white; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 8vw, 7rem); font-weight: 500; line-height: 0.92; text-shadow: 0 3px 22px rgb(0 0 0 / 0.42); }
.public-gallery-heading time { display: block; margin-top: 14px; font-weight: 750; }
.gallery-review-shortcut { min-height: 50px; flex: none; border: 1px solid rgb(255 255 255 / 0.55); border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; background: rgb(248 246 240 / 0.94); color: oklch(0.24 0.025 75); padding: 0 18px; font-weight: 850; text-decoration: none; box-shadow: 0 10px 32px rgb(20 17 14 / 0.2); transition: transform 180ms var(--ease-out), background-color 180ms var(--ease-out); }
.gallery-review-shortcut:hover { background: white; transform: translateY(-2px); }
.gallery-review-shortcut:active { transform: scale(0.98); }
.gallery-review-shortcut:focus-visible { outline: 3px solid rgb(255 255 255 / 0.82); outline-offset: 3px; }
.guestbook-compose summary:focus-visible, .guestbook-more summary:focus-visible, .gallery-review-details summary:focus-visible { outline: 3px solid oklch(0.48 0.1 75 / 0.62); outline-offset: 3px; }
.gallery-kicker { margin: 0 0 10px; color: oklch(0.62 0.13 75); font-size: 0.85rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.public-gallery-hero .gallery-kicker { color: white; }
.public-gallery-intro { width: min(820px, calc(100% - 40px)); margin: 0 auto; padding: clamp(42px, 7vw, 78px) 0 clamp(34px, 5vw, 58px); text-align: center; }
.public-gallery-intro.has-image { width: min(1180px, calc(100% - 40px)); display: grid; grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(34px, 7vw, 84px); text-align: left; }
.gallery-intro-visual { margin: 0; }
.gallery-intro-visual img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; border-radius: 6px; box-shadow: 0 22px 55px oklch(0.28 0.035 75 / 0.14); }
.gallery-intro-copy { min-width: 0; }
.public-gallery-intro h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.1rem, 5vw, 4.4rem); font-weight: 500; line-height: 1.04; }
.gallery-thanks { margin: 22px auto 0; white-space: pre-line; }
.public-gallery-intro.has-image .gallery-thanks { margin-inline: 0; }
.gallery-community-section, .public-gallery-photos, .gallery-review-section { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.gallery-community-section { border-block: 1px solid oklch(0.86 0.025 75); padding: clamp(30px, 5vw, 50px) 0; scroll-margin-top: 20px; }
.gallery-community-top { display: flex; align-items: flex-start; justify-content: space-between; gap: clamp(28px, 6vw, 72px); }
.gallery-community-heading { max-width: 620px; }
.gallery-community-heading h2, .public-gallery-section-heading h2, .gallery-review-section h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 5vw, 4.6rem); font-weight: 500; line-height: 1; }
.guestbook-compose { width: min(410px, 100%); flex: none; }
.guestbook-compose summary, .guestbook-more summary { min-height: 50px; border: 1px solid oklch(0.72 0.055 75); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--ink); padding: 0 17px; font-weight: 850; list-style: none; cursor: pointer; }
.guestbook-compose summary::-webkit-details-marker, .guestbook-more summary::-webkit-details-marker, .gallery-review-details summary::-webkit-details-marker { display: none; }
.guestbook-compose[open] summary { border-color: transparent; background: var(--ink); color: white; }
.guestbook-form { margin-top: 14px; border-top: 1px solid oklch(0.84 0.03 75); padding-top: 16px; }
.guestbook-preview, .guestbook-more-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 36px); margin-top: 30px; }
.guestbook-entry { min-width: 0; margin: 0; border-top: 3px solid oklch(0.82 0.045 75); padding-top: 16px; }
.guestbook-entry p { margin: 0; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.12rem, 2vw, 1.45rem); line-height: 1.42; white-space: pre-line; }
.guestbook-entry footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; color: var(--muted); font-size: 0.78rem; }
.gallery-community-empty { color: var(--muted); }
.guestbook-more { margin-top: 22px; }
.guestbook-more summary { width: fit-content; min-height: 44px; }
.guestbook-more-list { margin-top: 22px; }
.public-gallery-photos { margin-top: clamp(48px, 7vw, 82px); }
.public-gallery-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 4vw, 42px); }
.public-gallery-photo-tools { display: flex; flex: none; align-items: flex-end; gap: 20px; }
.gallery-photo-count { flex: none; color: var(--muted); font-weight: 800; }
.public-gallery-page-size { display: grid; grid-template-columns: auto auto; align-items: center; gap: 7px 10px; }
.public-gallery-page-size label { color: var(--muted); font-size: 0.78rem; font-weight: 800; }
.public-gallery-page-size select { min-width: 78px; min-height: 42px; border: 1px solid oklch(0.76 0.035 75); border-radius: 6px; background: white; color: var(--ink); padding: 0 32px 0 11px; font: inherit; font-weight: 800; }
.public-gallery-page-size noscript { grid-column: 1 / -1; }
.public-photo-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; width: 100%; }
.public-photo-grid::after { content: ""; flex-grow: 999; flex-basis: 260px; }
.public-photo-item { position: relative; min-width: 140px; flex: var(--photo-ratio) 1 var(--photo-basis); overflow: hidden; background: transparent; }
.public-comment-badge { position: absolute; z-index: 2; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 5px; min-height: 30px; border-radius: 999px; background: rgb(20 17 14 / 0.8); color: white; padding: 5px 9px; font-size: 0.76rem; font-weight: 850; backdrop-filter: blur(8px); }
.public-gallery .public-photo-tile { display: block; width: 100%; height: auto; min-height: 0; aspect-ratio: var(--photo-ratio); overflow: hidden; border-radius: 0; background: transparent; }
.public-gallery .public-photo-tile img { display: block; width: 100%; height: auto; aspect-ratio: var(--photo-ratio); object-fit: contain; border-radius: 0; background: transparent; transition: transform 260ms var(--ease-out); }
.public-gallery .public-photo-tile:hover img { transform: scale(1.018); }
.public-photo-actions { position: absolute; z-index: 2; left: 7px; right: 7px; bottom: 7px; display: flex; gap: 6px; opacity: 0; transform: translateY(4px); transition: opacity 180ms ease, transform 180ms ease; }
.public-photo-item:hover .public-photo-actions, .public-photo-item:focus-within .public-photo-actions { opacity: 1; transform: none; }
.gallery-photo-action { min-width: 0; min-height: 44px; flex: 1; border: 1px solid rgb(255 255 255 / 0.38); border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 10px; background: rgb(20 17 14 / 0.84); color: white; font: inherit; font-size: 0.82rem; font-weight: 800; text-decoration: none; backdrop-filter: blur(10px); cursor: pointer; }
.gallery-photo-action:hover { background: rgb(20 17 14 / 0.96); }
.save-label-mobile { display: none; }
.public-gallery .numbered-pagination { padding: 24px 0 10px; }
.gallery-empty { margin: 0 auto; padding: 30px 20px 70px; text-align: center; }
.gallery-public-form { display: grid; gap: 16px; }
.gallery-public-form > label:not(.checkbox-row), .gallery-form-grid label { display: grid; gap: 7px; color: var(--muted); font-size: 0.82rem; font-weight: 800; }
.gallery-public-form input, .gallery-public-form textarea { width: 100%; border: 1px solid oklch(0.8 0.025 75); border-radius: 6px; background: white; color: var(--ink); padding: 12px; }
.gallery-public-form input { min-height: 48px; }
.gallery-privacy-note { margin: 0; color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
.gallery-submit { min-height: 50px; border: 0; border-radius: 6px; background: var(--ink); color: white; padding: 0 18px; font-weight: 850; cursor: pointer; }
.gallery-form-success, .gallery-form-error { max-width: 760px; border-left: 4px solid oklch(0.58 0.13 150); background: oklch(0.95 0.035 150); padding: 14px 16px; }
.gallery-form-error { border-left-color: var(--danger); background: oklch(0.95 0.035 25); }
.gallery-review-section { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(380px, 1.2fr); align-items: start; gap: clamp(40px, 8vw, 110px); margin-top: clamp(68px, 10vw, 126px); border-top: 1px solid oklch(0.86 0.025 75); padding-top: clamp(44px, 7vw, 78px); scroll-margin-top: 24px; }
.gallery-review-section > div:first-child { max-width: 720px; }
.gallery-review-details { border-top: 1px solid oklch(0.84 0.03 75); }
.gallery-review-details summary { min-height: 58px; display: flex; align-items: center; justify-content: space-between; color: var(--ink); font-weight: 850; cursor: pointer; list-style: none; }
.gallery-review-details summary::after { content: "+"; font-size: 1.5rem; }
.gallery-review-details[open] summary::after { content: "−"; }
.review-form { padding-top: 18px; }
.gallery-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gallery-star-rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; border: 0; margin: 0; padding: 0; }
.gallery-star-rating legend { width: 100%; margin-bottom: 8px; color: var(--muted); font-size: 0.82rem; font-weight: 800; }
.gallery-star-rating input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.gallery-star-rating label { color: oklch(0.78 0.025 75); font-size: 2.25rem; line-height: 1; cursor: pointer; }
.gallery-star-rating label:hover, .gallery-star-rating label:hover ~ label, .gallery-star-rating input:checked ~ label { color: oklch(0.67 0.15 75); }
.gallery-consent { align-items: flex-start; font-size: 0.82rem; line-height: 1.45; }
.gallery-consent input { width: 22px; min-height: 22px; flex: none; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; }
.public-gallery-footer { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: clamp(52px, 8vw, 100px); border-top: 1px solid oklch(0.88 0.02 75); padding: 34px 20px; color: var(--muted); font-size: 0.85rem; font-weight: 750; }
.gallery-login-shell { display: grid; min-height: 100dvh; place-items: center; background-image: linear-gradient(rgb(24 20 17 / 0.5), rgb(24 20 17 / 0.72)), var(--gallery-design-image); background-position: center; background-size: cover; padding: 24px; }
.gallery-login-panel { width: min(480px, 100%); border-radius: 8px; background: rgb(255 255 255 / 0.96); padding: clamp(28px, 7vw, 52px); text-align: center; box-shadow: 0 24px 70px rgb(0 0 0 / 0.28); }
.gallery-brand-logo { width: min(230px, 70%); height: auto; }
.gallery-login-panel h1 { max-width: none; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.3rem, 8vw, 4rem); font-weight: 500; line-height: 1; }
.gallery-login-panel time { color: var(--muted); }
.gallery-password-form { display: grid; gap: 14px; margin-top: 24px; text-align: left; }
.gallery-password-form label { display: grid; gap: 6px; font-weight: 800; }

@media (max-width: 700px) {
  .gallery-link-row, .gallery-design-grid { grid-template-columns: 1fr; }
  .admin-photo-dropzone { grid-template-columns: auto minmax(0, 1fr); min-height: 120px; padding: 16px; }
  .admin-photo-dropzone .secondary-action { grid-column: 1 / -1; width: 100%; }
  .admin-upload-actions { align-items: stretch; flex-direction: column; }
  .admin-upload-actions > * { width: 100%; }
  .admin-upload-overall > div { align-items: flex-start; flex-direction: column; gap: 3px; }
  .admin-upload-file { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .admin-upload-file-state { grid-column: 1 / -1; grid-row: 2; }
  .admin-upload-file-retry { grid-column: 2; grid-row: 1; }
  .admin-upload-file-error { grid-row: 3; margin-top: 0; }
  .bulk-actions { align-items: stretch; flex-direction: column; }
  .bulk-actions .secondary-action { width: 100%; }
  .gallery-page-size-form { align-items: stretch; flex-direction: column; }
  .impressions-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .impressions-filter-form > :first-child, .impressions-filter-form .secondary-action { grid-column: 1 / -1; }
  .approval-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .community-status-band { grid-template-columns: 1fr; }
  .community-admin-item, .community-admin-item-text { grid-template-columns: 74px minmax(0, 1fr); }
  .community-admin-item-text { grid-template-columns: 1fr; }
  .community-admin-item > form { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; }
  .review-admin-item dl { grid-template-columns: 1fr; }
  .review-admin-actions { align-items: stretch; flex-direction: column; }
  .review-admin-actions button { width: 100%; }
  .public-gallery-hero { min-height: 330px; }
  .public-gallery-hero.has-banner { min-height: 430px; }
  .public-gallery-heading { align-items: flex-start; flex-direction: column; gap: 18px; bottom: 24px; }
  .public-gallery-heading h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .gallery-review-shortcut { min-height: 52px; }
  .public-gallery-intro.has-image { grid-template-columns: 1fr; gap: 28px; text-align: left; }
  .gallery-community-section, .public-gallery-photos, .gallery-review-section { width: calc(100% - 32px); }
  .gallery-community-top { flex-direction: column; gap: 20px; }
  .guestbook-compose { width: 100%; }
  .guestbook-preview { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(78vw, 1fr); gap: 14px; overflow-x: auto; overscroll-behavior-inline: contain; padding-bottom: 8px; scroll-snap-type: x proximity; }
  .guestbook-preview .guestbook-entry { scroll-snap-align: start; }
  .guestbook-more-list { grid-template-columns: 1fr; gap: 20px; }
  .public-gallery-section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .public-gallery-photo-tools { width: 100%; align-items: center; justify-content: space-between; gap: 14px; }
  .public-photo-grid { gap: 4px; }
  .public-photo-item { min-width: 108px; flex-basis: var(--photo-mobile-basis); }
  .public-photo-grid::after { flex-basis: 160px; }
  .public-photo-actions { left: 4px; right: 4px; bottom: 4px; gap: 4px; opacity: 1; transform: none; }
  .gallery-photo-action { min-height: 48px; font-size: 0.76rem; padding-inline: 6px; }
  .gallery-review-section { grid-template-columns: 1fr; }
  .gallery-form-grid { grid-template-columns: 1fr; }
  .public-gallery-footer { align-items: flex-start; }
}

html.is-ios .save-label-mobile, html.is-android .save-label-mobile { display: inline; }
html.is-ios .save-label-desktop, html.is-android .save-label-desktop { display: none; }

/* Nur die kleinen Bilder der Galerieuebersicht vor direktem Speichern schuetzen. */
.public-photo-grid [data-gallery-thumbnail] { -webkit-touch-callout: none; }
.public-photo-grid img[data-gallery-thumbnail] { pointer-events: none; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.photo-save-hint { position: fixed; z-index: 1200; top: max(16px, env(safe-area-inset-top)); left: 50%; display: flex; align-items: center; gap: 12px; width: min(460px, calc(100% - 32px)); transform: translateX(-50%); border: 1px solid oklch(0.72 0.11 80); border-radius: 8px; background: rgb(255 255 255 / 0.98); color: oklch(0.2 0.025 250); padding: 13px 15px; box-shadow: 0 16px 42px rgb(0 0 0 / 0.42); text-align: left; }
.photo-save-hint.is-in-lightbox { z-index: 20; }
.photo-save-hint[hidden] { display: none; }
.photo-save-hint-icon { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border: 1px solid oklch(0.72 0.11 80); border-radius: 50%; background: oklch(0.94 0.035 80); color: oklch(0.42 0.09 72); font-size: 1.2rem; font-weight: 900; }
.photo-save-hint-copy { display: grid; gap: 2px; min-width: 0; }
.photo-save-hint-copy strong { font-size: 0.96rem; }
.photo-save-hint-copy span { color: oklch(0.4 0.025 250); font-size: 0.84rem; line-height: 1.35; }

/* iOS-Speicheransicht: Das Originalbild bleibt ohne Touch-Overlay long-press-faehig. */
.gallery-photo-save-body { background: oklch(0.13 0.018 75); color: white; }
.gallery-photo-save-page { min-height: 100dvh; padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); }
.gallery-photo-save-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(1100px, 100%); margin: 0 auto; }
.gallery-photo-save-header a, .gallery-photo-save-actions a { color: inherit; }
.gallery-photo-save-header a { min-height: 48px; display: inline-flex; align-items: center; font-weight: 800; text-decoration: none; }
.gallery-photo-save-header span { font-weight: 850; }
.gallery-photo-save-content { display: grid; gap: 20px; width: min(1100px, 100%); margin: 24px auto 0; }
.gallery-photo-save-copy { max-width: 760px; }
.gallery-photo-save-copy .gallery-kicker { color: oklch(0.84 0.08 75); }
.gallery-photo-save-copy h1 { max-width: none; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.3rem, 7vw, 4.8rem); font-weight: 500; }
.gallery-photo-save-copy p:last-child { max-width: 660px; color: rgb(255 255 255 / 0.78); line-height: 1.55; }
.gallery-photo-save-figure { display: grid; min-height: 0; margin: 0; place-items: center; }
.gallery-photo-save-image { display: block; width: auto; max-width: 100%; height: auto; max-height: 68dvh; object-fit: contain; touch-action: auto; user-select: auto; -webkit-user-select: auto; -webkit-touch-callout: default; }
.gallery-photo-save-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.gallery-photo-save-actions .secondary-action { min-height: 50px; border-color: rgb(255 255 255 / 0.4); background: rgb(255 255 255 / 0.1); color: white; }
.gallery-photo-save-actions .text-action { color: rgb(255 255 255 / 0.82); }

@media (max-width: 600px) {
  .gallery-photo-save-content { margin-top: 10px; }
  .gallery-photo-save-copy h1 { font-size: 2.5rem; }
  .gallery-photo-save-actions { align-items: stretch; flex-direction: column; }
  .gallery-photo-save-actions a { width: 100%; justify-content: center; text-align: center; }
}

/* ---------- Marketing-Preview ---------- */
.marketing-approve-button, .marketing-approved-note { min-height: 38px; border: 0; border-top: 1px solid var(--line); background: oklch(0.94 0.04 155); color: oklch(0.28 0.08 155); padding: 8px 10px; font-size: 0.76rem; font-weight: 850; text-align: center; }
.marketing-approve-button { cursor: pointer; }
.marketing-preview-body { display: flex; min-height: 100vh; flex-direction: column; background: #f7f6f2; color: #202521; }
.marketing-preview-body > main { flex: 1 0 auto; width: 100%; }
.preview-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 42px; background: #202521; color: #fff; padding: 8px max(18px, calc((100% - 1240px) / 2)); font-size: 0.76rem; font-weight: 850; }
.preview-banner > div { display: flex; align-items: center; gap: 12px; }
.preview-banner span { color: #d9bd78; }
.preview-banner a { color: #fff; text-underline-offset: 3px; }
.preview-header { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: minmax(156px, auto) minmax(0, 1fr) auto; align-items: center; gap: 22px; min-height: 76px; border-bottom: 1px solid #d9d8d2; background: rgb(247 246 242 / 0.96); padding: 12px max(22px, calc((100% - 1240px) / 2)); backdrop-filter: blur(14px); }
.preview-brand { display: flex; align-items: center; gap: 10px; color: #202521; text-decoration: none; }
.preview-brand img { display: block; width: 42px; height: 42px; border-radius: 8px; }
.preview-brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; font-weight: 600; }
.preview-nav { --preview-nav-x: 0px; --preview-nav-w: 0; position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(2px, 0.6vw, 8px); min-height: 52px; }
.preview-nav a, .preview-login-link, .preview-manage-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; color: #202521; font-size: 0.84rem; font-weight: 800; line-height: 1; text-decoration: none; }
.preview-nav a { position: relative; z-index: 1; border-radius: 6px; padding: 0 clamp(8px, 1vw, 13px); transition: color 180ms ease, background-color 180ms ease; }
.preview-nav a:hover, .preview-nav a:focus-visible, .preview-nav a[aria-current="page"] { color: #8f6720; }
.preview-nav a:focus-visible, .preview-login-link:focus-visible, .preview-menu-button:focus-visible { outline: 3px solid rgb(164 125 47 / 0.35); outline-offset: 3px; }
.preview-nav-indicator { position: absolute; left: 0; bottom: 4px; width: 1px; height: 3px; border-radius: 999px; background: #b89143; opacity: 0; transform: translate3d(var(--preview-nav-x), 0, 0) scaleX(var(--preview-nav-w)); transform-origin: left center; transition: transform 230ms cubic-bezier(0.22, 1, 0.36, 1), opacity 160ms ease; }
.preview-nav.is-indicator-ready .preview-nav-indicator { opacity: 1; }
.preview-login-link { border: 1px solid #202521; border-radius: 6px; padding: 0 13px; transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease, transform 180ms ease; }
.preview-login-link:hover, .preview-login-link:focus-visible { border-color: #b89143; color: #8f6720; background: rgb(184 145 67 / 0.08); }
.preview-login-link:active { transform: translateY(1px); }
.preview-manage-link { border: 1px solid #202521; border-radius: 6px; padding: 10px 13px; }
.preview-menu-button { display: none; }
.preview-hero { position: relative; isolation: isolate; min-height: clamp(560px, calc(100dvh - 150px), 760px); overflow: hidden; background: #201b16; color: white; }
.preview-hero::before { position: absolute; z-index: 0; inset: -28px; content: ""; background: url('/static/marketing/photodox-main-wide.webp') center / cover no-repeat; filter: blur(20px) saturate(0.86) brightness(0.72); transform: scale(1.04); }
.preview-hero::after { position: absolute; z-index: 2; inset: 0; content: ""; background: linear-gradient(90deg, rgb(18 17 14 / 0.82) 0%, rgb(18 17 14 / 0.5) 38%, rgb(18 17 14 / 0.12) 70%), linear-gradient(0deg, rgb(18 17 14 / 0.42), transparent 45%); pointer-events: none; }
.preview-hero-media { position: absolute; z-index: 1; inset: 0; display: block; }
.preview-hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.preview-hero-content { position: absolute; z-index: 3; left: max(22px, calc((100% - 1240px) / 2)); right: 22px; bottom: clamp(48px, 10vh, 104px); }
.preview-hero h1 { max-width: none; color: white; font-family: Georgia, "Times New Roman", serif; font-size: 7rem; font-weight: 500; line-height: 0.85; }
.preview-hero-content > p:not(.preview-eyebrow) { margin: 24px 0; color: white; font-family: Georgia, "Times New Roman", serif; font-size: 2rem; }
.preview-eyebrow { margin: 0 0 12px; color: #a47d2f; font-size: 0.76rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.preview-hero .preview-eyebrow, .preview-final-cta .preview-eyebrow { color: #f1d791; }
.preview-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; border: 1px solid #b89143; border-radius: 6px; background: #b89143; color: #fff; padding: 0 22px; font-weight: 850; text-decoration: none; cursor: pointer; }
.preview-section { width: min(1240px, calc(100% - 44px)); margin: 0 auto; padding: clamp(72px, 10vw, 136px) 0; }
.preview-section h2, .preview-page-head h1, .preview-final-cta h2, .preview-confirmation h1, .preview-legal h1 { max-width: 16ch; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.6rem, 6vw, 5.8rem); font-weight: 500; line-height: 0.98; }
.preview-intro > h2 { margin-bottom: clamp(44px, 7vw, 84px); }
.preview-benefit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #c9c8c2; }
.preview-benefit-grid article { border-right: 1px solid #c9c8c2; padding: 22px 26px 0 0; }
.preview-benefit-grid article + article { padding-left: 26px; }
.preview-benefit-grid article:last-child { border-right: 0; }
.preview-benefit-grid span { color: #a47d2f; font-size: 0.78rem; font-weight: 850; }
.preview-benefit-grid h3 { margin-top: 22px; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; font-weight: 500; }
.preview-process { display: grid; grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.25fr); column-gap: 8vw; background: #202521; color: white; width: 100%; max-width: none; padding-left: max(22px, calc((100% - 1240px) / 2)); padding-right: max(22px, calc((100% - 1240px) / 2)); }
.preview-process h2 { color: white; }
.preview-process ol { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding: 0; list-style: none; }
.preview-process li { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 24px; border-top: 1px solid #60655f; padding: 24px 0; }
.preview-process li span { color: #bdc0ba; }
.preview-impressions-band > div:first-child { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.preview-image-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin: 42px 0 24px; }
.preview-image-strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.preview-text-link { color: #202521; font-weight: 850; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.preview-empty { border: 1px dashed #b8b7b0; background: #eeede8; color: #656861; padding: 24px; }
.preview-quotes { border-top: 1px solid #c9c8c2; }
.preview-quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.preview-quote-grid blockquote { margin: 0; border-left: 2px solid #b89143; padding-left: 22px; }
.preview-quote-grid blockquote p { color: #202521; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.preview-quote-grid footer { color: #656861; font-size: 0.8rem; }
.preview-final-cta { display: grid; min-height: 480px; place-content: center; justify-items: center; background: #384338; color: white; padding: 70px 22px; text-align: center; }
.preview-final-cta h2 { color: white; margin-bottom: 32px; }
.preview-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #181c19; color: white; padding: 44px max(22px, calc((100% - 1240px) / 2)); }
.preview-footer > div { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 12px; }
.preview-footer img { grid-row: 1 / span 2; border-radius: 8px; }
.preview-footer span { color: #aeb2ad; font-size: 0.76rem; }
.preview-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.preview-footer a { color: white; font-size: 0.78rem; text-decoration: none; }
.preview-page-head { width: min(1240px, calc(100% - 44px)); margin: 0 auto; padding: clamp(70px, 10vw, 140px) 0 clamp(38px, 6vw, 78px); }
.preview-page-head h1 { max-width: none; font-size: clamp(4rem, 11vw, 9rem); }
.preview-page-head > p:last-child { font-size: 1.1rem; }
.preview-impressions-head { padding-bottom: clamp(36px, 5vw, 64px); }
.preview-impressions-head h1 { margin: 10px 0 clamp(22px, 3vw, 34px); }
.preview-impressions-head > p:last-child { max-width: 56ch; margin: 0; line-height: 1.65; }
.preview-package-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #c9c8c2; padding: 1px; }
.preview-package { display: flex; flex-direction: column; min-height: 0; background: #f7f6f2; padding: 26px; }
.preview-package.is-featured { background: #303a31; color: white; }
.preview-package.is-featured p { color: #cbd0ca; }
.preview-package h2 { font-size: 1.75rem; }
.preview-package > strong { margin-top: 20px; font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; }
.preview-package > small { color: #777b75; }
.preview-package ul { display: grid; gap: 8px; margin: 20px 0; padding-left: 20px; }
.preview-package .preview-text-link { margin-top: auto; color: inherit; }
.preview-team-list { display: grid; gap: 80px; }
.preview-team-list article { display: grid; grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(36px, 8vw, 110px); }
.preview-team-list article:nth-child(even) > :first-child { order: 2; }
.preview-team-list img, .preview-team-placeholder { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.preview-team-placeholder { display: grid; place-items: center; background: #e6e4dc; color: #777b75; }
.preview-impression-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; width: min(1400px, calc(100% - 24px)); margin: 0 auto 90px; }
.preview-impression-grid a { aspect-ratio: 4 / 3; overflow: hidden; }
.preview-impression-grid img { width: 100%; height: 100%; object-fit: cover; }
.preview-published-reviews { border-top: 1px solid #c9c8c2; }
.preview-published-reviews h2 { margin-bottom: 44px; }
.preview-review-stars { color: #a47d2f; letter-spacing: 0; }
.preview-form { display: grid; gap: 34px; max-width: 980px; padding-top: 10px; }
.preview-form fieldset { display: grid; gap: 20px; border: 0; border-top: 1px solid #bdbdb6; margin: 0; padding: 28px 0 0; }
.preview-form legend { padding: 0 18px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.8rem; }
.preview-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.preview-form label, .preview-field { display: grid; gap: 7px; color: #4f534e; font-size: 0.83rem; font-weight: 800; }
.preview-form input, .preview-form textarea, .preview-form select { border-color: #bebeb7; background: #fff; }
.preview-form-error, .manage-warning { border-left: 4px solid #a54838; background: #f7e9e5; color: #6c2f25; padding: 16px; }
.preview-test-notice { max-width: none; margin: 0; border-left: 4px solid #b89143; background: #f2ead8; color: #554725; padding: 16px; }
.honeypot { position: absolute !important; left: -10000px !important; }
.form-security { min-width: 0; max-width: 100%; }
.form-security [data-turnstile-status] { margin: 12px 0 0; }
.preview-form button[type="submit"]:disabled { cursor: wait; opacity: 0.6; }
.preview-confirmation { display: grid; min-height: 70vh; place-content: center; justify-items: start; width: min(840px, calc(100% - 44px)); margin: 0 auto; }
.preview-calendar { padding-top: 0; }
.preview-calendar-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.preview-calendar-head h2 { font-size: clamp(2.2rem, 4vw, 4rem); }
.preview-calendar-head nav { display: flex; gap: 8px; }
.preview-calendar-head a { border: 1px solid #bbb9b1; border-radius: 5px; color: #202521; padding: 9px 12px; font-size: 0.8rem; font-weight: 850; text-decoration: none; }
.preview-calendar-weekdays, .preview-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.preview-calendar-weekdays span { padding: 8px; color: #6b6e68; font-size: 0.72rem; font-weight: 850; text-align: center; }
.preview-calendar-grid time, .preview-calendar-grid button, .preview-calendar-grid .is-empty { display: grid; min-height: 86px; align-content: space-between; border: 1px solid #d0cfc8; border-radius: 5px; padding: 10px; }
.preview-calendar-grid button { color: inherit; font: inherit; text-align: left; cursor: pointer; }
.preview-calendar-grid time.is-available, .preview-calendar-grid button.is-available { background: #e3ede4; }
.preview-calendar-grid time.is-booked, .preview-calendar-grid button.is-booked { background: #eee4e1; color: #744137; }
.preview-calendar-grid button.is-today { outline: 2px solid #72551f; outline-offset: -3px; }
.preview-calendar-grid button.is-selected { border: 2px solid #72551f; box-shadow: inset 0 0 0 2px #fff; }
.preview-calendar-grid time span, .preview-calendar-grid button span { font-size: 0.7rem; }
.preview-calendar-legend { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 0.78rem; }
.preview-calendar-legend span { width: 12px; height: 12px; border-radius: 2px; }
.preview-calendar-legend .is-available { background: #b7d1ba; }
.preview-calendar-legend .is-booked { background: #d5b9b2; margin-left: 10px; }
.preview-legal { max-width: 900px; padding-top: clamp(64px, 9vw, 118px); padding-bottom: clamp(82px, 11vw, 142px); }
.preview-legal h1 { max-width: 100%; margin: 0 0 clamp(44px, 7vw, 78px); }
.preview-legal-body { border-top: 1px solid #c9c8c2; padding-top: clamp(28px, 4vw, 44px); font-size: 1.02rem; }
.preview-legal-warning { border-left: 4px solid #b89143; background: #f2ead8; padding: 16px; }
.preview-legal > div { white-space: pre-line; line-height: 1.75; }

@media (prefers-reduced-motion: reduce) {
  .preview-nav-indicator,
  .preview-nav a,
  .preview-login-link {
    transition-duration: 1ms;
  }
}

/* Preview-Verwaltung */
.manage-head { padding-bottom: 34px; }
.manage-jumpbar { position: sticky; top: 76px; z-index: 12; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; border-block: 1px solid #d0cfc9; background: rgb(247 246 242 / 0.97); padding: 10px 18px; }
.manage-jumpbar a { color: #202521; padding: 8px 10px; font-size: 0.78rem; font-weight: 850; text-decoration: none; }
.manage-section { width: min(1240px, calc(100% - 44px)); margin: 0 auto; border-bottom: 1px solid #c9c8c2; padding: 72px 0; scroll-margin-top: 140px; }
.manage-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.manage-section h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 4vw, 4rem); font-weight: 500; }
.manage-warning, .manage-note { margin-bottom: 24px; }
.manage-edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.manage-edit-grid form, .manage-list article, .manage-marketing-grid form { display: grid; gap: 12px; border: 1px solid #d0cfc9; background: white; padding: 20px; }
.manage-edit-grid label, .manage-list form label, .manage-marketing-grid label { display: grid; gap: 5px; color: #5d615c; font-size: 0.76rem; font-weight: 850; }
.manage-edit-grid input, .manage-edit-grid textarea, .manage-edit-grid select, .manage-list input, .manage-list select, .manage-marketing-grid input { min-height: 42px; border: 1px solid #c8c7c0; border-radius: 6px; padding: 9px; }
.preview-small-action { min-height: 40px; border: 0; border-radius: 5px; background: #303a31; color: white; padding: 8px 14px; font-weight: 850; cursor: pointer; }
.preview-small-action.is-danger { background: #8b3c31; }
.manage-list { display: grid; gap: 12px; }
.manage-item-head { display: flex; justify-content: space-between; gap: 20px; }
.manage-item-head span { color: #666a64; font-size: 0.8rem; }
.manage-list dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; }
.manage-list dt { color: #73766f; font-size: 0.72rem; font-weight: 850; }
.manage-list dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.manage-list form { display: grid; grid-template-columns: 160px 180px minmax(0, 1fr) auto; gap: 10px; }
.manage-marketing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.manage-marketing-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.manage-marketing-grid form > div { display: flex; gap: 8px; }
.booking-flow { scroll-margin-top: 150px; }
.booking-flow [hidden] { display: none !important; }
.booking-head { padding-top: 54px; padding-bottom: 34px; }
.booking-head h1 { max-width: 13ch; font-size: 5rem; line-height: 1; }
.booking-head > p:last-child { max-width: 720px; }
.booking-progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 0; padding: 0; list-style: none; }
.booking-progress li { border-top: 3px solid #cac9c2; padding-top: 9px; color: #747770; font-size: 0.76rem; font-weight: 850; }
.booking-progress li.is-current { border-color: #a47d2f; color: #202521; }
.booking-feature-list { display: grid; gap: 8px; }
.booking-feature { grid-template-columns: auto minmax(0, 1fr) auto !important; align-items: center; gap: 14px !important; border: 1px solid #cfcec7; background: #fff; padding: 16px; }
.booking-feature input { width: 22px; height: 22px; }
.booking-feature span { display: grid; gap: 3px; }
.booking-feature small { color: #747770; font-weight: 500; }
.booking-feature b { color: #202521; white-space: nowrap; }
.booking-feature.is-required { border-color: #9e834d; background: #f5efe2; }
.booking-flow-actions { display: flex; justify-content: space-between; gap: 12px; }
.booking-flow-actions > :last-child { margin-left: auto; }
.booking-quote { display: flex; justify-content: space-between; gap: 18px; border-left: 4px solid #a47d2f; background: #f2ead8; padding: 18px; }
.booking-quote.is-error, .availability-status.is-error { color: #8b3c31; }
.booking-summary dl, .booking-confirmation-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; background: #d4d2cb; }
.booking-summary dl > div, .booking-confirmation-data > div { background: #fff; padding: 16px; }
.booking-summary dt, .booking-confirmation-data dt { color: #73766f; font-size: 0.72rem; font-weight: 850; }
.booking-summary dd, .booking-confirmation-data dd { margin: 6px 0 0; overflow-wrap: anywhere; }
.booking-confirmation { gap: 20px; padding-block: 70px; }
.booking-confirmation h1 { max-width: 12ch; }
.booking-confirmation-features { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-left: 20px; }
.booking-message.is-success { border-left: 4px solid #55745c; background: #e3ede4; padding: 16px; }
.booking-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 10px; }
.booking-detail-grid > article { border: 1px solid #cfcec7; background: #fff; padding: 22px; }
.booking-detail-grid h2 { font-size: 1.8rem; }
.booking-detail-head { padding-top: 48px; padding-bottom: 30px; }
.booking-detail-head h1 { max-width: 22ch; font-size: 3.4rem; line-height: 1.05; overflow-wrap: anywhere; }
.booking-audit { display: grid; gap: 12px; padding-left: 20px; }
.booking-audit li span { display: block; color: #747770; font-size: 0.78rem; }
.booking-filters, .manage-pricing-settings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.booking-filters select, .manage-pricing-settings input { min-height: 42px; border: 1px solid #c8c7c0; border-radius: 6px; padding: 9px; }
.booking-detail-link { justify-self: start; text-decoration: none; }
.manage-pricing-form { display: grid; gap: 22px; }
.manage-pricing-form section { border: 1px solid #d0cfc9; background: #fff; padding: 20px; }
.manage-pricing-form label, .manage-pricing-settings label { display: grid; gap: 6px; font-size: 0.76rem; font-weight: 850; }
.manage-pricing-form input { min-height: 42px; border: 1px solid #c8c7c0; border-radius: 6px; padding: 9px; }
.booking-security-deposit-public {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px 36px;
  border-block: 1px solid #c9c8c2;
}
.booking-security-deposit-public h2,
.booking-security-deposit-public p {
  margin: 0;
}
.booking-security-deposit-public .preview-eyebrow {
  grid-column: 1 / -1;
}
.booking-security-deposit-public strong {
  grid-column: 2;
  grid-row: 2 / span 2;
  color: #8f6720;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 500;
  white-space: nowrap;
}
.booking-deposit-callout {
  display: grid;
  gap: 4px;
  border-left: 4px solid #a47d2f;
  background: #f2ead8;
  padding: 16px;
}
.booking-deposit-callout span {
  color: #5d615c;
  font-size: 0.86rem;
}
.booking-travel-price { border-top: 1px solid #c9c8c2; }

@media (max-width: 900px) {
  .preview-header { grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; }
  .preview-menu-button { display: block; border: 0; background: transparent; font-weight: 850; }
  .preview-nav { position: absolute; top: 76px; left: 0; right: 0; display: none; align-items: stretch; flex-direction: column; gap: 0; min-height: 0; border-bottom: 1px solid #c9c8c2; background: #f7f6f2; padding: 10px 22px 20px; }
  .preview-nav.is-open { display: flex; }
  .preview-nav a { justify-content: flex-start; min-height: 48px; border-bottom: 1px solid #deddd7; padding: 0; }
  .preview-nav-indicator { display: none; }
  .preview-benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .preview-benefit-grid article { border-bottom: 1px solid #c9c8c2; }
  .preview-process { grid-template-columns: 1fr; }
  .preview-process ol { grid-column: 1; grid-row: auto; margin-top: 42px; }
  .preview-package-grid, .preview-quote-grid, .booking-security-deposit-public { grid-template-columns: 1fr; }
  .booking-security-deposit-public strong { grid-column: 1; grid-row: auto; }
  .preview-package { min-height: 0; }
  .manage-edit-grid, .manage-marketing-grid, .booking-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .preview-banner { align-items: flex-start; padding-inline: 16px; }
  .preview-banner > div { align-items: flex-start; flex-direction: column; gap: 1px; }
  .preview-banner a { flex: none; padding-top: 1px; }
  .preview-header { min-height: 66px; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; padding-inline: 16px; }
  .preview-brand img { width: 38px; height: 38px; }
  .preview-brand strong { font-size: 1.15rem; }
  .preview-header > .preview-login-link { min-height: 40px; padding-inline: 10px; font-size: 0.78rem; }
  .preview-manage-link { display: none; }
  .preview-nav { top: 66px; }
  .preview-hero { min-height: min(640px, calc(100svh - 88px)); }
  .preview-hero::after { background: linear-gradient(0deg, rgb(18 17 14 / 0.76) 0%, rgb(18 17 14 / 0.18) 58%, rgb(18 17 14 / 0.06)); }
  .preview-hero-media img { object-position: 66% center; }
  .preview-hero-content { left: 18px; right: 18px; bottom: 52px; }
  .preview-hero h1 { font-size: 4.2rem; }
  .preview-hero-content > p:not(.preview-eyebrow) { font-size: 1.45rem; }
  .preview-section, .preview-page-head, .manage-section { width: calc(100% - 32px); }
  .preview-page-head h1 { max-width: 100%; font-size: 3rem; overflow-wrap: anywhere; }
  .preview-legal h1 { margin-bottom: 38px; font-size: 3rem; }
  .booking-detail-head h1 { font-size: 2.4rem; }
  .preview-benefit-grid { grid-template-columns: 1fr; }
  .preview-benefit-grid article, .preview-benefit-grid article + article { border-right: 0; padding: 22px 0; }
  .preview-process { width: 100%; padding-inline: 16px; }
  .preview-process li { grid-template-columns: 1fr; gap: 7px; }
  .preview-image-strip { grid-template-columns: repeat(2, 1fr); }
  .preview-impressions-band > div:first-child { align-items: flex-start; flex-direction: column; }
  .preview-impressions-band h2 { max-width: 100%; }
  .preview-image-strip img:last-child { display: none; }
  .preview-team-list article { grid-template-columns: 1fr; }
  .preview-team-list article:nth-child(even) > :first-child { order: 0; }
  .preview-impression-grid { grid-template-columns: repeat(2, 1fr); }
  .preview-form-grid { grid-template-columns: 1fr; }
  .preview-calendar-grid time, .preview-calendar-grid button, .preview-calendar-grid .is-empty { min-height: 54px; padding: 6px; }
  .preview-calendar-grid time span, .preview-calendar-grid button span { display: none; }
  .preview-footer { align-items: flex-start; flex-direction: column; }
  .manage-jumpbar { top: 66px; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; }
  .manage-list dl { grid-template-columns: 1fr; }
  .manage-list form { grid-template-columns: 1fr; }
  .manage-item-head { align-items: flex-start; flex-direction: column; }
  .booking-progress li { overflow: hidden; font-size: 0; }
  .booking-progress li::after { content: counter(list-item); font-size: 0.78rem; }
  .booking-feature { grid-template-columns: auto minmax(0, 1fr) !important; }
  .booking-feature b { grid-column: 2; }
  .booking-quote { align-items: flex-start; flex-direction: column; }
  .booking-summary dl, .booking-confirmation-data, .booking-filters, .manage-pricing-settings { grid-template-columns: 1fr; }
  .booking-head { padding-top: 38px; padding-bottom: 24px; }
  .booking-head h1 { font-size: 2.8rem; }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, oklch(0.95 0.02 245), oklch(0.98 0.005 180) 52%, oklch(0.94 0.02 35));
  color: var(--ink);
}

a {
  color: var(--brand-strong);
}

button,
input,
select,
textarea {
  font: inherit;
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-copy,
.admin-brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1.05;
}

.brand-copy strong,
.admin-brand-copy strong {
  font-size: 1rem;
}

.brand-copy small,
.admin-brand-copy small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 650;
}

.brand-logo {
  height: 40px;
  width: 40px;
  border-radius: 9px;
  display: block;
}

.auth-logo {
  width: min(340px, 80%);
  height: auto;
  margin: 0 auto;
  display: block;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 56px;
}

.intro-panel,
.auth-panel,
.upload-page,
.admin-dashboard,
.station-page {
  display: grid;
  gap: 24px;
}

.admin-dashboard {
  max-width: 980px;
  margin: 0 auto;
}

.intro-panel,
.auth-panel {
  max-width: 720px;
  padding: clamp(28px, 6vw, 64px) 0;
}

.label {
  margin: 0 0 8px;
  color: var(--brand-strong);
  font-size: 0.9rem;
  font-weight: 800;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: 0.96;
}

h2 {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0;
}

p {
  max-width: 68ch;
  color: var(--muted);
  line-height: 1.6;
}

.upload-heading p,
.section-heading p,
.dashboard-heading p {
  margin-bottom: 0;
}

.upload-box,
.admin-form,
.event-create-form,
.station-panel,
.event-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.upload-box,
.admin-form,
.event-create-form {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 4vw, 28px);
}

.drop-zone {
  display: grid;
  min-height: 180px;
  place-items: center;
  gap: 8px;
  border: 2px dashed oklch(0.68 0.08 242);
  border-radius: 10px;
  background: oklch(0.96 0.018 242);
  padding: 24px;
  text-align: center;
  cursor: pointer;
}

.drop-zone-title {
  color: var(--ink);
  font-size: clamp(1.6rem, 5vw, 3rem);
  font-weight: 850;
}

.drop-zone-copy {
  color: var(--muted);
}

input[type="file"] {
  min-height: 48px;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
input[type="date"],
input[type="search"],
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 14px;
  transition: border-color 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}

input[type="text"]:focus-visible,
input[type="password"]:focus-visible,
input[type="number"]:focus-visible,
input[type="email"]:focus-visible,
input[type="date"]:focus-visible,
input[type="search"]:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--brand) 18%, transparent);
}

.primary-action,
.secondary-action,
.station-shutter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), filter 160ms var(--ease-out),
    box-shadow 160ms var(--ease-out);
}

.primary-action:hover,
.secondary-action:hover,
.station-shutter:hover {
  filter: brightness(0.96);
}

.primary-action:active,
.secondary-action:active,
.station-shutter:active {
  transform: scale(0.97);
}

.primary-action:focus-visible,
.secondary-action:focus-visible,
.station-shutter:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--brand) 32%, transparent);
}

.primary-action {
  background: var(--brand);
  color: white;
}

.secondary-action {
  background: var(--surface-alt);
  color: var(--ink);
}

.station-shutter {
  min-width: min(100%, 320px);
  min-height: 84px;
  background: var(--accent);
  color: oklch(0.17 0.04 35);
  font-size: clamp(1.3rem, 3vw, 2rem);
}

.status-line,
.station-status,
.error-text,
.success-text {
  margin: 0;
  font-weight: 700;
}

.error-text {
  color: var(--danger);
}

.success-text {
  color: oklch(0.36 0.12 150);
}

code {
  border-radius: 6px;
  background: var(--surface-alt);
  padding: 2px 6px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.secret-panel {
  border-color: color-mix(in oklch, var(--brand) 40%, var(--line));
}

.secret-value {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.gallery-section {
  display: grid;
  gap: 18px;
}

.section-heading {
  display: grid;
  gap: 4px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.photo-tile {
  display: grid;
  gap: 8px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
}

.photo-tile img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 10px;
  background: var(--surface-alt);
}

.photo-tile span {
  color: var(--muted);
  font-size: 0.86rem;
}

.photo-tile {
  cursor: pointer;
}

/* ---------- Bild-Lightbox (Popup statt neuem Tab) ---------- */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(22, 17, 12, 0.93);
}

.lightbox::backdrop {
  background: rgba(22, 17, 12, 0.6);
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 84dvh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  background: #000;
  touch-action: auto;
  user-select: auto;
  -webkit-user-select: auto;
  -webkit-touch-callout: default;
}

.lightbox-btn {
  position: fixed;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 999px;
  display: grid;
  place-items: center;
  line-height: 1;
}

.lightbox-btn:hover {
  background: rgba(0, 0, 0, 0.72);
}

.lightbox-close {
  top: 14px;
  right: 16px;
  width: 46px;
  height: 46px;
  font-size: 1.8rem;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  font-size: 2rem;
}

.lightbox-prev {
  left: 12px;
}

.lightbox-next {
  right: 12px;
}

.lightbox-print {
  left: 16px;
  top: 16px;
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.95rem;
  font-weight: 800;
}

.lightbox-btn[hidden] {
  display: none;
}

.lightbox-caption {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 14px;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  padding: 0 16px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.lightbox-status {
  position: fixed;
  left: 50%;
  bottom: 64px;
  max-width: min(560px, calc(100% - 32px));
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 9px 16px;
  font-weight: 800;
  text-align: center;
}

.lightbox-status[hidden] {
  display: none;
}

.lightbox-actions {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  width: min(640px, calc(100% - 32px));
}

.lightbox-actions[hidden], .lightbox-action[hidden] { display: none; }

.lightbox-action {
  min-height: 52px;
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.lightbox-comments { position: fixed; z-index: 4; top: 0; right: 0; width: min(390px, 100vw); height: 100dvh; overflow: auto; background: #faf9f6; color: var(--ink); box-shadow: -14px 0 45px rgb(0 0 0 / 0.28); }
.lightbox-comments[hidden] { display: none; }
.lightbox-comments > header { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid oklch(0.84 0.02 75); background: rgb(250 249 246 / 0.96); padding: 18px; backdrop-filter: blur(10px); }
.lightbox-comments > header > div { display: grid; gap: 2px; }
.lightbox-comments-summary { color: var(--muted); font-size: 0.76rem; }
.lightbox-comments-close { width: 40px; height: 40px; border: 0; border-radius: 999px; background: oklch(0.91 0.015 75); color: var(--ink); font-size: 1.4rem; cursor: pointer; }
.lightbox-comments-list { display: grid; padding: 0 18px; }
.lightbox-comments-list article { border-bottom: 1px solid oklch(0.88 0.02 75); padding: 18px 0; }
.lightbox-comments-list article > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.lightbox-comments-list time { color: var(--muted); font-size: 0.7rem; }
.lightbox-comments-list p { margin: 8px 0 0; white-space: pre-line; }
.lightbox-comments-empty { color: var(--muted); padding: 20px 0; }
.lightbox-comment-form { display: grid; gap: 12px; border-top: 1px solid oklch(0.84 0.02 75); padding: 20px 18px calc(22px + env(safe-area-inset-bottom)); }
.lightbox-comment-form[hidden] { display: none; }
.lightbox-comment-form label:not(.honeypot) { display: grid; gap: 5px; color: var(--muted); font-size: 0.76rem; font-weight: 800; }
.lightbox-comment-form input, .lightbox-comment-form textarea { width: 100%; border: 1px solid oklch(0.8 0.025 75); border-radius: 6px; background: white; color: var(--ink); padding: 10px; }
.lightbox-comment-form > p { margin: 0; color: var(--muted); font-size: 0.72rem; line-height: 1.45; }
.lightbox-comment-form button { min-height: 46px; border: 0; border-radius: 6px; background: var(--ink); color: white; font-weight: 850; cursor: pointer; }
.lightbox-comment-status { min-height: 18px; color: var(--muted); font-size: 0.76rem; }
.lightbox-comment-count { display: grid; min-width: 23px; height: 23px; place-items: center; border-radius: 999px; background: rgb(255 255 255 / 0.18); font-size: 0.72rem; }
.lightbox.is-commenting { padding-right: min(390px, 100vw); }
.lightbox.is-commenting .lightbox-actions { left: calc(50% - 195px); }
.lightbox.is-commenting .lightbox-close, .lightbox.is-commenting .lightbox-next { right: 406px; }

.lightbox-caption { bottom: 86px; }
.lightbox-status { bottom: 148px; }

@media (max-width: 760px) {
  .lightbox-actions { gap: 6px; width: calc(100% - 16px); }
  .lightbox-action { min-width: 0; padding-inline: 8px; font-size: 0.78rem; }
  .lightbox-comments { top: auto; bottom: 0; width: 100%; height: min(52dvh, 560px); border-radius: 8px 8px 0 0; box-shadow: 0 -14px 45px rgb(0 0 0 / 0.35); }
  .lightbox.is-commenting { padding: 0 0 min(52dvh, 560px); }
  .lightbox.is-commenting .lightbox-img { max-height: 40dvh; }
  .lightbox.is-commenting .lightbox-actions { left: 50%; bottom: calc(min(52dvh, 560px) + 8px); }
  .lightbox.is-commenting .lightbox-close { right: 16px; }
  .lightbox.is-commenting .lightbox-next { right: 12px; }
  .lightbox.is-commenting .lightbox-caption, .lightbox.is-commenting .lightbox-status { display: none; }
}

.empty-state {
  display: none;
  margin: 0;
  padding: 16px;
  border-radius: 10px;
  background: var(--surface-alt);
}

.empty-state.is-visible {
  display: block;
}

.dashboard-heading,
.station-hero,
.event-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.dashboard-actions,
.button-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 10px;
  background: var(--surface-alt);
  color: var(--ink);
  padding: 0 12px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms var(--ease-out), transform 120ms var(--ease-out);
}

.secondary-link:hover {
  background: var(--line);
}

.secondary-link:active {
  transform: scale(0.98);
}

.status-pill {
  border-radius: 999px;
  background: oklch(0.9 0.08 150);
  color: oklch(0.28 0.09 150);
  padding: 8px 12px;
  font-weight: 800;
}

.inline-form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.events-list {
  display: grid;
  gap: 16px;
}

.event-card {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.event-card-compact {
  padding: 18px;
}

.event-card-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 18px;
  align-items: start;
}

.event-card-content {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.event-card-actions {
  display: grid;
  gap: 10px;
  justify-items: stretch;
}

.event-card-actions form,
.event-card-actions button,
.event-card-actions .secondary-link {
  width: 100%;
}

.event-card-actions .secondary-link {
  justify-content: center;
}

.event-card h2 {
  font-size: 1.35rem;
}

.event-card p {
  margin: 4px 0 0;
}

.event-meta {
  display: grid;
  gap: 12px;
  margin: 0;
}

.event-meta div {
  display: grid;
  gap: 4px;
}

.event-meta dt {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.event-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.event-meta-compact {
  gap: 10px;
}

.station-admin-list {
  display: grid;
  gap: 12px;
}

.station-admin-row {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.sync-status-grid,
.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.sync-status-grid div {
  display: grid;
  gap: 4px;
  border-radius: 10px;
  background: var(--surface-alt);
  padding: 14px;
}

.sync-status-grid span,
.form-grid span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.form-grid label {
  display: grid;
  gap: 6px;
}

.sync-status-grid strong {
  font-size: 1.7rem;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
}

.checkbox-row input {
  width: 22px;
  height: 22px;
}

.link-list {
  display: grid;
  gap: 8px;
  overflow-wrap: anywhere;
}

.link-disabled {
  color: var(--muted);
  text-decoration: line-through;
  overflow-wrap: anywhere;
}

.link-note {
  display: block;
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 800;
}

.dashboard-actions form {
  margin: 0;
}

.event-choice-list {
  display: grid;
  gap: 10px;
}

.choice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 14px 16px;
  text-decoration: none;
}

.station-body {
  height: 100dvh;
  overflow: hidden; /* Kiosk: kein Scrollen, alles passt auf eine Seite */
  background:
    radial-gradient(circle at top left, oklch(0.95 0.025 95), transparent 32rem),
    radial-gradient(circle at top right, oklch(0.96 0.025 35), transparent 34rem),
    oklch(0.985 0.006 75);
  color: oklch(0.24 0.035 250);
}

.station-body .site-header {
  display: none;
}

.station-body .page-shell {
  width: min(1780px, calc(100% - 48px));
  height: 100dvh;
  padding: clamp(14px, 2vw, 28px) 0;
}

.station-camera-page {
  height: 100%;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(7px, 1vw, 12px);
}

.station-titlebar {
  display: grid;
  justify-items: center;
  gap: clamp(3px, 0.55vh, 7px);
  text-align: center;
}

.station-titlebar h1 {
  max-width: min(76vw, 1100px);
  margin: 0;
  color: oklch(0.27 0.035 250);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.85rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0;
}

.station-titlebar.is-positioned {
  position: relative;
  top: var(--station-title-top);
  left: var(--station-title-left);
  display: block;
  width: var(--station-title-width);
  justify-self: start;
  pointer-events: none;
  text-align: var(--station-title-align);
}

.station-titlebar.is-positioned h1 {
  color: var(--station-title-color);
  font-size: clamp(1.8rem, var(--station-title-size), 3.5rem);
  text-shadow: 0 2px 14px rgb(255 255 255 / 0.62);
}

.station-titlebar.is-positioned .station-flourish {
  margin: 5px auto 0;
}

.station-design-anniversary-2 .station-titlebar.is-positioned h1 {
  text-shadow: 0 2px 16px rgb(0 0 0 / 0.55);
}

/* zarte Gold-Verzierung mit Mittelpunkt – passt zum Hochzeits-Charme */
.station-flourish {
  display: block;
  width: clamp(96px, 14vw, 190px);
  height: 7px;
  background:
    radial-gradient(circle, oklch(0.72 0.11 80) 0 2.5px, transparent 3px) center / 9px 9px no-repeat,
    linear-gradient(to right, transparent, oklch(0.72 0.11 80 / 0.7) 18%, transparent 42%) left center / 50% 1px no-repeat,
    linear-gradient(to left, transparent, oklch(0.72 0.11 80 / 0.7) 18%, transparent 42%) right center / 50% 1px no-repeat;
}

.camera-stage {
  position: relative;
  display: grid;
  min-height: 0;
  overflow: hidden;
  border: 1px solid oklch(0.78 0.045 80);
  border-radius: 12px;
  background: oklch(0.18 0.03 250);
  cursor: pointer;
  outline: none;
}

.camera-stage:focus-visible {
  box-shadow: 0 0 0 4px oklch(0.72 0.11 80 / 0.35);
}

.camera-stage.is-busy {
  cursor: wait;
}

.camera-stage.is-locked {
  cursor: default;
}

.camera-video,
.camera-preview {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.camera-video.is-mirrored {
  transform: scaleX(-1);
}

.camera-placeholder {
  display: grid;
  place-content: center;
  gap: 8px;
  min-height: 0;
  padding: 28px;
  color: white;
  text-align: center;
}

.camera-placeholder strong {
  font-size: clamp(1.7rem, 4vw, 3.8rem);
  line-height: 1;
}

.camera-placeholder span {
  color: oklch(0.88 0.02 250);
  font-size: clamp(1rem, 2vw, 1.3rem);
}

.station-device-notice {
  position: absolute;
  left: 50%;
  top: 18px;
  z-index: 3;
  width: min(640px, calc(100% - 36px));
  transform: translateX(-50%);
  border: 1px solid oklch(0.72 0.11 80 / 0.65);
  border-radius: 999px;
  background: oklch(1 0 0 / 0.92);
  color: oklch(0.31 0.035 250);
  padding: 11px 18px;
  font-weight: 800;
  text-align: center;
}

.capture-countdown {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto auto;
  place-items: center;
  align-content: center;
  gap: clamp(18px, 4vw, 42px);
  background: oklch(0.12 0.025 250 / 0.42);
  color: white;
  font-weight: 900;
  line-height: 1;
}

.capture-countdown .countdown-hint {
  border-radius: 999px;
  background: oklch(1 0 0 / 0.88);
  color: oklch(0.29 0.035 250);
  padding: clamp(10px, 1.2vw, 16px) clamp(20px, 3vw, 42px);
  font-size: clamp(1.8rem, 4.2vw, 4.6rem);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.capture-countdown .countdown-number {
  color: white;
  font-size: clamp(6rem, 20vw, 18rem);
  font-weight: 900;
}

.camera-status {
  position: absolute;
  left: 50%;
  bottom: 14px;
  max-width: min(720px, calc(100% - 32px));
  transform: translateX(-50%);
  border-radius: 999px;
  background: oklch(1 0 0 / 0.88);
  color: oklch(0.31 0.035 250);
  padding: 9px 16px;
  font-weight: 750;
  text-align: center;
}

.watch-actions {
  position: absolute;
  left: 50%;
  bottom: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(460px, calc(100% - 32px));
  transform: translateX(-50%);
  gap: 10px;
}

/* Foto-Review als richtige Anzeige: dunkle Buehne ueber dem Livebild,
   Bild per Pinch/Doppeltipp/Mausrad zoombar, gezoomt verschiebbar. */
.station-review {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: oklch(0.18 0.03 250);
  touch-action: none;
  cursor: zoom-in;
  --review-action-offset: 28px;
  --review-action-height: 78px;
  --review-action-width: 300px;
}

.station-review[hidden] {
  display: none;
}

.station-review-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

.station-review-image.is-animating {
  transition: transform 220ms var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  .station-review-image.is-animating {
    transition: none;
  }
}

/* Foto-Review: Teilen oben links, Druck unten links und neues Foto unten rechts. */
.station-review-share {
  position: absolute;
  top: var(--review-action-offset);
  left: var(--review-action-offset);
  z-index: 6;
}

.watch-actions.review-actions {
  left: var(--review-action-offset);
  right: var(--review-action-offset);
  bottom: var(--review-action-offset);
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  transform: none;
  gap: 18px;
  width: auto;
  pointer-events: none;
}

.review-actions .primary-action,
.review-actions .secondary-action,
.station-review-share {
  flex: 0 1 var(--review-action-width);
  min-width: min(var(--review-action-width), 46%);
  min-height: var(--review-action-height);
  border-radius: 14px;
  padding: 0 34px;
  font-size: 1.35rem;
  font-weight: 850;
  line-height: 1.1;
  box-shadow: 0 14px 32px oklch(0.07 0.025 250 / 0.35);
  pointer-events: auto;
  touch-action: manipulation;
  transition:
    transform 150ms var(--ease-out),
    background 150ms var(--ease-out),
    border-color 150ms var(--ease-out),
    box-shadow 150ms var(--ease-out);
}

.station-share-dialog {
  width: min(560px, calc(100% - 32px));
  border: 1px solid oklch(0.82 0.06 82);
  border-radius: 8px;
  background: oklch(0.99 0.008 80);
  color: oklch(0.24 0.035 250);
  padding: 0;
  box-shadow: 0 24px 70px oklch(0.07 0.025 250 / 0.45);
}

.station-share-dialog::backdrop {
  background: oklch(0.1 0.025 250 / 0.78);
}

.station-share-dialog-content {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
}

.station-share-dialog-content header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
  text-align: left;
}

.station-share-dialog-content h2,
.station-share-dialog-content p {
  margin: 0;
}

.station-share-dialog-content h2 {
  font-size: 2.2rem;
}

.station-share-dialog-content > img {
  width: min(330px, 70vw);
  height: min(330px, 70vw);
  background: #fff;
}

.station-share-dialog-content > span {
  color: var(--muted);
  font-weight: 700;
}

.station-share-dialog-content > .primary-action {
  min-width: 220px;
  min-height: 58px;
  justify-content: center;
}

.station-dialog-close {
  display: grid;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.review-actions .primary-action {
  margin-left: auto;
  border: 1px solid oklch(0.78 0.12 82);
  background: linear-gradient(180deg, oklch(0.78 0.12 82), oklch(0.65 0.12 76));
  color: oklch(0.99 0.004 75);
}

.review-actions .secondary-action,
.station-review-share {
  border: 1px solid oklch(0.86 0.05 80);
  background: oklch(1 0 0 / 0.95);
  color: oklch(0.25 0.035 250);
}

.review-actions .primary-action:active,
.review-actions .secondary-action:active,
.station-review-share:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .review-actions .primary-action:hover,
  .review-actions .secondary-action:hover,
  .station-review-share:hover {
    filter: none;
    box-shadow: 0 16px 36px oklch(0.07 0.025 250 / 0.42);
  }

  .review-actions .primary-action:hover {
    border-color: oklch(0.84 0.12 82);
    background: linear-gradient(180deg, oklch(0.82 0.12 82), oklch(0.69 0.12 76));
  }

  .review-actions .secondary-action:hover,
  .station-review-share:hover {
    border-color: oklch(0.74 0.1 80);
    background: oklch(0.99 0.01 80 / 0.98);
  }
}

.print-status {
  position: absolute;
  left: var(--review-action-offset);
  bottom: calc(var(--review-action-offset) + var(--review-action-height) + 14px);
  z-index: 5;
  max-width: min(520px, calc(100% - 32px));
  border: 1px solid oklch(0.86 0.05 80);
  border-radius: 12px;
  background: oklch(1 0 0 / 0.95);
  color: oklch(0.31 0.035 250);
  padding: 12px 18px;
  font-weight: 750;
  box-shadow: 0 10px 26px oklch(0.07 0.025 250 / 0.26);
}

/* Persönlicher Ein-Foto-Link: bewusst kompakt und mobil zuerst. */
.personal-photo-body {
  background: oklch(0.97 0.012 82);
}

.personal-photo-body .site-header {
  max-width: 760px;
  margin-inline: auto;
}

.personal-photo-body .page-shell {
  width: min(760px, calc(100% - 28px));
  padding-block: 28px 48px;
}

.personal-photo-page {
  display: grid;
  gap: 22px;
}

.personal-photo-heading h1 {
  margin: 4px 0 8px;
  font-size: clamp(2rem, 6vw, 3.2rem);
  letter-spacing: 0;
}

.personal-photo-heading p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.personal-photo-figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: oklch(0.18 0.02 250);
}

.personal-photo-figure img {
  display: block;
  width: 100%;
  max-height: 68dvh;
  object-fit: contain;
}

.personal-photo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.personal-photo-actions .primary-action,
.personal-photo-actions .secondary-action {
  min-height: 58px;
  justify-content: center;
  text-align: center;
}

.personal-photo-actions .text-action {
  grid-column: 1 / -1;
  justify-self: center;
}

.personal-photo-brand {
  margin: 2px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

.personal-share-copy {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 20px;
}

.personal-share-copy h2,
.personal-share-copy p {
  margin: 0;
}

.personal-share-copy h2 {
  font-size: 1.35rem;
}

.personal-share-copy .personal-share-hashtags {
  color: oklch(0.43 0.08 245);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.personal-share-copy .secondary-action {
  justify-self: start;
  min-height: 52px;
}

.personal-share-copy small {
  color: var(--muted);
  line-height: 1.45;
}

.station-consumable-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 16px;
}

.station-consumable-row p,
.station-consumable-row small {
  display: block;
  margin: 4px 0 0;
}

.station-consumable-row small {
  color: var(--muted);
}

.station-runtime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.station-runtime-grid > div {
  display: grid;
  gap: 5px;
  min-height: 72px;
  align-content: center;
  background: var(--surface);
  padding: 12px;
}

.station-runtime-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.station-runtime-grid strong {
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  .personal-photo-body .brand-copy small {
    display: none;
  }

  .personal-photo-actions {
    grid-template-columns: 1fr;
  }

  .personal-photo-actions .text-action {
    grid-column: auto;
  }
}

.station-bottom-bar {
  display: grid;
  grid-template-columns: minmax(250px, 360px) minmax(250px, 380px);
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 2vw, 24px);
}

.countdown-stepper { grid-column: 1; }
.last-photo-button { grid-column: 2; }

.countdown-stepper,
.last-photo-button {
  min-height: 60px;
  border: 1px solid oklch(0.78 0.045 80);
  border-radius: 10px;
  background: oklch(1 0 0 / 0.88);
  color: oklch(0.25 0.035 250);
}

.station-cursor-hidden,
.station-cursor-hidden * {
  cursor: none !important;
}

.countdown-stepper {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  overflow: hidden;
}

.countdown-stepper button {
  height: 100%;
  border: 0;
  background: transparent;
  color: oklch(0.53 0.09 75);
  font-size: 2.3rem;
  cursor: pointer;
}

.countdown-stepper span {
  font-weight: 800;
  text-align: center;
}

.last-photo-button {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 8px;
  font: inherit;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.last-photo-button img {
  width: 92px;
  height: 52px;
  border-radius: 8px;
  background: oklch(0.92 0.012 80);
  object-fit: cover;
}

.last-photo-button:not(.has-photo) {
  grid-template-columns: 1fr;
}

.last-photo-button small {
  display: block;
  color: oklch(0.48 0.03 250);
  font-size: 0.8rem;
  font-weight: 700;
}

.station-gallery-dialog {
  width: min(1020px, calc(100% - 32px));
  max-height: min(760px, calc(100vh - 32px));
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  padding: 20px;
}

.station-gallery-dialog::backdrop {
  background: oklch(0.15 0.03 250 / 0.58);
}

.station-gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.station-photo-grid {
  max-height: min(560px, calc(100vh - 190px));
  overflow: auto;
}

.camera-video[hidden],
.camera-preview[hidden],
.camera-placeholder[hidden],
.capture-countdown[hidden],
.watch-actions[hidden],
.last-photo-button img[hidden] {
  display: none;
}

@media (max-width: 740px) {
  .dashboard-heading,
  .station-hero,
  .event-card-header,
  .choice-row,
  .dashboard-actions,
  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .inline-form-row,
  .event-card-layout,
  .station-workspace,
  .station-actions {
    grid-template-columns: 1fr;
  }

  .event-card-actions {
    grid-template-columns: 1fr;
  }

  .station-body .page-shell {
    width: calc(100% - 20px);
    padding: 10px 0;
  }

  .station-camera-page {
    grid-template-rows: auto minmax(280px, 1fr) auto;
  }

  .camera-stage,
  .camera-video,
  .camera-preview,
  .camera-placeholder {
    min-height: 52vh;
  }

  .station-bottom-bar {
    grid-template-columns: 1fr;
  }

  .countdown-stepper,
  .last-photo-button {
    grid-column: 1;
  }

  .last-photo-button {
    grid-template-columns: 88px 1fr;
  }

  .station-review {
    --review-action-offset: 12px;
    --review-action-height: 68px;
    --review-action-width: 220px;
  }

  .watch-actions.review-actions {
    gap: 10px;
  }

  .review-actions .primary-action,
  .review-actions .secondary-action,
  .station-review-share {
    min-width: 0;
    flex: 1 1 0;
    padding: 0 14px;
    font-size: 1rem;
  }

  .print-status {
    max-width: calc(100% - 24px);
  }

  h1 {
    max-width: 100%;
  }
}

/* ---------- Adminbereich: Sidebar-Layout ---------- */
.admin-shell {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 244px;
  min-width: 244px;
  height: 100vh;
  padding: 20px 14px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 16px;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
}

.admin-brand-copy small {
  font-size: 0.68rem;
}

.event-design-picker {
  display: grid;
  gap: 16px;
}

.event-category-field {
  max-width: 360px;
}

.anniversary-years-field {
  max-width: 220px;
}

.anniversary-years-field[hidden] {
  display: none;
}

.design-choice-fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.design-choice-fieldset legend {
  margin-bottom: 9px;
  color: var(--ink);
  font-weight: 750;
}

.event-design-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 12px;
}

.event-design-option {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 7px;
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
  transition: border-color 150ms var(--ease-out), transform 150ms var(--ease-out);
}

.event-design-option[hidden] {
  display: none;
}

.event-design-option:has(input:checked) {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--brand) 18%, transparent);
}

.event-design-option:active {
  transform: scale(0.98);
}

.event-design-option input {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  accent-color: var(--brand);
}

.event-design-option img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 5px;
  object-fit: cover;
  background: var(--surface-alt);
}

.event-design-edit summary {
  color: var(--brand-strong);
  font-weight: 800;
  cursor: pointer;
}

.event-design-edit form {
  display: grid;
  gap: 14px;
  width: 100%;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.admin-brand img {
  border-radius: 8px;
}

.admin-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
  transition: background-color 140ms var(--ease-out), color 140ms var(--ease-out);
}

.admin-nav a svg {
  flex: none;
  opacity: 0.78;
}

.admin-nav a:hover {
  background: var(--surface-alt);
}

.admin-nav a.active {
  background: var(--brand);
  color: #fff;
}

.admin-nav a.active svg {
  opacity: 1;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.admin-user-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--brand-strong);
  font-size: 0.85rem;
  font-weight: 800;
}

.admin-user-meta {
  display: grid;
  min-width: 0;
}

.admin-user-name {
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-logout {
  border: 0;
  background: none;
  padding: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.admin-logout:hover {
  color: var(--brand-strong);
}

.admin-content {
  flex: 1;
  min-width: 0;
  max-width: 1100px;
  padding: 28px clamp(20px, 3vw, 44px) 64px;
}

.admin-content .admin-dashboard {
  max-width: none;
  margin: 0;
}

.admin-content h1 {
  max-width: none;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.15;
}

.admin-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.new-user-event-field[hidden] {
  display: none;
}

.password-create-options {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.password-create-options[hidden],
.password-manual-fields[hidden] {
  display: none;
}

.password-create-options legend {
  padding: 0 6px;
  color: var(--ink);
  font-weight: 800;
}

.user-edit-form,
.password-change-form {
  display: grid;
  gap: 12px;
}

.user-edit-form {
  margin-top: 4px;
}

.user-edit-form > button,
.password-change-form > button {
  justify-self: start;
}

.password-change-panel {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.password-change-panel summary {
  width: fit-content;
  color: var(--brand-strong);
  font-weight: 800;
  cursor: pointer;
}

.password-change-form {
  margin-top: 16px;
  border-radius: 8px;
  background: var(--surface-alt);
  padding: 16px;
}

.password-change-form label {
  display: grid;
  gap: 6px;
}

.password-change-form label > span:first-child {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.password-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.password-visibility {
  min-width: 88px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 12px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.password-visibility:focus-visible,
.password-change-panel summary:focus-visible {
  outline: 3px solid color-mix(in oklch, var(--brand) 24%, transparent);
  outline-offset: 2px;
}

.status-pill.is-disabled {
  background: var(--surface-alt);
  color: var(--muted);
}

/* ---------- Zentrale Buchungsanfragen ---------- */
.booking-admin,
.booking-detail-admin {
  display: grid;
  gap: 24px;
}

.booking-result-count {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.booking-admin-filters {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  border-block: 1px solid var(--line);
  padding: 16px 0;
}

.booking-admin-filters label,
.booking-action-grid label {
  display: grid;
  gap: 6px;
}

.booking-admin-filters label > span,
.booking-action-grid label > span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.booking-admin-filters select {
  min-width: 210px;
}

.booking-request-list {
  display: grid;
  gap: 10px;
}

.booking-request-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 148px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.booking-request-row.status-request,
.booking-status.status-request {
  border-color: oklch(0.69 0.13 76);
}

.booking-request-row.status-review,
.booking-status.status-review,
.booking-request-row.status-payment_review,
.booking-status.status-payment_review {
  border-color: oklch(0.58 0.13 240);
}

.booking-request-row.status-reserved,
.booking-status.status-reserved {
  border-color: oklch(0.62 0.14 170);
}

.booking-request-row.status-confirmed,
.booking-status.status-confirmed {
  border-color: oklch(0.55 0.15 145);
}

.booking-request-row.status-rejected,
.booking-status.status-rejected,
.booking-request-row.status-cancelled,
.booking-status.status-cancelled {
  border-color: var(--danger);
}

.booking-request-row > time {
  display: grid;
  place-content: center;
  border-right: 1px solid var(--line);
  background: var(--surface-alt);
  text-align: center;
}

.booking-request-row > time strong {
  font-size: 1rem;
}

.booking-request-row > time span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
}

.booking-request-main {
  display: grid;
  align-content: center;
  gap: 12px;
  min-width: 0;
  padding: 16px;
}

.booking-request-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.booking-request-heading > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.booking-request-heading a {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 850;
  text-decoration: none;
}

.booking-request-heading span,
.booking-request-heading small,
.booking-request-state small {
  color: var(--muted);
  font-size: 0.76rem;
}

.booking-request-heading small {
  flex: none;
}

.booking-feature-tags,
.booking-detail-statuses {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.booking-feature-tags span,
.booking-status,
.booking-detail-statuses > span:not(.booking-status) {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-alt);
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 800;
}

.booking-status {
  border-left-width: 4px;
}

.booking-request-state {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
  border-left: 1px solid var(--line);
  padding: 14px;
}

.booking-request-state .secondary-link {
  min-height: 34px;
  font-size: 0.78rem;
}

.request-actions-menu {
  justify-self: end;
}

.request-actions-trigger {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 0 5px;
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.request-actions-trigger:focus-visible {
  outline: 3px solid oklch(0.48 0.1 75 / 0.35);
  outline-offset: 3px;
}

.request-actions-popover {
  position: fixed;
  z-index: 40;
  display: grid;
  gap: 6px;
  min-width: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 8px;
  box-shadow: 0 18px 42px oklch(0.2 0.02 75 / 0.18);
}

.request-actions-popover[hidden] {
  display: none;
}

.request-actions-popover > a,
.request-actions-popover > button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 38px;
  border-radius: 5px;
  color: var(--ink);
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
}

.request-actions-popover > a:hover,
.request-actions-popover > a:focus-visible,
.request-actions-popover > button:hover,
.request-actions-popover > button:focus-visible {
  background: var(--surface-alt);
  outline: none;
}

.request-actions-popover > span {
  color: var(--muted);
  padding: 8px;
  font-size: 0.78rem;
  font-weight: 750;
}

.request-actions-popover .text-action.is-danger {
  color: var(--danger);
}

.booking-detail-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.request-actions-menu-detail {
  justify-self: auto;
}

.booking-detail-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}

.booking-detail-header > div {
  display: grid;
  gap: 9px;
}

.booking-back-link {
  width: fit-content;
  color: var(--brand-strong);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.booking-warning {
  margin: 0;
  border-left: 4px solid oklch(0.68 0.14 75);
  background: oklch(0.95 0.04 80);
  padding: 14px 16px;
}

.booking-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 36px;
}

.booking-detail-section {
  min-width: 0;
  border-top: 3px solid var(--line);
  padding-top: 16px;
}

.booking-detail-section h2,
.booking-actions-section h2 {
  font-size: 1.25rem;
}

.booking-detail-wide {
  grid-column: 1 / -1;
}

.booking-detail-data {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
}

.booking-detail-data > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
}

.booking-detail-data dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.booking-detail-data dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.booking-detail-data a {
  color: var(--brand-strong);
  font-weight: 750;
}

.booking-preline {
  white-space: pre-line;
}

.booking-feature-price-list {
  display: grid;
  margin-top: 14px;
  border-block: 1px solid var(--line);
}

.booking-feature-price-list > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
}

.booking-feature-price-list > div:last-child {
  border-bottom: 0;
}

.booking-security-deposit-row {
  color: var(--brand-strong);
}

.booking-security-deposit-note {
  margin: 12px 0 0;
  border-left: 3px solid oklch(0.69 0.13 76);
  background: oklch(0.96 0.035 80);
  color: oklch(0.34 0.06 75);
  padding: 12px 14px;
  font-size: 0.86rem;
}

.booking-price-total {
  font-size: 1.08rem;
}

.booking-audit-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.booking-audit-list li {
  display: grid;
  gap: 3px;
  border-left: 2px solid var(--line);
  padding-left: 12px;
}

.booking-audit-list span {
  color: var(--muted);
  font-size: 0.74rem;
}

.booking-actions-section {
  display: grid;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.booking-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.booking-action-grid form {
  display: grid;
  align-content: start;
  gap: 13px;
  min-width: 0;
  background: var(--surface);
  padding: 18px;
}

.booking-action-grid h3 {
  font-size: 1rem;
}

.booking-action-grid button {
  justify-self: start;
}

.booking-list-heading {
  align-items: end;
}

.booking-list-heading .dashboard-intro {
  max-width: 680px;
  margin: 8px 0 0;
}

.booking-work-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.booking-work-summary a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  color: var(--ink);
  padding: 18px 20px;
  text-decoration: none;
}

.booking-work-summary a + a {
  border-left: 1px solid var(--line);
}

.booking-work-summary span {
  align-self: end;
  font-size: 0.84rem;
  font-weight: 850;
}

.booking-work-summary strong {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  font-size: 2rem;
  line-height: 1;
}

.booking-work-summary small {
  color: var(--muted);
  font-size: 0.75rem;
}

.booking-work-summary a:hover,
.booking-work-summary a:focus-visible {
  background: var(--surface-alt);
}

.booking-work-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.booking-work-filters a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.booking-work-filters a span {
  color: var(--muted);
  font-size: 0.74rem;
}

.booking-work-filters a[aria-current="page"] {
  border-color: var(--brand-strong);
  background: var(--brand-strong);
  color: #fff;
}

.booking-work-filters a[aria-current="page"] span {
  color: inherit;
}

.booking-advanced-filters,
.admin-disclosure {
  border-block: 1px solid var(--line);
}

.booking-advanced-filters > summary,
.admin-disclosure > summary {
  cursor: pointer;
  padding: 13px 0;
  font-size: 0.84rem;
  font-weight: 850;
}

.booking-advanced-filters .booking-admin-filters {
  border: 0;
  padding-top: 6px;
}

.booking-event-summary {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.booking-next-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  border-left: 4px solid oklch(0.69 0.13 76);
  background: var(--surface-alt);
  padding: 22px 24px;
}

.booking-next-step.status-review,
.booking-next-step.status-payment_review {
  border-left-color: oklch(0.58 0.13 240);
}

.booking-next-step.status-reserved,
.booking-next-step.status-confirmed {
  border-left-color: oklch(0.55 0.15 145);
}

.booking-next-step.status-rejected,
.booking-next-step.status-cancelled {
  border-left-color: var(--danger);
}

.booking-next-step h2,
.booking-next-step p {
  margin: 0;
}

.booking-next-step h2 {
  margin-top: 4px;
  font-size: 1.35rem;
}

.booking-next-step h2 + p {
  max-width: 720px;
  margin-top: 7px;
  color: var(--muted);
}

.booking-internal-note {
  display: grid;
  gap: 2px;
  margin-top: 14px !important;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.booking-next-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 470px;
}

.booking-next-actions .text-action.is-danger {
  color: var(--danger);
}

.booking-info-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 20px;
}

.booking-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.booking-section-heading h2,
.booking-section-heading p {
  margin: 0;
}

.booking-price-open,
.booking-feature-price-list strong.is-open {
  color: oklch(0.48 0.13 69);
}

.booking-price-open {
  border-left: 3px solid oklch(0.69 0.13 76);
  background: oklch(0.96 0.035 80);
  padding: 7px 10px;
  font-size: 0.76rem;
  font-weight: 850;
}

.booking-price-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
  background: var(--ink);
  color: var(--surface);
  padding: 16px 18px;
  font-size: 1rem;
  font-weight: 850;
}

.booking-price-total strong {
  font-size: 1.45rem;
}

.booking-history-section {
  max-width: 760px;
}

.booking-audit-list {
  position: relative;
  gap: 0;
}

.booking-audit-list::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 5px;
  width: 2px;
  background: var(--line);
  content: "";
}

.booking-audit-list li {
  position: relative;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 12px;
  border-left: 0;
  padding: 0 0 18px;
}

.booking-audit-list li:last-child {
  padding-bottom: 0;
}

.booking-audit-marker {
  z-index: 1;
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--brand-strong);
  box-shadow: 0 0 0 1px var(--brand-strong);
}

.booking-audit-list li > div {
  display: grid;
  gap: 3px;
}

.booking-technical-details .booking-detail-data {
  max-width: 760px;
  margin: 0;
  padding: 4px 0 18px;
}

.booking-action-dialog {
  width: min(620px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0;
  box-shadow: 0 24px 70px oklch(0.1 0.025 250 / 0.4);
}

.booking-action-dialog::backdrop {
  background: oklch(0.12 0.025 250 / 0.65);
}

.booking-action-dialog form {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.booking-action-dialog header,
.booking-action-dialog footer {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.booking-action-dialog header h2,
.booking-action-dialog header p,
.booking-action-dialog > form > p {
  margin: 0;
}

.booking-action-dialog header h2 {
  margin-top: 4px;
  font-size: 1.45rem;
}

.booking-action-dialog > form > p {
  color: var(--muted);
}

.booking-action-dialog label {
  display: grid;
  gap: 7px;
}

.booking-action-dialog label > span {
  font-size: 0.82rem;
  font-weight: 850;
}

.booking-action-dialog footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.booking-action-dialog.is-danger {
  border-top: 4px solid var(--danger);
}

.dialog-close {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---------- Speicherübersicht ---------- */
.storage-capacity-overview,
.storage-planning-section,
.storage-event-section {
  display: grid;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

.storage-capacity-overview {
  grid-template-columns: minmax(0, 1fr) auto;
  border-top: 4px solid oklch(0.55 0.15 145);
}

.storage-capacity-overview.level-warning {
  border-top-color: oklch(0.69 0.13 76);
}

.storage-capacity-overview.level-critical {
  border-top-color: var(--danger);
}

.storage-capacity-copy h2,
.storage-capacity-copy p,
.storage-planning-section h2,
.storage-planning-section p,
.storage-event-section h2,
.storage-event-section p {
  margin: 0;
}

.storage-capacity-copy h2 {
  margin-top: 5px;
  font-size: 1.55rem;
}

.storage-capacity-copy h2 + p {
  margin-top: 7px;
  color: var(--muted);
}

.storage-capacity-number {
  display: grid;
  align-content: center;
  justify-items: end;
}

.storage-capacity-number strong {
  font-size: 2.35rem;
  line-height: 1;
}

.storage-capacity-number span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.storage-progress {
  grid-column: 1 / -1;
  overflow: hidden;
  height: 12px;
  border-radius: 3px;
  background: var(--surface-alt);
}

.storage-progress span {
  display: block;
  width: var(--storage-used);
  height: 100%;
  background: var(--brand-strong);
}

.storage-capacity-overview.level-warning .storage-progress span {
  background: oklch(0.64 0.14 72);
}

.storage-capacity-overview.level-critical .storage-progress span {
  background: var(--danger);
}

.storage-core-metrics {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.storage-core-metrics > div {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
}

.storage-core-metrics > div + div {
  border-left: 1px solid var(--line);
}

.storage-core-metrics span,
.storage-scenarios span,
.storage-event-list small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.storage-core-metrics strong {
  font-size: 1.08rem;
}

.storage-planning-section .section-heading,
.storage-event-section .section-heading {
  max-width: 760px;
}

.storage-scenarios {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.storage-scenarios > div {
  display: grid;
  gap: 6px;
  background: var(--surface);
  padding: 18px;
}

.storage-scenarios strong {
  font-size: 1.12rem;
}

.storage-recommendation {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 14px;
  border-left: 4px solid oklch(0.69 0.13 76);
  background: var(--surface-alt);
  padding: 14px 16px;
}

.storage-recommendation span {
  color: var(--muted);
}

.storage-recommendation p {
  grid-column: 1 / -1;
  margin-top: 7px;
}

.storage-event-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.storage-event-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 13px 4px;
}

.storage-event-list > div > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.storage-event-list > div > strong {
  flex: none;
}

.storage-empty-note {
  color: var(--muted);
}

.storage-technical-details > .event-create-form,
.storage-config-disclosure > .event-create-form {
  margin: 0 0 18px;
}

.storage-level-ok {
  color: oklch(0.39 0.12 145);
}

.storage-level-warning {
  color: oklch(0.46 0.13 69);
}

.storage-level-critical {
  color: var(--danger);
}

.primary-action:disabled,
.secondary-action:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

@media (max-width: 880px) {
  .admin-shell {
    flex-direction: column;
  }

  .admin-sidebar {
    position: static;
    width: auto;
    min-width: 0;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-brand {
    padding: 6px 8px;
  }

  .admin-nav {
    flex: 1 1 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .admin-user {
    border-top: 0;
    padding-top: 0;
  }


  .event-card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-actions,
  .dashboard-actions form,
  .dashboard-actions button,
  .password-change-form > button {
    width: 100%;
  }

  .password-input-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .password-visibility {
    justify-self: start;
    min-height: 42px;
  }

  .booking-request-row {
    grid-template-columns: 66px minmax(0, 1fr);
  }

  .booking-request-state {
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    justify-items: start;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .booking-request-heading,
  .booking-detail-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .booking-detail-grid,
  .booking-action-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .booking-work-summary,
  .booking-next-step,
  .storage-capacity-overview {
    grid-template-columns: minmax(0, 1fr);
  }

  .booking-work-summary a + a {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .booking-next-actions {
    justify-content: flex-start;
    max-width: none;
  }

  .storage-capacity-number {
    justify-items: start;
  }

  .storage-core-metrics,
  .storage-scenarios {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .storage-core-metrics > div:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .storage-core-metrics > div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .booking-detail-wide {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .booking-admin-filters,
  .booking-admin-filters label,
  .booking-admin-filters select,
  .booking-admin-filters button,
  .booking-admin-filters .secondary-link {
    width: 100%;
  }

  .booking-request-row {
    grid-template-columns: 1fr;
  }

  .booking-request-row > time {
    grid-template-columns: auto auto;
    gap: 4px;
    justify-content: start;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 9px 14px;
  }

  .booking-request-state {
    grid-column: auto;
  }

  .booking-request-heading small {
    white-space: normal;
  }

  .booking-detail-data > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .booking-work-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-work-filters a {
    justify-content: space-between;
  }

  .booking-next-step,
  .booking-info-panel,
  .booking-action-dialog form {
    padding: 18px;
  }

  .booking-next-actions,
  .booking-next-actions form,
  .booking-next-actions .primary-action,
  .booking-next-actions .secondary-action {
    width: 100%;
  }

  .booking-next-actions .primary-action,
  .booking-next-actions .secondary-action {
    justify-content: center;
  }

  .booking-section-heading,
  .booking-action-dialog footer {
    align-items: stretch;
    flex-direction: column;
  }

  .booking-price-total {
    align-items: flex-start;
    flex-direction: column;
  }

  .booking-action-dialog footer button {
    width: 100%;
    justify-content: center;
  }

  .storage-core-metrics,
  .storage-scenarios {
    grid-template-columns: minmax(0, 1fr);
  }

  .storage-core-metrics > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .storage-recommendation {
    grid-template-columns: minmax(0, 1fr);
  }

  .storage-recommendation p {
    grid-column: auto;
  }

  .storage-event-list > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

/* ---------- Login / Landing-Seite ---------- */
.auth-wrap {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  min-height: 100vh;
  padding: 28px 20px;
}

.auth-card {
  width: min(420px, 100%);
  display: grid;
  gap: 18px;
  padding: clamp(28px, 5vw, 46px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  text-align: center;
}

.auth-card .auth-logo {
  width: min(248px, 72%);
  height: auto;
  margin: 0 auto 2px;
  display: block;
}

.auth-intro {
  display: grid;
  gap: 6px;
}

.auth-intro h1 {
  max-width: none;
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 6vw, 3.1rem);
  font-weight: 600;
  line-height: 1.04;
}

.auth-intro p {
  max-width: none;
  margin: 0 auto;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 10px;
  margin-top: 6px;
  text-align: left;
}

.auth-form label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 18px;
}

.auth-form input:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--brand) 20%, transparent);
}

.auth-form .primary-action {
  width: 100%;
  margin-top: 10px;
  border-radius: 999px;
}

.auth-form .error-text {
  margin-top: 2px;
}

.auth-foot {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

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

  .primary-action:active,
  .secondary-action:active,
  .secondary-link:active,
  .station-shutter:active,
  .bg-option:active {
    transform: none;
  }
}
.station-printer-heading {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.form-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.booking-lifecycle {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.booking-lifecycle li {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
}

.booking-lifecycle li > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-bottom: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
}

.booking-lifecycle strong,
.booking-lifecycle small {
  display: block;
  overflow-wrap: anywhere;
}

.booking-lifecycle small { margin-top: 3px; font-size: 0.75rem; }
.booking-lifecycle .is-done { border-color: #7f9b72; color: #46623d; background: #f2f7ef; }
.booking-lifecycle .is-current { border-color: var(--brand); color: var(--ink); background: #fff9ed; }

.booking-payment-delivery {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.account-setup-card form { display: grid; gap: 14px; width: 100%; }
.account-setup-card label { display: grid; gap: 6px; text-align: left; }

@media (max-width: 900px) {
  .booking-lifecycle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booking-lifecycle li:last-child { grid-column: 1 / -1; }
}

/* Compact administration views */
.event-time-filters,
.booking-type-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.event-time-filters a,
.booking-type-filters a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.event-time-filters a[aria-current="page"],
.booking-type-filters a[aria-current="page"] {
  border-color: var(--brand-strong);
  background: var(--brand-strong);
  color: #fff;
}

.booking-type-filters span { color: inherit; font-size: 0.74rem; }
.event-overview-list { display: grid; gap: 9px; }
.event-overview-row { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.event-overview-primary { display: grid; grid-template-columns: 76px minmax(230px, 1fr) auto auto; align-items: center; gap: 18px; min-height: 92px; padding: 12px 14px; }
.event-overview-date { display: grid; place-content: center; align-self: stretch; border-right: 1px solid var(--line); text-align: center; }
.event-overview-date strong { font-size: 1rem; }
.event-overview-date span { color: var(--muted); font-size: 0.72rem; font-weight: 750; }
.event-overview-title { min-width: 0; }
.event-overview-title h2 { margin: 5px 0 2px; font-size: 1.15rem; }
.event-overview-title p { margin: 0; color: var(--muted); font-size: 0.78rem; overflow-wrap: anywhere; }
.event-overview-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.event-time-status,
.event-active-status,
.user-role-badge,
.user-status-badge,
.request-kind-badge { border: 1px solid var(--line); border-radius: 999px; background: var(--surface-alt); padding: 3px 7px; font-size: 0.68rem; font-weight: 850; }
.event-time-status.is-today { border-color: #a87920; background: #fff4d8; color: #725017; }
.event-time-status.is-upcoming { border-color: #789976; background: #eff7ed; color: #365a35; }
.event-time-status.is-past { color: var(--muted); }
.event-active-status.is-inactive,
.user-status-badge.is-inactive { color: var(--muted); }
.event-overview-counts { display: flex; gap: 16px; color: var(--muted); font-size: 0.75rem; white-space: nowrap; }
.event-overview-counts span { display: grid; text-align: center; }
.event-overview-counts strong { color: var(--ink); font-size: 1rem; }
.event-overview-details { border-top: 1px solid var(--line); }
.event-overview-details > summary { cursor: pointer; padding: 10px 14px; font-size: 0.78rem; font-weight: 800; }
.event-overview-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 10px 18px 22px; }
.event-overview-detail-grid h3 { font-size: 1rem; }
.event-station-compact { display: grid; gap: 4px; border-top: 1px solid var(--line); padding: 10px 0; }
.event-station-compact > span { color: var(--muted); font-size: 0.72rem; }
.event-station-compact > div { display: flex; flex-wrap: wrap; gap: 12px; }
.event-station-compact a { color: var(--brand-strong); font-size: 0.76rem; font-weight: 800; }
.event-settings-disclosures { border-top: 1px solid var(--line); }
.event-settings-disclosures > details { border-bottom: 1px solid var(--line); padding: 0 18px; }
.event-settings-disclosures > details > summary { cursor: pointer; padding: 12px 0; font-size: 0.8rem; font-weight: 850; }
.event-settings-disclosures form { display: grid; gap: 12px; padding-bottom: 18px; }
.event-management-actions,
.user-row-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 16px; }
.event-create-dialog { width: min(960px, calc(100% - 28px)); }

.request-inbox-row.status-new,
.booking-status.status-new { border-color: oklch(0.69 0.13 76); }
.request-inbox-row.status-read,
.booking-status.status-read { border-color: oklch(0.58 0.13 240); }
.request-inbox-row.status-done,
.booking-status.status-done { border-color: oklch(0.55 0.15 145); }
.request-kind-badge { width: fit-content; margin-bottom: 2px; }
.request-kind-badge.is-contact { border-color: #8f7651; color: #674d27; }
.request-kind-badge.is-booking { border-color: #5f8068; color: #31563c; }
.request-message-preview { margin: 0; color: var(--muted); font-size: 0.8rem; }
.contact-message { line-height: 1.7; }

.user-list-filters { display: grid; grid-template-columns: minmax(220px, 1fr) 180px 160px auto auto; align-items: end; gap: 9px; border-block: 1px solid var(--line); padding: 14px 0; }
.user-list-filters label { display: grid; gap: 5px; }
.user-list-filters label > span { color: var(--muted); font-size: 0.72rem; font-weight: 850; }
.user-compact-list { display: grid; gap: 8px; }
.user-compact-row { display: grid; grid-template-columns: 44px minmax(210px, 1fr) auto auto minmax(100px, auto) auto; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 10px 12px; }
.user-compact-identity { display: grid; min-width: 0; }
.user-compact-identity span,
.user-event-summary { color: var(--muted); font-size: 0.75rem; overflow-wrap: anywhere; }
.user-role-badge.is-super_admin { border-color: #9d7c37; background: #fff8e9; }
.user-status-badge.is-active { border-color: #76916f; color: #3d6539; }
.user-row-details { position: relative; }
.user-row-details > summary { cursor: pointer; color: var(--brand-strong); font-size: 0.78rem; font-weight: 850; }
.user-row-detail-content { grid-column: 1 / -1; display: grid; gap: 16px; margin-top: 12px; border-top: 1px solid var(--line); padding: 16px 0 6px; }
.user-row-details[open] { grid-column: 1 / -1; }
.user-row-details[open] > summary { justify-self: end; }
.user-create-dialog { width: min(820px, calc(100% - 28px)); }

@media (max-width: 900px) {
  .event-overview-primary { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .event-overview-counts { display: none; }
  .event-overview-detail-grid { grid-template-columns: 1fr; }
  .user-list-filters { grid-template-columns: 1fr 1fr; }
  .user-compact-row { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .user-status-badge, .user-event-summary { justify-self: start; }
}

@media (max-width: 620px) {
  .event-overview-primary { grid-template-columns: 52px minmax(0, 1fr); gap: 10px; }
  .event-overview-primary > .primary-action { grid-column: 1 / -1; width: 100%; }
  .event-overview-date { padding-right: 8px; }
  .booking-type-filters, .event-time-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booking-type-filters a, .event-time-filters a { justify-content: center; }
  .user-list-filters { grid-template-columns: 1fr; }
  .user-compact-row { grid-template-columns: 40px minmax(0, 1fr); }
  .user-role-badge, .user-status-badge, .user-event-summary { grid-column: 2; justify-self: start; }
  .user-row-details { grid-column: 1 / -1; justify-self: stretch; }
  .booking-request-heading { display: grid; }
}
