/*
██████╗ ███████╗███╗   ██╗██╗████████╗ ██████╗     ██████╗ ███████╗███╗   ██╗████████╗██╗  ██╗██╗███╗   ██╗
██╔══██╗██╔════╝████╗  ██║██║╚══██╔══╝██╔═══██╗    ██╔══██╗██╔════╝████╗  ██║╚══██╔══╝██║  ██║██║████╗  ██║
██████╔╝█████╗  ██╔██╗ ██║██║   ██║   ██║   ██║    ██████╔╝█████╗  ██╔██╗ ██║   ██║   ███████║██║██╔██╗ ██║
██╔══██╗██╔══╝  ██║╚██╗██║██║   ██║   ██║   ██║    ██╔══██╗██╔══╝  ██║╚██╗██║   ██║   ██╔══██║██║██║╚██╗██║
██████╔╝███████╗██║ ╚████║██║   ██║   ╚██████╔╝    ██████╔╝███████╗██║ ╚████║   ██║   ██║  ██║██║██║ ╚████║
╚═════╝ ╚══════╝╚═╝  ╚═══╝╚═╝   ╚═╝    ╚═════╝     ╚═════╝ ╚══════╝╚═╝  ╚═══╝   ╚═╝   ╚═╝  ╚═╝╚═╝╚═╝  ╚═══╝

                Crafted with ♥ by Benito Benthin
                   www.benitobenthin.de

            Human-directed · AI-assisted creation

*/
/* benitobenthin.de – Stylesheet */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #fbfaff;
  --paper-2: #f2edff;
  --ink: #16102b;
  --mute: #544e69;
  --accent: #6528f7;
  --accent-deep: #4b14d4;
  --accent-soft: #ebe3ff;
  --lilac: #b592ff;
  --pink: #ff7fd0;
  --sky: #86c9ff;

  --grad: linear-gradient(115deg, #6528f7 0%, #9a5cff 42%, #e46fe0 78%, #ff8ec9 100%);
  --grad-soft: linear-gradient(135deg, rgba(101, 40, 247, 0.14), rgba(255, 127, 208, 0.12));

  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-line: rgba(255, 255, 255, 0.9);
  --glass-edge: rgba(101, 40, 247, 0.12);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 24px 60px -28px rgba(60, 20, 150, 0.35);
  --shadow-lift: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 34px 80px -30px rgba(80, 30, 200, 0.5);

  --grad-text: var(--grad);
  --surface: #ffffff;
  --btn2-bg: rgba(235, 227, 255, 0.85);
  --btn2-hover: #ffffff;
  --track: #d9d4e8;
  --menu-bg: rgba(255, 255, 255, 0.95);
  --cap-bg: rgba(255, 255, 255, 0.72);
  --solid-bg: var(--ink);
  --solid-fg: #ffffff;
  --ok: #11845b;
  --wip: #a15c00;
  --blob-opacity: 1;
  color-scheme: light;

  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --r-xl: 32px;
  --r-l: 24px;
  --r-m: 16px;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  /* Typografie-System */
  --fs-display: max(3rem, min(14.2vw, 18vh));
  --fs-h2: clamp(2.3rem, 5.6vw, 4.8rem);
  --fs-h3: clamp(1.35rem, 2vw, 1.7rem);
  --fs-h4: clamp(1.3rem, 1.6vw, 1.5rem);
  --fs-lead: clamp(1.1rem, 1.45vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-body-sm: 0.975rem;
  --fs-label: 1rem;
  --fs-meta: 0.875rem;
  --lh-heading: 1.2;
  --lh-lead: 1.65;
  --lh-body: 1.65;
  --lh-body-sm: 1.55;
  --stretch-h2: 125%;
  --stretch-h3: 118%;
  --stretch-label: 112%;

  /* Abstände */
  --space: clamp(80px, 10vw, 140px);
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:not(.js) { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1; font-weight: 800; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
/* Sprungziele */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.wide { font-stretch: 125%; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  background: var(--solid-bg); color: var(--solid-fg); padding: 12px 18px; border-radius: 999px;
  font-weight: 700; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ---------- Hintergrund: Verlaufs-Blobs + Partikel ---------- */
.bg { opacity: var(--blob-opacity); position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.blob {

  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55;
  will-change: transform;
}
.blob--1 { width: 60vmax; height: 60vmax; left: -18vmax; top: -22vmax; background: radial-gradient(circle, #8f5bff 0%, rgba(143, 91, 255, 0) 68%); animation: drift1 26s var(--ease) infinite alternate; }
.blob--2 { width: 52vmax; height: 52vmax; right: -20vmax; top: 10vh; background: radial-gradient(circle, #ff8fd4 0%, rgba(255, 143, 212, 0) 66%); animation: drift2 30s var(--ease) infinite alternate; opacity: 0.42; }
.blob--3 { width: 56vmax; height: 56vmax; left: 20vw; bottom: -30vmax; background: radial-gradient(circle, #8fd0ff 0%, rgba(143, 208, 255, 0) 66%); animation: drift3 34s var(--ease) infinite alternate; opacity: 0.4; }
@keyframes drift1 { to { transform: translate3d(8vw, 10vh, 0) scale(1.08); } }
@keyframes drift2 { to { transform: translate3d(-10vw, 14vh, 0) scale(0.92); } }
@keyframes drift3 { to { transform: translate3d(-6vw, -12vh, 0) scale(1.1); } }
.bg__parallax { position: absolute; inset: 0; will-change: transform; }

#particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ---------- Glas ---------- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; z-index: 50;
  width: min(var(--wrap), 100% - var(--gutter) * 2); transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 22px; border-radius: 999px;
  transition: box-shadow 0.3s, background 0.3s;
}
.nav.is-scrolled { background: var(--glass-strong); box-shadow: var(--shadow-lift); }
.nav__links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__links a:not(.btn) {
  display: block; padding: 10px 16px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 0.95rem; transition: background 0.2s;
}
.nav__links a:not(.btn):hover { background: var(--accent-soft); }
.nav__links a[aria-current="true"]:not(.btn) { background: var(--accent-soft); color: var(--accent-deep); }

/* Burger + Mobilmenü */
.nav__burger {
  display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; position: relative;
  background: var(--grad); box-shadow: 0 10px 24px -10px rgba(101, 40, 247, 0.8);
}
.nav__burger span {
  position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: #fff;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.nav__burger span:first-child { top: 18px; }
.nav__burger span:last-child { top: 26px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

.nav__menu {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; padding: 14px; border-radius: 28px;
  background: var(--menu-bg); box-shadow: 0 30px 70px -20px rgba(60, 20, 150, 0.45);
  transform-origin: 50% 0; transition: opacity 0.25s var(--ease), transform 0.35s var(--ease), visibility 0s;
}
.nav__menu[hidden] {
  display: block; visibility: hidden; opacity: 0; transform: translateY(-8px) scale(0.98); pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.3s var(--ease), visibility 0s 0.3s;
}
.nav__menu ul { list-style: none; margin: 0; padding: 0; display: grid; }
.nav__menu li a {
  display: block; padding: 14px 16px; border-radius: 16px; text-decoration: none;
  font-size: 1.6rem; font-weight: 800; font-stretch: 125%; letter-spacing: -0.03em; line-height: 1.1;
}
.nav__menu li a:hover, .nav__menu li a:focus-visible, .nav__menu li a[aria-current="true"] { background: var(--accent-soft); color: var(--accent-deep); }
.nav__menu li { opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.nav__menu:not([hidden]) li { opacity: 1; transform: none; }
.nav__menu:not([hidden]) li:nth-child(2) { transition-delay: 0.04s; }
.nav__menu:not([hidden]) li:nth-child(3) { transition-delay: 0.08s; }
.nav__menu:not([hidden]) li:nth-child(4) { transition-delay: 0.12s; }
.nav__menu:not([hidden]) li:nth-child(5) { transition-delay: 0.16s; }
.nav__menu:not([hidden]) li:nth-child(6) { transition-delay: 0.2s; }
.nav__menu:not([hidden]) li:nth-child(7) { transition-delay: 0.24s; }
.nav__menu-ig { margin: 10px 4px 4px; width: calc(100% - 8px); justify-content: center; }

@media (max-width: 880px) {
  .nav { padding: 8px 8px 8px 18px; border-radius: 30px; }
  .nav__links { display: none; }
  .nav__burger { display: block; }
}
@media (min-width: 881px) { .nav__menu { display: none !important; } }

/* Nach-oben-Button */
.to-top {
  position: fixed; right: 88px; bottom: 23px; z-index: 59;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: var(--solid-fg); background: var(--solid-bg); border: 0;
  box-shadow: 0 14px 30px -12px rgba(22, 16, 43, 0.6);
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease), visibility 0s;
}
.to-top svg { width: 20px; height: 20px; }
.to-top:hover { transform: translateY(-3px); background: var(--accent-deep); }
.to-top[hidden] { display: grid; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.3s var(--ease), transform 0.35s var(--ease), visibility 0s 0.3s; }
html.a11y-contrast .to-top, html.a11y-contrast .nav__menu { border: 2px solid #000; }
html.a11y-contrast .nav__burger { background: #3d0fb0; }

/* ---------- Buttons ---------- */
.btn {
  --pad: 16px 26px;
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: var(--pad); border-radius: 999px; font: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer; border: 0; line-height: 1.2;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s;
}
.btn--primary {
  color: #fff; background: var(--grad); background-size: 160% 100%; background-position: 0 0;
  box-shadow: 0 14px 34px -12px rgba(101, 40, 247, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 20px 44px -12px rgba(101, 40, 247, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
/* Zweitbutton */
.btn--glass {
  color: var(--accent-deep); background: var(--btn2-bg);
  border: 1.5px solid rgba(101, 40, 247, 0.35);
  box-shadow: 0 10px 26px -16px rgba(101, 40, 247, 0.6);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.btn--glass:hover { transform: translateY(-2px); background: var(--btn2-hover); border-color: var(--accent); box-shadow: 0 16px 34px -16px rgba(101, 40, 247, 0.75); }
.btn--small { --pad: 11px 18px; font-size: 0.92rem; }
.btn--light { background: #fff; color: var(--accent-deep); box-shadow: 0 16px 40px -14px rgba(20, 0, 60, 0.5); }
.btn--light:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Hero ---------- */
.hero {
  display: grid; align-content: center; justify-items: center; position: relative;
  min-height: 100vh; min-height: 100svh;
  padding-block: clamp(96px, 12vh, 150px) clamp(40px, 7vh, 90px);
  text-align: center;
}
.hero__inner { width: 100%; display: grid; justify-items: center; }
.hero + .band { margin-top: 0; }
.hero.wrap { width: min(100% - var(--gutter) * 2, 2600px); }
.hero .btn { font-size: clamp(1rem, 1.75vh, 2.4rem); --pad: 0.95em 1.6em; }
.hero__inner {
  transform: translate3d(0, calc(var(--hero-p, 0) * -70px), 0) scale(calc(1 - var(--hero-p, 0) * 0.06));
  opacity: calc(1 - var(--hero-p, 0) * 0.7);
  transform-origin: 50% 0;
}

.hero__title {
  margin-top: 0;
  font-size: var(--fs-display);
  font-weight: 850; font-stretch: 125%;
  line-height: 0.84; letter-spacing: -0.05em;
}
.hero__line { display: block; overflow: hidden; padding: 0.04em 0.06em 0.08em 0; margin-bottom: -0.06em; }
.hero__line > span {
  display: inline-block;
  background:
    radial-gradient(circle 1.35em at var(--hx, -50%) var(--hy, 50%), rgba(255, 255, 255, 0.78), rgba(255, 244, 255, 0.28) 38%, rgba(255, 255, 255, 0) 72%),
    var(--grad-text);
  background-size: 100% 100%, 220% 100%; background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 10s ease-in-out infinite alternate;
}
.hero__line:nth-child(2) > span { animation-delay: -5s; }
@keyframes sheen { to { background-position: 100% 0; } }
.hero__line--indent { padding-left: 0; }


.hero__row { margin-top: clamp(24px, 4vh, 48px); display: flex; flex-direction: column; align-items: center; gap: clamp(20px, 3vh, 32px); }
.hero__lead { max-width: 44ch; margin-inline: auto; font-size: clamp(1.05rem, min(1.7vw, 2.3vh), 3.2rem); line-height: 1.55; color: var(--mute); }
.hero__lead strong { color: var(--ink); font-weight: 700; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }


/* Intro-Animation (nur mit JS) */
.js .hero__line > span { transform: translateY(105%); transition: transform 0.8s var(--ease); }
.js .hero__line:nth-child(2) > span { transition-delay: 0.12s; }
.js .intro-fade { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease) 0.25s, transform 0.7s var(--ease) 0.25s; }
.js.is-loaded .hero__line > span { transform: none; }
.js.is-loaded .intro-fade { opacity: 1; transform: none; }

/* ---------- Laufband ---------- */
.band { padding-block: 20px; overflow: hidden; }
.band__row {
  display: flex; gap: 0.5em; white-space: nowrap; width: max-content;
  font-size: clamp(2.6rem, 8vw, 7rem); font-weight: 800; font-stretch: 125%; letter-spacing: -0.03em; line-height: 1.05;
  will-change: transform;
}
.band__row + .band__row { margin-top: 4px; }
.band__item--outline { color: transparent; -webkit-text-stroke: 2px var(--accent); }
.band__item--fill { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.band__star { color: var(--lilac); font-size: 0.5em; align-self: center; }

/* ---------- Sektionen ---------- */
section[id] { scroll-margin-top: 100px; }
.section { padding-top: var(--space); position: relative; }
/* Bereichsköpfe */
.section__head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 38ch); align-items: center;
  column-gap: clamp(32px, 4vw, 56px); row-gap: 16px; margin-bottom: clamp(32px, 4.5vw, 56px);
}
.h2 {
  font-size: var(--fs-h2); font-stretch: var(--stretch-h2); letter-spacing: -0.04em; line-height: 0.95; max-width: 16ch;
  padding-bottom: 0.16em; margin-bottom: -0.16em;
}
.h2 em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.16em; }
.section__intro { max-width: 38ch; color: var(--mute); font-size: var(--fs-body); line-height: var(--lh-body); }
@media (max-width: 900px) { .section__head { grid-template-columns: 1fr; } }

/* Über mich */
.about { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 90px); align-items: start; }
.about__main { display: grid; gap: 28px; }
.about__text { display: grid; gap: 22px; font-size: var(--fs-body); line-height: var(--lh-body); }
.about__text p { color: var(--mute); max-width: 52ch; }
.timeline { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 0; border-radius: var(--r-l); overflow: hidden; }
.timeline li { display: grid; grid-template-columns: 8.2rem 1fr; gap: 16px clamp(20px, 2.4vw, 32px); padding: 18px 22px; border-bottom: 1px solid var(--glass-edge); font-size: 1rem; }
.timeline li:last-child { border-bottom: 0; }
.timeline b { font-size: var(--fs-label); font-weight: 700; font-stretch: var(--stretch-label); color: var(--accent-deep); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }


/* Interessen-Kacheln */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(40px, 5vw, 64px); }
.tile { position: relative; padding: 28px 24px 30px; border-radius: var(--r-l); overflow: hidden; isolation: isolate; }
.tile h3 { font-size: var(--fs-h4); font-weight: 800; font-stretch: var(--stretch-h3); letter-spacing: -0.02em; line-height: var(--lh-heading); margin: 22px 0 10px; }
.tile p { color: var(--mute); font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); }
.tile__icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--grad); color: #fff; box-shadow: 0 12px 26px -12px rgba(101, 40, 247, 0.8);
}
.tile__icon svg { width: 26px; height: 26px; }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }

/* Spotlight-Effekt auf Glasflächen */
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(154, 92, 255, 0.22), transparent 60%);
}
.spot:hover::before { opacity: 1; }

/* Projekte */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.project {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 24px 24px 26px; border-radius: var(--r-l); text-decoration: none; isolation: isolate; overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0));
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.project:hover { --lift: -4px; box-shadow: var(--shadow-lift); }
.project__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project__kind { font-size: var(--fs-meta); font-weight: 700; color: var(--accent-deep); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; }
.project__go {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--accent-soft); color: var(--accent-deep); border: 1.5px solid rgba(101, 40, 247, 0.3);
  transition: background 0.3s, color 0.3s, transform 0.4s var(--ease), border-color 0.3s;
}
.project__go svg { width: 16px; height: 16px; }
.project:hover .project__go, a.contact__card:hover .project__go { background: var(--grad); color: #fff; border-color: transparent; transform: rotate(45deg); }
.project__status { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-meta); font-weight: 600; color: var(--mute); }
.project__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.project__status--live { color: var(--ok); }
.project__status--wip { color: var(--wip); }
.project__open { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 0.95rem; color: var(--accent-deep); }
.project__name { font-size: var(--fs-h4); font-weight: 800; font-stretch: var(--stretch-h3); letter-spacing: -0.02em; line-height: var(--lh-heading); margin-top: 6px; overflow-wrap: anywhere; }
.project__text { color: var(--mute); font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); }

/* Kontakt */
.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact__card {
  position: relative; display: flex; align-items: flex-start; gap: 20px; padding: 26px; border-radius: var(--r-l);
  text-decoration: none; isolation: isolate; overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
a.contact__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
a.contact__card:hover .project__go { background: var(--grad); color: #fff; transform: rotate(45deg); }
.contact__card .project__go { margin-left: auto; }
.contact__body { display: grid; gap: 6px; min-width: 0; }
.contact__body h3 { font-size: var(--fs-h4); font-weight: 800; font-stretch: var(--stretch-h3); letter-spacing: -0.02em; line-height: var(--lh-heading); }
.contact__handle { font-weight: 700; font-stretch: 112%; font-size: 1.1rem; color: var(--accent-deep); }
.contact__hint { color: var(--mute); font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); }
.contact__mail { display: grid; gap: 12px; justify-items: start; }
.contact__address { font-weight: 700; font-stretch: 112%; font-size: 1.1rem; color: var(--accent-deep); overflow-wrap: anywhere; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { padding-block: var(--space) 110px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; padding: 22px 28px; border-radius: var(--r-l); }
.footer__brand { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer__brand p { color: var(--mute); font-size: var(--fs-meta); }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.footer__links a, .footer__links button {
  display: block; padding: 10px 14px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 0.95rem;
  background: none; border: 0; color: inherit; cursor: pointer; text-decoration: none;
}
.footer__links a:hover, .footer__links button:hover { background: var(--accent-soft); }

/* ---------- Rechtstexte ---------- */
.legal { padding-block: 150px 0; }
.legal__card { padding: clamp(24px, 5vw, 64px); border-radius: var(--r-xl); }
.legal h1 { font-size: clamp(2rem, 5.2vw, 4.2rem); hyphens: auto; overflow-wrap: break-word; font-stretch: 125%; letter-spacing: -0.04em; margin-bottom: 36px; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.08em; }
.legal h2 { font-size: var(--fs-h4); font-weight: 800; font-stretch: var(--stretch-h3); letter-spacing: -0.02em; line-height: var(--lh-heading); margin: 36px 0 10px; }
.legal p, .legal li { color: var(--mute); max-width: none; }
.legal p + p { margin-top: 12px; }
.legal address { font-style: normal; color: var(--ink); font-weight: 600; line-height: 1.7; }
.legal a { color: var(--accent-deep); font-weight: 600; }
.todo { background: #fff2b3; color: #4a3b00; padding: 1px 6px; border-radius: 6px; font-weight: 600; }
.back { display: inline-flex; margin-bottom: 28px; }

/* ---------- Scroll-Reveal (nur mit JS) ---------- */
/* Scroll-Einblendung */
.js [data-reveal] { --p: 0; opacity: var(--p); translate: 0 calc((1 - var(--p)) * 44px); }
.js [data-reveal="mask"] {
  opacity: calc(0.35 + var(--p) * 0.65);
  translate: 0 calc((1 - var(--p)) * 0.3em);
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(var(--p) * 160% - 60%), transparent calc(var(--p) * 160%));
          mask-image: linear-gradient(to bottom, #000 calc(var(--p) * 160% - 60%), transparent calc(var(--p) * 160%));
}
.js [data-reveal="photo"] { translate: 0 calc((1 - var(--p)) * 70px); scale: calc(0.93 + var(--p) * 0.07); will-change: opacity, translate, scale; }

/* Barrierefreiheit: Panel */
.a11y-toggle {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: var(--grad);
  box-shadow: 0 16px 36px -12px rgba(101, 40, 247, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.35s var(--ease);
}
.a11y-toggle:hover { transform: scale(1.06); }
.a11y-toggle svg { width: 30px; height: 30px; }

.a11y-panel {
  position: fixed; right: 18px; bottom: 90px; z-index: 60;
  width: min(360px, calc(100vw - 36px)); max-height: calc(100vh - 120px); overflow: auto;
  padding: 22px; border-radius: var(--r-l);
  background: var(--glass-strong);
  transform-origin: 100% 100%;
  transition: opacity 0.25s var(--ease), transform 0.35s var(--ease), visibility 0s;
}
.a11y-panel[hidden] {
  display: block; visibility: hidden; opacity: 0; transform: translateY(10px) scale(0.97); pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.35s var(--ease), visibility 0s 0.25s;
}
.a11y-panel h2 { font-size: 1.15rem; font-stretch: 112%; margin-bottom: 4px; }
.a11y-panel > p { font-size: 0.9rem; color: var(--mute); margin-bottom: 16px; }
.a11y-group { padding: 14px 0; border-top: 1px solid var(--glass-edge); }
.a11y-label { font-weight: 700; font-size: 0.95rem; margin-bottom: 10px; display: block; }
.a11y-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.a11y-seg button {
  font: inherit; font-weight: 700; padding: 10px 0; border-radius: 12px; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 2px solid transparent;
}
.a11y-seg button:nth-child(2) { font-size: 1.1em; }
.a11y-seg button:nth-child(3) { font-size: 1.25em; }
.a11y-seg button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-soft); }
.a11y-switch {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 0; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.a11y-switch span:first-child { display: grid; gap: 2px; }
.a11y-switch b { font-size: 0.97rem; }
.a11y-switch small { color: var(--mute); font-size: 0.85rem; line-height: 1.35; }
.a11y-switch__track {
  flex: none; width: 50px; height: 30px; border-radius: 999px; background: var(--track); position: relative; transition: background 0.25s;
}
.a11y-switch__track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); transition: transform 0.25s var(--ease);
}
.a11y-switch[aria-checked="true"] .a11y-switch__track { background: var(--accent); }
.a11y-switch[aria-checked="true"] .a11y-switch__track::after { transform: translateX(20px); }
.a11y-reset { margin-top: 10px; width: 100%; justify-content: center; }

/* ---------- Barrierefreiheit: Modi ---------- */
html.a11y-text-1 { font-size: 112.5%; }
html.a11y-text-2 { font-size: 125%; }

html.a11y-font body, html.a11y-font .btn, html.a11y-font button { font-family: "Atkinson Hyperlegible", Verdana, sans-serif; }
html.a11y-font body { letter-spacing: 0.02em; word-spacing: 0.08em; line-height: 1.8; }
html.a11y-font .wide, html.a11y-font h1, html.a11y-font h2, html.a11y-font h3,
html.a11y-font .band__row { font-stretch: 100%; letter-spacing: 0; }
html.a11y-font .hero__title { line-height: 1; }

html.a11y-links a:not(.btn):not(.nav__logo) { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 4px; }
html.a11y-links a:focus-visible, html.a11y-links button:focus-visible { outline-width: 4px; outline-color: #ffb800; }
html.a11y-links .project, html.a11y-links a.contact__card { outline: 3px dashed var(--accent); outline-offset: 4px; }

html.a11y-contrast {
  --paper: #ffffff; --paper-2: #ffffff; --ink: #000000; --mute: #1a1a1a;
  --accent: #3d0fb0; --accent-deep: #2a0a80; --accent-soft: #e6ddff;
  --glass: #ffffff; --glass-strong: #ffffff; --glass-line: #000000; --glass-edge: #000000;
  --shadow: none; --shadow-lift: none;
  --grad: linear-gradient(#3d0fb0, #3d0fb0); --grad-text: linear-gradient(#000, #000);
  --surface: #fff; --btn2-bg: #fff; --btn2-hover: #fff; --track: #bbb; --menu-bg: #fff; --cap-bg: #fff;
  --solid-bg: #000; --solid-fg: #fff; --ok: #0a5c3e; --wip: #6b3d00; color-scheme: light;
}
html.a11y-contrast .bg, html.a11y-contrast #particles { display: none; }
html.a11y-contrast .glass, html.a11y-contrast .project, html.a11y-contrast .tile, html.a11y-contrast .a11y-panel { border: 2px solid #000; -webkit-backdrop-filter: none; backdrop-filter: none; }
html.a11y-contrast .hero__line > span, html.a11y-contrast .band__item--fill, html.a11y-contrast .h2 em, html.a11y-contrast .legal h1 { background: none; color: #000; -webkit-text-fill-color: #000; }
html.a11y-contrast .band__item--outline { -webkit-text-stroke-color: #000; }
html.a11y-contrast .contact__card { border: 2px solid #000; }
html.a11y-contrast .spot::before { display: none; }
html.a11y-contrast .todo { outline: 2px solid #000; }
html.a11y-contrast .a11y-seg button, html.a11y-contrast .a11y-switch__track { border: 2px solid #000; }

/* Bewegung aus */
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
html.a11y-motion #particles { display: none; }
html.a11y-motion .band__row { flex-wrap: wrap; justify-content: center; width: auto; white-space: normal; padding-inline: var(--gutter); font-size: clamp(1.8rem, 5vw, 4rem); }
html.a11y-motion .band__clone { display: none; }
html.a11y-motion .hero__inner, html.a11y-motion .band__row, html.a11y-motion .bg__parallax, html.a11y-motion .project { transform: none !important; opacity: 1 !important; }
html.a11y-motion [data-reveal] { opacity: 1 !important; translate: none !important; scale: none !important; clip-path: none !important; -webkit-mask-image: none !important; mask-image: none !important; }
html.a11y-motion .hero__line > span, html.a11y-motion .intro-fade { transform: none !important; opacity: 1 !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Crafted with ♥ */
.crafted { white-space: nowrap; }
.crafted a { color: var(--accent-deep); font-weight: 600; text-decoration: none; }
.crafted a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crafted__sep { margin: 0 0.35em; opacity: 0.5; }
.crafted__heart {
  width: 1.05em; height: 1.05em; vertical-align: -0.17em; margin: 0 0.1em;
  fill: #a47dff; transform-origin: 50% 55%;
  animation: heartbeat 1.3s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 40%, 100% { transform: scale(1); }
  10% { transform: scale(1.24); }
  20% { transform: scale(0.96); }
  30% { transform: scale(1.16); }
}
@media (max-width: 640px) { .footer__brand p { font-size: 0.86rem; } }
html.a11y-contrast .crafted__heart { fill: #3d0fb0; }

/* Ausrüstung */
.gear { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.gear__title { font-size: var(--fs-label); font-weight: 800; font-stretch: var(--stretch-label); letter-spacing: -0.01em; }
.gear__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.gear__item { display: inline-flex; align-items: baseline; gap: 8px; padding: 11px 18px; border-radius: 999px; font-size: var(--fs-body-sm); }
.gear__item b { color: var(--ink); font-weight: 700; }
.gear__item span { color: var(--mute); }
@media (max-width: 520px) { .gear__item { border-radius: var(--r-m); flex-direction: column; gap: 2px; width: 100%; } }

/* Galerie */
.gallery {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px;
  grid-auto-rows: clamp(60px, 10.2vw, 142px); grid-auto-flow: dense;
}
.gallery__item {
  position: relative; display: block; overflow: hidden; border-radius: var(--r-l);
  grid-column: span 3; grid-row: span 3; background: var(--paper-2);
  box-shadow: var(--shadow); isolation: isolate;
}
.gallery__item:nth-child(1) { grid-column: span 4; grid-row: span 4; }
.gallery__item:nth-child(2), .gallery__item:nth-child(3) { grid-column: span 2; grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.05); }
.gallery__cap {
  position: absolute; left: 12px; bottom: 12px; padding: 7px 14px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 700; color: var(--ink);
  background: var(--cap-bg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(6px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.gallery__item:hover .gallery__cap, .gallery__item:focus-visible .gallery__cap { opacity: 1; transform: none; }
.gallery__more { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; gap: 10px; }
  .gallery__item, .gallery__item:nth-child(n) { grid-column: span 1; grid-row: auto; aspect-ratio: 4 / 3; border-radius: var(--r-m); }
  .gallery__item:nth-child(1) { grid-column: span 2; }
  .gallery__cap { opacity: 1; transform: none; font-size: 0.75rem; padding: 5px 10px; left: 8px; bottom: 8px; }
}
html.a11y-contrast .gallery__cap { background: #fff; border: 2px solid #000; }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none;
  background: rgba(22, 16, 43, 0.9); color: #fff;
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__fig { margin: 0; display: grid; gap: 14px; justify-items: center; padding: 70px 16px 30px; }
.lightbox__img { max-width: min(1500px, 92vw); max-height: calc(100dvh - 150px); width: auto; height: auto; border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.lightbox__cap { font-weight: 700; font-stretch: 112%; }
.lightbox__btn {
  position: fixed; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: grid; place-items: center;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox__close { top: 16px; right: 16px; font-size: 1.1rem; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; } }

/* Mobil */
@media (max-width: 700px) {
  .glass { -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%); }
  .blob { filter: blur(50px); animation: none; }
}

@media (max-width: 700px) { .hero { padding-block: 96px 48px; } }

/* Beruf / Alltag */
.work__title { font-size: var(--fs-h3); font-stretch: var(--stretch-h3); letter-spacing: -0.02em; line-height: var(--lh-heading); color: var(--ink); margin: 18px 0 14px; }
.work .timeline { margin: 0; }
.work .timeline li { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--mute); padding: 24px 26px; }
.work .timeline p + p { margin-top: 14px; }
@media (max-width: 520px) { .work .timeline li { grid-template-columns: 1fr; gap: 8px; padding: 20px; } }
html.a11y-contrast .btn--glass, html.a11y-contrast .project__go { background: #fff; border: 2px solid #000; color: #000; }
html.a11y-contrast .to-top { background: #000; }
.contact__card .tile__icon { flex: none; }

/* Verlaufstexte */
.hero__line > span, .h2 em, .band__item--fill, .legal h1 {
  padding-right: 0.12em; margin-right: -0.12em;
}
.hero__line { padding-right: 0.14em; }

/* Lenis (weiches Scrollen) */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

/* Footer mobil */
@media (max-width: 560px) {
  .footer__inner { padding: 20px 18px; }
  .footer__links { width: 100%; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
  .footer__links a, .footer__links button { padding: 10px 0; font-size: 0.9rem; }
}

/* Porträt */
.portrait {
  position: relative; margin: 0; isolation: isolate;
  max-width: 440px; width: 100%;
}
.portrait::before {
  content: ""; position: absolute; inset: 6% -8% 12% -8%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(154, 92, 255, 0.55), rgba(255, 127, 208, 0.28) 55%, transparent);
  filter: blur(30px);
}
.portrait img {
  width: 100%; aspect-ratio: 941 / 1672; object-fit: cover; border-radius: 40px 40px 0 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, rgba(0, 0, 0, 0.55) 80%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 62%, rgba(0, 0, 0, 0.55) 80%, transparent 100%);
}
@media (max-width: 860px) {
  .portrait { position: relative; top: 0; max-width: 360px; margin-inline: auto; }
  .portrait img { aspect-ratio: 941 / 1300; object-position: 50% 20%; }
}
html.a11y-contrast .portrait::before { display: none; }

/* Über mich: Textspalte */
.about__main { gap: clamp(24px, 3vw, 32px); }
.about__main > * { max-width: 40rem; }
.about__text { display: grid; gap: clamp(24px, 3vw, 32px); }
.about__text p.about__lead {
  font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--ink); font-weight: 400; max-width: none;
}
.hobby-line {
  display: flex; align-items: center; gap: 14px; margin: 0;
  padding: 14px 18px; border-radius: var(--r-m);
  background: var(--accent-soft); color: var(--accent-deep) !important; font-size: 1rem; line-height: 1.45; max-width: none !important;
}
.hobby-line b { color: var(--accent-deep); }
.hobby-line__icon {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #fff;
}
.hobby-line__icon svg { width: 16px; height: 16px; }
.work { margin-top: 0; }
html.a11y-contrast .hobby-line { background: #fff; border: 2px solid #000; color: #000 !important; }

/* Dunkelmodus */
:root:not([data-theme="light"]):not(.a11y-contrast) {
  --paper: #0e0a1c; --paper-2: #17122b; --ink: #f2eefe; --mute: #b8b1cc;
  --accent: #8f6dff; --accent-deep: #c6b4ff; --accent-soft: rgba(143, 109, 255, 0.18);
  --lilac: #8f73d9;
  --grad-text: linear-gradient(115deg, #a98bff 0%, #c79bff 45%, #f39ad8 80%, #ffa8d2 100%);
  --grad-soft: linear-gradient(135deg, rgba(143, 109, 255, 0.18), rgba(255, 127, 208, 0.12));
  --glass: rgba(30, 23, 54, 0.55); --glass-strong: rgba(30, 23, 54, 0.8);
  --glass-line: rgba(255, 255, 255, 0.09); --glass-edge: rgba(198, 180, 255, 0.16);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 24px 60px -28px rgba(0, 0, 0, 0.75);
  --shadow-lift: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 34px 80px -30px rgba(0, 0, 0, 0.85);
  --surface: #221b3b; --btn2-bg: rgba(143, 109, 255, 0.16); --btn2-hover: rgba(143, 109, 255, 0.28);
  --track: #3c3458; --menu-bg: rgba(20, 15, 38, 0.97); --cap-bg: rgba(14, 10, 28, 0.72);
  --solid-bg: #f2eefe; --solid-fg: #140e28;
  --ok: #5fd9a0; --wip: #f5b95c;
  --blob-opacity: 0.45;
  color-scheme: dark;
}

.a11y-seg--theme { grid-template-columns: repeat(2, 1fr); }
.a11y-seg--theme button { font-size: 0.9rem !important; padding: 10px 4px; }

/* Karte */
.map { position: relative; margin: 0; border-radius: var(--r-xl); overflow: hidden; padding: 0; isolation: isolate; }
.map__frame { position: relative; height: clamp(260px, 34vw, 440px); overflow: hidden; }
.map__frame iframe {
  position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); border: 0;
  pointer-events: none;
  filter: saturate(0.75) contrast(0.95);
}
.map__tint {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 55%, var(--paper) 100%),
    linear-gradient(135deg, rgba(101, 40, 247, 0.18), rgba(255, 127, 208, 0.10));
}
.map__bar {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
}
.map__place {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px;
  font-weight: 700; font-stretch: 112%; background: var(--glass-strong); color: var(--ink);
  border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.map__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px var(--accent-soft); }
.map__credit {
  position: absolute; top: 12px; right: 14px; z-index: 2; font-size: 0.72rem; color: var(--mute);
  background: var(--glass-strong); padding: 3px 9px; border-radius: 999px;
}
.map__credit a { color: inherit; }
/* Karte im Dunkelmodus */
:root:not([data-theme="light"]):not(.a11y-contrast) .map__frame iframe {
  filter: invert(0.92) hue-rotate(200deg) saturate(0.55) brightness(0.9) contrast(0.92);
}
:root:not([data-theme="light"]):not(.a11y-contrast) .map__tint {
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 50%, var(--paper) 100%),
    linear-gradient(135deg, rgba(101, 40, 247, 0.28), rgba(255, 127, 208, 0.12));
}
html.a11y-contrast .map__tint { display: none; }
html.a11y-contrast .map__frame iframe { filter: grayscale(1); }
@media (max-width: 560px) { .map__bar { left: 10px; right: 10px; bottom: 10px; } .map__place { font-size: 0.9rem; padding: 8px 14px; } }

/* Virtuelle Touren */
.tour { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lift); border: 1px solid var(--glass-line); background: var(--paper-2); }
.tour__frame { position: relative; height: clamp(340px, 62vh, 680px); border-radius: inherit; overflow: hidden; }
.tour__frame iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; display: block; }
.tour__cover {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center; padding: 24px;
  background:
    radial-gradient(60% 70% at 50% 45%, rgba(143, 109, 255, 0.28), transparent 70%),
    radial-gradient(40% 50% at 80% 80%, rgba(255, 127, 208, 0.18), transparent 70%),
    var(--paper-2);
}
.tour__icon {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: var(--grad); box-shadow: 0 18px 40px -14px rgba(101, 40, 247, 0.8);
}
.tour__icon svg { width: 42px; height: 42px; }
.tour__note { color: var(--mute); font-size: var(--fs-meta); max-width: 34ch; }
.tour.is-loaded .tour__cover { display: none; }
#touren .gallery__more { margin-top: 28px; }
@media (max-width: 700px) { .tour__frame { height: clamp(320px, 70vh, 560px); } }
html.a11y-contrast .tour__cover { background: #fff; }

/* TimeLapse-Video */
.tour--video .tour__frame { height: auto; aspect-ratio: 16 / 9; }
#timelapse .gallery__more { margin-top: 28px; }
@media (max-width: 700px) { .tour--video .tour__frame { height: auto; aspect-ratio: 4 / 3; min-height: 0; } .tour--video .tour__cover { gap: 12px; } .tour--video .tour__icon { width: 56px; height: 56px; } .tour--video .tour__icon svg { width: 32px; height: 32px; } }

/* Startflächen Tour/Video */
button.tour__cover { border: 0; margin: 0; width: 100%; font: inherit; color: inherit; cursor: pointer; }
button.tour__cover:focus-visible { outline: 3px solid var(--accent); outline-offset: -6px; border-radius: inherit; }
.tour__note { display: block; }
.tour__icon { position: relative; transition: transform 0.4s var(--ease); animation: none; }
.tour__icon svg { width: 48px; height: 48px; }
.tour__icon::before, .tour__icon::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(169, 139, 255, 0.55);
  animation: tourPulse 2.6s var(--ease) infinite;
}
.tour__icon::after { animation-delay: 1.3s; }
@keyframes tourPulse { from { transform: scale(1); opacity: 0.9; } to { transform: scale(1.9); opacity: 0; } }
.spin360 { transform-origin: 24px 24px; animation: spin360 3.2s ease-in-out infinite; }
@keyframes spin360 { 0% { transform: scaleX(1); } 25% { transform: scaleX(0.15); } 50% { transform: scaleX(-1); } 75% { transform: scaleX(0.15); } 100% { transform: scaleX(1); } }
.tour__icon--clock .hand { transform-origin: 24px 24px; }
.tour__icon--clock .hand--m { animation: clockSpin 1.6s linear infinite; }
.tour__icon--clock .hand--h { animation: clockSpin 19.2s linear infinite; }
@keyframes clockSpin { to { transform: rotate(360deg); } }
button.tour__cover:hover .tour__icon, button.tour__cover:focus-visible .tour__icon { transform: scale(1.08); }
button.tour__cover:hover .tour__start { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 20px 44px -12px rgba(101, 40, 247, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
@media (max-width: 700px) { .tour--video .tour__icon svg { width: 34px; height: 34px; } }

/* Tour-Vorschaubild */
.tour__cover--poster { overflow: hidden; isolation: isolate; }
.tour__poster { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.tour__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 45% at 50% 50%, rgba(14, 10, 28, 0.45), rgba(14, 10, 28, 0) 100%),
    linear-gradient(135deg, rgba(101, 40, 247, 0.30), rgba(14, 10, 28, 0.10) 50%, rgba(255, 127, 208, 0.20));
  transition: opacity 0.5s var(--ease);
}
button.tour__cover--poster:hover .tour__shade { opacity: 0.85; }
.tour__cover--poster .tour__note { color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75); }
html.a11y-contrast .tour__shade { background: rgba(0, 0, 0, 0.5); }

/* Sternschnuppen */
.shooting-star {
  position: absolute; top: 0; left: 0; height: 2px; width: var(--len, 180px); border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(214, 196, 255, 0.55) 70%, #fff);
  filter: drop-shadow(0 0 6px rgba(198, 180, 255, 0.9));
  transform-origin: 100% 50%;
  animation: shoot var(--dur, 1.3s) cubic-bezier(0.3, 0, 0.7, 1) forwards;
}
@keyframes shoot {
  0%   { opacity: 0; transform: translate(var(--x0), var(--y0)) rotate(var(--ang)) scaleX(0.2); }
  12%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x1), var(--y1)) rotate(var(--ang)) scaleX(1); }
}

/* Logo-Animation */
.bb-logo { shape-rendering: geometricPrecision; display: block; height: 36px; width: auto; aspect-ratio: 927 / 355; color: var(--ink); overflow: visible; }
.bb-logo__mark, .bb-logo__text { transform-box: view-box; transform-origin: 160px 178px; }
.js .bb-logo--nav .bb-logo__mark, .js .bb-logo--footer .bb-logo__mark { opacity: 0; }
.js .bb-logo--nav .bb-logo__text, .js .bb-logo--footer .bb-logo__text { clip-path: inset(0 100% 0 0); }
.js.is-loaded .bb-logo--nav .bb-logo__mark, .bb-logo--footer.is-in .bb-logo__mark {
  animation: logoMarkIn 0.95s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.js.is-loaded .bb-logo--nav .bb-logo__text, .bb-logo--footer.is-in .bb-logo__text { animation: logoTextIn 0.8s var(--ease) 0.3s both; }
@keyframes logoMarkIn {
  from { opacity: 0; transform: scale(0.35) rotate(-24deg); }
  to   { opacity: 1; transform: none; }
}
@keyframes logoTextIn {
  from { clip-path: inset(0 100% 0 0); opacity: 0.2; }
  to   { clip-path: inset(0 -2% 0 0); opacity: 1; }
}

html.a11y-motion .bb-logo__mark, html.a11y-motion .bb-logo__text { opacity: 1 !important; clip-path: none !important; transform: none !important; }
html.a11y-contrast .bb-logo { color: #000; }

/* Berufstext */
.work__intro { color: var(--mute); font-size: var(--fs-lead); line-height: var(--lh-lead); margin: 0 0 26px; max-width: none !important; }
.work__outro { display: grid; gap: 16px; margin-top: 32px; }
.work__outro p { color: var(--mute); font-size: var(--fs-body); line-height: var(--lh-body); max-width: none !important; }
.work__outro p:last-child { color: var(--ink); font-weight: 500; }

/* Porträt sticky */
@media (min-width: 861px) and (min-height: 700px) {
  .portrait { position: sticky; top: 110px; align-self: start; }
  .portrait img { max-height: calc(100vh - 150px); object-fit: cover; object-position: 50% 20%; }
}

/* Herzensprojekte */
#projekte { padding-top: calc(var(--space) * 1.35); padding-bottom: calc(var(--space) * 0.35); }

/* Titel „Zuhause an der Müritz.“ */
.about__title { max-width: none; white-space: nowrap; margin-bottom: clamp(32px, 4.5vw, 56px); }
@media (max-width: 700px) { .about__title { white-space: normal; } }

/* Hero-Name: Schein */
.hero__title { filter: drop-shadow(0 0 18px rgba(143, 109, 255, 0.28)); }
html.a11y-contrast .hero__title, html.a11y-motion .hero__title { filter: none; }
html.a11y-motion .hero__line > span { --hx: -50% !important; }
/* Hero-Name mobil */
@media (max-width: 700px) {
  .hero__line > span {
    background:
      radial-gradient(circle 1.9em at var(--hx, -50%) var(--hy, 50%), rgba(255, 255, 255, 0.85), rgba(255, 244, 255, 0.32) 40%, rgba(255, 255, 255, 0) 74%),
      var(--grad-text);
    background-size: 100% 100%, 220% 100%; background-repeat: no-repeat;
    -webkit-background-clip: text; background-clip: text;
  }
}

/* ==========================================================================
   Unterstützen / congstar Freundeskreis
   ========================================================================== */
#unterstuetzen { padding-top: calc(var(--space) * 0.75); }
#unterstuetzen .h2 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); max-width: 22ch; }
.support { display: grid; max-width: 34rem; }

/* Gutschein-Box */
.coupon {
  position: relative;
  margin: 36px 0 8px;
  padding: clamp(24px, 3.4vw, 34px);
  border-radius: var(--r-l);
  max-width: 34rem;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 22px 50px -26px rgba(101, 40, 247, 0.55);
  overflow: hidden;
}
.coupon::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad-soft);
  pointer-events: none;
}
.coupon > * { position: relative; z-index: 1; }
.coupon__notch {
  position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%;
  background: var(--paper); transform: translateY(-50%); z-index: 2;
}
.coupon__notch--l { left: -12px; }
.coupon__notch--r { right: -12px; }
.coupon__label {
  margin: 0 0 6px; color: var(--mute);
  font-size: var(--fs-meta); font-weight: 700; font-stretch: var(--stretch-label);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.coupon__code { margin: 0; }
.coupon__code code {
  display: inline-block;
  font-family: inherit; font-weight: 800; font-stretch: 125%;
  font-size: clamp(2rem, 7vw, 3rem); line-height: 1.1; letter-spacing: 0.06em;
  overflow-wrap: anywhere; user-select: all;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  color: transparent; padding-bottom: 0.08em;
}
.coupon__line {
  height: 0; margin: 18px 0; border-top: 1.5px dashed var(--glass-edge);
}
.coupon__hint {
  margin: 0; color: var(--mute);
  font-size: var(--fs-body-sm); line-height: var(--lh-body-sm);
}
.coupon__copy {
  flex: none; display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: var(--fs-label); line-height: 1.2;
  color: #fff; background: var(--grad); background-size: 160% 100%; background-position: 0 0;
  box-shadow: 0 14px 30px -14px rgba(101, 40, 247, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-position 0.4s var(--ease);
}
.coupon__copy:hover { transform: translateY(-2px); background-position: 100% 0; }
.coupon__copy.is-copied { background: var(--ok); box-shadow: 0 14px 30px -14px rgba(17, 132, 91, 0.6); }
.coupon__copy.is-failed { background: var(--wip); box-shadow: none; }
.coupon__icons { position: relative; width: 18px; height: 18px; flex: none; }
.coupon__ic {
  position: absolute; inset: 0; width: 18px; height: 18px;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.coupon__ic--check { opacity: 0; transform: scale(0.5); }
.coupon__copy.is-copied .coupon__ic--copy { opacity: 0; transform: scale(0.5); }
.coupon__copy.is-copied .coupon__ic--check { opacity: 1; transform: scale(1); }
.coupon__copy-text { white-space: nowrap; }
.coupon__status.is-visible {
  position: static; width: auto; height: auto; margin: 14px 0 0; padding: 0;
  overflow: visible; clip: auto; white-space: normal;
  color: var(--wip); font-size: var(--fs-body-sm); line-height: var(--lh-body-sm);
}
.coupon__more { margin-top: 28px; }

@media (max-width: 460px) {
  .coupon__copy { justify-content: center; }
}

html.a11y-contrast .coupon { background: #fff; border: 2px solid #000; box-shadow: none; }
html.a11y-contrast .coupon::after { display: none; }
html.a11y-contrast .coupon__notch { display: none; }
html.a11y-contrast .coupon__code code { background: none; color: #000; }
html.a11y-contrast .coupon__label, html.a11y-contrast .coupon__hint { color: #000; }
html.a11y-motion .coupon__copy, html.a11y-motion .coupon__ic { transition: none; }

/* Gutschein-Box: Aktionen */
.coupon__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.coupon__actions .btn { flex: none; }
.coupon__actions .btn--glass {
  border-width: 2px; border-color: var(--accent); background: var(--btn2-hover);
  box-shadow: 0 10px 26px -14px rgba(101, 40, 247, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.coupon__actions .btn--glass:hover { border-color: var(--accent-deep); box-shadow: 0 16px 34px -14px rgba(101, 40, 247, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.18); }

/* Persönliche Empfehlung */
.recommend { margin-top: 10px; }
.recommend p { max-width: 66ch; }

/* Häufige Fragen */
.faq { display: grid; gap: 34px; margin-top: 22px; }
.faq__item h3 {
  font-size: var(--fs-label); font-weight: 800; font-stretch: var(--stretch-h3);
  letter-spacing: -0.01em; line-height: var(--lh-heading); margin: 0 0 9px; color: var(--ink);
}
.faq__item p { margin: 0; }

@media (max-width: 460px) {
  .coupon__actions { flex-direction: column; align-items: stretch; }
  .coupon__actions .btn { justify-content: center; }
}

/* Mobiler Kopier-Knopf, nur auf /congstar-freundeskreis */
.codebar, .codebar[hidden] { display: none; }
@media (max-width: 700px) {
  .codebar {
    display: block; position: fixed; left: auto; z-index: 58;
    right: calc(14px + var(--codebar-right, 0px));
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 28px);
    visibility: hidden; opacity: 0; transform: translateY(14px);
    transition: opacity 0.25s var(--ease), transform 0.3s var(--ease), visibility 0s 0.3s;
  }
  .codebar[hidden] { display: block; }
  .codebar.is-on {
    visibility: visible; opacity: 1; transform: none;
    transition: opacity 0.25s var(--ease), transform 0.3s var(--ease), visibility 0s;
  }
  .codebar__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 48px; padding: 13px 22px; border: 0; border-radius: 999px; cursor: pointer;
    font: inherit; font-weight: 700; font-size: 0.95rem; line-height: 1.2; white-space: nowrap;
    color: #fff; background: var(--grad); background-size: 160% 100%;
    box-shadow: 0 14px 30px -12px rgba(101, 40, 247, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }
  .codebar__btn.is-copied { background: var(--ok); box-shadow: 0 14px 30px -14px rgba(17, 132, 91, 0.6); }
  .codebar__btn.is-failed { background: var(--wip); box-shadow: none; }
  .codebar__icons { position: relative; width: 18px; height: 18px; flex: none; }
  .codebar__btn.is-copied .coupon__ic--copy { opacity: 0; transform: scale(0.5); }
  .codebar__btn.is-copied .coupon__ic--check { opacity: 1; transform: scale(1); }

  /* Vorhandene schwebende Schaltflächen über den Knopf heben */
  body.page-congstar.has-codebar .to-top { bottom: calc(23px + var(--codebar-h, 0px)); }
  body.page-congstar.has-codebar .a11y-toggle { bottom: calc(18px + var(--codebar-h, 0px)); }
  body.page-congstar.has-codebar .a11y-panel { bottom: calc(90px + var(--codebar-h, 0px)); max-height: calc(100vh - 120px - var(--codebar-h, 0px)); }

  html.a11y-contrast .codebar__btn { background: var(--accent-deep); color: #fff; box-shadow: none; border: 2px solid #000; }
  html.a11y-motion .codebar { transition: none; }
}
