/* Buchkarte – Buch-Darstellung. Farben und Schriften kommen als CSS-Variablen aus dem Theme (book.php). */
:root {
  --gold: #d9b96a; --gold-hi: #f8e5a6; --gold-lo: #8f6b25; --gold-deep: #a3742f;
  --head: #5c3d1f; --ink: #3b2a17; --ink-soft: #6f5837;
  --cover-1: #5a3922; --cover-2: #24140c; --ep-1: #5e212a; --ep-2: #37111a;
  --table-1: #2a1a10; --table-2: #0f0805;
  --paper: linear-gradient(160deg, #f4e9d5 0%, #ecdcb8 45%, #e3cf9f 100%);
  --font-h: 'Playfair Display', Georgia, serif;
  --font-b: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --fscale: 1; --dur: 950ms;
  --pw: 410px; --ph: 566px;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body {
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,0) 0 90px, rgba(0,0,0,.22) 90px 92px, rgba(255,255,255,.015) 92px 94px),
    radial-gradient(ellipse at 50% 40%, var(--table-1) 0%, var(--table-2) 100%);
  background-color: #120b07;
  font-family: var(--font-b);
  display: flex; flex-direction: column;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Bühne ---------- */
.stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; touch-action: none; cursor: pointer; }
.shift { position: relative; width: calc(var(--pw) * 2); height: var(--ph); flex: none; transition: transform var(--dur) cubic-bezier(.45,.05,.25,1); }
.book { position: absolute; inset: 0; perspective: calc(var(--pw) * 4.5); }
.book-shadow { position: absolute; left: 6%; right: 6%; bottom: -5%; height: 7%; background: radial-gradient(ellipse at center, rgba(0,0,0,.65), transparent 70%); filter: blur(6px); pointer-events: none; }
.board {
  position: absolute; top: -.7%; bottom: -.7%; width: calc(var(--pw) + 9px);
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    linear-gradient(135deg, var(--cover-1), var(--cover-2));
  box-shadow: inset 0 0 40px rgba(0,0,0,.6), 0 18px 40px rgba(0,0,0,.55);
  z-index: 0; font-size: calc(var(--pw) / 24);
}
.board.right { left: 50%; border-radius: 0 .9em .9em 0; }
.board.left { left: calc(50% - var(--pw) - 9px); border-radius: .9em 0 0 .9em; opacity: 0; transition: opacity .4s ease .25s; }
.board.left.on { opacity: 1; }
.gutter {
  position: absolute; left: calc(50% - 1.6em); width: 3.2em; top: 0; height: 100%;
  background: linear-gradient(to right, transparent, rgba(40,20,5,.26) 45%, rgba(40,20,5,.34) 50%, rgba(40,20,5,.26) 55%, transparent);
  pointer-events: none; opacity: 0; transition: opacity .5s ease; z-index: 100; font-size: calc(var(--pw) / 24);
}
.gutter.on { opacity: 1; }

/* ---------- Blätter ---------- */
.leaf { position: absolute; top: 0; left: 50%; width: var(--pw); height: var(--ph); transform-origin: left center; transform-style: preserve-3d; transition: transform var(--dur) cubic-bezier(.5,.05,.2,1); }
.face { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; font-size: calc(var(--pw) / 24 * var(--fscale)); color: var(--ink); }
.face.back { transform: rotateY(180deg); }
.face.front { border-radius: 0 .5em .5em 0; }
.face.back { border-radius: .5em 0 0 .5em; }
.face::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.face.front::after { background: linear-gradient(to right, rgba(0,0,0,.5), rgba(0,0,0,0) 70%); }
.face.back::after { background: linear-gradient(to left, rgba(0,0,0,.5), rgba(0,0,0,0) 70%); }
.leaf.turning .face::after { animation: shade var(--dur) ease-in-out; }
@keyframes shade { 0%, 100% { opacity: 0; } 50% { opacity: .55; } }
.paper-face.front { background: linear-gradient(to right, rgba(70,40,10,.32) 0, rgba(70,40,10,0) 9%), var(--paper); }
.paper-face.back { background: linear-gradient(to left, rgba(70,40,10,.32) 0, rgba(70,40,10,0) 9%), var(--paper); }
.pg { position: absolute; inset: 0; padding: 2.3em 2em 2.6em 2em; }
.pg::before { content: ""; position: absolute; inset: .8em; border: 1px solid rgba(120,90,45,.35); pointer-events: none; }
.pn { position: absolute; bottom: 1.3em; left: 0; right: 0; text-align: center; font-family: var(--font-h); font-size: .72em; color: var(--gold-deep); }

/* ---------- Einband ---------- */
.cover-face {
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.07), transparent 60%),
    linear-gradient(135deg, var(--cover-1) 0%, var(--cover-2) 100%);
  box-shadow: inset 0 0 70px rgba(0,0,0,.55), inset 0 0 0 2px rgba(255,255,255,.08);
}
.cover-face::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1.4em; background: linear-gradient(90deg, rgba(0,0,0,.6), transparent); }
.cv { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 2em; }
.cv-frame { position: absolute; inset: 1.3em; border: .09em solid var(--gold); opacity: .6; }
.cv-frame::after { content: ""; position: absolute; inset: .45em; border: .05em solid var(--gold); opacity: .6; }
.gold { background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 48%, var(--gold-lo) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 .06em 0 rgba(0,0,0,.55)); }
.cv-emblem { font-size: 2.2em; margin-bottom: .5em; }
.cv-logo { max-width: 55%; max-height: 7em; margin-bottom: 1em; object-fit: contain; filter: drop-shadow(0 .1em .2em rgba(0,0,0,.5)); }
.cv h1 { font-family: var(--font-h); font-weight: 900; font-size: 3.5em; line-height: 1; margin: 0; letter-spacing: .02em; overflow-wrap: anywhere; }
.cv h1.long { font-size: 2.5em; }
.cv-rule { width: 6em; height: .08em; background: var(--gold); margin: 1.2em 0; opacity: .8; }
.cv-sub { font-style: italic; font-size: 1.25em; letter-spacing: .14em; }
.cv-hint { position: absolute; bottom: 2.6em; font-size: .95em; font-style: italic; color: var(--gold); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

.endpaper {
  background:
    radial-gradient(circle at 22% 28%, rgba(255,255,255,.12) 0 9%, transparent 10%),
    radial-gradient(circle at 74% 64%, rgba(255,255,255,.08) 0 13%, transparent 14%),
    radial-gradient(circle at 40% 82%, rgba(255,255,255,.07) 0 7%, transparent 8%),
    repeating-radial-gradient(circle at 40% 50%, rgba(0,0,0,.2) 0 .3em, transparent .3em .85em),
    linear-gradient(160deg, var(--ep-1), var(--ep-2));
}
.endpaper::before { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 2em; background: linear-gradient(to left, rgba(0,0,0,.45), transparent); }
.ep-card { position: absolute; left: 12%; right: 12%; top: 50%; transform: translateY(-50%); padding: 2em 1.4em; background: rgba(0,0,0,.35); border: .08em solid var(--gold); text-align: center; }
.ep-card p { margin: 0; font-style: italic; font-size: 1.35em; line-height: 1.4; color: var(--gold-hi); }
.ep-card span { display: block; margin-top: 1em; color: var(--gold); font-size: 1.4em; }

/* ---------- Seiteninhalt ---------- */
.kicker { display: block; font-style: italic; font-size: 1.02em; color: var(--gold-deep); margin-bottom: .2em; }
.pg h2 { font-family: var(--font-h); font-weight: 700; font-size: 1.95em; line-height: 1.15; color: var(--head); margin: 0; overflow-wrap: anywhere; }
.sub { font-style: italic; font-size: 1.1em; color: var(--ink-soft); margin: .25em 0 0; }
.rule { width: 3.4em; height: .07em; background: var(--gold-deep); margin: .9em 0 1em; }
.pg p { margin: 0 0 .7em; font-size: 1.08em; line-height: 1.5; font-weight: 500; }
.pg p.sub { margin: .25em 0 0; }
.dropcap::first-letter { font-family: var(--font-h); font-weight: 900; float: left; font-size: 3.3em; line-height: .82; padding: .06em .1em 0 0; color: var(--head); }
.tags { display: flex; flex-wrap: wrap; gap: .5em; margin-top: 1em; }
.tag { font-size: .88em; border: .07em solid var(--gold-deep); color: var(--head); padding: .22em .9em; border-radius: 2em; font-weight: 600; }

.toc { list-style: none; margin: 1.2em 0 0; padding: 0; }
.toc li { display: flex; align-items: baseline; gap: .6em; padding: .7em 0; font-size: 1.12em; font-weight: 600; }
.toc.compact li { padding: .38em 0; font-size: 1.02em; }
.toc [data-go] { cursor: pointer; }
.toc .t[data-go] { border-bottom: .06em solid transparent; }
.toc .t[data-go]:hover { color: var(--gold-deep); border-bottom-color: var(--gold-deep); }
.toc .r { font-family: var(--font-h); color: var(--gold-deep); width: 2.4em; font-size: .9em; flex: none; }
.toc .dots { flex: 1; border-bottom: .09em dotted rgba(120,90,45,.55); transform: translateY(-.25em); }
.toc .p { font-family: var(--font-h); font-size: .85em; color: var(--ink-soft); }
.toc-hint { margin-top: 1em; font-style: italic; font-size: .95em; color: var(--ink-soft); }

.timeline { list-style: none; margin: .4em 0 0; padding: 0 0 0 1.2em; border-left: .08em solid var(--gold-deep); }
.timeline li { position: relative; margin-bottom: 1.05em; font-size: 1.05em; line-height: 1.42; font-weight: 500; }
.timeline li::before { content: ""; position: absolute; left: -1.62em; top: .42em; width: .7em; height: .7em; border-radius: 50%; background: var(--gold-deep); box-shadow: 0 0 0 .18em #efe2c2; }
.timeline b { display: block; font-family: var(--font-h); font-weight: 700; color: var(--head); font-size: 1.02em; }

.mi { display: flex; justify-content: space-between; gap: .8em; align-items: baseline; padding: .55em 0; border-bottom: .07em dotted rgba(120,90,45,.45); }
.mi .nm { font-weight: 700; font-size: 1.12em; display: block; }
.mi .ds { display: block; font-style: italic; font-size: .98em; color: var(--ink-soft); line-height: 1.3; margin-top: .05em; font-weight: 500; }
.mi .pr { font-family: var(--font-h); color: var(--gold-deep); font-size: .98em; white-space: nowrap; }
.callout { margin-top: 1.1em; padding: .9em 1.1em; border: .08em solid var(--gold-deep); text-align: center; background: rgba(163,116,47,.08); }
.callout b { display: block; font-family: var(--font-h); font-size: 1.05em; color: var(--head); }
.callout span { font-style: italic; font-size: 1em; color: var(--ink-soft); font-weight: 500; }

.ingr { columns: 2; column-gap: 1.4em; margin: .4em 0 0; padding: 0; list-style: none; }
.ingr li { break-inside: avoid; padding: .3em 0; font-size: 1.02em; font-weight: 500; line-height: 1.25; border-bottom: .07em dotted rgba(120,90,45,.4); }
.steps { list-style: none; margin: .3em 0 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 .75em 2em; font-size: .98em; line-height: 1.38; font-weight: 500; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -.1em; font-family: var(--font-h); font-size: 1.5em; color: var(--gold-deep); }
.tip { margin-top: .4em; font-style: italic; color: var(--ink-soft); font-size: 1.02em; border-top: .07em solid rgba(120,90,45,.4); padding-top: .6em; font-weight: 500; }

.hours { width: 100%; border-collapse: collapse; margin-top: .3em; font-size: 1.06em; }
.hours td { padding: .5em 0; border-bottom: .07em dotted rgba(120,90,45,.45); font-weight: 500; }
.hours td:last-child { text-align: right; font-family: var(--font-h); font-size: .92em; color: var(--ink-soft); }
.stamp { display: inline-block; margin-top: 1.3em; padding: .55em 1.2em; border: .1em solid #8c3a2a; color: #8c3a2a; font-family: var(--font-h); font-weight: 700; transform: rotate(-3deg); border-radius: .3em; font-size: 1.02em; }
.contact p { margin: 0 0 .9em; }
.contact b { font-family: var(--font-h); color: var(--head); display: block; font-size: 1.02em; }
.blank { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.4em; color: var(--gold-deep); opacity: .5; }
.end { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2em; }
.end .orn { font-size: 2.2em; color: var(--gold-deep); }
.end h2 { margin: .2em 0 .3em; }
.end button { margin-top: 1.4em; font-family: inherit; font-size: 1.05em; font-weight: 700; color: var(--head); background: transparent; border: .09em solid var(--gold-deep); padding: .55em 1.4em; border-radius: 2em; cursor: pointer; }
.credit { position: absolute; bottom: 2.2em; left: 0; right: 0; text-align: center; font-size: .85em; font-style: italic; color: var(--ink-soft); }

/* ---------- Fotos im Album ---------- */
.photos-l, .photos-r { display: grid; gap: 1.1em; margin-top: .3em; }
.photos-l { grid-template-columns: 1fr; }
.photos-r { grid-template-columns: 1fr 1fr; }
.photo { position: relative; padding: .4em; background: #1c130a; box-shadow: 0 .5em .9em rgba(0,0,0,.45), inset 0 0 0 1px rgba(217,185,106,.3); transform: rotate(var(--r, 0deg)); }
.photos-l .photo { height: 8.8em; }
.photos-r .photo { height: 7.2em; }
.photo svg, .photo img { display: block; width: 100%; height: 100%; object-fit: cover; filter: sepia(.15) contrast(1.05); }
.clip { position: absolute; width: 1.1em; height: 1.1em; background: linear-gradient(135deg, #e7c978, #a3742f); box-shadow: 0 .1em .2em rgba(0,0,0,.5); z-index: 1; }
.clip.tl { top: -.3em; left: -.3em; clip-path: polygon(0 0, 100% 0, 0 100%); }
.clip.br { bottom: -.3em; right: -.3em; clip-path: polygon(100% 100%, 100% 0, 0 100%); }
.cap { text-align: center; font-style: italic; font-size: .98em; color: var(--ink-soft); margin-top: .9em; font-weight: 500; }

/* ---------- Formulare im Buch (Reservierung, Gutschein) ---------- */
.bk-form { display: grid; gap: .55em; margin-top: .3em; position: relative; }
.bk-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: .55em; }
.bk-form input, .bk-form select { width: 100%; font-family: inherit; font-size: max(16px, 1em); font-weight: 600; padding: .35em .6em; border: .07em solid var(--gold-deep); background: rgba(255,255,255,.55); color: var(--ink); border-radius: .3em; -webkit-user-select: text; user-select: text; }
.bk-form input:focus, .bk-form select:focus { outline: .12em solid var(--gold-deep); outline-offset: .05em; }
.bk-form button { font-family: inherit; font-size: 1.05em; font-weight: 700; color: #fff; background: var(--gold-deep); border: 0; padding: .6em 1em; border-radius: 2em; cursor: pointer; }
.bk-form button:disabled { opacity: .6; cursor: default; }
.bk-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.bk-msg { min-height: 1.3em; font-style: italic; font-size: 1em; color: var(--head); font-weight: 600; }
.vcode { display: block; margin-top: .3em; font-family: var(--font-h); font-style: normal; font-size: 1.25em; letter-spacing: .08em; color: var(--head); border: .08em dashed var(--gold-deep); padding: .3em .6em; text-align: center; -webkit-user-select: text; user-select: text; }
.chips { display: flex; flex-wrap: wrap; gap: .5em; }
.chips label { cursor: pointer; position: relative; }
.chips input { position: absolute; opacity: 0; width: 0; height: 0; }
.chips span { display: inline-block; padding: .3em 1em; border: .08em solid var(--gold-deep); border-radius: 2em; font-weight: 700; color: var(--head); }
.chips input:checked + span { background: var(--gold-deep); color: #fff; }
.chips input:focus-visible + span { outline: .12em solid var(--gold-deep); outline-offset: .1em; }

/* ---------- Bedienleiste ---------- */
.ui { flex: none; height: 64px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 14px 6px; }
.ui button { font-family: var(--font-h); font-size: 14px; color: var(--gold); background: rgba(40,24,14,.75); border: 1px solid rgba(217,185,106,.45); border-radius: 24px; height: 40px; min-width: 40px; padding: 0 16px; cursor: pointer; }
.ui button:hover { background: rgba(70,44,24,.9); }
.ui button:focus-visible, .end button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ui .arrow { font-size: 22px; line-height: 1; padding: 0 14px; }
.ui button:disabled { opacity: .3; cursor: default; }
.label { text-align: center; color: var(--gold); min-width: 130px; }
.label b { display: block; font-family: var(--font-h); font-weight: 600; font-size: 14px; }
.label small { display: block; font-style: italic; font-size: 13px; color: #b39a66; margin-top: 1px; }
@media (max-width: 480px) { .label { min-width: 96px; } .ui { gap: 8px; } }
@media (prefers-reduced-motion: reduce) { .leaf, .shift { transition-duration: .01s; } .leaf.turning .face::after, .cv-hint { animation: none; } }

/* ---------- Ergänzungen der Live-Version ---------- */
body.instant .leaf, body.instant .shift, body.instant .board, body.instant .gutter { transition: none !important; }
.pg .txt p, .pg .legal p { overflow-wrap: anywhere; }
.pg .legal p { font-size: .94em; line-height: 1.4; margin-bottom: .7em; }
.pg .intro { margin-bottom: .6em; }
.grp { font-family: var(--font-h); font-weight: 700; font-size: 1.15em; color: var(--head); margin: .9em 0 .1em; padding-top: .3em; border-top: .07em solid rgba(120,90,45,.4); }
.bd { font-style: italic; font-weight: 600; font-size: .68em; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-deep); border: .07em solid var(--gold-deep); border-radius: 1em; padding: 0 .55em; margin-left: .35em; white-space: nowrap; vertical-align: .12em; }
.bd-empfehlung, .bd-neu { background: var(--gold-deep); color: #fff; }
.lnk { text-decoration: underline; cursor: pointer; color: var(--head); }
.lnk:focus-visible { outline: .12em solid var(--gold-deep); }
.consent { display: flex; gap: .5em; align-items: flex-start; font-size: .82em; line-height: 1.3; font-weight: 600; cursor: pointer; -webkit-user-select: text; user-select: text; }
.consent input { width: 1.2em; height: 1.2em; margin: .1em 0 0; flex: none; accent-color: var(--gold-deep); }
.pg.form-pg .bk-form, .form .bk-form { gap: .45em; }
.contact a, .credit a { color: inherit; text-decoration: underline; }
.face[inert] { pointer-events: none; }
.noscript { position: fixed; left: 0; right: 0; top: 40%; text-align: center; color: var(--gold); }
.ui button, .arrow { touch-action: manipulation; }
@media (max-width: 480px) {
  .ui button { height: 44px; min-width: 44px; }
}
