/* =====================================================================
   Gestaltung der Website – Thema Nachhaltigkeit (Grün · Türkis · Hellgrün)
   Aufbau: 1 Farben · 2 Grundlagen · 3 Hintergrund-Grafik · 4 Navigation
           5 Titelbild · 6 Button · 7 Karten · 9 Abschnitte
           10 Kontakt & Footer · 11 Bewegung
   Texte, Titelbild und die drei Hauptfarben stehen in js/content.js.
   ===================================================================== */

/* ---------- 1 Farben ---------- */
:root {
  --navy: #0b3b2e;            /* Dunkelgrün – wird aus js/content.js überschrieben */
  --teal: #2dd4bf;            /* Türkis */
  --accent: #a3e635;          /* Limettengrün: Button, Linien, Hervorhebungen */

  --bg: #f2f9f4;
  --bg-alt: #e4f3ea;
  --surface: #ffffff;
  --text: #0e2a1f;
  --muted: #45604f;
  --border: #d3e7da;
  --link: #0b6b4d;
  --focus: #0f766e;

  /* Akzent der Abschnitte: Grün → Türkis */
  --acc-a: #15803d;
  --acc-b: #14b8a6;
  --label: #0f6b4a;

  /* Pastellfarben der Karten (p = Fläche, i = Symbol/Strich) */
  --p-green: #d9f2e1;  --i-green: #15803d;
  --p-mint: #d1f3ea;   --i-mint: #0b8a7d;
  --p-lime: #e8f5c8;   --i-lime: #4d7c0f;
  --p-sea: #cdeff3;    --i-sea: #0e7490;
  --p-forest: #cfe8da; --i-forest: #0f5132;

  --dot: rgba(15, 118, 110, .32);
  --hero-filter: contrast(1.04) brightness(.92);
  --shadow: 0 8px 28px rgba(8, 50, 35, .09);
  --shadow-hover: 0 16px 38px rgba(8, 50, 35, .17);
  --radius: 20px;
  --max: 1320px;
  --nav-h: 72px;
  --gutter: clamp(2rem, 6vw, 5rem);   /* Seitenrand links + rechts zusammen */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans Arabic", Tahoma, sans-serif;
  --hand: "Segoe Script", "Bradley Hand", "Brush Script MT", "Lucida Handwriting", "Noto Naskh Arabic", cursive;
}
:root[data-theme="dark"] {
  --bg: #06140e;
  --bg-alt: #06140e;
  --surface: #0d2319;
  --text: #e7f5ee;
  --muted: #a3c2b2;
  --border: #1d3f2f;
  --link: #5eead4;
  --focus: #5eead4;
  --acc-a: #4ade80;
  --acc-b: #2dd4bf;
  --label: #6ee7b7;
  --p-green: rgba(74, 222, 128, .15);  --i-green: #4ade80;
  --p-mint: rgba(45, 212, 191, .16);   --i-mint: #2dd4bf;
  --p-lime: rgba(190, 242, 100, .14);  --i-lime: #bef264;
  --p-sea: rgba(103, 232, 249, .15);   --i-sea: #67e8f9;
  --p-forest: rgba(134, 239, 172, .14); --i-forest: #86efac;
  --dot: rgba(94, 234, 212, .24);
  --shadow: 0 8px 28px rgba(0, 0, 0, .4);
  --shadow-hover: 0 16px 38px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

/* ---------- 2 Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.65; font-size: 1.0625rem; counter-reset: sec; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: var(--link); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
ul, dl, dd { margin: 0; padding: 0; list-style: none; }
.container { width: min(var(--max), 100% - var(--gutter)); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[dir="rtl"] * { letter-spacing: 0 !important; }   /* Arabische Schrift darf nicht gesperrt werden */
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--accent); color: #0b2a12; padding: .6rem 1rem; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { top: .75rem; }
.ph { font-style: italic; background: rgba(20, 184, 166, .12); border: 1px dashed var(--acc-b); border-radius: 6px; padding: 0 .35em; color: var(--text); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- 3 Hintergrund-Grafik: Höhenlinien + leuchtende Farbflächen ---------- */
.bg-art { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-art__dots { position: absolute; inset: 0; background-image: radial-gradient(circle, var(--dot) 1.1px, transparent 1.7px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 28%, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 85%); mask-image: radial-gradient(ellipse 85% 65% at 50% 28%, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 85%); }
.bg-art__grain { position: absolute; inset: 0; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] .bg-art__grain { opacity: .12; filter: invert(1); }
.bg-art__orb { position: absolute; width: 78vmax; height: 78vmax; border-radius: 50%; will-change: transform;
  background: radial-gradient(closest-side, var(--orb) 0%, transparent 100%); animation: drift 34s ease-in-out infinite alternate; }
.bg-art__orb:nth-child(2) { --orb: rgba(74, 222, 128, .42); top: -28vmax; inset-inline-start: -22vmax; }
.bg-art__orb:nth-child(3) { --orb: rgba(45, 212, 191, .36); top: 22vh; inset-inline-end: -30vmax; animation-duration: 42s; animation-delay: -12s; }
.bg-art__orb:nth-child(4) { --orb: rgba(190, 242, 100, .34); bottom: -32vmax; inset-inline-start: 12vw; animation-duration: 38s; animation-delay: -22s; }
:root[data-theme="dark"] .bg-art__orb:nth-child(2) { --orb: rgba(34, 197, 94, .30); }
:root[data-theme="dark"] .bg-art__orb:nth-child(3) { --orb: rgba(20, 184, 166, .30); }
:root[data-theme="dark"] .bg-art__orb:nth-child(4) { --orb: rgba(132, 204, 22, .18); }@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6vmax, 4vmax, 0) scale(1.12); } }

/* ---------- 4 Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: var(--navy); background: color-mix(in srgb, var(--navy) 96%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); transition: box-shadow .3s; }
.nav.is-scrolled { box-shadow: 0 10px 30px rgba(2, 24, 16, .4); }
.nav__inner { height: 100%; width: min(var(--max), 100% - var(--gutter)); margin-inline: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.brand { color: #fff; text-decoration: none; font-size: 1.55rem; letter-spacing: -.01em; white-space: nowrap; justify-self: start; }
.brand b { font-weight: 700; }
.brand span { font-weight: 700; }
.menu ul { display: flex; gap: clamp(1rem, 2.6vw, 3rem); }
.menu a { color: #e3f3ea; text-decoration: none; font-size: .98rem; padding: .5rem .15rem; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
.menu a:hover, .menu a[aria-current="true"] { color: #fff; border-bottom-color: var(--teal); }
.tools { display: flex; align-items: center; gap: .9rem; justify-self: end; }
.lang { display: flex; align-items: center; gap: .15rem; padding-inline-end: .9rem; margin-inline-end: .1rem; border-inline-end: 1px solid rgba(255, 255, 255, .25); }
.lang button { background: none; border: 0; color: #d3e8dc; font: inherit; font-size: .9rem; font-weight: 600; padding: .5rem .55rem; cursor: pointer; border-bottom: 2px solid transparent; border-radius: 4px 4px 0 0; min-height: 44px; }
.lang button:hover { color: #fff; }
.lang button[aria-pressed="true"] { color: #fff; border-bottom-color: var(--accent); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .04); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; transition: background .2s; }
.icon-btn:hover { background: rgba(255, 255, 255, .14); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-moon, .burger, .burger .b-close { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
.menu-open .burger .b-open { display: none; }
.menu-open .burger .b-close { display: block; }
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 70; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, #4ade80, #2dd4bf, #bef264); pointer-events: none; }
[dir="rtl"] .progress { transform-origin: right; }

@media (max-width: 960px) {
  .nav__inner { grid-template-columns: 1fr auto; }
  .burger { display: grid; }
  .menu { position: absolute; inset: var(--nav-h) 0 auto 0; background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, .12); max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .25s ease, visibility .25s; box-shadow: 0 16px 30px rgba(0, 0, 0, .25); }
  .menu-open .menu { max-height: 80vh; visibility: visible; }
  .menu ul { flex-direction: column; gap: 0; padding: .5rem 1.25rem 1rem; }
  .menu a { display: block; padding: .9rem .25rem; font-size: 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .tools { gap: .6rem; }
}
@media (max-width: 520px) {
  .brand { font-size: 1.15rem; }
  .lang { padding-inline-end: .4rem; }
  .lang button { padding: .5rem .35rem; font-size: .82rem; }
  .icon-btn { width: 40px; height: 40px; }
  .tools { gap: .4rem; }
}
@media (max-width: 380px) { .brand { font-size: 1rem; } .lang button { padding-inline: .25rem; } }

/* ---------- 5 Titelbild ---------- */
.hero { --wave-h: clamp(70px, 9vw, 130px); clip-path: polygon(0 0, 100% 0, 100.00% calc(100% - var(--wave-h) * 0.292), 97.41% calc(100% - var(--wave-h) * 0.329), 94.84% calc(100% - var(--wave-h) * 0.357), 92.30% calc(100% - var(--wave-h) * 0.375), 89.76% calc(100% - var(--wave-h) * 0.385), 87.24% calc(100% - var(--wave-h) * 0.387), 84.72% calc(100% - var(--wave-h) * 0.382), 82.20% calc(100% - var(--wave-h) * 0.371), 79.68% calc(100% - var(--wave-h) * 0.354), 77.15% calc(100% - var(--wave-h) * 0.332), 74.60% calc(100% - var(--wave-h) * 0.307), 72.03% calc(100% - var(--wave-h) * 0.278), 69.44% calc(100% - var(--wave-h) * 0.246), 66.21% calc(100% - var(--wave-h) * 0.207), 63.10% calc(100% - var(--wave-h) * 0.176), 60.09% calc(100% - var(--wave-h) * 0.151), 57.15% calc(100% - var(--wave-h) * 0.133), 54.26% calc(100% - var(--wave-h) * 0.122), 51.39% calc(100% - var(--wave-h) * 0.116), 48.52% calc(100% - var(--wave-h) * 0.117), 45.63% calc(100% - var(--wave-h) * 0.123), 42.69% calc(100% - var(--wave-h) * 0.135), 39.67% calc(100% - var(--wave-h) * 0.152), 36.56% calc(100% - var(--wave-h) * 0.173), 33.33% calc(100% - var(--wave-h) * 0.200), 30.25% calc(100% - var(--wave-h) * 0.228), 27.25% calc(100% - var(--wave-h) * 0.258), 24.32% calc(100% - var(--wave-h) * 0.287), 21.45% calc(100% - var(--wave-h) * 0.315), 18.64% calc(100% - var(--wave-h) * 0.339), 15.89% calc(100% - var(--wave-h) * 0.358), 13.17% calc(100% - var(--wave-h) * 0.369), 10.49% calc(100% - var(--wave-h) * 0.372), 7.85% calc(100% - var(--wave-h) * 0.364), 5.22% calc(100% - var(--wave-h) * 0.345), 2.61% calc(100% - var(--wave-h) * 0.311), 0.00% calc(100% - var(--wave-h) * 0.262)); position: relative; isolation: isolate; min-height: clamp(520px, 62vw, 640px); display: flex; align-items: center; color: #fff; overflow: hidden; padding-block: 3.5rem 7rem; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-pos, 75% center); filter: var(--hero-filter); z-index: -3; animation: kenburns 30s ease-in-out infinite alternate; }
.hero__shade { position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(to right, rgba(3, 30, 21, .95) 0%, rgba(5, 46, 33, .8) 32%, rgba(5, 46, 33, .34) 60%, rgba(5, 46, 33, .08) 80%),
              linear-gradient(to top, rgba(4, 50, 36, .5) 0%, transparent 38%); }
[dir="rtl"] .hero__shade { background: linear-gradient(to left, rgba(3, 30, 21, .95) 0%, rgba(5, 46, 33, .8) 32%, rgba(5, 46, 33, .34) 60%, rgba(5, 46, 33, .08) 80%),
              linear-gradient(to top, rgba(4, 50, 36, .5) 0%, transparent 38%); }
.hero__content { position: relative; }
.hero__name { font-size: clamp(2.7rem, 7.4vw, 5.4rem); line-height: 1.05; letter-spacing: -.025em; width: fit-content; max-width: 100%; margin-bottom: 1.6rem; }
.hero__name b { font-weight: 700; }
.hero__name span { font-weight: 700; }
.hero__line { display: block; width: 100%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--teal)); margin-top: 1.1rem; font-size: 0; }
.hero__role, .hero__focus, .hero__work { font-size: clamp(1.1rem, 2.1vw, 1.5rem); line-height: 1.5; }
.hero__role, .hero__work { max-width: 26em; }
.hero__focus { color: var(--accent); font-weight: 600; text-shadow: 0 1px 8px rgba(3, 30, 21, .5); }
.hero__role, .hero__focus { display: inline; }   /* "Student der BWL" und "Nachhaltigkeitsmanagement" stehen in einer Zeile */
.hero__focus { margin-inline-start: .3em; }
.hero .btn { margin-top: 2rem; }
.hero__deco { position: absolute; top: 3.2rem; inset-inline-end: clamp(1rem, 2.5vw, 3rem); z-index: -1; font-family: var(--hand); font-size: clamp(1.2rem, 2.1vw, 1.9rem); line-height: 1.25; color: rgba(255, 255, 255, .92); transform: rotate(-9deg); display: flex; flex-direction: column; text-shadow: 0 1px 2px rgba(3, 30, 21, .55), 0 2px 12px rgba(3, 30, 21, .45); pointer-events: none; }
[dir="rtl"] .hero__deco { transform: rotate(9deg); }
.hero__deco span:nth-child(2) { padding-inline-start: 1.2em; }
.hero__deco span:nth-child(3) { padding-inline-start: 2.4em; }
.hero__deco i { display: block; width: 6.5em; height: 2px; background: var(--accent); margin: .5rem 0 0 2.4em; border-radius: 2px; transform: rotate(-9deg); opacity: .85; }
.hero__wave { position: absolute; inset-inline: 0; bottom: -1px; width: 100%; height: var(--wave-h); display: block; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }

@media (max-width: 760px) {
  .hero { padding-block: 2.6rem 6rem; min-height: 700px; align-items: flex-start; background: #052e21; }
  .hero__img { inset: auto 0 0 0; height: 66%; object-position: var(--hero-pos-m, 76% center);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%); mask-image: linear-gradient(to bottom, transparent 0, #000 30%); }   /* Foto im unteren Teil, oben Platz für den Text */
  .hero__shade, [dir="rtl"] .hero__shade { background: linear-gradient(to bottom, rgba(5, 46, 33, 0) 0%, rgba(5, 46, 33, 0) 44%, rgba(5, 46, 33, .1) 70%, rgba(5, 46, 33, .2) 100%); }
  .hero__role, .hero__focus { display: block; }   /* Smartphone: jede Zeile ohne Einrückung untereinander */
  .hero__focus { margin-inline-start: 0; }
  .hero__deco { display: none; }
}

/* ---------- 6 Button ---------- */
.btn { display: inline-flex; align-items: center; gap: .8rem; padding: .95rem 1.7rem; min-height: 52px; border-radius: 999px; background: linear-gradient(180deg, #bef264, #84cc16); color: #0b2a12; font-weight: 700; font-size: 1.2rem; text-decoration: none; box-shadow: 0 10px 24px rgba(132, 204, 22, .35); transition: transform .2s, box-shadow .2s; border: 0; cursor: pointer; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(132, 204, 22, .5); }
.btn.is-disabled { background: #5f7a6b; color: #fff; box-shadow: none; cursor: not-allowed; transform: none; }
.arrow { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[dir="rtl"] .arrow { transform: scaleX(-1); }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }

/* ---------- 7 Karten ---------- */
.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; margin-top: -2.25rem; position: relative; z-index: 2; padding-bottom: 3rem; }
.card { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; min-height: 220px; padding: 1.4rem 1.4rem 4.5rem; background: color-mix(in srgb, var(--surface) 80%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.25); backdrop-filter: blur(14px) saturate(1.25); border: 1px solid color-mix(in srgb, var(--border) 80%, transparent); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--ic); }
.card__icon { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 1.2rem; background: var(--pc); color: var(--ic); transition: transform .3s var(--ease); }
.card:hover .card__icon { transform: scale(1.06); }
.card__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card__title { font-size: 1.2rem; font-weight: 700; line-height: 1.25; overflow-wrap: break-word; hyphens: auto; max-width: 100%; }
.card__bar { display: block; width: 36px; height: 4px; border-radius: 4px; background: var(--ic); margin-top: .7rem; }
.card__arrow { position: absolute; inset-inline-end: 1.4rem; bottom: 1.5rem; z-index: 1; color: var(--text); width: 20px; height: 20px; transition: transform .3s; }
.card:hover .card__arrow { transform: translateX(5px); }
[dir="rtl"] .card:hover .card__arrow { transform: scaleX(-1) translateX(5px); }
.card__wave { position: absolute; inset-inline: 0; bottom: 0; width: 100%; height: 68px; fill: var(--pc); opacity: .95; }
.card--green { --pc: var(--p-green); --ic: var(--i-green); }
.card--mint { --pc: var(--p-mint); --ic: var(--i-mint); }
.card--lime { --pc: var(--p-lime); --ic: var(--i-lime); }
.card--sea { --pc: var(--p-sea); --ic: var(--i-sea); }
.card--forest { --pc: var(--p-forest); --ic: var(--i-forest); }
@media (max-width: 1100px) {   /* Tablet: 3 + 2 Karten, die letzte Reihe füllt die Breite */
  .cards { grid-template-columns: repeat(6, 1fr); }
  .card { grid-column: span 2; }
  .card:nth-child(n+4) { grid-column: span 3; }
}
@media (max-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); gap: 1rem; } .card, .card:nth-child(n+4) { grid-column: auto; min-height: 200px; padding-inline: 1.1rem; } }
@media (max-width: 440px) {   /* Smartphone: kompakte Listenzeilen */
  .cards { grid-template-columns: 1fr; gap: .8rem; padding-bottom: 2rem; }
  .card { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "icon title arrow" "icon bar arrow"; column-gap: 1rem; align-items: center; align-content: center; min-height: 0; padding: 1rem 1.15rem 1.35rem; }
  .card__icon { grid-area: icon; width: 54px; height: 54px; margin: 0; }
  .card__title { grid-area: title; align-self: end; }
  .card__bar { grid-area: bar; align-self: start; margin-top: .45rem; }
  .card__arrow { grid-area: arrow; inset: auto; }
  .card__wave { height: 26px; opacity: .8; z-index: 0; }
  .card > :not(.card__wave) { position: relative; z-index: 1; }
}

/* ---------- 9 Abschnitte ---------- */
.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section--alt { background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, .6) 22%, rgba(255, 255, 255, .6) 78%, transparent 100%); }
:root[data-theme="dark"] .section--alt { background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, .035) 22%, rgba(255, 255, 255, .035) 78%, transparent 100%); }
.section__title { position: relative; font-size: clamp(1.9rem, 4vw, 2.5rem); line-height: 1.2; letter-spacing: -.015em; font-weight: 700; margin-bottom: 1.6rem; padding-bottom: 1rem; }
.section__title::before { counter-increment: sec; content: "0" counter(sec); display: block; font-size: .85rem; font-weight: 700; letter-spacing: .14em; color: var(--label); margin-bottom: .5rem; }
.section__title::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 64px; height: 5px; border-radius: 5px; background: linear-gradient(90deg, var(--acc-a), var(--acc-b)); }
[dir="rtl"] .section__title::after { background: linear-gradient(270deg, var(--acc-a), var(--acc-b)); }
.section__title + .section__lead { margin-top: -.4rem; }
.section__lead { color: var(--muted); margin-bottom: 1.6rem; max-width: 46em; }
.subhead { font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--label); margin-bottom: .8rem; }
.subhead--block { font-size: 1.5rem; letter-spacing: -.01em; text-transform: none; color: var(--text); margin: 3.2rem 0 1.3rem; }

.panel { position: relative; overflow: hidden; padding: clamp(1.4rem, 3vw, 2.2rem); border: 1px solid var(--border); border-radius: 26px; box-shadow: var(--shadow);
  background: linear-gradient(160deg, color-mix(in srgb, var(--surface) 84%, transparent) 0%, color-mix(in srgb, var(--surface) 70%, var(--acc-b) 4%) 100%); -webkit-backdrop-filter: blur(14px) saturate(1.25); backdrop-filter: blur(14px) saturate(1.25); }
.panel::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 5px; background: linear-gradient(180deg, var(--acc-a), var(--acc-b)); }
.panel p { max-width: 52em; }
.panel p + p { margin-top: 1rem; }

.about { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.about__text { font-size: 1.1rem; }
.about__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: .9rem; }
.about__tiles li { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.15rem; border-radius: 18px; background: var(--pc); border: 1px solid transparent; transition: transform .3s var(--ease), border-color .3s; }
.about__tiles li:hover { transform: translateY(-3px); border-color: var(--ic); }
.about__tiles li:nth-child(1) { --pc: var(--p-green); --ic: var(--i-green); }
.about__tiles li:nth-child(2) { --pc: var(--p-mint);  --ic: var(--i-mint); }
.about__tiles li:nth-child(3) { --pc: var(--p-lime);  --ic: var(--i-lime); }
.about__tiles li:nth-child(4) { --pc: var(--p-sea);   --ic: var(--i-sea); }
.tile__k { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, var(--ic) 70%, var(--text)); }
.tile__v { font-size: 1.05rem; line-height: 1.35; overflow-wrap: break-word; }
.about__skills { grid-column: 1 / -1; padding-top: 1.3rem; border-top: 1px solid var(--border); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

.certs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 1.4rem; }
.cert { --ic: var(--i-green); display: flex; flex-direction: column; gap: .6rem; padding: 1.5rem; border: 1px solid var(--border); border-top: 6px solid var(--ic); border-radius: 24px; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ic) 10%, var(--surface)) 0%, color-mix(in srgb, var(--surface) 82%, transparent) 62%); -webkit-backdrop-filter: blur(14px) saturate(1.25); backdrop-filter: blur(14px) saturate(1.25); }
.cert:nth-child(3n+2) { --ic: var(--i-mint); }
.cert:nth-child(3n+3) { --ic: var(--i-lime); }
.cert:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.cert__provider { font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--label); }
.cert__title { font-size: 1.2rem; line-height: 1.4; }
.cert__orig, .cert__meta-line { font-size: .92rem; color: var(--muted); }
.cert__text { font-size: .98rem; }

/* Kenntnisse als Pillen */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { padding: .25rem .8rem; border-radius: 999px; font-size: .88rem; font-weight: 600; line-height: 1.5; background: var(--p-green); color: var(--text); border: 1px solid transparent; }
.chip--top { background: var(--acc-a); color: #fff; }
:root[data-theme="dark"] .chip--top { color: #04210f; }
.entry__skills { margin-top: auto; padding-top: .5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; }
.entry__skills-label { font-size: .85rem; font-weight: 700; color: var(--muted); }

/* ---------- 10 Kontakt & Footer ---------- */
.facts > div { display: grid; grid-template-columns: minmax(150px, 230px) 1fr; gap: .4rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.facts > div:first-child { padding-top: 0; }
.facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { display: flex; align-items: baseline; gap: .6rem; font-weight: 700; color: var(--label); }
.facts dt::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--acc-b); flex: none; transform: translateY(-1px); }
.facts dd { overflow-wrap: anywhere; }
@media (max-width: 600px) { .facts > div { grid-template-columns: 1fr; gap: .15rem; } }

.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem; color: #fff; border: 0;
  background: radial-gradient(520px 260px at 92% -10%, rgba(45, 212, 191, .4), transparent 65%), radial-gradient(420px 240px at 0% 120%, rgba(190, 242, 100, .24), transparent 65%), linear-gradient(135deg, var(--navy), #0f5a45); }
.contact::before { display: none; }
.contact .facts { flex: 1 1 380px; }
.contact .facts dt { color: #a7f3d0; }
.contact .facts dt::before { background: #5eead4; }
.contact .facts > div { border-color: rgba(255, 255, 255, .16); }
.contact a:not(.btn) { color: #fff; font-weight: 600; text-decoration-color: #5eead4; text-underline-offset: 4px; }
.contact .ph { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); }

.footer { position: relative; margin-top: 2rem; background: linear-gradient(180deg, #0b3b2e, #062a20); color: #c6e6d6; font-size: .95rem; }
.footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #4ade80, #2dd4bf, #bef264); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2rem 3rem; padding-block: 3.2rem 2.4rem; }
.footer__brand { font-size: 1.6rem; color: #fff; letter-spacing: -.01em; }
.footer__brand b { font-weight: 700; }
.footer__brand span { font-weight: 700; }
.footer__tag { margin-top: .6rem; max-width: 28em; line-height: 1.55; }
.footer__h { margin-bottom: .9rem; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6ee7b7; }
.footer ul { display: grid; gap: .5rem; }
.footer a { color: #e3f5ec; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: #5eead4; text-underline-offset: 4px; }
.footer__bar { border-top: 1px solid rgba(255, 255, 255, .12); }
.footer__bar .container { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; padding-block: 1.2rem; font-size: .88rem; color: #9fc7b4; }
.footer .ph { color: #fff; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- 11 Bewegung ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero__content > * { animation: rise .8s var(--ease) both; }
.hero__content > :nth-child(2) { animation-delay: .08s; }
.hero__content > :nth-child(3) { animation-delay: .16s; }
.hero__content > :nth-child(4) { animation-delay: .24s; }
.hero__content > :nth-child(5) { animation-delay: .32s; }
.hero__deco { animation: rise 1.2s .5s var(--ease) both; }
.reveal-on .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s var(--ease); }
.reveal-on .reveal.in { opacity: 1; transform: none; }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Rechtliche Seiten (Impressum, Datenschutz) ---------- */
.legal-page .nav__inner { grid-template-columns: 1fr auto auto; }
.legal-back { color: #e3f3ea; text-decoration: none; font-weight: 600; }
.legal-back:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--teal); }
.legal { max-width: 52rem; }
.legal h2 { font-size: 1.25rem; margin: 2.2rem 0 .6rem; color: var(--text); }
.legal p { margin-bottom: .8rem; }
.legal .section__title { margin-bottom: 1rem; }
.legal-date { margin-top: 2rem; color: var(--muted); font-size: .92rem; }
.footer--slim { margin-top: 0; }
.footer--slim::before { display: none; }
.footer__legal a { color: inherit; }