/* ===== Website: eine Seite, Anker-Navigation, Markenfarbe wie im Rechner ===== */

/* Schrift: eine Familie überall, Gewichte gezielt eingesetzt */
:root { --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body, button, input, select, textarea { font-family: var(--font); }
body { font-size: 16px; font-weight: 400; letter-spacing: -.005em; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.025em; line-height: 1.08; }
h3 { font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.logo { font-weight: 800; letter-spacing: .06em; font-size: .95rem; }
.eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .22em; }
.lead { font-size: 1.15rem; line-height: 1.6; font-weight: 400; }
.nav a { font-size: .92rem; font-weight: 500; }
.nav a.rr-pill { font-size: .88rem; font-weight: 600; }
.sec-title { font-size: clamp(2.1rem, 4.6vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; color: var(--head); margin-bottom: .6rem; }
.sec-sub { color: var(--muted); font-size: 1.05rem; line-height: 1.6; max-width: 38rem; margin-bottom: 2.25rem; }
.pill { font-size: .72rem; font-weight: 600; letter-spacing: .2em; }

/* Eine Markenfarbe überall (Rechner-Blau), in allen drei Modi */
[data-theme] { --accent: #0a84ff; --cta-bg: #0a84ff; --cta-fg: #ffffff; }
[data-theme="dark"] { --head: #f2f6fb; }

/* Navigation: Rechner ganz rechts, umrandet */
.nav a.rr-pill { color: #0a84ff; border: 1px solid #0a84ff; border-radius: 999px; padding: .45rem 1rem; transition: background .3s, color .3s; }
.nav a.rr-pill:hover { background: #0a84ff; color: #fff; }

/* Schalter unten, mittig */
.dock { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 30; }
.dock .theme-switch { box-shadow: 0 12px 40px rgba(0,0,0,.18); background: var(--surface); }

/* Scroll-Fortschritt: Ring um den Schalter (ring.js). Start oben in der Mitte, im Uhrzeigersinn. */
[data-theme="light"], :root { --ring: #0a84ff; --ring-glow: rgba(10,132,255,.28); }
[data-theme="warm"] { --ring: #c2571f; --ring-glow: rgba(194,87,31,.28); }
[data-theme="dark"] { --ring: #5eb0ff; --ring-glow: rgba(94,176,255,.55); }
.scroll-ring { position: absolute; display: block; overflow: visible; pointer-events: none; z-index: 2; }
.scroll-ring path { fill: none; stroke-linecap: round; }
.scroll-ring .sr-track { stroke: var(--line); stroke-width: 1.5; }
.scroll-ring .sr-bar { stroke: var(--ring); stroke-width: 2.5; opacity: 0; filter: drop-shadow(0 0 4px var(--ring-glow));
  transition: stroke .9s ease, opacity .25s ease; }
.scroll-ring.on .sr-bar { opacity: 1; }

/* Abschnitte: Anker springen direkt dorthin */
section[id] { scroll-margin-top: 90px; }

/* ===== Cookie-Hinweis (erster Besuch) ===== */
.consent { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1.25rem; background: rgba(5,10,18,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.consent[hidden] { display: none; }
.consent-card { max-width: 460px; width: 100%; background: var(--surface); color: var(--fg); border-radius: 24px; padding: 1.75rem; box-shadow: 0 30px 80px rgba(0,0,0,.35); border: 1px solid var(--line); }
.consent-card h2 { font-size: 1.35rem; font-weight: 800; color: var(--head); margin-bottom: .6rem; }
.consent-card p { color: var(--muted); font-size: .94rem; line-height: 1.55; margin-bottom: .75rem; }
.consent-card a { color: #0a84ff; }
.consent-actions { display: grid; gap: .6rem; margin-top: 1.25rem; }
.consent-actions button { font: inherit; font-weight: 700; font-size: .95rem; padding: .95rem 1rem; border-radius: 999px; cursor: pointer; border: 1px solid transparent; }
.consent-actions .primary { background: #0a84ff; color: #fff; }
.consent-actions .secondary { background: transparent; color: var(--fg); border-color: var(--line); }

/* ===== Beitrag: interaktiver Spielplatz ===== */
.beitrag { display: grid; gap: 3rem; align-items: center; grid-template-columns: 1fr 1.1fr; }
.beitrag h2 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 800; letter-spacing: -.03em; color: var(--head); line-height: 1.06; margin-bottom: 1.1rem; }
.beitrag p { color: var(--muted); font-size: 1.05rem; line-height: 1.65; max-width: 32rem; }
@media (max-width: 860px) { .beitrag { grid-template-columns: 1fr; } }

.park { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.park > svg.bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.spot { position: absolute; transform: translate(-50%, -50%); width: 64px; height: 64px; border: 0; background: transparent; cursor: pointer; padding: 0; z-index: 2; }
.spot .item { display: block; width: 100%; height: 100%; transition: transform .6s cubic-bezier(.2,.8,.2,1); transform-origin: 50% 80%; filter: drop-shadow(0 6px 10px rgba(0,0,0,.18)); }
.spot:hover .item, .spot:focus-visible .item, .spot.active .item { transform: scale(2.6); z-index: 4; }
.spot:focus-visible { outline: 2px solid #0a84ff; outline-offset: 4px; border-radius: 12px; }
.spot:hover, .spot.active { z-index: 5; }
.park-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.1rem 1.4rem 1.25rem; background: linear-gradient(to top, var(--surface) 70%, transparent); }
.park-info .t { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #0a84ff; margin-bottom: .3rem; }
.park-info .d { font-size: 1rem; line-height: 1.5; color: var(--fg); min-height: 3em; transition: opacity .35s; }
.park-info .d.off { opacity: 0; }



/* ===== Kontakt: Auswahl, dann passende Felder ===== */
.choice { display: grid; gap: .75rem; grid-template-columns: repeat(3, 1fr); margin-bottom: 1.5rem; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { display: block; cursor: pointer; padding: 1.1rem 1.2rem; border-radius: 18px; border: 1px solid var(--line); background: var(--card); transition: border-color .3s, background .3s, transform .3s; }
.choice label:hover { transform: translateY(-2px); }
.choice b { display: block; font-size: 1.02rem; color: var(--head); font-weight: 700; }
.choice span { display: block; color: var(--muted); font-size: .86rem; margin-top: .2rem; line-height: 1.4; }
.choice input:checked + label { border-color: #0a84ff; background: rgba(10,132,255,.1); box-shadow: 0 0 0 1px #0a84ff inset; }
.choice input:focus-visible + label { outline: 2px solid #0a84ff; outline-offset: 2px; }
@media (max-width: 720px) { .choice { grid-template-columns: 1fr; } }

.form { display: grid; gap: 1rem; max-width: 720px; }
.form .row2 { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.form .row3 { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr 1fr; }
.form label, .form .lbl { font-size: .84rem; font-weight: 500; color: var(--muted); display: block; margin-bottom: .35rem; }
.form input:not([type=checkbox]), .form select, .form textarea { width: 100%; font: inherit; font-size: .97rem; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .85rem 1rem; }
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid #0a84ff; outline-offset: 1px; }
.mode-fields { display: none; gap: 1rem; }
.form[data-mode="angebot"] .mode-angebot,
.form[data-mode="bewerbung"] .mode-bewerbung,
.form[data-mode="sonst"] .mode-sonst { display: grid; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label { display: inline-flex; align-items: center; gap: .4rem; margin: 0; padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font-size: .85rem; font-weight: 500; cursor: pointer; }
.chips input { width: auto !important; margin: 0; accent-color: #0a84ff; }
.form .check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--muted); font-weight: 400; line-height: 1.5; margin: 0; }
.form .check input { width: auto; margin-top: .25rem; accent-color: #0a84ff; }
.form button[type=submit] { justify-self: start; border: 0; cursor: pointer; background: #0a84ff; color: #fff; font: inherit; font-weight: 700; font-size: .98rem; padding: 1rem 2.2rem; border-radius: 999px; }
.form .hint { font-size: .85rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 640px) { .form .row2, .form .row3 { grid-template-columns: 1fr; } }

/* ===== Rechner: abgesetzter blauer Rahmen ===== */
.rframe { position: relative; border-radius: 32px; padding: clamp(2rem, 5vw, 3.5rem); background: linear-gradient(160deg, rgba(10,132,255,.20), rgba(10,132,255,.04)); border: 1px solid rgba(10,132,255,.6); box-shadow: 0 30px 80px rgba(10,132,255,.20), inset 0 0 0 1px rgba(10,132,255,.12); display: grid; gap: 2rem; grid-template-columns: 1.2fr .8fr; align-items: center; }
.rframe h2 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); font-weight: 800; color: var(--head); letter-spacing: -.03em; margin-bottom: .75rem; }
.rframe p { color: var(--muted); font-size: 1.04rem; line-height: 1.6; }
.rframe .badge { display: inline-block; background: #0a84ff; color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1rem; }
.btn-blue { display: inline-block; margin-top: 1.5rem; background: #0a84ff; color: #fff; font-weight: 700; font-size: .98rem; padding: 1rem 2rem; border-radius: 999px; text-decoration: none; box-shadow: 0 12px 30px rgba(10,132,255,.35); transition: transform .3s, box-shadow .3s; }
.btn-blue:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(10,132,255,.5); }
.scene { width: 100%; height: auto; display: block; }
.scene .spark { transform-origin: center; animation: twinkle 3.2s ease-in-out infinite; }
.scene .spark.d2 { animation-delay: .8s; }
@keyframes twinkle { 0%,100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
@media (max-width: 800px) { .rframe { grid-template-columns: 1fr; } }

/* Platz unten, damit der Schalter nichts verdeckt */
main { padding-bottom: 6rem; }

/* ===== Spielplatz mit echtem Foto: Zoom auf Gegenstand + Hinweis ===== */
.park { aspect-ratio: 16 / 9; background: #1a1a1a; border: 0; box-shadow: 0 30px 70px rgba(11,47,91,.22); cursor: zoom-in; }
.park.zoom { cursor: zoom-out; }
.park-stage { position: absolute; inset: 0; transition: transform 1s cubic-bezier(.2,.8,.2,1); transform-origin: 50% 50%; }
.park-stage > img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.park.zoom .park-stage { transform: scale(2.1); }
.park .spot { position: absolute; width: 44px; height: 44px; transform: translate(-50%, -50%); background: transparent; border: 0; padding: 0; border-radius: 50%; cursor: pointer; z-index: 2; }
.park .spot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #0a84ff; box-shadow: 0 0 0 3px #fff; }
.park .spot .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 14px rgba(0,0,0,.35); animation: ping 2.4s ease-out infinite; }
.park .spot:hover .ring, .park .spot.active .ring { border-color: #7fc4ff; }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }
.park .spot:focus-visible { outline: 2px solid #7fc4ff; outline-offset: 4px; }
.park-hint { position: absolute; top: 14px; left: 14px; z-index: 6; background: rgba(0,0,0,.5); color: #fff; font-size: .78rem; font-weight: 500; padding: .4rem .85rem; border-radius: 999px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: opacity .4s; }
.park.zoom .park-hint { opacity: 0; }
.park-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 2.6rem 1.5rem 1.3rem; background: linear-gradient(to top, rgba(5,10,18,.92) 45%, rgba(5,10,18,0)); }
.park-info .t { color: #7fc4ff; }
.park-info .d { color: #fff; font-size: 1.02rem; min-height: 3.1em; }

/* Textfeld oben rechts, damit der Müll unten frei bleibt */
.park-hint { display: none; }
.park-info { top: 14px; right: 14px; bottom: auto; left: auto; width: min(320px, calc(100% - 28px)); padding: .95rem 1.15rem 1.05rem; border-radius: 16px; background: rgba(5,10,18,.74); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.park-info .d { min-height: 0; font-size: .95rem; line-height: 1.5; }
.park-info .t { margin-bottom: .25rem; }

/* ===== Spielplatz v4: Tag / Abend / Nacht, Sonne & Mond, jeder Gegenstand zoomt einzeln ===== */
.pk-wrap { position: relative; isolation: isolate; }
.pk { position: relative; z-index: 1; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 94%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 16%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 94%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 16%, #000 90%, transparent 100%); mask-composite: intersect; }
/* Licht und Farbe des Bildes strahlen in die Seite */
.pk-aura { position: absolute; z-index: 0; inset: -14% -10%; pointer-events: none; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 48%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 48%, transparent 100%); }
.pk-aura .blur { position: absolute; inset: 12% 9%; background: linear-gradient(#9cc6ea 0 26%, #4d9a5a 26% 56%, #ecd6a4 56%); filter: blur(48px) saturate(1.5); opacity: .5; transition: filter .9s ease .4s, opacity .9s ease .4s; }
.pk-wrap[data-time="eve"] .pk-aura .blur { filter: blur(48px) saturate(1.6) sepia(.5) hue-rotate(-20deg); opacity: .6; }
.pk-wrap[data-time="night"] .pk-aura .blur { filter: blur(48px) brightness(.45) saturate(.8) hue-rotate(20deg); opacity: .7; }
.pk-aura .lt { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease .4s; }
.pk-aura .lt.day { background: radial-gradient(ellipse 45% 40% at 26% 10%, rgba(255,226,120,.55), rgba(255,236,170,.18) 55%, transparent 75%); }
.pk-aura .lt.eve { background: radial-gradient(ellipse 55% 50% at 26% 26%, rgba(255,140,60,.6), rgba(255,120,90,.22) 55%, transparent 78%); }
.pk-aura .lt.night { background: radial-gradient(ellipse 40% 38% at 31% 8%, rgba(150,175,255,.45), rgba(90,110,200,.18) 55%, transparent 78%); }
.pk-wrap[data-time="day"] .lt.day, .pk-wrap[data-time="eve"] .lt.eve, .pk-wrap[data-time="night"] .lt.night { opacity: 1; }
.pk-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; user-select: none; -webkit-user-drag: none; transition: filter .9s ease .4s; }

/* Himmel */
.pk-sky { position: absolute; left: 0; right: 0; top: 0; height: 37%; z-index: 0; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%); mask-image: linear-gradient(to bottom, #000 60%, transparent 100%); }
.pk-sky .sk { position: absolute; inset: 0; transition: opacity .9s ease .3s; }
.pk-sky .sk.day { background: linear-gradient(#8ec0ec, #c6def2 55%, #e9f0f5); }
.pk-sky .sk.eve { background: linear-gradient(#4c5c9e 0%, #b9709a 34%, #f48f5c 66%, #ffcf8e 100%); opacity: 0; }
.pk-sky .sk.night { background: linear-gradient(#050a1c, #0f1a3d 60%, #24335e); opacity: 0; }
.pk[data-time="eve"] .sk.eve { opacity: 1; }
.pk[data-time="night"] .sk.night { opacity: 1; transition-delay: .45s; }
.pk-sky .stars b { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; box-shadow: 0 0 4px #fff; animation: pk-twinkle 3.2s ease-in-out infinite; animation-delay: var(--s); }
.pk-sky .stars b:nth-child(3n) { width: 3px; height: 3px; }
@keyframes pk-twinkle { 0%,100% { opacity: .25; } 50% { opacity: 1; } }

/* Sonne und Mond (liegen hinter der Szene und verschwinden hinter Bäumen) */
.pk-sky .sun, .pk-sky .moon { position: absolute; display: block; aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%); }

/* Wolken */
.pk-sky .clouds { position: absolute; inset: 0; transition: filter .6s ease .5s, opacity .6s ease .5s; }
.pk[data-time="eve"] .clouds, .pk[data-time="night"] .clouds { transition-duration: .5s; transition-delay: 0s; }
.pk[data-time="eve"] .clouds { filter: sepia(.5) saturate(2.2) hue-rotate(-28deg) brightness(.95); }
.pk[data-time="night"] .clouds { filter: brightness(.32) saturate(.6); opacity: .7; }
.pk-sky .cl { position: absolute; left: 0; display: block; width: 26%; aspect-ratio: 260 / 110; opacity: .95;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 110'%3E%3Cg fill='%23fff' stroke='%23b9c8d6' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M30 92c-16 0-24-12-20-24 4-11 16-15 26-11 3-17 18-27 35-24 9-17 31-24 49-15 10-13 33-15 46-2 16-6 35 3 39 20 17 0 29 13 26 30-2 14-13 26-28 26z'/%3E%3C/g%3E%3Cpath d='M60 70c10-6 22-6 30 0M140 60c8-5 18-5 26 1' fill='none' stroke='%23d3dde7' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: pk-drift linear infinite; will-change: transform; }
.pk-sky .c1 { top: 4%;  width: 24%; animation-duration: 70s;  animation-delay: -10s; }
.pk-sky .c2 { top: 30%; width: 16%; animation-duration: 95s;  animation-delay: -60s; opacity: .8; }
.pk-sky .c3 { top: 12%; width: 30%; animation-duration: 120s; animation-delay: -85s; }
.pk-sky .c4 { top: 46%; width: 13%; animation-duration: 80s;  animation-delay: -30s; opacity: .7; }
.pk-sky .c5 { top: 2%;  width: 19%; animation-duration: 105s; animation-delay: -5s;  opacity: .85; }
@keyframes pk-drift { from { transform: translateX(-110%); } to { transform: translateX(560%); } }

/* Müll-Gegenstände: Licht der Tageszeit */
.pk[data-time="eve"] .pk-item img { filter: sepia(.32) saturate(1.25) brightness(.96); }
.pk[data-time="night"] .pk-item img { filter: brightness(.58) saturate(.55) contrast(1.05); }
.pk-item img { transition: filter .9s ease .4s; }
/* Abendlicht von der tiefen Sonne */
.pk-glow { position: absolute; inset: 0; z-index: 4; pointer-events: none; mix-blend-mode: screen; opacity: 0; transition: opacity .9s ease .3s;
  background: radial-gradient(ellipse 38% 46% at 24% 30%, rgba(255,170,90,.55), rgba(255,140,70,.18) 55%, transparent 75%); }
.pk[data-time="eve"] .pk-glow { opacity: 1; transition-delay: .5s; }
/* Gegenstände */
.pk-item { position: absolute; z-index: 3; display: block; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in;
  -webkit-tap-highlight-color: transparent; transform-origin: var(--ox, 50%) var(--oy, 100%);
  transition: transform .75s cubic-bezier(.2,.9,.25,1.15), filter .4s; }
.pk-item.deco { pointer-events: none; }
.pk-item.small::before { content: ""; position: absolute; inset: -10px; }
.pk-item .g, .pk-item .w { position: relative; display: block; width: 100%; height: 100%; transform-origin: 50% 92%; }
.pk-item img.fx { position: absolute; inset: 0; }
.pk-item img { display: block; width: 100%; height: 100%; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.pk-item.bag .w { animation: pk-flutter 3.6s ease-in-out infinite; animation-delay: var(--d); }
.pk-item.cup .w { animation: pk-rock 4.4s ease-in-out infinite; animation-delay: var(--d); }
@keyframes pk-flutter {
  0%,100% { transform: rotate(0) skewX(0) scale(1, 1); }
  20% { transform: rotate(-1.6deg) skewX(4deg) scale(1.01, 1.05); }
  45% { transform: rotate(1deg) skewX(-3deg) scale(.995, .97); }
  70% { transform: rotate(-.8deg) skewX(2.5deg) scale(1.005, 1.03); }
}
@keyframes pk-rock {
  0%,100% { transform: rotate(0) translateX(0); }
  35% { transform: rotate(-2.4deg) translateX(-1%); }
  70% { transform: rotate(1.8deg) translateX(.8%); }
}
.pk.gust .pk-item.bag .g { animation: pk-gust-bag 1.8s ease-in-out; animation-delay: calc(var(--d) * .08); }
.pk.gust .pk-item.cup .g { animation: pk-gust-cup 1.8s ease-in-out; animation-delay: calc(var(--d) * .08); }
@keyframes pk-gust-bag {
  0%,100% { transform: none; }
  30% { transform: translateX(2.5%) skewX(-10deg) scale(1.03, 1.12); }
  55% { transform: translateX(1%) skewX(6deg) scale(1, .94); }
  80% { transform: skewX(-3deg) scale(1, 1.04); }
}
@keyframes pk-gust-cup {
  0%,100% { transform: none; }
  35% { transform: translateX(2%) rotate(5deg); }
  65% { transform: translateX(.6%) rotate(-2.5deg); }
}
/* Einmaliger Hinweis beim ersten Sichtbarwerden statt Punkten */
.pk-item.hint { animation: pk-hint 1s ease-in-out; }
@keyframes pk-hint { 0%,100% { filter: none; } 50% { filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 6px rgba(255,255,255,.9)); } }
.pk-item:hover:not(.active) { filter: drop-shadow(0 0 2px rgba(255,255,255,.9)); }

/* Zoom: nur der Gegenstand */
.pk-dim { position: absolute; inset: 0; z-index: 6; background: rgba(8,16,28,.5); opacity: 0; transition: opacity .45s; pointer-events: none; }
.pk.focus .pk-dim { opacity: 1; }
.pk-item.active { z-index: 7; transform: scale(var(--z, 2)); cursor: zoom-out;
  filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 2px #fff) drop-shadow(0 14px 18px rgba(0,0,0,.45)); }
.pk-item.active img { filter: none; }
.pk-item:focus-visible { outline: 2px solid #7fc4ff; outline-offset: 3px; border-radius: 10px; }
.pk-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; }

/* Info-Panel */
.pk-wrap .park-info { position: absolute; z-index: 9; top: 8%; right: 6%; bottom: auto; left: auto; width: min(330px, calc(100% - 28px));
  padding: .95rem 1.15rem 1.05rem; border-radius: 16px; background: rgba(5,10,18,.76); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pk-wrap .park-info .t { color: #7fc4ff; margin-bottom: .25rem; }
.pk-wrap .park-info .d { color: #fff; font-size: .95rem; line-height: 1.5; min-height: 0; }
@media (max-width: 760px) {
  .pk-wrap .park-info { position: relative; top: auto; right: auto; left: auto; width: auto; margin: -5% 4% 0; border-radius: 16px; background: rgba(8,14,24,.88); min-height: 7.4em; }
}
.pk-sky .cl, .pk-item .w, .pk-sky .stars b { animation-play-state: var(--play, running); }
@media (prefers-reduced-motion: reduce) {
  .pk-sky .cl, .pk-item .w, .pk-item .g, .pk-sky .stars b, .pk-item.hint { animation: none !important; }
  .pk-item { transition: none; }
}

/* Info-Karte: kompakt unten links, ragt leicht ins Bild, damit die Szene frei bleibt */
.pk-wrap .park-info { position: relative; z-index: 9; top: auto; right: auto; bottom: auto; left: auto; width: min(340px, 82%); margin: -.8rem 0 0 5%; padding: .7rem .95rem .8rem; border-radius: 14px;
  background: rgba(8,14,24,.82); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 14px 32px rgba(0,0,0,.22); min-height: 0; }
.pk-wrap .park-info .t { font-size: .62rem; margin-bottom: .15rem; }
.pk-wrap .park-info .d { font-size: .84rem; line-height: 1.45; }

/* ===== Leistungen-Auswahl als Dropdown mit Suche ===== */
.ddl { position: relative; }
.ddl-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .8rem; font: inherit; font-size: .97rem; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .85rem 1rem; cursor: pointer; text-align: left; transition: border-color .3s; }
.ddl-btn:hover { border-color: #0a84ff; }
.ddl-btn[aria-expanded="true"] { outline: 2px solid #0a84ff; outline-offset: 1px; }
.ddl-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; color: var(--muted); }
.ddl-val.has { color: var(--fg); }
.ddl-chev { flex: 0 0 auto; width: 12px; height: 8px; color: var(--muted); transition: transform .3s; }
.ddl-btn[aria-expanded="true"] .ddl-chev { transform: rotate(180deg); }
.ddl-panel { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: .6rem; max-height: 340px; display: flex; flex-direction: column; gap: .5rem; }
.ddl-panel[hidden] { display: none; }
.ddl-search { width: 100%; font: inherit; font-size: .92rem; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .6rem .8rem; }
.ddl-search:focus { outline: 2px solid #0a84ff; outline-offset: 1px; }
.ddl-list { overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding-right: 2px; }
.ddl-opt { display: flex; align-items: center; gap: .65rem; padding: .55rem .6rem; border-radius: 10px; cursor: pointer; font-size: .92rem; color: var(--fg); margin: 0; transition: background .2s; }
.ddl-opt:hover { background: rgba(10,132,255,.08); }
.ddl-opt input { width: 16px; height: 16px; accent-color: #0a84ff; flex: 0 0 auto; margin: 0; }
.ddl-opt.hide, .ddl-opt[hidden] { display: none; }
.ddl-empty { font-size: .86rem; color: var(--muted); padding: .5rem .6rem; }
.form .ddl-opt { display: flex; align-items: center; gap: .65rem; font-size: .92rem; color: var(--fg); font-weight: 400; margin: 0; }
.form .ddl .lbl { margin-bottom: .35rem; }
.form .ddl-opt[hidden], .form .ddl-panel[hidden] { display: none; }

/* Warm: Hero-Text immer lesbar, auch über Schmutz-Partikeln und Wisch-Effekt */
[data-theme="warm"] .lead { color: #4e3b27; }
[data-theme="warm"] .hint { color: #5e4a33; }
[data-theme="warm"] .eyebrow { color: #a4471a; }

/* Verlaufsschrift im Hero: Farben gleiten beim Moduswechsel mit */
@property --ga { syntax: '<color>'; inherits: true; initial-value: #0b2f5b; }
@property --gb { syntax: '<color>'; inherits: true; initial-value: #0a84ff; }
[data-theme="light"] h1 .gradient, :root:not([data-theme]) h1 .gradient { --ga: #0b2f5b; --gb: #0a84ff; }
[data-theme="dark"] h1 .gradient { --ga: #f2f6fb; --gb: #0a84ff; }
[data-theme="warm"] h1 .gradient { --ga: #3b2a1a; --gb: #a4471a; }
h1 .gradient { background: linear-gradient(120deg, var(--ga), var(--gb)); -webkit-background-clip: text; background-clip: text; color: transparent; transition: --ga .9s ease, --gb .9s ease; }

/* ===== Kopfzeile: ruhiger Hintergrund, auf dem Handy einzeilig ===== */
header { background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; }
.nav a.rr-pill .pl-short { display: none; }
@media (max-width: 560px) {
  header { flex-wrap: nowrap; gap: .6rem; padding: .75rem 1rem; }
  .logo { font-size: .82rem; letter-spacing: .05em; white-space: nowrap; }
  .nav { flex-wrap: nowrap; gap: .8rem; }
  .nav a { font-size: .82rem; white-space: nowrap; }
  .nav a.rr-pill { padding: .38rem .8rem; font-size: .8rem; }
  .nav a.rr-pill .pl-long { display: none; }
  .nav a.rr-pill .pl-short { display: inline; }
}

/* ===== Feinschliff nach Durchsicht ===== */
/* Kontakt: Auswahl und Formular gleich breit */
#kontakt .choice, #kontakt .form, #kontakt .form-note { max-width: 860px; }
#kontakt .form { max-width: 860px; }

/* Dropdown-Farben für die Website */
:root, [data-theme] { --dd-panel: var(--surface); --dd-field: var(--surface); --dd-text: var(--fg); --dd-muted: var(--muted); --dd-line: var(--line); }
.form .ddl-search { padding: .6rem .8rem; border-radius: 11px; font-size: .92rem; }

/* ===== Rechtliche Seiten im Layout der Website ===== */
.legal { max-width: 780px; margin: 0 auto; padding: clamp(6.5rem, 12vw, 8.5rem) 1.5rem 7rem; }
.legal-back { display: inline-block; margin-bottom: 1.6rem; color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500; }
.legal-back:hover { color: #0a84ff; }
.legal-doc { background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(1.6rem, 4vw, 3rem); }
.legal-doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); color: var(--head); margin-bottom: 1.4rem; }
.legal-doc h2 { font-size: 1.12rem; color: var(--head); margin: 2rem 0 .55rem; letter-spacing: -.01em; }
.legal-doc h3 { font-size: 1rem; color: var(--head); margin: 1.4rem 0 .4rem; }
.legal-doc p, .legal-doc li { color: var(--fg); line-height: 1.7; font-size: .98rem; }
.legal-doc p + p { margin-top: .7rem; }
.legal-doc ul, .legal-doc ol { margin: .5rem 0 .8rem 1.3rem; }
.legal-doc a { color: #0a84ff; text-decoration: underline; text-underline-offset: 2px; }
.legal-doc .muted { color: var(--muted); font-size: .88rem; margin-top: 2.2rem; }
.legal-doc table { width: 100%; border-collapse: collapse; margin: .8rem 0; font-size: .92rem; }
.legal-doc th, .legal-doc td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-page .dock { position: fixed; }
.legal-doc { overflow-wrap: break-word; min-width: 0; }
.legal-doc h1 { hyphens: auto; -webkit-hyphens: auto; font-size: clamp(1.6rem, 7vw, 2.8rem); }
@media (max-width: 560px) { .legal { padding-left: 1rem; padding-right: 1rem; } .legal-doc { border-radius: 18px; padding: 1.3rem 1.15rem; } }
.legal-doc h4 { font-size: 1.08rem; font-weight: 700; color: var(--head); margin: 2rem 0 .55rem; letter-spacing: -.01em; line-height: 1.3; }
.legal-doc li > h4 { font-size: 1rem; margin: 1.3rem 0 .4rem; }
.legal-doc ul[style*="list-style: none"], .legal-doc ul[style*="list-style:none"] { margin-left: 0; padding-left: 0; }
.legal-doc li li { position: relative; padding-left: 1.1rem; margin: .3rem 0; }
.legal-doc li li::before { content: ""; position: absolute; left: .2rem; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: #0a84ff; }
.legal-doc p { overflow-wrap: anywhere; }

/* ===== Hinweis beim ersten Besuch: klein, unten, blockiert nichts ===== */
.consent { position: fixed; inset: auto auto 76px 50%; transform: translate(-50%, 16px); z-index: 60; width: min(560px, calc(100% - 24px)); display: block; padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; opacity: 0; transition: opacity .3s ease, transform .35s cubic-bezier(.2,.8,.2,1); }
.consent.show { opacity: 1; transform: translate(-50%, 0); }
.consent-card { max-width: none; border-radius: 18px; padding: 1rem 1.1rem; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0,0,0,.18); background: var(--surface); display: grid; gap: .45rem; }
.consent-card b { color: var(--head); font-size: .95rem; }
.consent-card p { margin: 0; font-size: .86rem; line-height: 1.5; }
.consent-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .35rem; }
.consent-actions button { flex: 1 1 auto; padding: .7rem 1rem; font-size: .88rem; }

/* ===== Über uns ===== */
.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about .sec-title { margin-top: .6rem; }
.about-lead { color: var(--muted); font-size: 1.08rem; line-height: 1.7; max-width: 38rem; margin: .4rem 0 1.6rem; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.value { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.05rem; box-shadow: var(--shadow); }
.value b { display: block; color: var(--head); font-size: .98rem; margin-bottom: .3rem; }
.value span { display: block; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.social { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.4rem; }
.soc { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--head); text-decoration: none; font-size: .88rem; font-weight: 600; transition: border-color .25s, color .25s; }
.soc svg { width: 18px; height: 18px; }
.soc:hover { border-color: #0a84ff; color: #0a84ff; }
.soc-handle { color: var(--muted); font-size: .88rem; }
.about-side { display: grid; gap: .9rem; }
.photo-slot { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; display: grid; place-items: center; border: 1px dashed color-mix(in srgb, #0a84ff 45%, transparent);
  background: radial-gradient(120% 90% at 20% 10%, color-mix(in srgb, #0a84ff 16%, transparent), transparent 60%), linear-gradient(160deg, color-mix(in srgb, #0a84ff 9%, var(--surface)), var(--surface)); }
.photo-slot span { font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, #0a84ff 70%, var(--muted)); }
.photo-slot::before { content: ""; width: 42px; height: 42px; margin-bottom: 2.6rem; position: absolute; opacity: .55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a84ff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Ccircle cx='9' cy='10' r='1.6'/%3E%3Cpath d='M21 16l-5-5-8 8'/%3E%3C/svg%3E") center / contain no-repeat; }
.about-side > img, .proj-media > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }
.area { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1.05rem 1.15rem; box-shadow: var(--shadow); }
.area-k { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #0a84ff; margin-bottom: .35rem; }
.area b { display: block; color: var(--head); font-size: 1.02rem; margin-bottom: .35rem; }
.area p { color: var(--muted); font-size: .88rem; line-height: 1.55; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .values { grid-template-columns: 1fr; } }

/* ===== Projekte ===== */
.proj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.proj { background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.proj:hover { transform: translateY(-3px); }
.proj-media { padding: .6rem .6rem 0; }
.proj-media .photo-slot { border-radius: 16px; }
.proj-body { padding: .9rem 1.1rem 1.2rem; }
.proj-tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #0a84ff; margin-bottom: .35rem; }
.proj-body h3 { font-size: 1.05rem; color: var(--head); margin-bottom: .3rem; }
.proj-body p { color: var(--muted); font-size: .88rem; line-height: 1.5; }
@media (max-width: 900px) { .proj-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .proj-grid { grid-template-columns: 1fr; } }

/* ===== Schnellkontakt WhatsApp / Telefon ===== */
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 1.4rem; max-width: 860px; }
.quick-t { color: var(--muted); font-size: .92rem; margin-right: .2rem; }
.qbtn { display: inline-flex; align-items: center; gap: .55rem; padding: .78rem 1.25rem; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.qbtn svg { width: 20px; height: 20px; }
.qbtn:hover { transform: translateY(-2px); }
.qbtn.wa { background: #25d366; color: #06301a; box-shadow: 0 10px 26px rgba(37,211,102,.32); }
.qbtn.tel { background: var(--surface); color: var(--head); border: 1px solid var(--line); }
@media (max-width: 560px) { .quick { gap: .5rem; } .quick-t { width: 100%; } .qbtn { flex: 1 1 0; justify-content: center; padding: .8rem .9rem; } }

/* Fußzeile: Social-Icons */
.foot-social { display: inline-flex; gap: .7rem; align-items: center; }
.foot-social a { display: inline-flex; color: var(--muted); transition: color .25s; }
.foot-social a:hover { color: #0a84ff; }
.foot-social svg { width: 20px; height: 20px; }

/* Navigation: Über uns und Projekte nur, wenn genug Platz ist */
@media (max-width: 760px) { .nav a.nav-wide { display: none; } }
.about .sec-title { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
@media (max-width: 560px) { .qbtn .long { display: none; } }
.quick { position: relative; }
.qbtn.tel span { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.qtoast { position: absolute; left: 0; top: calc(100% + 6px); font-size: .84rem; font-weight: 600; color: #0a84ff; opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s; pointer-events: none; }
.qtoast.on { opacity: 1; transform: none; }
@media (max-width: 560px) { .qbtn.tel { flex: 1.3 1 0; } }
.qbtn { white-space: nowrap; }
@media (max-width: 560px) { .qbtn { font-size: .9rem; padding: .8rem .75rem; gap: .4rem; } .qbtn svg { width: 18px; height: 18px; } .qbtn.wa { flex: 1 1 0; } .qbtn.tel { flex: 1.5 1 0; } }
.quick { margin-bottom: 1.9rem; }

/* =====================================================================
   HANDY-VERSION
   ===================================================================== */
html, body { overflow-x: clip; }
.burger, .mnav { display: none; }
.pk-chips { display: none; }
.beitrag > *, .pk-wrap { min-width: 0; }
.eyebrow .sep { white-space: pre; }

@media (max-width: 760px) {
  /* Kopfzeile: Logo · Rechner · Menü */
  header { flex-wrap: nowrap; gap: .5rem; padding: calc(.6rem + env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) .6rem max(1rem, env(safe-area-inset-left)); }
  .logo { font-size: .86rem; letter-spacing: .06em; white-space: nowrap; padding: .7rem 0; }
  .nav { flex-wrap: nowrap; gap: .4rem; }
  .nav > a:not(.rr-pill):not(.burger) { display: none; }
  .nav a.rr-pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; font-size: .84rem; }
  .nav a.rr-pill .pl-long { display: none; }
  .nav a.rr-pill .pl-short { display: inline; }
  .burger { display: inline-grid; place-items: center; position: relative; width: 44px; height: 44px; margin-right: -.4rem; border: 0; border-radius: 12px; background: transparent; color: var(--head); cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .burger i { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s cubic-bezier(.65,0,.35,1), top .35s cubic-bezier(.65,0,.35,1); }
  .burger i:first-child { top: 17px; } .burger i:last-child { top: 25px; }
  .mnav-open .burger i:first-child { top: 21px; transform: rotate(45deg); }
  .mnav-open .burger i:last-child { top: 21px; transform: rotate(-45deg); }
  .mnav-open header { background: var(--bg); }

  /* Menü-Fläche */
  .mnav { display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 9; overflow-y: auto; overscroll-behavior: contain;
    padding: calc(5rem + env(safe-area-inset-top)) 1.25rem calc(6.5rem + env(safe-area-inset-bottom));
    background: var(--bg); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
  .mnav-open .mnav { opacity: 1; visibility: visible; transition: opacity .3s ease; }
  .mnav-open body { overflow: hidden; }
  .mnav-links { display: flex; flex-direction: column; }
  .mnav-links a, .mnav-quick { opacity: 0; transform: translateY(14px); transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1); }
  .mnav-open .mnav-links a, .mnav-open .mnav-quick { opacity: 1; transform: none; transition-delay: calc(var(--i) * 40ms + 60ms); }
  .mnav-links a { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: .2rem .2rem; border-bottom: 1px solid var(--line); color: var(--head); text-decoration: none; font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; -webkit-tap-highlight-color: transparent; }
  .mnav-links a svg { width: 20px; height: 20px; color: var(--muted); }
  .mnav-links a:active { color: var(--accent); }
  .mnav-links a.mnav-rr { margin-top: 1.2rem; border: 0; border-radius: 18px; padding: 0 1.2rem; min-height: 62px; background: #0a84ff; color: #fff; font-size: 1.15rem; }
  .mnav-links a.mnav-rr em { font-style: normal; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: rgba(255,255,255,.2); padding: .3rem .6rem; border-radius: 999px; }
  .mnav-quick { display: flex; gap: .6rem; margin-top: 1rem; }
  .mnav-quick .qbtn { flex: 1 1 0; justify-content: center; min-height: 54px; }

  /* Hero */
  .hero { min-height: 100svh; padding: calc(5.5rem + env(safe-area-inset-top)) 1.25rem 4.5rem; }
  .hero-inner { padding: 0; }
  .eyebrow { letter-spacing: .2em; font-size: .7rem; line-height: 1.7; margin-bottom: 1rem; }
  .eyebrow span { display: block; } .eyebrow .sep { display: none; }
  h1 { font-size: clamp(2.3rem, 11vw, 3.2rem); line-height: 1.05; }
  .lead { font-size: 1.02rem; margin: 1.2rem auto 1.9rem; }
  .hero .btns { display: flex; flex-direction: column; gap: .7rem; width: 100%; max-width: 360px; margin: 0 auto; }
  .hero .btns a { display: flex; justify-content: center; align-items: center; min-height: 54px; margin: 0; }
  .hero .hint { margin-top: 1.8rem; font-size: .7rem; }

  /* Abschnitte */
  section { padding-top: 4.2rem; padding-bottom: 4.2rem; }
  section[id] { scroll-margin-top: 70px; }
  .sec-title { font-size: clamp(1.9rem, 8.5vw, 2.4rem); }

  /* Spielplatz: randlos über die volle Breite, Info darunter, Chips zum Antippen */
  .pk-wrap { margin-left: -1.25rem; margin-right: -1.25rem; }
  .pk { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%, #000 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%, #000 92%, transparent 100%); }
  .pk-aura { inset: -12% 0; }
  .pk-aura .blur { inset: 12% 0; }
  .is-touch .pk-item::before { display: none; }
  .pk-wrap .park-info { width: auto; margin: -.55rem 1.25rem 0; min-height: 0; padding: .75rem .95rem .85rem; }
  .pk-wrap .park-info .d { font-size: .86rem; }
  .pk-chips { display: flex; gap: .45rem; overflow-x: auto; scroll-snap-type: x proximity; padding: .8rem 1.25rem .3rem; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 1.25rem, #000 calc(100% - 1.25rem), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 1.25rem, #000 calc(100% - 1.25rem), transparent 100%); }
  .pk-chips::-webkit-scrollbar { display: none; }
  .pk-chip { flex: 0 0 auto; scroll-snap-align: center; min-height: 40px; padding: 0 .95rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font: inherit; font-size: .84rem; font-weight: 600; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .25s, color .25s, border-color .25s; }
  .pk-chip.on { background: #0a84ff; border-color: #0a84ff; color: #fff; }


  /* Kontakt */
  .choice { gap: .55rem; }
  .choice label { padding: .95rem 1.1rem; }
  .choice label:hover { transform: none; }
  .form input:not([type=checkbox]), .form select, .form textarea, .ddl-btn, .ddl-search, .dd-btn, .dd-search { font-size: 16px !important; }
  .form input:not([type=checkbox]), .ddl-btn { min-height: 50px; }
  .form .check { display: grid; grid-template-columns: 24px 1fr; gap: .75rem; align-items: start; }
  .form .check input { width: 22px; height: 22px; margin: .1rem 0 0; }
  .form .check a { display: inline; padding: .3rem 0; }
  .form button[type=submit] { width: 100%; min-height: 54px; justify-self: stretch; }
  .ddl-opt { min-height: 44px; }
  .ddl-opt input { width: 20px; height: 20px; }
  .ddl-panel { max-height: min(60vh, 380px); }

  /* Footer */
  footer { flex-direction: column; align-items: center; text-align: center; gap: .9rem; padding: 2.4rem 1.25rem calc(6.5rem + env(safe-area-inset-bottom)); }
  footer > span:last-child { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .2rem; }
  footer > span:last-child a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .45rem; }
  .foot-social { gap: .4rem; }
  .foot-social a { display: inline-grid; place-items: center; width: 44px; height: 44px; }

  /* Farbschalter unten */
  .dock { bottom: calc(16px + env(safe-area-inset-bottom)); transition: opacity .3s; }
  .dock .theme-switch button { min-height: 40px; padding: 0 1rem; font-size: .82rem; }
  .consent { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  .logo { font-size: .78rem; letter-spacing: .04em; }
  .nav a.rr-pill { padding: 0 .8rem; }
  h1 { font-size: 2.15rem; }
}
@media (hover: none) { .pk-item:hover:not(.active) { filter: none; } }
@media (max-width: 760px) {
  footer > span:last-child { font-size: 0; }
  footer > span:last-child a { font-size: .86rem; }
  #rechner .rframe { padding: 1.6rem 1.3rem; border-radius: 26px; gap: 0; }
  #rechner .rframe > div:last-child { display: none; }
  #rechner .btn-blue { display: flex; justify-content: center; align-items: center; min-height: 54px; width: 100%; margin-top: 1.4rem; }
  .proj .photo-slot { aspect-ratio: 16 / 10; }
}
.form .hint { text-transform: none; letter-spacing: 0; font-size: .85rem; margin-top: .4rem; }

/* ===== Echte Fotos: Über uns, Projekte, Bildansicht ===== */
label.lb, button.lb { display: block; position: relative; width: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; border-radius: 16px; overflow: hidden; -webkit-tap-highlight-color: transparent; }
label.lb img, button.lb img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; aspect-ratio: auto; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
label.lb:hover img, button.lb:hover img { transform: scale(1.04); }
label.lb:has(.lb-c:focus-visible), button.lb:focus-visible { outline: 2px solid #0a84ff; outline-offset: 2px; }

.about-photo { position: relative; margin: 0 0 1.6rem; }
.about-photo > .lb:first-child { aspect-ratio: 4 / 5; border-radius: 22px; box-shadow: 0 24px 60px rgba(11,47,91,.18); }
.about-photo .about-inset { position: absolute; right: -10px; bottom: -22px; width: 38%; aspect-ratio: 3 / 4; border-radius: 16px; border: 4px solid var(--bg); box-shadow: 0 14px 34px rgba(0,0,0,.22); }
.about-photo figcaption { position: absolute; left: 14px; bottom: 14px; max-width: 55%; padding: .45rem .8rem; border-radius: 999px; background: rgba(5,10,18,.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: .78rem; font-weight: 600; pointer-events: none; }

.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; position: relative; border-radius: 16px; overflow: hidden; }
.ba .lb { aspect-ratio: 3 / 4; border-radius: 0; }
.ba-tag { position: absolute; left: 8px; top: 8px; padding: .28rem .6rem; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(5,10,18,.66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; }
.ba-tag.on { background: #0a84ff; }
.ba .ba-more { position: absolute; right: 8px; bottom: 8px; width: 46px; height: 46px; aspect-ratio: 1; border-radius: 12px; border: 2px solid #fff; box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.ba .ba-more::after { content: "+1"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5,10,18,.5); color: #fff; font-size: .8rem; font-weight: 700; }

.mosaic { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; }
.mosaic .lb { border-radius: 0; }
.mosaic .lb:first-child { grid-row: span 2; }
.mosaic .lb:nth-child(2) { grid-column: span 2; }
.lb.single { aspect-ratio: 4 / 5; }
.proj-grid { align-items: start; }
.proj-wide { grid-column: span 2; }
.proj-wide .mosaic { aspect-ratio: 16 / 10; }
@media (max-width: 900px) { .proj-wide { grid-column: 1 / -1; } .proj-wide .mosaic { aspect-ratio: 16 / 10; } }
@media (max-width: 600px) {
  .proj-wide .mosaic { aspect-ratio: 4 / 5; grid-template-columns: 1fr 1fr; grid-template-rows: 1.4fr 1fr 1fr; }
  .mosaic .lb:first-child { grid-row: auto; grid-column: span 2; }
  .mosaic .lb:nth-child(2) { grid-column: auto; grid-row: span 2; }
  .lb.single { aspect-ratio: 4 / 4.4; }
  .about-photo .about-inset { right: -4px; width: 36%; }
}

/* Bildansicht */
.lbox { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-columns: auto 1fr auto; align-items: center; background: rgba(4,8,14,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .25s ease; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.lbox[hidden] { display: none; }
.lbox.show { opacity: 1; }
.lbox-open body { overflow: hidden; }
.lbox-fig { margin: 0; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; padding: 4.2rem .5rem 1.4rem; min-width: 0; }
.lbox-fig img { max-width: 100%; max-height: calc(100svh - 9rem); object-fit: contain; border-radius: 14px; opacity: 0; transform: translateX(var(--dx, 0)) scale(.98); transition: opacity .3s ease, transform .4s cubic-bezier(.2,.8,.2,1); user-select: none; -webkit-user-drag: none; }
.lbox-fig img.in { opacity: 1; transform: none; }
.lbox-fig figcaption { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; justify-content: center; color: rgba(255,255,255,.85); font-size: .9rem; text-align: center; }
.lbox-tag { padding: .25rem .6rem; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lbox-tag.on { background: #0a84ff; }
.lbox-tag[hidden] { display: none; }
.lbox-n { color: rgba(255,255,255,.55); font-size: .8rem; font-variant-numeric: tabular-nums; }
.lbox-x, .lbox-nav { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lbox-x svg, .lbox-nav svg { width: 22px; height: 22px; }
.lbox-x { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: calc(14px + env(safe-area-inset-right)); z-index: 2; }
.lbox-nav { margin: 0 1rem; }
.lbox-nav[hidden] { visibility: hidden; display: grid; }
.lbox-x:hover, .lbox-nav:hover { background: rgba(255,255,255,.22); }
@media (max-width: 760px) {
  .lbox { grid-template-columns: 1fr; }
  .lbox-nav { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom)); margin: 0; z-index: 2; }
  .lbox-nav.prev { left: 18px; } .lbox-nav.next { right: 18px; }
  .lbox-fig { padding: 4.2rem .6rem 5.4rem; }
  .lbox-fig img { max-height: calc(100svh - 12rem); }
  .lbox-fig figcaption { padding: 0 3.6rem; }
}

/* Spielplatz-Aktion: große Karte über die ganze Breite */
.proj-feature { grid-column: 1 / -1; }
.feat { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; border-radius: 16px; overflow: hidden; }
.feat > .lb:not(.ba-more) { aspect-ratio: 748 / 670; border-radius: 0; }
.feat .ba-more { position: absolute; right: 10px; bottom: 10px; width: 52px; height: 52px; border-radius: 12px; border: 2px solid #fff; box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.feat .ba-more::after { content: "+1"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5,10,18,.5); color: #fff; font-size: .8rem; font-weight: 700; }
.ba-tag.mid { background: #ff9f0a; color: #1a1205; }
.proj-feature .proj-body { padding: 1rem 1.3rem 1.3rem; }
.proj-feature .proj-body h3 { font-size: 1.2rem; }
.beitrag-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.2rem; min-height: 44px; color: #0a84ff; font-weight: 600; text-decoration: none; }
.beitrag-link span { transition: transform .3s; }
.beitrag-link:hover span { transform: translateX(4px); }
#spielplatz-aktion { scroll-margin-top: 90px; }
@media (max-width: 760px) {
  .feat { grid-template-columns: 1fr 1fr; }
  #spielplatz-aktion { scroll-margin-top: 70px; }
}

/* Antippen vergrößert das Bild direkt in der Karte. Funktioniert auch ohne JavaScript. */
.lb-c { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.lb:has(.lb-c:checked) { order: -1; grid-column: 1 / -1 !important; grid-row: auto !important; aspect-ratio: auto !important; position: relative !important; inset: auto !important; width: auto !important; height: auto !important; border: 0 !important; box-shadow: none !important; cursor: zoom-out; z-index: 2; }
.lb:has(.lb-c:checked) img { height: auto; max-height: 80svh; object-fit: contain; background: #05080e; transform: none !important; }
.lb:has(.lb-c:checked)::after { content: "✕  Schließen"; position: absolute; inset: auto 10px 10px auto; width: auto; height: auto; display: block; padding: .45rem .8rem; border-radius: 999px; background: rgba(5,10,18,.72); color: #fff; font-size: .78rem; font-weight: 700; }
.ba:has(.lb-c:checked), .feat:has(.lb-c:checked), .mosaic:has(.lb-c:checked) { aspect-ratio: auto !important; grid-template-rows: none !important; }
.mosaic:has(.lb-c:checked) { grid-template-columns: 1fr 1fr !important; }
.mosaic:has(.lb-c:checked) > .lb:not(:has(.lb-c:checked)) { grid-column: auto !important; grid-row: auto !important; aspect-ratio: 1; }
.about-photo:has(.lb-c:checked) { display: grid; gap: 8px; }
.about-photo:has(.lb-c:checked) figcaption { display: none; }
.about-photo:has(.lb-c:checked) > .lb:not(:has(.lb-c:checked)) { display: none; }
.proj:has(.lb-c:checked), .proj:has(.lb-c:checked):hover { transform: none; }

/* Spielplatz ohne JavaScript: Gegenstand antippen zoomt per CSS, Text erscheint im Info-Feld */
.pk-r { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pk-reset { position: absolute; inset: 0; z-index: 2; cursor: default; }
.pk-item:has(.pk-r:checked) { z-index: 7; transform: scale(var(--z, 2)); cursor: zoom-out;
  filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 2px #fff) drop-shadow(0 14px 18px rgba(0,0,0,.45)); }
.pk:has(.pk-item .pk-r:checked) .pk-dim { opacity: 1; }
.pk:has(.pk-item .pk-r:checked) .pk-reset { z-index: 6; }
.pk-alt { display: none; }
.pk-wrap:has(#pk-1:checked) .pa-1,
.pk-wrap:has(#pk-2:checked) .pa-2,
.pk-wrap:has(#pk-3:checked) .pa-3,
.pk-wrap:has(#pk-4:checked) .pa-4,
.pk-wrap:has(#pk-5:checked) .pa-5,
.pk-wrap:has(#pk-6:checked) .pa-6,
.pk-wrap:has(#pk-7:checked) .pa-7,
.pk-wrap:has(#pk-8:checked) .pa-8,
.pk-wrap:has(#pk-9:checked) .pa-9,
.pk-wrap:has(#pk-10:checked) .pa-10,
.pk-wrap:has(#pk-11:checked) .pa-11 { display: block; }
.pk-wrap:has(.pk-item .pk-r:checked) .park-info > #pT, .pk-wrap:has(.pk-item .pk-r:checked) .park-info > #pD { display: none; }

/* Ohne JavaScript: Kontakt-Anliegen umschalten, Kopfzeile mit Links */
#kontakt:has(#a-bewerbung:checked) .form .mode-angebot, #kontakt:has(#a-sonst:checked) .form .mode-angebot,
#kontakt:has(#a-angebot:checked) .form .mode-bewerbung, #kontakt:has(#a-sonst:checked) .form .mode-bewerbung,
#kontakt:has(#a-angebot:checked) .form .mode-sonst, #kontakt:has(#a-bewerbung:checked) .form .mode-sonst { display: none; }
#kontakt:has(#a-bewerbung:checked) .form .mode-bewerbung, #kontakt:has(#a-sonst:checked) .form .mode-sonst, #kontakt:has(#a-angebot:checked) .form .mode-angebot { display: grid; }
@media (max-width: 760px) {
  header:not(:has(.burger)) .nav > a:not(.rr-pill):not(.nav-wide) { display: inline-flex; align-items: center; min-height: 44px; font-size: .8rem; }
  header:not(:has(.burger)) .nav { gap: .7rem; }
}

.on-touch { display: none; }
@media (hover: none), (pointer: coarse) { .on-fine { display: none; } .on-touch { display: inline; } }

/* Leistungs-Auswahl ohne JavaScript: Antippen klappt die Liste auf und zu */
.ddl-t { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
label.ddl-btn { margin: 0; font-weight: 400; }
html:not(.js) .ddl:has(.ddl-t:checked) .ddl-panel[hidden] { display: flex !important; }
html:not(.js) .ddl:has(.ddl-t:checked) .ddl-chev { transform: rotate(180deg); }
html:not(.js) .ddl-search { display: none; }
html:not(.js) .ddl:has(.ddl-list input:checked) .ddl-val::after { content: " · Auswahl getroffen"; color: #0a84ff; }
.form label.ddl-btn { display: flex; font-size: .97rem; color: var(--fg); margin-bottom: 0; font-weight: 400; }

.feat-p > .lb:not(.ba-more) { aspect-ratio: 3 / 4 !important; }
#gartenhaus { scroll-margin-top: 90px; }

/* Menü ohne JavaScript: #menu als Ziel öffnet es, jeder Link schließt es automatisch */
.burger.close { display: none !important; }
@media (max-width: 760px) {
  a.burger { text-decoration: none; }
  :root:has(#menu:target) .mnav { opacity: 1; visibility: visible; transition: opacity .3s ease; }
  :root:has(#menu:target) .mnav-links a, :root:has(#menu:target) .mnav-quick { opacity: 1; transform: none; transition-delay: calc(var(--i) * 40ms + 60ms); }
  :root:has(#menu:target) body { overflow: hidden; }
  :root:has(#menu:target) header { background: var(--bg); }
  :root:has(#menu:target) .burger.open { display: none !important; }
  :root:has(#menu:target) .burger.close { display: inline-grid !important; }
  .burger.close i:first-child { top: 21px; transform: rotate(45deg); }
  .burger.close i:last-child { top: 21px; transform: rotate(-45deg); }
}
@media (max-width: 760px) { .nav a.burger { color: var(--head); font-size: 0; } }

/* Über uns: kleines Foto antippen, dann tauschen beide Fotos mit einer Bewegung die Plätze */
.about-photo { aspect-ratio: 4 / 5; --sw: 38%; --sh: 40.5%; --sl: calc(62% + 10px); --st: calc(59.5% + 22px); }
.about-photo .ph-swap { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.about-photo .ph { position: absolute; display: block; margin: 0; overflow: hidden; -webkit-tap-highlight-color: transparent;
  transition: left .75s cubic-bezier(.65,0,.25,1), top .75s cubic-bezier(.65,0,.25,1), width .75s cubic-bezier(.65,0,.25,1), height .75s cubic-bezier(.65,0,.25,1), border-radius .75s ease, border-width .75s ease, box-shadow .75s ease, z-index 0s linear .75s; }
.about-photo .ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* großer Platz */
.about-photo .ph-a, .about-photo .ph-swap:checked ~ .ph-b { left: 0; top: 0; width: 100%; height: 100%; z-index: 1; border-radius: 22px; border: 0 solid var(--bg); box-shadow: 0 24px 60px rgba(11,47,91,.18); pointer-events: none; cursor: default; }
/* kleiner Platz unten rechts */
.about-photo .ph-b, .about-photo .ph-swap:checked ~ .ph-a { left: var(--sl); top: var(--st); width: var(--sw); height: var(--sh); z-index: 3; border-radius: 16px; border: 4px solid var(--bg); box-shadow: 0 14px 34px rgba(0,0,0,.25); pointer-events: auto; cursor: pointer; }
.about-photo .ph::after { content: ""; position: absolute; left: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%; opacity: 0; transition: opacity .3s;
  background: rgba(5,10,18,.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h11l-3-3M17 17H6l3 3'/%3E%3C/svg%3E") center / 16px no-repeat; }
.about-photo .ph-b::after, .about-photo .ph-swap:checked ~ .ph-a::after { opacity: 1; transition-delay: .6s; }
.about-photo .ph-swap:checked ~ .ph-b::after { opacity: 0; transition-delay: 0s; }
.about-photo .ph:active { filter: brightness(.95); }
.about-photo figcaption { z-index: 4; }
@media (hover: hover) { .about-photo .ph-b:hover img, .about-photo .ph-swap:checked ~ .ph-a:hover img { transform: scale(1.05); transition: transform .5s; } }
@media (max-width: 600px) { .about-photo { --sw: 36%; --sh: 38.4%; --sl: calc(64% + 4px); --st: calc(61.6% + 22px); } }
@media (prefers-reduced-motion: reduce) { .about-photo .ph { transition: none; } }

/* Farbmodus im Handy-Menü */
.th-r { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.mnav-theme { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: 1.4rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 18px; background: var(--card); opacity: 0; transform: translateY(14px); transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1); }
.mnav-theme > span { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mnav-open .mnav-theme, :root:has(#menu:target) .mnav-theme { opacity: 1; transform: none; transition-delay: calc(var(--i) * 40ms + 60ms); }
.mnav-theme .theme-switch button { min-height: 40px; padding: 0 .95rem; font-size: .84rem; }
/* Wenn das Menü offen ist, sitzt der Schalter dort, unten wird er ausgeblendet */
.mnav-open .dock, :root:has(#menu:target) .dock { opacity: 0; pointer-events: none; }
/* Ohne JavaScript: gleicher Schalter aus drei Feldern */
.thn { display: none; }
html:not(.js) .thn { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); box-shadow: 0 12px 40px rgba(0,0,0,.18); }
html:not(.js) .mnav-theme .thn { box-shadow: none; }
.thn label { display: inline-flex; align-items: center; min-height: 40px; padding: 0 .95rem; border-radius: 999px; font-size: .84rem; font-weight: 600; color: var(--muted); cursor: pointer; margin: 0; transition: background .35s, color .35s; -webkit-tap-highlight-color: transparent; }
html:has(#th-light:checked) .thn label[for="th-light"], html:has(#th-warm:checked) .thn label[for="th-warm"], html:has(#th-dark:checked) .thn label[for="th-dark"] { background: #0a84ff; color: #fff; }
html:not(.js) body, html:not(.js) header, html:not(.js) .proj, html:not(.js) .area, html:not(.js) .value, html:not(.js) footer { transition: background-color .6s ease, color .6s ease, border-color .6s ease; }
/* Spielplatz ohne JavaScript: Sonne und Mond wandern mit dem Farbmodus */
html:not(.js) .pk-sky .sun, html:not(.js) .pk-sky .moon { transition: top 1.4s ease-in-out, opacity .8s ease .4s; }
html:not(.js):has(#th-warm:checked) .pk-sky .sun::after, html:not(.js):has(#th-dark:checked) .pk-sky .sun::after { opacity: 1; }
html:not(.js):has(#th-warm:checked) .pk-sky .sun::before, html:not(.js):has(#th-dark:checked) .pk-sky .sun::before { opacity: 0; }
html:not(.js):has(#th-dark:checked) .pk-sky .sun { opacity: 0; }
html:not(.js):has(#th-dark:checked) .pk-sky .moon { opacity: 1; }
html:not(.js):has(#th-warm:checked) .pk-sky .sun { top: 19%; }
html:not(.js):has(#th-warm:checked) .pk-scene .eve, html:not(.js):has(#th-dark:checked) .pk-scene .night { opacity: 1; }
html:not(.js):has(#th-dark:checked) .pk-sky .sun { top: 42%; }
html:not(.js):has(#th-dark:checked) .pk-sky .moon { top: 7%; transition-delay: .35s; }

/* Unsichtbare Schalter: fest im Sichtfeld, damit das Antippen nie die Seite verschiebt */
.about-photo .ph-swap, .th-r, .ddl-t, .lb-c { position: fixed !important; top: 50% !important; left: 0 !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; margin: 0; }

/* PC: Über uns kompakter, damit der Abstand zu „Unser Beitrag“ nicht zu groß wird */
.about-text .area { margin-top: 1.4rem; }
@media (min-width: 901px) {
  .about { align-items: center; }
  .about-photo { aspect-ratio: 1 / 1; --sh: 50.7%; --st: calc(49.3% + 22px); margin-bottom: 22px; }
  #ueber { padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }
  #beitrag { padding-top: clamp(2.5rem, 5vw, 4.5rem); }
}

/* ===== Projekte filtern + Spielplatz-Aktion markieren ===== */
.pf-anchor { display: block; height: 0; scroll-margin-top: 84px; }
.pfilter { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: -.4rem auto 1.8rem; }
.pf { display: inline-flex; align-items: center; gap: .45rem; min-height: 42px; padding: 0 1.05rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font-size: .9rem; font-weight: 600; text-decoration: none; box-shadow: var(--shadow); transition: background .3s, color .3s, border-color .3s, transform .3s; -webkit-tap-highlight-color: transparent; }
.pf:hover { transform: translateY(-1px); }
.pf em { font-style: normal; font-size: .72rem; font-weight: 700; min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem; display: inline-grid; place-items: center; border-radius: 999px; background: rgba(127,127,127,.15); }
.pf svg { width: 15px; height: 15px; color: #ff375f; }
.pf-akt { border-color: rgba(255,55,95,.35); }
/* aktiver Filter */
#projekte .pf.pf-all em, #projekte .pf.pf-job em, #projekte .pf.pf-akt em { color: inherit; }
/* filtern */
@keyframes projIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

/* Aktion-Karte: wandernder Farbrand, Glow und rotierender Stempel */
@property --akt { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.proj-aktion { position: relative; border: 2px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(var(--bg), var(--bg)) padding-box, conic-gradient(from var(--akt), #ff375f, #ff9f0a, #30d158, #0a84ff, #ff375f) border-box;
  box-shadow: 0 22px 60px rgba(255,55,95,.14), 0 10px 30px rgba(10,132,255,.12); animation: aktRing 7s linear infinite; }
@keyframes aktRing { to { --akt: 360deg; } }
.akt-stamp { position: absolute; z-index: 5; top: 12px; right: 12px; width: 96px; height: 96px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 30%, #ff6b88, #ff375f 60%, #d81b47); box-shadow: 0 10px 26px rgba(255,55,95,.45), inset 0 0 0 3px rgba(255,255,255,.25); transform: rotate(-8deg); }
.akt-stamp svg { width: 100%; height: 100%; display: block; }
.akt-stamp text { fill: #fff; font-size: 7.6px; font-weight: 800; font-family: inherit; }
.akt-stamp .ring { transform-origin: 50px 50px; animation: aktSpin 14s linear infinite; }
.akt-stamp .h { fill: #fff; transform-origin: 50px 50px; animation: aktBeat 2.4s ease-in-out infinite; }
@keyframes aktSpin { to { transform: rotate(360deg); } }
@keyframes aktBeat { 0%, 100% { transform: scale(.82); } 12% { transform: scale(.98); } 24% { transform: scale(.86); } 36% { transform: scale(.95); } }
.proj-aktion .proj-tag { color: #ff375f; }
@media (max-width: 760px) {
  .pfilter { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: -.4rem -1.25rem 1.4rem; padding: .2rem 1.25rem .6rem; scrollbar-width: none; }
  .pfilter::-webkit-scrollbar { display: none; }
  .pf { flex: 0 0 auto; }
  .akt-stamp { width: 74px; height: 74px; top: 8px; right: 8px; }
  .pf-anchor { scroll-margin-top: 64px; }
}
@media (prefers-reduced-motion: reduce) { .proj-aktion, .akt-stamp .ring, .akt-stamp .h { animation: none !important; } }

@media (max-width: 760px) {
  .pf-long { display: none; }
  .pfilter { justify-content: center; overflow: visible; flex-wrap: wrap; margin: -.4rem auto 1.4rem; padding: 0; }
  .pf { padding: 0 .9rem; font-size: .86rem; }
}
@media (max-width: 760px) { .pfilter { gap: .4rem; flex-wrap: nowrap; } .pf { padding: 0 .75rem; gap: .35rem; } }
@media (max-width: 360px) { .pf { padding: 0 .6rem; font-size: .8rem; } }

/* Filter per Radio-Schalter (funktioniert überall, auch ohne JavaScript) */
.pf { cursor: pointer; user-select: none; margin: 0; }
.pf-r { position: fixed !important; top: 50% !important; left: 0 !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
#projekte:has(#pf-all:checked) .pf-all, #projekte:has(#pf-none:checked):not(:has(#aktion-bilder:target)) .pf-all, #projekte:has(#pf-job:checked) .pf-job { background: #0a84ff; border-color: #0a84ff; color: #fff; }
#projekte:has(#pf-akt:checked) .pf-akt, #projekte:has(#pf-none:checked):has(#aktion-bilder:target) .pf-akt { background: linear-gradient(120deg, #ff375f, #ff9f0a); border-color: transparent; color: #fff; }
#projekte:has(#pf-akt:checked) .pf-akt svg, #projekte:has(#pf-none:checked):has(#aktion-bilder:target) .pf-akt svg { color: #fff; }
#projekte:has(#pf-job:checked) .proj-aktion { display: none; }
#projekte:has(#pf-akt:checked) .proj:not(.proj-aktion), #projekte:has(#pf-none:checked):has(#aktion-bilder:target) .proj:not(.proj-aktion) { display: none; }
#projekte:not(:has(#pf-none:checked)) .proj, #projekte:has(#aktion-bilder:target) .proj { animation: projIn .6s cubic-bezier(.2,.8,.2,1) both; }
#projekte:not(:has(#pf-none:checked)) .proj-aktion, #projekte:has(#aktion-bilder:target) .proj-aktion { animation: projIn .6s cubic-bezier(.2,.8,.2,1) both, aktRing 7s linear infinite; }
#projekte:not(:has(#pf-none:checked)) .proj:nth-child(2) { animation-delay: .05s; } #projekte:not(:has(#pf-none:checked)) .proj:nth-child(3) { animation-delay: .1s; }
#projekte:not(:has(#pf-none:checked)) .proj:nth-child(4) { animation-delay: .15s; } #projekte:not(:has(#pf-none:checked)) .proj:nth-child(n+5) { animation-delay: .2s; }

/* Menü: Tippen auf eine freie Stelle schließt es wieder */
.mnav-bg { display: none; }
@media (max-width: 760px) {
  .mnav-bg { display: block; position: absolute; inset: 0; z-index: 0; cursor: default; -webkit-tap-highlight-color: transparent; }
  .mnav > *:not(.mnav-bg) { position: relative; z-index: 1; }
}

/* ===== Spielplatz v6: gemalte Szene (pk-hell/-warm/-dunkel-*.webp).
   Hinten liegt das ganze Bild, davor Sonne und Mond, ganz vorne dasselbe Bild ohne Himmel (Maske pk-maske.png).
   So gehen Sonne und Mond hinter Bäumen und Dächern auf und unter. Der Tag liegt immer unten,
   Abend und Nacht blenden darüber ein, damit beim Wechsel nichts durchscheint. ===== */
.pk { background: #2a2f36;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 3.5%, #000 96.5%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 3.5%, #000 96.5%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%); }
.pk-scene { position: absolute; inset: 0; pointer-events: none; }
.pk-back { z-index: 0; }
.pk-front { z-index: 1; -webkit-mask-image: url(pk-maske.png); mask-image: url(pk-maske.png); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.pk-scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity 1.2s ease .2s; user-select: none; -webkit-user-drag: none; }
html:not(.js) .pk-scene img.day, html:not(.js) .pk[data-time="eve"] .pk-scene img.eve, html:not(.js) .pk[data-time="night"] .pk-scene img.night { opacity: 1; }

.pk-sky { inset: 0; height: auto; z-index: 0; overflow: hidden; -webkit-mask-image: none; mask-image: none; }
.pk-sky .sun, .pk-sky .moon { will-change: transform, opacity; }
/* Sonne: Scheibe plus Schein. Der Schein hängt an der Größe der Sonne (kein fester Pixelwert), wächst also mit dem Bild mit.
   ::before = Tageslicht, ::after = Abendrot. Beide blenden nur über opacity, das läuft ruhig und ohne Aufblitzen.
   Nachts behält die Sonne das Abendrot und blendet beim Untergang aus: der Himmel wird dabei nur dunkler, nie kurz heller. */
.pk-sky .sun { left: 64.5%; top: 7.5%; width: 4%; background: #ffe9a8; opacity: 1; transition: opacity .9s ease 1.1s; }
.pk-sky .sun::before, .pk-sky .sun::after { content: ""; position: absolute; inset: -600%; border-radius: 50%; pointer-events: none; transition: opacity 1.3s ease .2s; }
.pk-sky .sun::before { opacity: 1; background: radial-gradient(circle closest-side, #ffffff 0, #fff7d6 4%, #ffe796 7.3%, rgba(255,246,208,.8) 8.2%, rgba(255,238,178,.46) 15%, rgba(255,232,165,.24) 30%, rgba(255,230,160,.1) 58%, rgba(255,230,160,0) 100%); }
.pk-sky .sun::after { opacity: 0; background: radial-gradient(circle closest-side, #fff1d0 0, #ffbd66 4.2%, #ff8a3d 7.3%, rgba(255,176,98,.78) 8.2%, rgba(255,146,66,.42) 16%, rgba(255,124,60,.2) 34%, rgba(255,120,60,.08) 62%, rgba(255,120,60,0) 100%); }
.pk[data-time="eve"] .pk-sky .sun::before, .pk[data-time="night"] .pk-sky .sun::before { opacity: 0; }
.pk[data-time="eve"] .pk-sky .sun::after, .pk[data-time="night"] .pk-sky .sun::after { opacity: 1; }
.pk[data-time="night"] .pk-sky .sun { opacity: 0; transition: opacity .9s ease-in 1s; }
/* Mond: Scheibe, Schein und Krater, alles relativ zur Mondgröße. Tagsüber ausgeblendet. */
.pk-sky .moon { left: 77%; top: 45%; width: 2.8%; background: radial-gradient(circle at 38% 36%, #fffdf2, #eceadf 55%, #c9cbd0); opacity: 0; transition: opacity .7s ease 1.15s; }
.pk[data-time="night"] .pk-sky .moon { opacity: 1; transition: opacity .7s ease .6s; }
.pk-sky .moon::before, .pk-sky .moon::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.pk-sky .moon::before { inset: -350%; background: radial-gradient(circle closest-side, rgba(232,238,255,0) 0, rgba(232,238,255,0) 11.4%, rgba(228,235,255,.5) 12.4%, rgba(176,196,246,.22) 30%, rgba(150,175,240,.08) 60%, rgba(150,175,240,0) 100%); }
.pk-sky .moon::after { inset: 0; background: radial-gradient(circle at 62% 38%, rgba(150,160,180,.34) 0 11%, rgba(150,160,180,0) 12.5%), radial-gradient(circle at 36% 64%, rgba(150,160,180,.3) 0 7.5%, rgba(150,160,180,0) 9%), radial-gradient(circle at 66% 70%, rgba(150,160,180,.26) 0 5%, rgba(150,160,180,0) 6.5%); }
/* Laterne flackert nachts leicht */
.pk-lamp { position: absolute; z-index: 2; left: 42.75%; top: 14.8%; width: 16%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,214,140,.55), rgba(255,180,90,.18) 40%, transparent 70%); mix-blend-mode: screen; opacity: 0; transition: opacity .8s ease; }
.pk[data-time="night"] .pk-lamp { opacity: 1; transition-delay: 1.2s; animation: pk-flicker 5s steps(1) infinite; animation-play-state: var(--play, running); }
@keyframes pk-flicker { 0%, 100% { filter: brightness(1); } 41% { filter: brightness(.86); } 43% { filter: brightness(1.06); } 72% { filter: brightness(.93); } 74% { filter: brightness(1); } }
/* Abendglühen kommt von links oben (dort steht die Sonne im Bild) */
.pk-glow { background: radial-gradient(ellipse 40% 50% at 6% 26%, rgba(255,170,90,.32), rgba(255,140,70,.1) 55%, transparent 75%); }
/* Gegenstände liegen auf dem Boden: weicher Kontaktschatten, Licht passend zur Tageszeit */
.pk-item .g { filter: drop-shadow(0 2px 2px rgba(20,14,8,.45)); }
.pk[data-time="eve"] .pk-item img { filter: sepia(.28) saturate(1.15) brightness(.93); }
.pk[data-time="night"] .pk-item img { filter: brightness(.5) saturate(.55) hue-rotate(-8deg) contrast(1.05); }
.pk-aura .blur { background: linear-gradient(#bcd3e2 0 26%, #5d7a45 26% 60%, #b8a07c 60%); }
@media (prefers-reduced-motion: reduce) { .pk-lamp { animation: none !important; } .pk-scene img { transition: none; } }
.pk-wrap[data-time="night"] .pk-aura .blur { background: linear-gradient(#141c38 0 30%, #172036 30% 62%, #1b2030 62%); filter: blur(48px); opacity: .75; }
/* Mit JavaScript steuert park.js den Bildwechsel (neues Bild oben drüber, altes bleibt darunter) */
.js .pk-scene img, .js .pk-scene img.day { opacity: 0; z-index: 0; transition: opacity 1.3s ease .2s; }
.js .pk-scene img.prev { opacity: 1; z-index: 1; transition: none; }
.js .pk-scene img.cur { opacity: 1; z-index: 2; }
.js .pk-scene img.night.cur { transition-delay: .35s; }
.js .pk-scene img.instant { transition: none !important; }

/* ===== Abstände straffer (13.11.) ===== */
section { padding-top: clamp(2.75rem, 5.5vw, 4.75rem); padding-bottom: clamp(2.75rem, 5.5vw, 4.75rem); }
.hero { min-height: min(100vh, 780px); padding: 7.5rem 1.5rem 2.5rem; }
main { padding-bottom: 4rem; }
@media (max-width: 760px) {
  section { padding-top: 2.9rem; padding-bottom: 2.9rem; }
  .hero { min-height: min(100svh, 700px); padding: calc(5.5rem + env(safe-area-inset-top)) 1.25rem 2.6rem; }
}

/* ===== Projekte: auf dem Handy aufklappbar (Spielplatz-Aktion bleibt offen) ===== */
.proj-more, .proj-more-in { display: contents; }
.proj-toggle { display: none; }
@media (max-width: 760px) {
  .proj-more { display: grid; grid-column: 1 / -1; grid-template-rows: 0fr; transition: grid-template-rows .55s cubic-bezier(.4,0,.2,1); margin-top: -1rem; }
  .proj-more.auf { grid-template-rows: 1fr; margin-top: 0; }
  .proj-more-in { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 1rem; min-height: 0; overflow: hidden; }
  .proj-more.fertig .proj-more-in { overflow: visible; }
  .proj-more .proj { opacity: 0; transform: translateY(16px); transition: opacity .4s ease, transform .5s cubic-bezier(.2,.8,.2,1); }
  .proj-more.auf .proj { opacity: 1; transform: none; transition-delay: calc(.12s + var(--i, 0) * 60ms); }
  .proj-more .proj-wide { grid-column: 1 / -1; }
  .proj-toggle { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: .65rem; width: 100%; padding: .8rem 1rem; border-radius: 18px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font: inherit; font-size: .95rem; font-weight: 700; cursor: pointer; box-shadow: var(--shadow); -webkit-tap-highlight-color: transparent; transition: border-color .25s, transform .2s; }
  .proj-toggle:active { transform: scale(.98); }
  .proj-toggle:hover { border-color: #0a84ff; }
  .proj-toggle .pt-thumbs { display: flex; flex: 0 0 auto; }
  .proj-toggle .pt-l { white-space: nowrap; }
  .proj-toggle .pt-thumbs img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid var(--card); margin-left: -9px; box-shadow: 0 2px 6px rgba(0,0,0,.15); transition: width .35s, margin .35s, opacity .35s; }
  .proj-toggle .pt-thumbs img:first-child { margin-left: 0; }
  .proj-toggle em { font-style: normal; font-size: .75rem; font-weight: 700; color: #fff; background: #0a84ff; border-radius: 999px; padding: .1rem .5rem; }
  .proj-toggle svg { width: 12px; height: 8px; color: var(--muted); transition: transform .35s; }
  .proj-toggle.auf svg { transform: rotate(180deg); }
  .proj-toggle.auf .pt-thumbs img { width: 0; margin-left: 0; opacity: 0; border-width: 0; }
  .proj-toggle.auf em { display: none; }
  #projekte:has(#pf-akt:checked) .proj-toggle, #projekte:has(#pf-none:checked):has(#aktion-bilder:target) .proj-toggle { display: none; }
}
@media (max-width: 600px) { .proj-more-in { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .proj-more, .proj-more .proj { transition: none !important; } }
