/* Termin: gleiche Handschrift wie thaeersukay.de. Creme, Tinte, Grün, scharfe Kanten. */
@font-face { font-family: "Cabinet"; src: url("/static/fonts/cabinet-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Cabinet"; src: url("/static/fonts/cabinet-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plex"; src: url("/static/fonts/plex-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url("/static/fonts/plex-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex"; src: url("/static/fonts/plex-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "PlexAr"; src: url("/static/fonts/plexar-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "PlexAr"; src: url("/static/fonts/plexar-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "PlexAr"; src: url("/static/fonts/plexar-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Alexandria"; src: url("/static/fonts/alexandria-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --cream: #F3F0E8;
  --paper: #FFFEFA;
  --ink: #15201D;
  --muted: #5B6662;
  --line: #D9D4C7;
  --green: #12654A;
  --green-deep: #0C4A37;
  --mint: #D5EBDD;
  --danger: #A3321F;
  --font-display: "Cabinet", "Alexandria", system-ui, sans-serif;
  --font-body: "Plex", "PlexAr", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
[dir="rtl"] { --font-display: "Alexandria", "Cabinet", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--cream); color: var(--ink); font: 400 1rem/1.55 var(--font-body);
  padding-inline: var(--gutter); padding-block-end: env(safe-area-inset-bottom);
}
body::before { /* feines Korn: Papier statt Bildschirmfläche */
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .5; z-index: -1;
  background-image: radial-gradient(rgba(21,32,29,.07) 1px, transparent 1px); background-size: 4px 4px;
}
a { color: var(--green); text-underline-offset: 3px; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
[hidden] { display: none !important; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: var(--gutter); top: 8px; background: var(--ink); color: var(--cream); padding: 8px 12px; z-index: 10; }

/* Kopf */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; max-width: 1120px; width: 100%; margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font: 700 1.05rem var(--font-display); }
.mark { display: grid; place-items: center; inline-size: 38px; block-size: 38px; background: var(--ink); color: var(--cream); font: 900 .95rem var(--font-display); letter-spacing: .02em; }
.lang { display: inline-flex; border: 1px solid var(--ink); background: var(--paper); }
.lang button { border: 0; background: transparent; padding: 7px 12px; min-block-size: 38px; font-weight: 600; font-size: .85rem; }
.lang button + button { border-inline-start: 1px solid var(--ink); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }

main:focus, main:focus-visible { outline: none; }
main { max-width: 1120px; width: 100%; margin-inline: auto; flex: 1; padding-block: clamp(8px, 3vw, 32px) 56px; outline: none; }
main > section { animation: rise .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.eyebrow { margin: 0 0 14px; font: 600 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: .9rem; }
.eyebrow.ok::before { content: "✓ "; }
.display { margin: 0 0 16px; font: 900 clamp(2.4rem, 8vw, 5.2rem)/.98 var(--font-display); letter-spacing: -.02em; max-width: 14ch; text-wrap: balance; }
.display.small { font-size: clamp(1.5rem, 2.6vw, 1.95rem); max-width: none; letter-spacing: -.01em; overflow-wrap: anywhere; hyphens: auto; }
[dir="rtl"] .display { line-height: 1.25; letter-spacing: 0; }
.lede { margin: 0 0 12px; max-width: 52ch; color: var(--muted); font-size: 1.1rem; }

/* Startseite */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.hero .display { max-width: 11ch; }
.host { display: flex; align-items: center; gap: 14px; margin: 28px 0 18px; padding-block: 18px; border-block: 1px solid var(--line); max-width: 420px; }
.mark.big { inline-size: 52px; block-size: 52px; font-size: 1.15rem; flex: none; }
.host-name { margin: 0; font: 900 1.15rem/1.2 var(--font-display); }
.host-role { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-weight: 500; }
.perks li { display: flex; align-items: center; gap: 12px; }
.perks li::before { content: ""; inline-size: 18px; block-size: 18px; flex: none; background: var(--green);
  clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 37% 72%); }
.types { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.types li { display: grid; }
.type { display: grid; gap: 12px; align-content: start; padding: clamp(22px, 3vw, 32px); background: var(--paper); border: 1px solid var(--ink); text-decoration: none; color: var(--ink);
  box-shadow: 6px 6px 0 var(--ink); transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s; }
.type:hover, .type:focus-visible { transform: translate(-4px, -4px); box-shadow: 10px 10px 0 var(--green); background: #fff; }
.type-head { display: flex; align-items: center; gap: 10px; }
.num { font: 900 .95rem var(--font-display); color: var(--green); margin-inline-end: auto; letter-spacing: .06em; }
.pill { padding: 4px 11px; border: 1px solid var(--ink); font-size: .8rem; font-weight: 600; }
.pill.soft { border-color: var(--line); color: var(--muted); }
.type h2 { margin: 6px 0 0; font: 900 clamp(1.6rem, 3vw, 2.1rem)/1.05 var(--font-display); letter-spacing: -.01em; }
.type-desc { margin: 0; color: var(--muted); }
.next { margin: 4px 0 0; padding: 10px 14px; background: var(--mint); font-weight: 600; font-size: .92rem; border-inline-start: 3px solid var(--green); }
.next.empty { background: var(--cream); border-color: var(--line); color: var(--muted); }
.type-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; font-weight: 600; color: var(--green); }
.type .arrow { font-size: 1.5rem; transition: transform .25s var(--ease); }
.type:hover .arrow { transform: translateX(8px); }
[dir="rtl"] .type .arrow { transform: scaleX(-1); }
[dir="rtl"] .type:hover .arrow { transform: scaleX(-1) translateX(8px); }

/* Startseite ohne Scrollen: Größen folgen der Fensterhöhe */
body.list-view { height: 100dvh; overflow: hidden; }
body.list-view .top { padding-block: clamp(10px, 2.2vh, 20px); }
body.list-view main { display: flex; align-items: center; padding-block: 0; min-block-size: 0; }
body.list-view main > section { inline-size: 100%; }
body.list-view .foot { padding-block: clamp(8px, 1.6vh, 18px); margin: 0 auto; }
body.list-view .eyebrow { margin-bottom: clamp(6px, 1.4vh, 14px); }
body.list-view .display { font-size: clamp(2rem, 9.5vh, 4.6rem); margin-bottom: clamp(8px, 1.6vh, 16px); }
body.list-view .lede { font-size: clamp(.95rem, 2.2vh, 1.1rem); }
body.list-view .host { margin: clamp(10px, 2.4vh, 28px) 0 clamp(8px, 1.8vh, 18px); padding-block: clamp(8px, 1.8vh, 18px); }
body.list-view .perks { gap: clamp(4px, 1.2vh, 10px); }
body.list-view .types { gap: clamp(10px, 2vh, 18px); }
body.list-view .type { gap: clamp(6px, 1.3vh, 12px); padding: clamp(14px, 2.6vh, 32px) clamp(16px, 2.6vw, 32px); }
body.list-view .type h2 { font-size: clamp(1.35rem, 4.2vh, 2.1rem); margin: 0; }
body.list-view .next { margin: 0; padding: clamp(6px, 1.2vh, 10px) 14px; }
body.list-view .type-foot { margin-top: 0; }
@media (max-height: 700px) { body.list-view .type-desc { display: none; } }
@media (max-height: 560px) { body.list-view .perks { display: none; } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  body.list-view main { align-items: flex-start; padding-block: 4px; }
  body.list-view .perks, body.list-view .host { display: none; }
  body.list-view .display { font-size: clamp(2rem, 6.2vh, 3rem); max-width: none; }
  body.list-view .lede { margin-bottom: 4px; }
  body.list-view .types { margin-top: 12px; }
}
@media (max-width: 900px) {
  body.list-view .type-desc { display: none; }
  body.list-view .type h2 { font-size: clamp(1.25rem, 3.4vh, 1.6rem); }
  body.list-view .type { gap: clamp(6px, 1.1vh, 10px); padding: clamp(14px, 2.2vh, 20px); }
  body.list-view .display { font-size: clamp(1.9rem, 5.2vh, 2.6rem); }
}

/* Buchungsblatt */
.back { display: inline-block; margin-bottom: 18px; font-weight: 600; text-decoration: none; }
.sheet { display: grid; grid-template-columns: minmax(240px, 300px) 1fr; background: var(--paper); border: 1px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.info { padding: clamp(20px, 3vw, 32px); border-inline-end: 1px solid var(--ink); background: var(--cream); }
.facts { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 10px; font-weight: 500; }
.facts li { display: flex; gap: 12px; align-items: baseline; }
.ico { color: var(--green); inline-size: 1.2em; text-align: center; }
.desc { color: var(--muted); margin: 0; }

.picker { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.cal { padding: clamp(18px, 3vw, 32px); border-inline-end: 1px solid var(--line); }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.month { margin: 0; font: 900 1.4rem var(--font-display); text-transform: capitalize; }
.nav { display: flex; gap: 6px; }
.nav button { inline-size: 44px; block-size: 44px; border: 1px solid var(--ink); background: var(--paper); font-size: 1.3rem; line-height: 1; transition: background .15s, color .15s; }
.nav button:hover:not(:disabled) { background: var(--ink); color: var(--cream); }
.nav button:disabled { opacity: .3; cursor: default; }
[dir="rtl"] .nav button { transform: scaleX(-1); }
.dow, .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dow span { text-align: center; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-block: 6px; }
.day { aspect-ratio: 1; min-block-size: 40px; display: grid; place-items: center; border: 1px solid transparent; background: transparent; font-weight: 500; position: relative; }
.day:disabled { color: #A9A89F; cursor: default; }
.day.free { background: var(--mint); font-weight: 600; transition: transform .2s var(--ease); }
.day.free:hover { transform: scale(1.08); }
.day.today::after { content: ""; position: absolute; inset-inline: 30%; bottom: 6px; block-size: 2px; background: currentColor; }
.day[aria-pressed="true"] { background: var(--green); color: #fff; border-color: var(--green-deep); }
.day.blank { visibility: hidden; }

.times { padding: clamp(18px, 3vw, 32px); display: flex; flex-direction: column; min-inline-size: 0; }
.times-title { margin: 0 0 14px; font: 700 1rem var(--font-body); color: var(--muted); }
.slots { display: grid; gap: 8px; align-content: start; max-block-size: 420px; overflow-y: auto; padding-inline-end: 4px; overscroll-behavior: contain; }
.slot { padding: 12px 16px; min-block-size: 48px; border: 1px solid var(--green); background: var(--paper); color: var(--green); font-weight: 600; text-align: center;
  transition: background .15s, color .15s, transform .2s var(--ease); }
.slot:hover { background: var(--green); color: #fff; transform: translateX(4px); }
[dir="rtl"] .slot:hover { transform: translateX(-4px); }
.none { color: var(--muted); }

/* Formular */
.form { grid-column: 2; padding: clamp(20px, 3vw, 36px); display: grid; gap: 16px; align-content: start; max-inline-size: 560px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form input, .form textarea { padding: 13px 14px; min-block-size: 48px; border: 1px solid var(--ink); background: var(--paper); border-radius: 0; font-size: 1rem; font-weight: 400; inline-size: 100%; }
.form textarea { resize: vertical; }
.chosen { margin: 0; padding: 14px 16px; background: var(--mint); font-weight: 600; border-inline-start: 4px solid var(--green); }
.trap { position: absolute; inset-inline-start: -9999px; inline-size: 1px; block-size: 1px; opacity: 0; }
.link { justify-self: start; background: none; border: 0; padding: 4px 0; color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cta { padding: 16px 24px; min-block-size: 52px; border: 1px solid var(--ink); background: var(--ink); color: var(--cream); font-weight: 600; font-size: 1.05rem; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .15s; }
.cta:hover:not(:disabled) { background: var(--green); transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--ink); }
.cta:disabled { opacity: .6; cursor: progress; }
.error { margin: 0; padding: 12px 14px; border: 1px solid var(--danger); color: var(--danger); background: #FBEDE9; font-weight: 500; }

/* Fertig */
.done { max-inline-size: 720px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; min-block-size: 50px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 600; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--ink); }
.btn.primary { background: var(--green); border-color: var(--green-deep); color: #fff; }
.btn.danger { color: var(--danger); border-color: var(--danger); }

.foot { max-width: 1120px; width: 100%; margin-inline: auto; padding-block: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }
.foot a { color: var(--muted); }

/* Schmal: alles untereinander, Zeiten direkt unter dem Kalender */
@media (max-width: 900px) {
  .sheet { grid-template-columns: 1fr; box-shadow: 5px 5px 0 var(--ink); }
  .info { border-inline-end: 0; border-block-end: 1px solid var(--ink); }
  .picker { grid-template-columns: 1fr; }
  .cal { border-inline-end: 0; border-block-end: 1px solid var(--line); }
  .slots { max-block-size: none; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .form { grid-column: 1; max-inline-size: none; }
}
@media (max-width: 480px) {
  .top { padding-block: 14px; }
  .brand-name { display: none; }
  .types { margin-top: 28px; }
  .type { padding: 20px; }
  .actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Titel immer in einer Zeile */
body.list-view .display { max-width: none; white-space: nowrap; text-wrap: nowrap; font-size: clamp(1.9rem, min(5.2vw, 8vh), 4rem); }
@media (max-width: 900px) { body.list-view .display { font-size: clamp(1.7rem, 8.2vw, 2.8rem); } }

/* Auswahl: Zoom oder vor Ort */
.choice { border: 0; margin: 0 0 4px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice legend { padding: 0; margin-block-end: 8px; font-weight: 600; font-size: .92rem; }
.opt { position: relative; display: grid !important; gap: 4px !important; align-content: start; padding: 14px 16px; border: 1px solid var(--ink); background: var(--paper); cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; inline-size: 100%; min-block-size: 0; cursor: pointer; }
.opt-title { font-weight: 700; font-size: .98rem; }
.opt-sub { font-weight: 400; font-size: .84rem; color: var(--muted, #5a655f); line-height: 1.35; }
.opt:has(input:checked) { background: var(--ink); color: var(--cream); box-shadow: 4px 4px 0 var(--green); }
.opt:has(input:checked) .opt-sub { color: inherit; opacity: .8; }
.opt:has(input:focus-visible) { outline: 3px solid var(--green); outline-offset: 2px; }
@media (max-width: 560px) { .choice { grid-template-columns: 1fr; } }

.owner-note { margin: 0 0 12px; padding: 10px 12px; background: var(--mint, #D5EADC); border-left: 4px solid #12654A; font-size: .92rem; }
#owner-box select { width: 100%; }
