/* ==========================================================================
   portal.css – Assistent (Chat-Fenster), Direktversand im Anfrage-Assistenten, Köderfeld
   Wird auf allen Seiten geladen; die Admin-Seite nutzt dasselbe Chat-Fenster.
   ========================================================================== */

/* ---------- Köderfeld gegen Bots (für Menschen unsichtbar, für Technik-Nutzer ausgeblendet) ---------- */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Direkt senden ---------- */
.direct { margin-top: 1.2rem; display: grid; gap: .8rem; justify-items: start; }
.note--ok { background: #eaf5e4; border-color: #8cc07a; color: #1f3b14; }
.note--ok .i { color: #2f6a1b; }

/* ---------- Assistent ---------- */
.asst-toggle {
  position: fixed; left: max(1rem, env(safe-area-inset-left)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 90;
  display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.1rem .7rem .9rem; border: 0; border-radius: 999px;
  background: var(--basalt); color: var(--kalk); font: 700 1rem/1 var(--font-body); box-shadow: 0 4px 0 #000, 0 18px 28px -14px rgba(0, 0, 0, .7);
}
.asst-toggle:hover { background: var(--granit); }
.asst-toggle:active { transform: translateY(2px); box-shadow: 0 2px 0 #000; }
.asst-toggle svg { width: 1.5rem; height: 1.5rem; flex: none; color: var(--signal); }
.asst-toggle[aria-expanded="true"] { display: none; }
@media (max-width: 760px) { .asst-toggle { bottom: calc(5.4rem + env(safe-area-inset-bottom)); } .asst-toggle span { display: none; } .asst-toggle { padding: .8rem; } }

.asst {
  position: fixed; left: max(1rem, env(safe-area-inset-left)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 95;
  display: flex; flex-direction: column; width: min(390px, calc(100vw - 2rem)); height: min(580px, calc(100dvh - 2rem));
  border-radius: var(--radius); background: var(--weiss); color: var(--ink); box-shadow: var(--shadow-m), 0 0 0 2px var(--basalt); overflow: hidden;
}
@media (max-width: 760px) { .asst { bottom: calc(5.4rem + env(safe-area-inset-bottom)); height: min(560px, calc(100dvh - 7rem)); } }
.asst[hidden] { display: none; }
.asst__head { display: flex; align-items: center; gap: .7rem; padding: .75rem .9rem; background: var(--basalt); color: var(--kalk); }
.asst__head svg { width: 1.6rem; height: 1.6rem; color: var(--signal); flex: none; }
.asst__head div { min-width: 0; flex: 1; line-height: 1.2; }
.asst__head strong { display: block; font-family: var(--font-display); font-stretch: 85%; font-size: 1.15rem; letter-spacing: .02em; }
.asst__head small { display: block; font-size: .78rem; color: rgba(245, 242, 235, .72); }
.asst__x { flex: none; width: 2.4rem; height: 2.4rem; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: inherit; font-size: 1.5rem; line-height: 1; }
.asst__x:hover { background: rgba(255, 255, 255, .24); }
.asst__log { flex: 1; min-height: 0; overflow-y: auto; padding: .9rem; display: flex; flex-direction: column; gap: .6rem; background: var(--kalk); scroll-behavior: smooth; }
.asst__msg { max-width: 92%; padding: .6rem .8rem; border-radius: 12px; font-size: .96rem; line-height: 1.45; overflow-wrap: anywhere; }
.asst__msg p { margin: 0 0 .55em; }
.asst__msg p:last-child { margin-bottom: 0; }
.asst__msg ul { margin: .2rem 0 .55em; padding-left: 1.15rem; }
.asst__msg li { margin: .1rem 0; }
.asst__msg--bot { align-self: flex-start; background: var(--weiss); border: 1px solid var(--fuge); border-bottom-left-radius: 4px; }
.asst__msg--me { align-self: flex-end; background: var(--basalt); color: var(--kalk); border-bottom-right-radius: 4px; }
.asst__links, .asst__chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.asst__link { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .75rem; border: 2px solid var(--basalt); border-radius: 999px; background: var(--signal); color: var(--basalt); font: 700 .88rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; }
.asst__link:hover { background: var(--signal-l); }
.asst__link--quiet { background: transparent; }
.asst__link--quiet:hover { background: rgba(20, 24, 28, .08); }
.asst__chip { padding: .35rem .7rem; border: 2px solid var(--fuge-d); border-radius: 999px; background: var(--weiss); color: var(--ink); font: 600 .85rem/1.2 var(--font-body); cursor: pointer; }
.asst__chip:hover { border-color: var(--basalt); background: #fff7dc; }
.asst__items { display: grid; gap: .4rem; margin-top: .55rem; }
.asst__item { width: 100%; text-align: left; padding: .5rem .65rem; border: 2px solid var(--basalt); border-left: 7px solid var(--c, var(--basalt)); border-radius: 8px; background: var(--weiss); cursor: pointer; }
.asst__item:hover { background: #fff7dc; }
.asst__item strong { display: block; font-size: .92rem; line-height: 1.25; }
.asst__item span { display: block; font-size: .8rem; color: var(--nebel); }
.asst__form { display: flex; gap: .5rem; padding: .65rem; border-top: 1px solid var(--fuge); background: var(--weiss); }
.asst__form input { flex: 1; min-width: 0; min-height: 2.6rem; padding: .5rem .8rem; border: 2px solid var(--field-line); border-radius: 999px; background: #fff; }
.asst__form button { flex: none; min-height: 2.6rem; padding: 0 1rem; border: 0; border-radius: 999px; background: var(--basalt); color: var(--kalk); font-weight: 700; }
.asst__form button:hover { background: var(--granit); }
.asst__note { padding: 0 .75rem .6rem; font-size: .72rem; color: var(--nebel); background: var(--weiss); }
@media (prefers-reduced-motion: reduce) { .asst__log { scroll-behavior: auto; } }
@media print { .asst, .asst-toggle { display: none !important; } }

/* ---------- Winter-Aktion (Banner oben, Block auf der Startseite, Hinweise) – gesteuert über winter in config.js / winter.js ---------- */
[data-winter][hidden] { display: none !important; }
:root { --snowcap: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath fill='%23c3d0e0' transform='translate(0 1.6)' d='M0 16 C 0 11, 5 8, 11 9 C 16 3, 28 2, 34 6 C 40 1, 52 1, 58 6 C 64 3, 74 3, 80 7 C 86 2, 98 1, 104 6 C 110 3, 122 3, 128 7 C 134 2, 146 2, 152 6 C 158 3, 170 4, 176 8 C 182 5, 192 5, 197 10 C 200 12, 200 15, 198 17 C 196 20, 190 15, 186 16 C 182 17, 180 22, 174 22 C 168 22, 166 16, 160 17 C 154 18, 152 14, 146 15 C 140 16, 136 20, 130 20 C 124 20, 124 15, 118 16 C 112 17, 110 22, 104 22 C 98 22, 96 15, 90 16 C 84 17, 80 19, 74 18 C 68 17, 68 14, 62 15 C 56 16, 52 21, 46 21 C 40 21, 38 15, 32 16 C 26 17, 22 20, 16 19 C 10 18, 6 17, 2 19 C 0.5 19, 0 18, 0 16 Z'/%3E%3Cpath fill='%23fff' d='M0 16 C 0 11, 5 8, 11 9 C 16 3, 28 2, 34 6 C 40 1, 52 1, 58 6 C 64 3, 74 3, 80 7 C 86 2, 98 1, 104 6 C 110 3, 122 3, 128 7 C 134 2, 146 2, 152 6 C 158 3, 170 4, 176 8 C 182 5, 192 5, 197 10 C 200 12, 200 15, 198 17 C 196 20, 190 15, 186 16 C 182 17, 180 22, 174 22 C 168 22, 166 16, 160 17 C 154 18, 152 14, 146 15 C 140 16, 136 20, 130 20 C 124 20, 124 15, 118 16 C 112 17, 110 22, 104 22 C 98 22, 96 15, 90 16 C 84 17, 80 19, 74 18 C 68 17, 68 14, 62 15 C 56 16, 52 21, 46 21 C 40 21, 38 15, 32 16 C 26 17, 22 20, 16 19 C 10 18, 6 17, 2 19 C 0.5 19, 0 18, 0 16 Z'/%3E%3C/svg%3E"); --snowfall-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='200'%3E%3Cg fill='%23fff'%3E%3Ccircle cx='76' cy='189' r='1.9' fill-opacity='0.46'/%3E%3Ccircle cx='98' cy='129' r='1.4' fill-opacity='0.71'/%3E%3Ccircle cx='8' cy='179' r='1.1' fill-opacity='0.46'/%3E%3Ccircle cx='215' cy='65' r='1.4' fill-opacity='0.73'/%3E%3Ccircle cx='8' cy='42' r='1.2' fill-opacity='0.57'/%3E%3Ccircle cx='161' cy='85' r='1.7' fill-opacity='0.56'/%3E%3Ccircle cx='117' cy='185' r='0.9' fill-opacity='0.68'/%3E%3Ccircle cx='68' cy='175' r='2.5' fill-opacity='0.55'/%3E%3Ccircle cx='114' cy='179' r='1.6' fill-opacity='0.65'/%3E%3Ccircle cx='58' cy='125' r='0.9' fill-opacity='0.61'/%3E%3Ccircle cx='22' cy='22' r='1.0' fill-opacity='0.28'/%3E%3Ccircle cx='183' cy='64' r='0.9' fill-opacity='0.62'/%3E%3Ccircle cx='132' cy='78' r='1.0' fill-opacity='0.50'/%3E%3Ccircle cx='157' cy='163' r='2.4' fill-opacity='0.60'/%3E%3Ccircle cx='46' cy='7' r='2.2' fill-opacity='0.31'/%3E%3C/g%3E%3C/svg%3E"); --snowfall-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='290'%3E%3Cg fill='%23fff'%3E%3Ccircle cx='191' cy='214' r='1.4' fill-opacity='0.60'/%3E%3Ccircle cx='20' cy='289' r='1.3' fill-opacity='0.60'/%3E%3Ccircle cx='262' cy='87' r='1.3' fill-opacity='0.48'/%3E%3Ccircle cx='80' cy='277' r='1.5' fill-opacity='0.35'/%3E%3Ccircle cx='93' cy='195' r='2.4' fill-opacity='0.75'/%3E%3Ccircle cx='270' cy='233' r='1.6' fill-opacity='0.53'/%3E%3Ccircle cx='229' cy='3' r='1.9' fill-opacity='0.69'/%3E%3Ccircle cx='20' cy='3' r='1.3' fill-opacity='0.37'/%3E%3Ccircle cx='109' cy='286' r='1.4' fill-opacity='0.72'/%3E%3Ccircle cx='126' cy='225' r='1.5' fill-opacity='0.40'/%3E%3Ccircle cx='340' cy='156' r='0.9' fill-opacity='0.35'/%3E%3Ccircle cx='304' cy='108' r='1.0' fill-opacity='0.53'/%3E%3Ccircle cx='103' cy='131' r='1.5' fill-opacity='0.41'/%3E%3Ccircle cx='81' cy='285' r='1.9' fill-opacity='0.47'/%3E%3Ccircle cx='264' cy='234' r='0.9' fill-opacity='0.44'/%3E%3Ccircle cx='327' cy='97' r='1.9' fill-opacity='0.64'/%3E%3C/g%3E%3C/svg%3E"); }

.winterbar { background: var(--signal); color: var(--basalt); font-size: .94rem; }
.winterbar__in { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .25rem 1.4rem; padding-block: .5rem; }
.winterbar p { margin: 0; }
.winterbar .i { display: inline-block; width: 1.2em; height: 1.2em; margin-right: .4rem; vertical-align: -.22em; stroke-width: 2; }
.winterbar__short { display: none; }
.winterbar__link { display: inline-flex; align-items: center; gap: .35rem; color: var(--basalt); font-weight: 800; white-space: nowrap; text-decoration: underline; text-underline-offset: .2em; }
.winterbar__link .i { margin: 0; width: 1em; height: 1em; vertical-align: 0; }
.winterbar__link:hover { text-decoration-thickness: 2px; }
@media (max-width: 700px) {
  .winterbar__in { flex-wrap: nowrap; justify-content: space-between; gap: .8rem; padding-block: .55rem; }
  .winterbar p { font-size: .86rem; line-height: 1.3; }
  .winterbar__long { display: none; }
  .winterbar__short { display: inline; }
  .winterbar__link { flex: none; font-size: .86rem; }
}

.winter { position: relative; overflow: hidden; padding-top: clamp(3rem, 5.8vw, 4.6rem); padding-bottom: calc(clamp(4.4rem, 9.5vw, 6.8rem) + clamp(1.2rem, 2.6vw, 2.2rem)); }
.winter::before { content: ""; position: absolute; inset: 0; background-image: var(--snowfall-a), var(--snowfall-b); background-size: 240px 200px, 340px 290px; background-position: 0 0, 90px 60px; opacity: .75; pointer-events: none; }
.winter::after { content: ""; position: absolute; left: -12px; right: -12px; top: 0; height: 26px; background: var(--snowcap) repeat-x 0 0 / 360px 26px; pointer-events: none; }
.winter__in { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3.2rem); align-items: center; }
.winter h2 { margin: .3rem 0 .8rem; font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1; }
.winter .lead { max-width: 46rem; }
.winter .row { margin-top: 1.2rem; }
.winter__fine { margin: 1rem 0 0; max-width: 46rem; font-size: .84rem; color: rgba(245, 242, 235, .68); }
.winter__badge { flex: none; width: clamp(8.4rem, 22vw, 11.5rem); aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; justify-items: center; text-align: center; background: var(--signal); color: var(--basalt); transform: rotate(-8deg); box-shadow: 0 6px 0 rgba(0, 0, 0, .45), 0 22px 30px -14px rgba(0, 0, 0, .75); outline: 3px dashed rgba(20, 24, 28, .55); outline-offset: -.55rem; }
.winter__badge .i { width: 1.5rem; height: 1.5rem; stroke-width: 2.1; }
.winter__badge > span { font-family: var(--font-display); font-stretch: 75%; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; font-size: .86rem; line-height: 1.1; }
.winter__badge > strong { font-family: var(--font-display); font-stretch: 75%; font-weight: 700; font-size: clamp(2.7rem, 7vw, 3.7rem); line-height: .95; }
@media (max-width: 760px) { .winter__in { grid-template-columns: 1fr; justify-items: start; } }

.note--winter { margin-bottom: 1.4rem; background: #e9f1fa; border-color: #a9c4e2; color: #1b2f48; }
.note--winter .i { color: #2a5f99; }
.note--winter a { color: inherit; font-weight: 700; }
@media print { .winterbar, .winter { display: none !important; } }
