/* Terras24 · Fuß, Einwilligung (eine kleine Glasscheibe mit Tropfen im Alu-Profil), Rechtsseiten, 404 */

/* ---------- Fuß ---------- */
.fuss { position: relative; }
body:not(:has(.leiste)) .fuss { padding-bottom: var(--r5); }
.fuss::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(180deg, #3b444a 0, #262d32 55%, #161c1f 100%); }
.fu-raster { display: grid; grid-template-columns: 1fr 1fr; gap: var(--r4) var(--r3); }
.fu-marke, .fu-kontakt { grid-column: 1 / -1; }
@media (min-width: 760px) {
  .fu-raster { grid-template-columns: 1.25fr 1fr 1fr; }
  .fu-kontakt { grid-column: auto; }
}
@media (min-width: 1080px) {
  .fu-raster { grid-template-columns: 1.45fr 1.2fr .75fr .85fr; }
  .fu-marke { grid-column: auto; }
}
.fu-logo { display: inline-block; border-radius: 2px; }
.fu-logo img { height: 64px; width: auto; }
@media (min-width: 760px) { .fu-logo img { height: 76px; } }
.fu-satz { max-width: 38ch; margin: var(--r3) 0 var(--r2); color: var(--regen); }
.fu-status { box-shadow: inset 0 0 0 1px var(--linie); background: transparent; }
.fuss .fu-spalte ul { gap: 0; }
.fuss .fu-spalte a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; text-decoration: none; }
.fuss .fu-spalte a:hover { text-decoration: underline; text-underline-offset: .2em; }
.fu-kontakt ul { gap: 6px; }
.fuss .fu-kontakt a, .fu-zeile { display: flex; align-items: flex-start; gap: 14px; min-height: 44px; padding: 4px 0; color: #fff; }
.fu-kontakt svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--salbei); }
.fu-kontakt a > span, .fu-zeile > span { font-weight: 560; line-height: 1.4; }
.fu-art { display: block; margin-bottom: 1px; font: 650 11.5px/1.3 var(--display); font-stretch: 112%; letter-spacing: .12em; text-transform: uppercase; color: var(--regen); }
.fu-hinweis { display: block; margin-top: 4px; font-weight: 420; font-size: 14px; color: var(--regen); }
.fu-unten { align-items: center; }
.fu-unten p { margin: 0; }
.fu-quelle { color: var(--regen); }
.fu-muster { display: inline-flex; align-items: center; gap: 10px; color: var(--regen); }
@media (min-width: 900px) { .fu-unten .fu-muster { margin-left: auto; } }
.fu-quadrate { display: grid; grid-template-columns: 7px 7px; gap: 2px; }
.fu-quadrate i { width: 7px; height: 7px; background: var(--salbei); }
.fu-quadrate i:nth-child(2) { background: var(--schiefer); }
.fu-quadrate i:nth-child(3) { background: var(--stein); }

/* ---------- Einwilligung: Karte unten, keine Wand ---------- */
.fu-ew { position: fixed; z-index: 80; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom));
  max-height: calc(100svh - 24px); overflow: auto; padding: 5px 5px 0; border-radius: var(--ecke); color: #fff; font: 420 15px/1.45 var(--text); font-stretch: 100%; text-align: left;
  background: linear-gradient(180deg, #424b51 0, #2b3338 26px, #262d32 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .14), 0 22px 60px rgba(0, 0, 0, .5); }
@media (max-width: 899px) { body:has(.leiste.da) .fu-ew { bottom: calc(76px + env(safe-area-inset-bottom)); } }
@media (min-width: 600px) { .fu-ew { left: auto; right: max(24px, env(safe-area-inset-right)); bottom: 24px; width: 420px; } }
.fu-ew-scheibe { position: relative; overflow: hidden; padding: 20px 20px 20px 22px; border-radius: 1px;
  background:
    linear-gradient(116deg, rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, .05) 35%, rgba(255, 255, 255, .018) 50%, rgba(255, 255, 255, 0) 51%),
    linear-gradient(162deg, #243139 0%, #1b252a 52%, #162024 100%);
  box-shadow: inset 0 0 0 1px rgba(166, 201, 162, .12), inset 0 0 18px rgba(166, 201, 162, .05); }
.fu-ew-inhalt { position: relative; z-index: 1; }
.fu-ew h2 { margin: 0 46px 10px 0; font-size: clamp(25px, 6.6vw, 29px); line-height: .98; font-weight: 820; letter-spacing: 0; word-spacing: .1em; color: #fff; }
.fu-ew p { margin: 0 0 16px; color: var(--regen); }
.fu-ew p a { color: #fff; font-weight: 600; text-underline-offset: .18em; }
.fu-ew-wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fu-ew-knopf { min-height: 48px; padding: 6px 12px; border: 0; border-radius: var(--ecke); background: var(--kalk); color: var(--tinte); font: 760 16px/1.15 var(--display); font-stretch: 100%;
  cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .2s, transform .2s var(--kurve); }
.fu-ew-knopf:hover { background: #fff; }
.fu-ew-knopf:active { transform: scale(.97); }
.fu-ew-zu { position: absolute; z-index: 2; top: 8px; right: 8px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: var(--ecke);
  background: transparent; color: var(--regen); cursor: pointer; }
.fu-ew-zu:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.fu-ew-zu svg { width: 20px; height: 20px; }
/* Rinne im unteren Profil */
.fu-ew-rinne { position: relative; height: 12px; }
.fu-ew-rinne::before { content: ""; position: absolute; left: 6px; right: 6px; top: 4px; height: 3px; border-radius: 2px; background: rgba(0, 0, 0, .5); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.fu-ew-rinne i { position: absolute; left: 6px; right: 6px; top: 4px; height: 3px; border-radius: 2px; background: var(--salbei); opacity: 0; transform: scaleX(0); }

/* Tropfen auf dem Glas: nur im Rand und oben rechts, nie über dem Text */
.fu-ew-tropfen { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.fu-ew-tropfen i { position: absolute; left: var(--x); top: calc(var(--q) * 100%); width: var(--g); height: calc(var(--g) * 1.1); border-radius: 50% 50% 47% 47% / 46% 46% 54% 54%;
  background:
    radial-gradient(ellipse 68% 42% at 50% 80%, rgba(226, 238, 242, .6), rgba(226, 238, 242, 0) 72%),
    radial-gradient(circle at 50% 42%, rgba(8, 12, 14, .42), rgba(8, 12, 14, .08) 70%);
  box-shadow: inset 0 1.5px 2px rgba(0, 0, 0, .6), inset 0 -1px 1.5px rgba(255, 255, 255, .3), 0 0 0 .5px rgba(214, 230, 236, .14), 0 1.5px 2px rgba(0, 0, 0, .35); }
.fu-ew-tropfen i::after { content: ""; position: absolute; left: 22%; top: 15%; width: 30%; height: 22%; border-radius: 50%; background: rgba(255, 255, 255, .85); }
.fu-ew-tropfen i:nth-child(2)::before, .fu-ew-tropfen i:nth-child(5)::before, .fu-ew-tropfen i:nth-child(10)::before { content: ""; position: absolute; left: 18%; bottom: 62%; width: 64%; height: calc(var(--g) * 2.6);
  border-radius: 99px 99px 40% 40%; background: linear-gradient(rgba(214, 230, 236, 0), rgba(214, 230, 236, .07) 70%, rgba(214, 230, 236, .1)); }
.fu-ew-tropfen i:nth-child(1)  { --x: 62%;   --q: .06;  --g: 9px;  --n: 0; }
.fu-ew-tropfen i:nth-child(2)  { --x: 70%;   --q: .13;  --g: 13px; --n: 3; }
.fu-ew-tropfen i:nth-child(3)  { --x: 78%;   --q: .05;  --g: 6px;  --n: 6; }
.fu-ew-tropfen i:nth-child(4)  { --x: 64%;   --q: .215;  --g: 5px;  --n: 9; }
.fu-ew-tropfen i:nth-child(5)  { --x: 80%;   --q: .21;  --g: 10px; --n: 1; }
.fu-ew-tropfen i:nth-child(6)  { --x: 57.5%; --q: .17;  --g: 4px;  --n: 12; }
.fu-ew-tropfen i:nth-child(7)  { --x: 76%;   --q: .2;   --g: 4px;  --n: 15; }
.fu-ew-tropfen i:nth-child(8)  { --x: 96%;   --q: .38;  --g: 7px;  --n: 4; }
.fu-ew-tropfen i:nth-child(9)  { --x: 96.6%; --q: .55;  --g: 4px;  --n: 10; }
.fu-ew-tropfen i:nth-child(10) { --x: 95.8%; --q: .72;  --g: 8px;  --n: 7; }
.fu-ew-tropfen i:nth-child(11) { --x: 1.2%;  --q: .3;   --g: 5px;  --n: 13; }
.fu-ew-tropfen i:nth-child(12) { --x: 1.4%;  --q: .58;  --g: 7px;  --n: 2; }
.fu-ew-tropfen i:nth-child(13) { --x: 1%;    --q: .82;  --g: 4px;  --n: 16; }
.fu-ew-tropfen i:nth-child(14) { --x: 12%;   --q: .016; --g: 5px;  --n: 5; }
.fu-ew-tropfen i:nth-child(15) { --x: 30%;   --q: .02;  --g: 4px;  --n: 11; }
.fu-ew-tropfen i:nth-child(16) { --x: 44%;   --q: .012; --g: 6px;  --n: 8; }
.fu-ew-tropfen i:nth-child(17) { --x: 34%;   --q: .955; --g: 5px;  --n: 14; }
.fu-ew-tropfen i:nth-child(18) { --x: 72%;   --q: .96;  --g: 4px;  --n: 17; }

/* Erscheinen: die Karte gleitet hoch, dann setzen sich die Tropfen auf die Scheibe */
.fu-ew.bz-offen { animation: fu-ew-rein .5s var(--kurve) both; }
.fu-ew.bz-offen .fu-ew-tropfen i { animation: fu-tropfen-land .38s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: calc(.32s + var(--n) * 45ms); }
@keyframes fu-ew-rein { from { opacity: 0; transform: translateY(26px); } }
@keyframes fu-tropfen-land { from { opacity: 0; transform: scale(.15); } }

/* Nach jeder Wahl (Ja wie Nein gleich): Kopie der Karte, das Wasser läuft ab in die Rinne, dann fort */
.fu-ew-ablauf { position: fixed; z-index: 81; margin: 0; pointer-events: none; overflow: hidden; animation: fu-ew-weg .3s ease-in .86s both; }
.fu-ew-ablauf .fu-ew-inhalt, .fu-ew-ablauf .fu-ew-zu { animation: fu-ew-blass .2s ease-out both; }
.fu-ew-ablauf .fu-ew-scheibe::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateY(-100%);
  background: linear-gradient(180deg, rgba(214, 230, 236, 0) 0%, rgba(214, 230, 236, .13) 52%, rgba(214, 230, 236, .04) 80%, rgba(214, 230, 236, 0) 100%);
  animation: fu-ew-film .7s cubic-bezier(.45, 0, .75, .5) .1s both; }
.fu-ew-ablauf .fu-ew-tropfen i { animation: fu-tropfen-ab .62s cubic-bezier(.5, 0, .85, .45) both; animation-delay: calc(.06s + var(--n) * 12ms); }
.fu-ew-ablauf .fu-ew-rinne i { animation: fu-ew-rinne .36s ease-out .5s both; }
@keyframes fu-ew-weg { to { opacity: 0; transform: translateY(14px); } }
@keyframes fu-ew-blass { to { opacity: 0; } }
@keyframes fu-ew-film { to { transform: translateY(100%); } }
@keyframes fu-tropfen-ab {
  14% { transform: translateY(1px) scale(1.12, .9); }
  100% { transform: translateY(calc(var(--h, 220px) * (1.06 - var(--q)))) scale(.62, 2.6); opacity: .35; }
}
@keyframes fu-ew-rinne { from { opacity: 1; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }

@media print { .fu-ew, .fu-ew-ablauf { display: none !important; } }

/* ---------- Rechtsseiten ---------- */
.fu-recht { padding-block: clamp(56px, 10vw, 112px) clamp(72px, 12vw, 136px); }
.fu-recht h1, .fu-404 h1 { margin-bottom: var(--r3); word-spacing: .08em; }
.fu-recht .lead { max-width: 46ch; }
.fu-text { max-width: 70ch; margin-top: var(--r4); }
.fu-text h2 { margin: clamp(40px, 7vw, 64px) 0 var(--r2); font-size: clamp(28px, 5.4vw, 38px); line-height: 1; font-weight: 820; word-spacing: .08em; }
.fu-text h2:first-child { margin-top: 0; }
.fu-text h3 { margin: var(--r3) 0 6px; font: 720 17.5px/1.3 var(--text); font-stretch: 100%; letter-spacing: 0; }
.fu-text p, .fu-text li, .fu-text dd { color: var(--tinte); }
.fu-text ul { padding-left: 1.2em; margin: 0 0 1em; }
.fu-text li { margin-bottom: 6px; }
.fu-text a { color: var(--salbei-tief); font-weight: 600; text-underline-offset: .18em; overflow-wrap: anywhere; }
.fu-text a:hover { color: var(--tinte); }
.fu-angaben { display: grid; grid-template-columns: 1fr; gap: 4px 24px; margin: 0 0 1em; }
.fu-angaben dt { font: 680 12.5px/1.3 var(--display); font-stretch: 112%; letter-spacing: .1em; text-transform: uppercase; color: var(--tinte-2); margin-top: 12px; }
.fu-angaben dd { margin: 0; }
@media (min-width: 700px) { .fu-angaben { grid-template-columns: 200px 1fr; } .fu-angaben dt { margin-top: 3px; } }
.fu-kasten { margin: var(--r3) 0; padding: 18px 20px; background: var(--kalk-2); border-left: 4px solid var(--schiefer); border-radius: 0 var(--ecke) var(--ecke) 0; }
.fu-kasten p { color: var(--tinte); }
.fu-kasten .fu-marke-klein { display: block; margin-bottom: 6px; font: 700 12.5px/1.3 var(--display); font-stretch: 112%; letter-spacing: .1em; text-transform: uppercase; color: var(--tinte-2); }
.fu-offen { border-left-color: var(--tinte); }
.fu-inhalt { margin: var(--r3) 0 0; padding: 0; list-style: none; display: grid; gap: 0 var(--r3); }
@media (min-width: 700px) { .fu-inhalt { grid-template-columns: 1fr 1fr; } }
.fu-inhalt a { display: flex; align-items: center; gap: 12px; min-height: 44px; border-bottom: 1px solid var(--linie-hell); color: var(--tinte); font-weight: 600; text-decoration: none; }
.fu-inhalt a:hover { color: var(--salbei-tief); }
.fu-inhalt span { font: 800 15px/1 var(--display); font-stretch: 75%; color: var(--salbei-tief); min-width: 18px; }
.fu-tabelle { width: 100%; border-collapse: collapse; margin: var(--r2) 0 var(--r3); font-size: 15px; }
.fu-tabelle th, .fu-tabelle td { padding: 10px 10px 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--linie-hell-2); color: var(--tinte); }
.fu-tabelle th { font: 700 12.5px/1.3 var(--display); font-stretch: 112%; letter-spacing: .08em; text-transform: uppercase; color: var(--tinte-2); }
.fu-tabelle code { font: 700 15px/1 ui-monospace, "SF Mono", Menlo, monospace; }
.fu-stand { margin-top: var(--r4); color: var(--tinte-2) !important; font-size: 15px; }
.fu-recht .knopf { margin: 4px 0 var(--r2); }

/* ---------- 404 ---------- */
.fu-404 { position: relative; overflow: hidden; min-height: calc(100svh - var(--kopf) - 28px); display: grid; align-items: center; }
.fu-404 .innen { position: relative; z-index: 1; }
.fu-404 .lead { margin: var(--r3) 0 var(--r4); }
.fu-404-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.fu-regen { position: absolute; inset: 0; pointer-events: none; }
.fu-regen i { position: absolute; top: -90px; left: var(--x); width: 1.5px; height: 70px; border-radius: 1px; background: linear-gradient(rgba(169, 183, 190, 0), rgba(169, 183, 190, .5));
  transform: translateY(0); animation: fu-faellt 1.15s linear var(--d) 4 both; }
.fu-regen i:nth-child(1) { --x: 8%; --d: .1s; } .fu-regen i:nth-child(2) { --x: 19%; --d: .55s; } .fu-regen i:nth-child(3) { --x: 31%; --d: .3s; }
.fu-regen i:nth-child(4) { --x: 44%; --d: .8s; } .fu-regen i:nth-child(5) { --x: 57%; --d: .2s; } .fu-regen i:nth-child(6) { --x: 66%; --d: .65s; }
.fu-regen i:nth-child(7) { --x: 78%; --d: .4s; } .fu-regen i:nth-child(8) { --x: 88%; --d: .9s; } .fu-regen i:nth-child(9) { --x: 95%; --d: .15s; }
@keyframes fu-faellt { to { transform: translateY(calc(100svh + 120px)); } }
@media (prefers-reduced-motion: reduce) { .fu-regen { display: none; } }
