/* Nikolaus-Portal: oeffentliche Seiten. Schriften lokal, keine externen Quellen. */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/cormorant-garamond-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/cormorant-garamond-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/cormorant-garamond-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/cormorant-garamond-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 600; font-display: swap; src: url(/assets/fonts/jost-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 600; font-display: swap; src: url(/assets/fonts/jost-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
	--nacht: #0B1A33; --nacht2: #11254A; --nacht3: #1B3768;
	--rot: #B3121D; --rot-dunkel: #7C0B14;
	--gold: #E8B84A; --gold-hell: #F6D98A; --gold-dunkel: #8A6420;
	--schnee: #F7F4EC; --pergament: #F3E7CC; --tanne: #1F4D3A;
	--tinte: #2A1D12; --tinte-leise: #5E4A33;
	--serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
	--sans: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--rand: clamp(16px, 4vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--nacht); color: var(--tinte); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; overflow-wrap: break-word; hyphens: auto; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--rand); }
.wrap.schmal { max-width: 760px; }
.sprung { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--gold-hell); color: var(--tinte); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.sprung:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.stern { color: var(--gold); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: var(--schnee); min-height: min(100svh, 980px); display: flex; flex-direction: column; overflow: hidden;
	background: radial-gradient(120% 80% at 78% 12%, #21417A 0%, var(--nacht2) 32%, var(--nacht) 62%, #070F22 100%); }
.hero-szene { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-szene svg { width: 100%; height: 100%; display: block; }
canvas.schnee { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.hero-innen { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: end; padding-top: clamp(4.5rem, 11vh, 8rem); }
.hero-text { align-self: center; padding-bottom: clamp(6rem, 22vh, 14rem); max-width: 640px; animation: auftauchen 1.1s .15s cubic-bezier(.2, .7, .2, 1) both; }
.kicker { font-size: .82rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-hell); margin-bottom: 1.1rem; font-weight: 500; }
.hero h1 { font-size: clamp(3.1rem, 7.4vw, 6.6rem); font-weight: 600; letter-spacing: -.01em; line-height: .98; color: var(--gold-hell); }
.h1-vor { display: block; font-size: .44em; font-weight: 500; letter-spacing: .01em; line-height: 1.2; color: #FFF3D2; margin-bottom: .18em; }
.hero h1 em { display: block; font-style: italic; font-weight: 600; color: var(--gold-hell); filter: drop-shadow(0 0 22px rgba(232, 184, 74, .35)) drop-shadow(0 2px 0 rgba(0, 0, 0, .35));
	background: linear-gradient(180deg, #FFF3D2 10%, #F6D98A 45%, #E8B84A 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-bottom: .06em; }
@supports not ((-webkit-background-clip: text) or (background-clip: text)) { .hero h1 em { -webkit-text-fill-color: currentColor; } }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #DCE3F0; max-width: 34em; margin-top: 1.4rem; }
.hero-aktion { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 2rem; }
.knopf-gold { display: inline-flex; align-items: center; gap: .6rem; min-height: 54px; padding: .9rem 1.5rem .9rem 1.7rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 1.05rem; color: var(--tinte);
	background: linear-gradient(180deg, #FBE6A6 0%, var(--gold) 55%, #CF9A34 100%); box-shadow: 0 0 0 1px rgba(255, 240, 200, .5) inset, 0 10px 30px rgba(232, 184, 74, .35), 0 2px 0 #8A6420; transition: transform .2s, box-shadow .2s; }
.knopf-gold svg { width: 20px; height: 20px; }
.knopf-gold:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 240, 200, .6) inset, 0 14px 38px rgba(232, 184, 74, .5), 0 2px 0 #8A6420; }
.countdown { margin: 0; display: inline-flex; align-items: baseline; gap: .45rem; color: #DCE3F0; font-size: .98rem; }
.cd-zahl { font-family: var(--serif); font-style: italic; font-size: 2.3rem; line-height: 1; color: var(--gold-hell); font-weight: 600; }
.hero-figur { align-self: end; justify-self: center; width: min(100%, 540px); margin-bottom: clamp(18px, 3vw, 44px); animation: auftauchen 1.3s .5s cubic-bezier(.2, .7, .2, 1) both; }
.hero-figur svg { display: block; width: 100%; height: auto; overflow: visible; }
.wehe { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(46px, 7vw, 110px); z-index: 4; display: block; pointer-events: none; }

@keyframes auftauchen { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Szene: Sterne, Mond, Fenster */
.nk-sterne .st { opacity: .75; animation: funkeln 3.6s ease-in-out infinite alternate; }
.nk-sterne .st1 { animation-duration: 4.4s; animation-delay: -1s; }
.nk-sterne .st2 { animation-duration: 2.8s; animation-delay: -2s; opacity: .5; }
.nk-sterne .st3 { animation-duration: 5.2s; animation-delay: -.5s; }
.nk-sterne .st4 { animation-duration: 3.2s; animation-delay: -3s; opacity: .55; }
.nk-sterne .st5 { animation-duration: 4.8s; animation-delay: -1.7s; }
@keyframes funkeln { from { opacity: .25; } to { opacity: 1; } }
.nk-funkeln .sp { transform-box: fill-box; transform-origin: center; animation: blitzen 5s ease-in-out infinite; }
.nk-funkeln .sp1 { animation-delay: -1.2s; animation-duration: 6s; }
.nk-funkeln .sp2 { animation-delay: -2.6s; animation-duration: 4.4s; }
.nk-funkeln .sp3 { animation-delay: -3.8s; animation-duration: 7s; }
@keyframes blitzen { 0%, 100% { transform: scale(.55) rotate(0deg); opacity: .55; } 50% { transform: scale(1.1) rotate(45deg); opacity: 1; } }
.nk-dorf .fe { fill: #F6D98A; opacity: .08; animation: licht-an .9s ease-out forwards; }
.nk-dorf .fe0 { animation-delay: .8s; } .nk-dorf .fe1 { animation-delay: 1.3s; } .nk-dorf .fe2 { animation-delay: 1.7s; }
.nk-dorf .fe3 { animation-delay: 2.2s; } .nk-dorf .fe4 { animation-delay: 2.6s; } .nk-dorf .fe5 { animation-delay: 3.1s; }
.nk-dorf .fe6 { animation-delay: 3.5s; } .nk-dorf .fe7 { animation-delay: 4s; } .nk-dorf .fe8 { animation-delay: 4.4s; }
.nk-dorf .fe9 { animation-delay: 4.9s; } .nk-dorf .fe10 { animation-delay: 5.3s; } .nk-dorf .fe11 { animation-delay: 5.8s; }
@keyframes licht-an { 0% { opacity: .08; } 40% { opacity: .9; } 55% { opacity: .55; } 100% { opacity: 1; filter: drop-shadow(0 0 4px rgba(246, 217, 138, .9)); } }

/* Figur: Laterne */
.nk-glow { transform-box: fill-box; transform-origin: center; animation: glimmen 3.4s ease-in-out infinite; }
.nk-kegel, .nk-boden { animation: glimmen-weich 3.4s ease-in-out infinite; }
.nk-flamme { transform-box: fill-box; transform-origin: 50% 90%; animation: flackern 1.6s ease-in-out infinite; }
@keyframes glimmen { 0%, 100% { opacity: .78; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes glimmen-weich { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
@keyframes flackern { 0%, 100% { transform: scale(1, 1); } 30% { transform: scale(.92, 1.08); } 60% { transform: scale(1.05, .94); } }

/* ---------- So laeuft es ---------- */
.ablauf { background: var(--schnee); color: var(--nacht); padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(5rem, 9vw, 8rem); text-align: center; }
.ablauf h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-style: italic; font-weight: 600; color: var(--nacht); }
.ornament { display: block; width: 220px; height: 22px; margin: .9rem auto 0; color: var(--gold-dunkel); }
.schritte { list-style: none; margin: clamp(2rem, 5vw, 3.5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); position: relative; }
.schritte::before { content: ''; position: absolute; top: 44px; left: 16%; right: 16%; border-top: 2px dotted rgba(138, 100, 32, .45); z-index: 0; }
.schritte li { position: relative; z-index: 1; padding: 0 .5rem; min-width: 0; }
.schritt-bild { width: 88px; height: 88px; display: block; margin: 0 auto; filter: drop-shadow(0 8px 18px rgba(11, 26, 51, .25)); }
.schritt-nr { display: block; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--rot); margin: .9rem 0 .2rem; font-weight: 600; letter-spacing: .08em; }
.schritte h3 { font-size: clamp(1.45rem, 2.3vw, 1.75rem); color: var(--nacht); margin-bottom: .5rem; }
.schritte p { color: #3E4A5E; max-width: 22em; margin: 0 auto; }
.merksatz { margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; max-width: 40em; font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.65rem); line-height: 1.35; color: var(--nacht); font-weight: 500; }
.merksatz .stern { font-style: normal; font-size: .8em; color: var(--gold-dunkel); }
.infos { list-style: none; padding: 0; margin: 2.2rem auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; max-width: 900px; }
.infos li { background: #fff; border: 1px solid #E4DCC8; border-radius: 14px; padding: .8rem 1.1rem; text-align: left; min-width: 0; max-width: 100%; flex: 0 1 auto; box-shadow: 0 6px 18px rgba(11, 26, 51, .06); }
.info-titel { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dunkel); font-weight: 600; }
.info-text { display: block; color: var(--nacht); white-space: pre-line; overflow-wrap: anywhere; }

/* ---------- Das Buch ---------- */
.buch-bereich { position: relative; color: var(--tinte); padding: clamp(5.5rem, 10vw, 8rem) 0 clamp(5rem, 9vw, 8rem);
	background:
		radial-gradient(1.4px 1.4px at 12% 22%, rgba(251, 239, 200, .8) 50%, transparent 52%),
		radial-gradient(1.2px 1.2px at 32% 70%, rgba(251, 239, 200, .6) 50%, transparent 52%),
		radial-gradient(1.6px 1.6px at 68% 30%, rgba(251, 239, 200, .7) 50%, transparent 52%),
		radial-gradient(1.2px 1.2px at 88% 64%, rgba(251, 239, 200, .6) 50%, transparent 52%),
		radial-gradient(1.4px 1.4px at 52% 88%, rgba(251, 239, 200, .5) 50%, transparent 52%),
		radial-gradient(60% 50% at 50% 55%, rgba(246, 217, 138, .16), transparent 70%),
		linear-gradient(180deg, var(--nacht2), var(--nacht) 70%); }
.buch-kante { position: absolute; top: -1px; left: 0; width: 100%; height: clamp(40px, 6vw, 90px); display: block; }
.buch { position: relative; max-width: 1080px; margin: 0 auto; perspective: 2600px; }
.buch::before { content: ''; position: absolute; inset: -16px -18px -26px; border-radius: 12px; z-index: 0;
	background: linear-gradient(135deg, #6E1018, #4A0A10 60%, #3A070C); box-shadow: 0 0 0 2px #2A0508, 0 40px 80px rgba(0, 0, 0, .55), 0 0 120px rgba(232, 184, 74, .12); }
.buch::after { content: ''; position: absolute; inset: -8px -10px -18px; border: 1.5px solid rgba(232, 184, 74, .55); border-radius: 8px; z-index: 0; pointer-events: none; }
.seiten { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 4px 4px 6px 6px;
	box-shadow: 0 2px 0 -1px #FBE6A6, 0 4px 0 -1px #C99432, 0 6px 0 -2px #F6D98A, 0 8px 0 -2px #B9852A, 0 10px 0 -3px #E8B84A, 0 12px 0 -3px #8A6420; }
.seite { position: relative; padding: clamp(2rem, 4.2vw, 3.6rem) clamp(1.4rem, 3.8vw, 3.4rem) clamp(2.2rem, 4vw, 3.4rem); min-width: 0; }
.seite.links { border-radius: 4px 0 0 6px; background:
	radial-gradient(120% 90% at 30% 20%, rgba(255, 252, 240, .7), transparent 60%),
	linear-gradient(90deg, #E9D7B0 0%, #F4E9D0 5%, #F6ECD6 70%, #EAD9B6 92%, #CDB283 100%); }
.seite.rechts { border-radius: 0 4px 6px 0; background:
	radial-gradient(120% 90% at 70% 20%, rgba(255, 252, 240, .7), transparent 60%),
	linear-gradient(270deg, #E9D7B0 0%, #F4E9D0 5%, #F6ECD6 70%, #EAD9B6 92%, #CDB283 100%); }
.seiten-kopf { text-align: center; font-family: var(--serif); font-style: italic; color: var(--gold-dunkel); letter-spacing: .12em; font-size: 1rem; margin-bottom: 1.2rem; }
.seite h2 { font-size: clamp(2rem, 3.4vw, 2.7rem); font-style: italic; color: var(--rot-dunkel); text-align: center; margin-bottom: 1.6rem; }
.seite.links p { font-family: var(--serif); font-size: 1.32rem; line-height: 1.5; color: var(--tinte); }
.initiale::first-letter { float: left; font-family: var(--serif); font-weight: 700; font-style: normal; font-size: 4.3em; line-height: .78; color: var(--rot); padding: .1em .12em .02em; margin: .06em .16em 0 0; border: 1.5px solid var(--gold); background: rgba(232, 184, 74, .16); }
.handschrift { font-style: italic; color: var(--tinte-leise) !important; text-align: center; margin-top: 1.6rem; }
.zweig { display: block; width: min(260px, 80%); height: auto; margin: 1.6rem auto 0; }
.baendchen { position: absolute; z-index: 3; top: -24px; left: calc(50% - 11px); width: 22px; height: calc(100% + 92px); pointer-events: none;
	background: linear-gradient(90deg, #7C0B14, #C41A25 40%, #E5323A 55%, #9E1019 100%); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 16px), 0 100%); box-shadow: 0 0 0 1px rgba(0, 0, 0, .2); filter: drop-shadow(2px 4px 4px rgba(0, 0, 0, .35)); }

/* Deckel: nur wenn form.js laeuft und Bewegung erwuenscht ist */
.buch-deckel { display: none; }
.buch-anim .buch-deckel { display: block; position: absolute; z-index: 5; top: -16px; bottom: -26px; left: 50%; right: -18px; transform-origin: 0 50%; transform-style: preserve-3d; transition: transform 1.5s cubic-bezier(.55, .05, .25, 1); }
.buch-anim .buch:not(.offen) .seite.links { opacity: 0; }
.buch-anim .buch .seite.links { transition: opacity .6s .75s; }
.buch-anim .buch.offen .buch-deckel { transform: rotateY(-180deg); opacity: 0; transition: transform 1.5s cubic-bezier(.55, .05, .25, 1), opacity .45s 1.1s; }
.buch-anim .buch.fertig .buch-deckel { display: none; }
.deckel-vorne, .ecke { position: absolute; width: 58px; height: 58px; }
.ecke.e1 { top: 26px; left: 26px; } .ecke.e2 { top: 26px; right: 26px; transform: scaleX(-1); }
.ecke.e3 { bottom: 26px; left: 26px; transform: scaleY(-1); } .ecke.e4 { bottom: 26px; right: 26px; transform: scale(-1, -1); }
.deckel-linie { width: 180px; height: 18px; margin-top: .4rem; }
.deckel-hinten { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 0 12px 12px 0; }
.deckel-vorne { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; text-align: center; padding: 2rem;
	background: radial-gradient(90% 70% at 40% 35%, #8A1520, #5B0D14 60%, #3A070C); box-shadow: inset 6px 0 14px rgba(0, 0, 0, .45); }
.deckel-rahmen { position: absolute; inset: 18px; border: 2px solid rgba(232, 184, 74, .75); border-radius: 6px; box-shadow: inset 0 0 0 6px rgba(232, 184, 74, .0), inset 0 0 0 8px rgba(232, 184, 74, .45); }
.deckel-stern { width: 64px; height: 64px; filter: drop-shadow(0 0 10px rgba(232, 184, 74, .6)); }
.deckel-titel { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(2rem, 4vw, 3rem); color: var(--gold-hell); text-shadow: 0 1px 0 #3A070C, 0 0 18px rgba(232, 184, 74, .35); line-height: 1.05; }
.deckel-unter { font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(246, 217, 138, .85); }
.deckel-hinten { transform: rotateY(180deg); border-radius: 12px 0 0 12px; background: linear-gradient(90deg, #E9D7B0 0%, #F4E9D0 5%, #F6ECD6 70%, #EAD9B6 92%, #CDB283 100%); box-shadow: inset 0 0 0 16px #5B0D14; }

/* ---------- Formular ---------- */
.eintrag { position: relative; }
.form-titel { font-size: 1.6rem; font-style: italic; color: var(--rot-dunkel); margin-bottom: .6rem; }
.form-hinweis:empty { display: none; }
.form-hinweis { background: #FBE3DF; border: 1px solid #E7A39B; color: #7C0B14; padding: .7rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-weight: 500; }
.feld { margin: 0 0 1.25rem; border: 0; padding: 0; min-width: 0; }
.feld > label, .feld legend, .unterfeld > label { display: block; font-weight: 600; font-size: .86rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tinte-leise); margin-bottom: .35rem; padding: 0; }
.frei { text-transform: none; letter-spacing: 0; font-weight: 400; }
.feld input[type=text], .feld input[type=tel], .feld input[type=email], .feld input[type=date], .feld input[type=time], .feld textarea {
	display: block; width: 100%; min-height: 50px; font: inherit; font-size: 1.12rem; color: var(--tinte); padding: .6rem .8rem; border: 0; border-bottom: 2px solid #8C7354; border-radius: 8px 8px 2px 2px;
	background: rgba(255, 253, 246, .72); transition: border-color .2s, box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none; }
.feld textarea { min-height: 76px; resize: vertical; line-height: 1.45; }
.feld input:focus, .feld textarea:focus { outline: none; border-bottom-color: var(--gold-dunkel); background: #FFFDF6; box-shadow: 0 0 0 3px rgba(232, 184, 74, .55); }
.feld-hilfe { font-size: .9rem; color: var(--tinte-leise); margin: .35rem 0 0; }
.feld-fehler { color: #A0101A; font-weight: 600; font-size: .95rem; margin: .35rem 0 0; }
.feld-fehler:empty { display: none; }
.hat-fehler > input, .hat-fehler > textarea, .unterfeld.hat-fehler input { border-bottom-color: #A0101A; background: #FFF4F1; }
.feld-zeit input { max-width: 12rem; }
.tag-wahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: .6rem; }
.tag-karte { position: relative; isolation: isolate; display: flex; flex-direction: column; padding: .7rem .8rem; border-radius: 12px; cursor: pointer; min-width: 0; transition: border-color .2s, background .2s, transform .2s; }
.tag-karte input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tk-tag { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.35rem; line-height: 1.1; color: var(--rot-dunkel); overflow-wrap: anywhere; }
.tk-datum { font-size: .98rem; color: var(--tinte); }
.tk-hinweis { font-size: .85rem; color: var(--tinte-leise); overflow-wrap: anywhere; }
.tk-rahmen { position: absolute; inset: 0; z-index: -1; border-radius: 12px; border: 1.5px solid #CDB283; background: rgba(255, 253, 246, .6); transition: border-color .2s, background .2s, box-shadow .2s; }
.tag-karte input:checked ~ .tk-rahmen { border-color: var(--rot); background: #FFF8E8; box-shadow: 0 0 0 2px var(--rot) inset; }
.tag-karte input:checked ~ .tk-tag::after { content: ' \2713'; font-style: normal; font-size: .8em; color: var(--rot); }
.tag-karte input:focus-visible ~ .tk-rahmen { outline: 3px solid var(--gold); outline-offset: 2px; }
.tag-karte:hover { transform: translateY(-1px); }
.kontakt { background: rgba(255, 250, 236, .5); border: 1px dashed #CDB283; border-radius: 14px; padding: .9rem 1rem 1rem; }
.kontakt legend { float: left; width: 100%; margin-bottom: .2rem; text-transform: none; letter-spacing: 0; font-family: var(--serif); font-style: italic; font-size: 1.35rem; font-weight: 600; color: var(--rot-dunkel); }
.kontakt .feld-hilfe { clear: both; margin: 0 0 .8rem; }
.unterfeld { margin-bottom: .8rem; }
.weg { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: -.2rem 0 1rem; }
.weg-titel { font-size: .9rem; color: var(--tinte-leise); margin-right: .2rem; }
.weg-chip { position: relative; cursor: pointer; }
.weg-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.weg-chip span { display: inline-flex; align-items: center; min-height: 40px; padding: .3rem .95rem; border-radius: 999px; border: 1.5px solid #CDB283; background: rgba(255, 253, 246, .7); font-size: .95rem; }
.weg-chip input:checked + span { background: var(--nacht); border-color: var(--nacht); color: var(--gold-hell); }
.weg-chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .98rem; line-height: 1.45; cursor: pointer; }
.check input { flex: 0 0 auto; width: 24px; height: 24px; margin: .1rem 0 0; accent-color: var(--rot); }
.check a { color: var(--rot-dunkel); font-weight: 600; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.absenden { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-top: 1.6rem; }
.absenden-hinweis { margin: 0; font-size: .9rem; color: var(--tinte-leise); }
.siegel-knopf { position: relative; display: inline-flex; align-items: center; gap: .2rem; min-height: 60px; padding: 0 1.6rem 0 0; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 600; font-size: 1.08rem; color: #FFF6E4;
	background: linear-gradient(180deg, #C41A25, #8E0E17); box-shadow: 0 10px 24px rgba(124, 11, 20, .35), 0 1px 0 rgba(255, 255, 255, .25) inset; transition: transform .2s, box-shadow .2s; }
.siegel-knopf:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(124, 11, 20, .45), 0 1px 0 rgba(255, 255, 255, .25) inset; }
.siegel { width: 74px; height: 74px; margin: -7px 0 -7px -8px; flex: 0 0 auto; filter: drop-shadow(0 4px 6px rgba(60, 4, 8, .45)); transition: transform .3s; }
.siegel svg { width: 100%; height: 100%; display: block; }
.siegel-knopf:hover .siegel { transform: rotate(-10deg); }
.siegel-knopf.gesiegelt .siegel { animation: stempeln .65s cubic-bezier(.3, 1.6, .5, 1) both; }
.siegel-knopf[disabled] { cursor: progress; opacity: .92; }
@keyframes stempeln { 0% { transform: translateY(-26px) scale(1.5) rotate(-24deg); opacity: .4; } 60% { transform: translateY(2px) scale(.94) rotate(4deg); opacity: 1; } 100% { transform: none; } }
.geschlossen { text-align: center; padding: 2rem 0; }
.geschlossen h3 { font-size: 1.9rem; font-style: italic; color: var(--rot-dunkel); margin-bottom: 1rem; }

/* ---------- Kopfbild (Unterseiten) ---------- */
.kopfbild { position: relative; isolation: isolate; color: var(--schnee); overflow: hidden; min-height: clamp(260px, 38vw, 380px); display: flex; flex-direction: column;
	background: radial-gradient(120% 90% at 78% 10%, #21417A 0%, var(--nacht2) 35%, var(--nacht) 70%); }
.kopfbild .hero-szene svg { height: 100%; }
.kopfbild-innen { position: relative; z-index: 2; padding-top: 1.4rem; padding-bottom: clamp(5rem, 11vw, 8rem); }
.heim { display: inline-block; color: var(--gold-hell); text-decoration: none; font-size: .82rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; padding: .5rem 0; }
.kopfbild h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); font-style: italic; color: var(--gold-hell); margin-top: clamp(1.2rem, 4vw, 2.6rem); text-shadow: 0 0 30px rgba(232, 184, 74, .3); max-width: 16em; }
.blatt-bereich { background: var(--schnee); padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3rem, 7vw, 5rem); }
.blatt { position: relative; background: linear-gradient(180deg, #FBF4E2, var(--pergament)); border-radius: 6px; padding: clamp(1.4rem, 4vw, 2.8rem); box-shadow: 0 1px 0 #E3CF9F, 0 3px 0 -1px #F6D98A, 0 5px 0 -2px #C99432, 0 24px 48px rgba(11, 26, 51, .14); }
.blatt::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(185, 133, 42, .45); border-radius: 3px; pointer-events: none; }
.blatt-kopf { text-align: center; font-family: var(--serif); font-style: italic; color: var(--gold-dunkel); letter-spacing: .08em; font-size: 1.05rem; }
.blatt-text { font-family: var(--serif); font-size: 1.35rem; line-height: 1.5; }
.eintrag-satz { font-family: var(--serif); font-size: clamp(1.35rem, 3vw, 1.65rem); line-height: 1.4; text-align: center; margin: .8rem 0 1rem; }
.eintrag-anm { text-align: center; color: var(--tinte-leise); font-style: italic; overflow-wrap: anywhere; }
.fortschritt { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; text-align: center; font-size: .88rem; color: var(--tinte-leise); }
.fortschritt li { position: relative; padding-top: 1.6rem; min-width: 0; overflow-wrap: anywhere; }
.fortschritt li::before { content: ''; position: absolute; top: 8px; left: -50%; right: 50%; border-top: 2px solid #D9C39A; }
.fortschritt li:first-child::before { display: none; }
.fortschritt .punkt { position: absolute; top: 0; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #E9DCC0; border: 2px solid #CDB283; z-index: 1; }
.fortschritt .erledigt .punkt { background: var(--gold); border-color: var(--gold-dunkel); }
.fortschritt .aktiv .punkt { background: var(--rot); border-color: var(--rot-dunkel); box-shadow: 0 0 0 5px rgba(179, 18, 29, .18); }
.fortschritt .aktiv { color: var(--tinte); font-weight: 600; }
.stand { text-align: center; padding: 1.2rem 0 .4rem; border-top: 1px solid rgba(185, 133, 42, .35); }
.stand h2 { font-size: clamp(1.8rem, 4vw, 2.3rem); font-style: italic; color: var(--rot-dunkel); margin-bottom: .6rem; }
.stand-bestaetigt h2 { color: var(--tanne); }
.termin-gross { font-family: var(--serif); font-weight: 600; font-size: clamp(1.4rem, 3.6vw, 1.9rem); color: var(--nacht); line-height: 1.25; }
.nachricht { margin: 1rem auto; max-width: 32em; padding: .8rem 1.1rem; border-left: 3px solid var(--gold); background: rgba(255, 252, 240, .7); font-family: var(--serif); font-style: italic; font-size: 1.2rem; white-space: pre-line; text-align: left; overflow-wrap: anywhere; }
.vorschlag-wahl { display: grid; gap: 1rem; max-width: 26rem; margin: 1.4rem auto 0; text-align: left; }
.passt-nicht { display: grid; gap: .5rem; padding: 1rem; border: 1px dashed #CDB283; border-radius: 12px; }
.passt-nicht label { font-size: .92rem; color: var(--tinte-leise); }
.passt-nicht input { min-height: 46px; font: inherit; padding: .5rem .7rem; border: 0; border-bottom: 2px solid #8C7354; border-radius: 8px 8px 2px 2px; background: rgba(255, 253, 246, .8); }
.kontakt-zeile { text-align: center; font-size: .92rem; color: var(--tinte-leise); margin-top: 1rem; }
.link-hinweis { text-align: center; font-size: .92rem; color: var(--tinte-leise); }
.knopf-rot, .knopf-hell { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: .7rem 1.4rem; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border: 0; }
.knopf-rot { background: linear-gradient(180deg, #C41A25, #8E0E17); color: #FFF6E4; box-shadow: 0 8px 20px rgba(124, 11, 20, .3); }
.knopf-hell { background: #FFFDF6; color: var(--tinte); border: 1.5px solid #CDB283; }
.meldung { background: #EEF4EA; border: 1px solid #B8CFAE; color: #1F4D3A; padding: .8rem 1rem; border-radius: 12px; margin-bottom: 1rem; }
.meldung.warn { background: #FBE3DF; border-color: #E7A39B; color: #7C0B14; }
.zurueck { margin-top: 1.6rem; background: #fff; border: 1px solid #E4DCC8; border-radius: 12px; padding: .2rem 1rem; }
.zurueck summary { cursor: pointer; padding: .8rem 0; font-weight: 600; color: var(--tinte-leise); min-height: 44px; }
.zurueck form { display: grid; gap: .8rem; padding-bottom: 1rem; }
.zurueck-start { text-align: center; margin-top: 1.4rem; }
.zurueck-start a { color: var(--nacht); font-weight: 600; }
.recht h2 { font-size: 1.9rem; font-style: italic; color: var(--rot-dunkel); margin: 1.6rem 0 .8rem; }
.recht h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 1.3rem 0 .3rem; color: var(--nacht); }
.recht a { color: var(--rot-dunkel); }
.zeilen { white-space: pre-line; }
.recht p { overflow-wrap: anywhere; }

/* ---------- Fuss ---------- */
.fuss { background: #070F22; color: #AEB9CC; padding: 2.4rem 0 2.8rem; font-size: .95rem; }
.fuss-innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.fuss-marke { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--gold-hell); }
.fuss-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.fuss-links a { color: #DCE3F0; text-decoration: none; padding: .5rem 0; }
.fuss-links a:hover { text-decoration: underline; }
.fuss-links .leise { color: #8C98AE; }
.fuss-technik { margin: 0; width: 100%; font-size: .82rem; color: #8C98AE; }
.fuss-technik a { color: #AEB9CC; }

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
	.hero { min-height: 0; }
	.hero-innen { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 3.2rem; }
	.hero-text { padding-bottom: 1rem; text-align: left; }
	.hero-figur { width: min(88vw, 380px); margin: -.5rem auto clamp(22px, 7vw, 46px); }
	.schritte { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
	.schritte::before { display: none; }
	.seiten { grid-template-columns: minmax(0, 1fr); }
	.seite.links, .seite.rechts { border-radius: 4px; background: radial-gradient(120% 80% at 50% 10%, rgba(255, 252, 240, .7), transparent 60%), linear-gradient(90deg, #EAD9B6 0%, #F6ECD6 6%, #F6ECD6 94%, #EAD9B6 100%); }
	.seite.links { border-bottom: 1px dashed rgba(140, 115, 84, .45); padding-bottom: 1.6rem; }
	.seite.links p { font-size: 1.22rem; }
	.zweig { display: none; }
	.buch::before { inset: -10px -10px -20px; }
	.buch::after { inset: -5px -5px -14px; }
	.baendchen { left: auto; right: 22px; height: 150px; top: -16px; }
	.buch-anim .buch-deckel { left: -10px; right: -10px; top: -10px; bottom: -20px; transition-duration: 1.2s; }
	.buch-anim .buch.offen .buch-deckel { transform: rotateY(-100deg); opacity: 0; transition: transform 1.2s cubic-bezier(.55, .05, .25, 1), opacity .5s .7s; }
	.deckel-vorne { border-radius: 12px; }
}
@media (max-width: 400px) {
	body { font-size: 1rem; }
	.hero h1 { font-size: 2.9rem; }
	.seite { padding-left: 1.05rem; padding-right: 1.05rem; }
	.kontakt { padding: .8rem .75rem .9rem; }
	.siegel-knopf { width: 100%; justify-content: center; padding-right: 1.2rem; }
	.tag-wahl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.nk-dorf .fe { opacity: 1; }
	.buch-deckel { display: none !important; }
	.buch-anim .buch:not(.offen) .seite.links { opacity: 1; }
}
@media print {
	.hero, .kopfbild, canvas, .fuss, .zurueck { display: none !important; }
	body { background: #fff; }
}
