/* Schriften lokal (keine Verbindung zu Google) */
@font-face { font-family: 'Bricolage Grotesque'; src: url('assets/fonts/bricolage.woff2') format('woff2'); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('assets/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('assets/fonts/jetbrains-mono.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

/* dieserlenny - Website. Design-System aus KI Basics (00_BRAND/BRAND.md, _build/designs/brand.css) */

:root {
  --blue: #4B69FE;
  --blue-deep: #2F49D6;
  --blue-tint: #E8ECFF;
  --ink: #0B0D17;
  --ink-soft: #4A4F63;
  --line: #D9DDEA;
  --paper: #F6F7FB;
  --white: #FFFFFF;

  --f-display: 'Bricolage Grotesque', 'Arial Narrow', system-ui, sans-serif;
  --f-text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.blue :focus-visible, .hero :focus-visible, .ink :focus-visible { outline-color: var(--white); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typo-Bausteine ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
  font-variation-settings: 'opsz' 96, 'wdth' 88;
}
.mono { font-family: var(--f-mono); font-weight: 500; letter-spacing: 0.02em; }
.caps { text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; }

mark {
  background: var(--white);
  color: var(--blue);
  padding: 0 0.12em 0.02em;
  margin: 0 -0.02em;
  border-radius: 0.08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
mark.on-light { background: var(--blue); color: var(--white); }

.cursor {
  display: inline-block; width: 0.42em; height: 0.78em; background: currentColor;
  margin-left: 0.08em; vertical-align: -0.04em; border-radius: 0.04em;
  animation: blink 1.1s steps(1) infinite;
}

.strike { position: relative; display: inline-block; }
.strike::after {
  content: ''; position: absolute; left: -4%; right: -4%; top: 54%; height: 0.1em;
  background: currentColor; transform: rotate(-4deg); border-radius: 0.05em;
}

/* ---------- Buttons, Pills, Chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--f-text); font-weight: 600; font-size: 16px; line-height: 1;
  padding: 17px 24px; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent;
  transition: transform .2s var(--ease), background-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--blue); box-shadow: 0 10px 30px rgba(11,13,23,.18); }
.btn-white:hover { color: var(--blue-deep); box-shadow: 0 14px 36px rgba(11,13,23,.26); }
.btn-ghost { border-color: rgba(255,255,255,.85); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: 13px 18px; font-size: 15px; }

.pill {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--f-mono); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  padding: 11px 16px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  border: 2px solid rgba(255,255,255,.9); color: var(--white);
  transition: background-color .2s, color .2s;
}
.pill-solid { background: var(--white); color: var(--blue); border-color: var(--white); }
a.pill-solid:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pill-static { margin-bottom: 28px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: .02em;
  padding: 7px 12px 7px 11px; border-radius: 8px;
  background: rgba(11,13,23,.16); color: var(--white);
  border: 1px solid rgba(255,255,255,.28);
}
.chips li::before { content: '#'; opacity: .6; margin-right: 2px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 22px; }
.tags li {
  font-family: var(--f-mono); font-size: 12px; font-weight: 500;
  padding: 5px 9px; border-radius: 6px; background: var(--blue-tint); color: var(--blue-deep);
}

/* ---------- Terminal ---------- */
.term {
  background: var(--ink); color: var(--white); border-radius: 12px;
  font-family: var(--f-mono); font-weight: 500;
  box-shadow: 0 24px 60px rgba(11,13,23,.30);
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px 0; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2A2E40; display: block; }
.term-title { margin-left: 10px; font-size: 12px; color: #8C91A8; }
.term-body { padding: 12px 18px 16px; white-space: nowrap; }
.term .p { color: var(--blue); font-weight: 800; margin-right: .6em; }
.tcursor {
  display: inline-block; width: .6em; height: 1.1em; background: var(--blue);
  vertical-align: -0.2em; margin-left: 2px; animation: blink 1.1s steps(1) infinite;
}

/* ---------- Raster-Hintergrund ---------- */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
}

/* =================================================================
   HERO
   ================================================================= */
.hero {
  position: relative; overflow: hidden;
  background: var(--blue); color: var(--white);
}
.nav {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 22px; padding-bottom: 22px;
}
.wordmark {
  font-family: var(--f-display); font-weight: 800; font-size: 26px; line-height: 1;
  letter-spacing: -0.01em; font-variation-settings: 'opsz' 96, 'wdth' 88;
  text-decoration: none; white-space: nowrap;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: .06em;
  text-decoration: none; opacity: .9; position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: currentColor;
  transition: right .25s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { right: 0; }

.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 24px;
  align-items: end;
  min-height: min(calc(100svh - 84px), 820px);
}
.hero-copy { padding: clamp(24px, 5vh, 64px) 0 clamp(56px, 9vh, 104px); align-self: center; }
.eyebrow { opacity: .85; margin-bottom: 24px; }
.hero-title {
  font-size: clamp(52px, 7.4vw, 112px);
  line-height: .98;
  margin-bottom: 28px;
  text-wrap: balance;
}
.hero-title mark { padding: 0 .1em .04em; }
.hero-lead { font-size: clamp(17px, 1.35vw, 19px); max-width: 34em; opacity: .95; margin-bottom: 28px; }
.hero .chips { margin-bottom: 34px; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual { position: relative; align-self: end; height: 100%; display: flex; align-items: flex-end; justify-content: flex-end; }
.hero-photo {
  position: relative; z-index: 1;
  width: min(100%, 560px);
  filter: drop-shadow(0 30px 50px rgba(11,13,23,.25));
  margin-right: calc(var(--gutter) * -1);
}
.outline-word {
  position: absolute; z-index: 0; right: -2%; top: 8%;
  font-family: var(--f-display); font-weight: 800; line-height: .8; letter-spacing: -0.05em;
  font-variation-settings: 'opsz' 96, 'wdth' 75;
  font-size: clamp(260px, 30vw, 460px);
  color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.45);
  user-select: none; pointer-events: none;
}
.hero-term {
  position: absolute; z-index: 3; left: -4%; top: 16%;
  font-size: 14px;
}
.typed {
  display: inline-block; vertical-align: bottom; overflow: hidden; white-space: nowrap;
  width: 41ch;
  animation: typing 2.6s steps(41, end) 1.1s both;
}

/* Einblend-Animationen above the fold: reine CSS-Keyframes */
.anim { animation: rise .9s var(--ease) both; }
.a1 { animation-delay: .05s; } .a2 { animation-delay: .15s; } .a3 { animation-delay: .3s; }
.a4 { animation-delay: .42s; } .a5 { animation-delay: .54s; }
.hero-photo { animation: photo-in 1.1s var(--ease) .2s both; }
.hero-term { animation: rise .8s var(--ease) .8s both; }
.outline-word { animation: fade 1.6s ease .3s both; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes photo-in { from { opacity: 0; transform: translateY(40px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes typing { from { width: 0; } to { width: 41ch; } }
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Ticker ---------- */
.ticker { background: var(--ink); color: var(--white); overflow: hidden; border-top: 1px solid rgba(255,255,255,.08); }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker span {
  font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  padding: 18px 0; white-space: nowrap; display: inline-flex; align-items: center;
}
.ticker span::after { content: ''; width: 7px; height: 7px; background: var(--blue); border-radius: 1px; margin: 0 28px; }

/* =================================================================
   SEKTIONEN
   ================================================================= */
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.paper { background: var(--paper); }
.white { background: var(--white); }
.ink { background: var(--ink); color: var(--white); }
.blue { background: var(--blue); color: var(--white); overflow: hidden; }

.section-head { max-width: 860px; margin-bottom: clamp(44px, 6vw, 72px); }
.kicker {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px; color: var(--blue);
}
.kicker::before { content: ''; width: 28px; height: 8px; background: var(--blue); border-radius: 2px; }
.ink .kicker { color: #9AAEFF; }
.ink .kicker::before { background: var(--blue); }
.h2 { font-size: clamp(40px, 5.6vw, 80px); line-height: 1.02; text-wrap: balance; }
.h2 mark { line-height: 1.12; }
.section-lead { margin-top: 24px; font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-soft); max-width: 40em; }
.ink .section-lead { color: #B8BCCD; }
.h3 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.08; letter-spacing: -0.02em; }

/* ---------- Angebote ---------- */
.offers { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.offer {
  position: relative; overflow: hidden;
  grid-column: span 2;
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.offer:nth-child(4) { grid-column: span 3; }
.offer:nth-child(5) { grid-column: span 3; }
.offer:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(11,13,23,.08); border-color: #C3CAE3; }
.offer .h3 { margin: 54px 0 14px; }
.offer p { color: var(--ink-soft); font-size: 16px; }
.offer-num {
  position: absolute; top: 18px; right: 22px;
  font-family: var(--f-display); font-weight: 800; font-size: 76px; line-height: .8; letter-spacing: -0.05em;
  font-variation-settings: 'opsz' 96, 'wdth' 75;
  color: transparent; -webkit-text-stroke: 1.5px var(--blue);
}
.offer::before {
  content: ''; position: absolute; left: 28px; top: 30px; width: 36px; height: 8px; border-radius: 2px; background: var(--blue);
}
.offer-feature { background: var(--blue); border-color: var(--blue); color: var(--white); }
.offer-feature::before { background: var(--white); }
.offer-feature p { color: rgba(255,255,255,.92); }
.offer-feature .offer-num { -webkit-text-stroke-color: rgba(255,255,255,.7); }
.offer-feature .h3 { margin-top: 18px; font-size: clamp(34px, 3.4vw, 46px); }
.offer-badge { margin-top: 36px; font-size: 12px; opacity: .85; }
.offer-feature .btn { margin-top: 22px; align-self: flex-start; }
.offer-feature:hover { border-color: var(--blue); box-shadow: 0 22px 50px rgba(75,105,254,.35); }

/* ---------- Arbeitsweise ---------- */
.principles { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.principle {
  display: grid; grid-template-columns: 72px 1fr; gap: 18px;
  padding: 28px 0; border-top: 1px solid rgba(255,255,255,.12);
}
.principle:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.p-num {
  font-family: var(--f-display); font-weight: 800; font-size: 56px; line-height: .85; letter-spacing: -0.05em;
  font-variation-settings: 'opsz' 96, 'wdth' 75;
  color: transparent; -webkit-text-stroke: 1.5px #7F95FF;
}
.principle .h3 { margin-bottom: 10px; }
.principle p { color: #B8BCCD; font-size: 16px; }

.term-lg {
  position: sticky; top: 32px;
  background: #151827; border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(75,105,254,.15);
}
.term-lg .term-body { margin: 0; padding: 20px 24px 26px; font-size: 14.5px; line-height: 1.75; white-space: pre; overflow-x: auto; }
.term-lg code { font-family: inherit; }
.c-h { color: #9AAEFF; font-weight: 700; }
.c-b { color: var(--blue); font-weight: 800; }
.term-cap { padding: 14px 24px 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: #8C91A8; }

/* ---------- Projekte ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 26px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.project:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(11,13,23,.08); }
.p-status {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-size: 12px; color: var(--blue-deep); background: var(--blue-tint);
  padding: 6px 10px; border-radius: 999px; margin-bottom: 22px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px rgba(75,105,254,.2); }
.project .h3 { margin-bottom: 12px; }
.project p { color: var(--ink-soft); font-size: 16px; }

/* ---------- Über ---------- */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.about-card {
  position: relative; overflow: hidden;
  background: var(--blue); border-radius: 22px;
  aspect-ratio: 4 / 5;
  display: flex; align-items: flex-end; justify-content: center;
}
.about-card img { position: relative; z-index: 1; height: 92%; width: auto; max-width: 94%; object-fit: contain; object-position: bottom; margin-bottom: -2px; filter: drop-shadow(0 24px 40px rgba(11,13,23,.25)); }
.outline-sm { font-size: clamp(150px, 24vw, 340px); top: 5%; right: 5%; left: auto; animation: none; -webkit-text-stroke-color: rgba(255,255,255,.6); }
.about-copy .h2 { margin-bottom: 20px; }
.about-lead { font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 2vw, 27px); line-height: 1.2; letter-spacing: -0.015em; margin-bottom: 20px; font-variation-settings: 'opsz' 48, 'wdth' 95; }
.about-copy > p:not(.kicker):not(.about-lead):not(.refs) { color: var(--ink-soft); margin-bottom: 16px; max-width: 36em; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 30px; border-top: 1px solid var(--line); }
.facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { padding-right: 16px; }
.facts dt { color: var(--blue); font-size: 11px; margin-bottom: 4px; }
.facts dd { font-weight: 600; }
.refs { margin-top: 24px; font-size: 15px; color: var(--ink-soft); }
.refs .mono { color: var(--ink); font-size: 11px; margin-right: 8px; }

/* ---------- KI Basics ---------- */
.course { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.course-title { font-size: clamp(76px, 10vw, 150px); line-height: .92; margin-bottom: 18px; letter-spacing: -0.035em; }
.course-title > span:first-child { display: block; }
.course-title mark { display: inline-block; padding: .02em .12em .06em; line-height: .95; border-radius: .06em; }
.course-title .cursor { width: .3em; height: .66em; margin-left: .12em; }
.course-sub { font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 26px; }
.course-lead { font-size: 18px; max-width: 32em; opacity: .95; margin-bottom: 24px; }
.chips-light { margin-bottom: 32px; }
.chips-light li { background: transparent; border: 2px solid rgba(255,255,255,.9); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; border-radius: 999px; padding: 8px 14px; }
.chips-light li::before { content: none; }

.modules { counter-reset: none; border-top: 1px solid rgba(255,255,255,.3); }
.modules li {
  display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 14px;
  padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.3);
  transition: padding-left .25s var(--ease), background-color .25s;
}
.modules li:hover { padding-left: 10px; }
.m-num {
  font-family: var(--f-display); font-weight: 800; font-size: 46px; line-height: .85; letter-spacing: -0.05em;
  font-variation-settings: 'opsz' 96, 'wdth' 75;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.8);
}
.m-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.2; letter-spacing: -0.01em; font-variation-settings: 'opsz' 48, 'wdth' 95; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-wrap .section-head { margin-bottom: 0; position: sticky; top: 32px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 0;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.25; letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 48, 'wdth' 95;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-mono); font-weight: 500; font-size: 20px;
  background: var(--blue-tint); color: var(--blue-deep);
  transition: transform .25s var(--ease), background-color .2s, color .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--blue); color: var(--white); }
.faq summary:hover { color: var(--blue-deep); }
.faq details p { padding: 0 56px 26px 0; color: var(--ink-soft); max-width: 40em; }

/* ---------- Kontakt ---------- */
.contact { overflow: hidden; }
.contact::after {
  content: ''; position: absolute; right: -10%; bottom: -40%; width: 60vw; height: 60vw; max-width: 800px; max-height: 800px;
  background: radial-gradient(circle, rgba(75,105,254,.35), transparent 65%); pointer-events: none;
}
.contact .wrap { position: relative; z-index: 1; }
.contact-title { font-size: clamp(64px, 11vw, 176px); line-height: .92; letter-spacing: -0.04em; margin-bottom: 28px; }
.contact-title mark { background: var(--blue); color: var(--white); padding: 0 .1em .04em; }
.contact-lead { font-size: clamp(18px, 1.6vw, 21px); color: #B8BCCD; max-width: 32em; margin-bottom: 48px; }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 960px; }
.contact-link {
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px 28px; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.16); text-decoration: none;
  transition: background-color .25s, border-color .25s, transform .25s var(--ease);
}
.contact-link .mono { color: #9AAEFF; font-size: 12px; }
.contact-link .display { font-size: clamp(24px, 2.6vw, 36px); font-weight: 700; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.contact-link:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-3px); }
.contact-link:hover .mono { color: var(--white); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #8C91A8; border-top: 1px solid rgba(255,255,255,.08); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; }
.wordmark-sm { font-size: 20px; color: var(--white); }
.footer .caps { font-size: 11px; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { color: var(--white); }

/* ---------- Scroll-Reveal (nur mit JS aktiv, Inhalt ohne JS sichtbar) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .offer, .offer:nth-child(4), .offer:nth-child(5) { grid-column: span 3; }
  .offer:nth-child(5) { grid-column: 1 / -1; }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .hero-term { left: -10%; }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero-copy { padding: 20px 0 28px; }
  .hero-visual { justify-content: center; height: auto; min-height: 0; padding-top: 70px; }
  .hero-photo { width: min(88%, 440px); margin-right: 0; }
  .outline-word { font-size: clamp(220px, 62vw, 380px); right: 2%; top: 0; }
  .hero-term { left: 0; top: 0; font-size: 12px; max-width: 100%; }
  .term-body { padding: 10px 14px 13px; }
  .principles { grid-template-columns: 1fr; }
  .term-lg { position: relative; top: 0; }
  .about { grid-template-columns: 1fr; }
  .about-visual { max-width: 460px; }
  .course { grid-template-columns: 1fr; }
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-wrap .section-head { position: static; margin-bottom: 8px; }
}

@media (max-width: 640px) {
  .nav { padding-top: 16px; padding-bottom: 16px; }
  .wordmark { font-size: 23px; }
  .nav-cta { padding: 9px 13px; font-size: 11px; }
  .hero-title { font-size: clamp(44px, 13.4vw, 64px); }
  .hero .chips li { font-size: 12px; padding: 6px 10px; }
  .btn { padding: 15px 20px; font-size: 15px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .offers { grid-template-columns: 1fr; }
  .offer, .offer:nth-child(4), .offer:nth-child(5) { grid-column: auto; }
  .offer { padding: 26px 22px 24px; }
  .offer::before { left: 22px; top: 26px; }
  .offer .h3 { margin-top: 46px; }
  .offer-num { font-size: 64px; }
  .projects { grid-template-columns: 1fr; }
  .principle { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
  .p-num { font-size: 46px; }
  .term-lg .term-body { font-size: 12.5px; padding: 16px 16px 20px; white-space: pre-wrap; }
  .term-cap { padding: 12px 16px 16px; }
  .facts { grid-template-columns: 1fr; }
  .facts div:nth-child(odd) { padding-right: 0; }
  .modules li { grid-template-columns: 56px 1fr; gap: 10px; padding: 13px 0; }
  .m-num { font-size: 36px; }
  .course-lead { font-size: 17px; }
  .course .btn { width: 100%; justify-content: center; text-align: center; }
  .faq details p { padding-right: 0; }
  .contact-actions { grid-template-columns: 1fr; }
  .contact-link { padding: 22px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 380px) {
  .hero-term { font-size: 11px; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .typed { width: 41ch; }
  .cursor, .tcursor { animation: none !important; opacity: 1; }
  .ticker-track { animation: none !important; flex-wrap: wrap; width: auto; justify-content: center; }
  .ticker-track span:nth-child(n+9) { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ===== v2: ruhigere Version (2026-09-30) ===== */
.section { padding-block: clamp(88px, 12vw, 160px); }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.principles { grid-template-columns: 1fr; }
.principle-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.principle, .principle:last-child { grid-template-columns: 1fr; gap: 12px; padding: 28px 0 0; border-bottom: 0; }
.offer, .project { padding: 34px 32px; }
.offer p, .project p { margin-top: 10px; }
.hero .chips { margin-bottom: 36px; }
@media (max-width: 900px) {
  .principle-list { grid-template-columns: 1fr; }
}

/* ===== v3: Animationen (2026-09-30) ===== */
/* Textmarker: Markierungen als Hintergrund-Verlauf, damit sie "eingestrichen" werden können */
mark { --mk: var(--white); background: none; background-image: linear-gradient(var(--mk), var(--mk)); background-repeat: no-repeat; background-size: 100% 100%; }
mark.on-light, .contact-title mark { --mk: var(--blue); background: none; background-image: linear-gradient(var(--mk), var(--mk)); background-repeat: no-repeat; }
.js .reveal mark { background-size: 0% 100%; color: inherit; transition: background-size .8s var(--ease) .35s, color .3s ease .55s; }
.js .reveal.in mark { background-size: 100% 100%; color: var(--blue); }
.js .reveal.in mark.on-light, .js .reveal.in .contact-title mark, .js .contact-title.reveal.in mark { color: var(--white); }

/* Hero: Zeilen gleiten aus einer Maske, dann der Marker */
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .line > span { display: inline-block; animation: line-up 1s var(--ease) both; }
.hero-title .line:nth-child(2) > span { animation-delay: .14s; }
.hero-title mark.sweep { animation: sweep .75s var(--ease) .95s both; }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes sweep { from { background-size: 0% 100%; color: var(--white); } to { background-size: 100% 100%; color: var(--blue); } }

/* Hero-Tags nacheinander */
.chips-stagger li { animation: rise .6s var(--ease) both; }
.chips-stagger li:nth-child(1) { animation-delay: .5s; }
.chips-stagger li:nth-child(2) { animation-delay: .58s; }
.chips-stagger li:nth-child(3) { animation-delay: .66s; }
.chips-stagger li:nth-child(4) { animation-delay: .74s; }

/* Foto: sanftes Atmen, Parallax per JS über --py */
.hero-photo { translate: 0 var(--py, 0px); }
@keyframes breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.hero-photo.idle { animation: breathe 6s ease-in-out infinite; }

/* Durchstreichen, wenn sichtbar */
.js .reveal .strike::after { transform: rotate(-4deg) scaleX(0); transform-origin: left center; transition: transform .6s var(--ease) .45s; }
.js .reveal.in .strike::after { transform: rotate(-4deg) scaleX(1); }

/* Karten nacheinander */
.offers .reveal:nth-child(2), .projects .reveal:nth-child(2), .principle-list .reveal:nth-child(2) { transition-delay: .12s; }
.offers .reveal:nth-child(3), .projects .reveal:nth-child(3), .principle-list .reveal:nth-child(3) { transition-delay: .24s; }

/* Module der Reihe nach */
.js .modules li { opacity: 0; transform: translateX(-14px); transition: opacity .5s var(--ease), transform .5s var(--ease), padding-left .25s var(--ease); }
.js .modules.in li { opacity: 1; transform: none; }
.modules li:nth-child(2) { transition-delay: .06s, .06s, 0s; } .modules li:nth-child(3) { transition-delay: .12s, .12s, 0s; }
.modules li:nth-child(4) { transition-delay: .18s, .18s, 0s; } .modules li:nth-child(5) { transition-delay: .24s, .24s, 0s; }
.modules li:nth-child(6) { transition-delay: .30s, .30s, 0s; } .modules li:nth-child(7) { transition-delay: .36s, .36s, 0s; }
.modules li:nth-child(8) { transition-delay: .42s, .42s, 0s; }

/* Hover-Details */
.offer-num { transition: color .35s var(--ease), transform .35s var(--ease); }
.offer:hover .offer-num { color: var(--blue); transform: translateY(-2px); }
.offer::before { transition: width .35s var(--ease); }
.offer:hover::before { width: 64px; }
.btn span[aria-hidden] { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(4px); }
.project { position: relative; overflow: hidden; }
.project::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.project:hover::after { transform: scaleX(1); }
.about-card img { transition: transform .8s var(--ease); }
.about-card:hover img { transform: scale(1.03); }

/* Navigation schwebt beim Scrollen mit */
.nav-float .nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: 14px; padding-bottom: 14px;
  background: rgba(75,105,254,.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 0 0 100vmax rgba(75,105,254,.9), 0 10px 30px rgba(11,13,23,.12);
  clip-path: inset(0 -100vmax -40px);
  animation: nav-down .4s var(--ease) both;
}
.nav-float .hero { padding-top: var(--nav-h, 88px); }
@keyframes nav-down { from { transform: translateY(-100%); } to { transform: none; } }

/* FAQ weich aufklappen (moderne Browser) */
:root { interpolate-size: allow-keywords; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

@media (prefers-reduced-motion: reduce) {
  .hero-title .line > span, .chips-stagger li, .hero-title mark.sweep, .hero-photo.idle { animation: none !important; }
  .hero-photo { translate: none; }
  .nav-float .nav { animation: none; }
}

/* ===== v4: Kundennamen, Rechtstexte (2026-09-30) ===== */
.refs { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.refs .mono { color: var(--ink-soft); font-size: 11px; margin: 0 0 14px; }
.ref-names { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 30px; }
.ref-names li { font-family: var(--f-display); font-weight: 800; font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.02em; font-variation-settings: 'opsz' 48, 'wdth' 85; color: var(--ink); opacity: .78; transition: opacity .25s, color .25s; }
.ref-names li:hover { opacity: 1; color: var(--blue); }

/* ===== Rechtliche Seiten ===== */
.legal-head { background: var(--blue); color: var(--white); padding-bottom: clamp(48px, 7vw, 88px); }
.legal-hero { padding-top: clamp(24px, 5vw, 56px); }
.legal-title { font-size: clamp(44px, 7vw, 96px); line-height: .95; margin-top: 14px; hyphens: manual; }
.legal { max-width: 820px; padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(72px, 9vw, 120px); }
.legal section { padding: 28px 0; border-top: 1px solid var(--line); }
.legal section:first-child { border-top: 0; padding-top: 0; }
.legal h2 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 14px; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--ink-soft); font-size: 17px; line-height: 1.65; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 10px 0 12px 1.2em; }
.legal li { padding-left: 4px; }
.legal li::marker { color: var(--blue); }
.legal a { color: var(--blue-deep); text-underline-offset: 3px; }
.legal-note { font-family: var(--f-mono); font-size: 13px !important; margin-top: 18px; }
.legal .todo { background: #FFF3C4; color: var(--ink); padding: 0 .3em; border-radius: 4px; font-family: var(--f-mono); font-size: .9em; }
.legal-page { background: var(--paper); }

/* ===== v6: Handy-Optimierung (2026-09-30) ===== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, summary { -webkit-tap-highlight-color: transparent; }

/* Hover-Effekte nur auf Geräten mit Maus, damit nach dem Antippen nichts "kleben" bleibt */
@media (hover: none) {
  .offer:hover, .project:hover, .contact-link:hover, .btn:hover { transform: none; }
  .offer:hover { box-shadow: none; border-color: var(--line); }
  .project:hover { box-shadow: none; }
  .offer:hover .offer-num { color: transparent; transform: none; }
  .offer:hover::before { width: 36px; }
  .project:hover::after { transform: scaleX(0); }
  .about-card:hover img { transform: none; }
  .modules li:hover { padding-left: 0; }
  .ref-names li:hover { opacity: .78; color: var(--ink); }
  .btn:active, .contact-link:active { transform: scale(.98); }
}

/* Schwebende Navigation: Platz für Notch / Statusleiste */
.nav-float .nav { padding-top: max(14px, env(safe-area-inset-top)); }

@media (max-width: 700px) {
  .section { padding-block: 64px; }
  .section-head { margin-bottom: 32px; }
  .section-lead { font-size: 17px; }

  /* Hero kompakter, damit das Foto schon im ersten Bildschirm auftaucht */
  .hero-inner { min-height: 0; gap: 0; }
  .hero-copy { padding: 8px 0 20px; }
  .eyebrow { margin-bottom: 18px; font-size: 11px; }
  .hero-title { font-size: clamp(46px, 13.2vw, 60px); margin-bottom: 20px; }
  .hero-lead { font-size: 17px; margin-bottom: 22px; }
  .hero .chips { margin-bottom: 24px; }
  .hero-cta { flex-wrap: nowrap; gap: 10px; }
  .hero-cta .btn { flex: 1 1 0; min-width: 0; justify-content: center; padding: 16px 12px; font-size: 15px; white-space: nowrap; }
  .hide-sm { display: none; }
  .hero-visual { justify-content: center; margin-top: 4px; }
  .hero-photo { width: min(82%, 340px); margin-right: 0; }

  /* Karten */
  .offer, .project { padding: 26px 22px 24px; }
  .offer::before { left: 22px; top: 26px; }
  .offer-num { font-size: 56px; top: 16px; right: 18px; }
  .offer .h3 { margin-top: 30px; }
  .principle, .principle:last-child { padding-top: 22px; }
  .p-num { font-size: 44px; }

  /* Über mich: Bild etwas flacher */
  .about-card { aspect-ratio: 1 / 1; }
  .ref-names { gap: 8px 20px; }

  /* KI Basics */
  .course-title { font-size: clamp(64px, 20vw, 88px); }
  .modules li { grid-template-columns: 52px 1fr; padding: 13px 0; }
  .m-num { font-size: 34px; }

  /* Kontakt: lange Adresse darf umbrechen */
  .contact-link .display { font-size: clamp(20px, 6.2vw, 28px); overflow-wrap: anywhere; }

  /* Footer: größere Tippflächen */
  .footer-inner { gap: 14px; }
  .footer-legal a { display: inline-block; padding: 10px 14px 10px 0; }

  /* Rechtliche Seiten */
  .legal p, .legal li { font-size: 16px; }
  .legal section { padding: 22px 0; }
}

@media (max-width: 360px) {
  .hero-cta .btn { font-size: 14px; padding: 15px 8px; }
  .nav-cta { padding: 10px 14px; font-size: 11px; }
}
@media (max-width: 360px) { .hide-xs { display: none; } }
/* Sprungziele nicht unter der schwebenden Navigation verstecken */
section[id], main[id] { scroll-margin-top: 76px; }
