/* Schriften lokal eingebunden — kein Abruf bei Google, keine IP-Uebermittlung.
   DM Serif Display und Inter, SIL Open Font License 1.1 (siehe fonts/). Die
   unicode-range sorgt dafuer, dass der Browser nur die Zeichensaetze laedt,
   die eine Seite tatsaechlich braucht. */
@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/dm-serif-display-400-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/dm-serif-display-400-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/dm-serif-display-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/dm-serif-display-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/inter-300-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/inter-300-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/inter-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/inter-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/inter-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/inter-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #FAFAF8;
  --bg-raised: #F3F2EF;
  --ink: #1A1A18;
  --ink-muted: #5C5C58;
  --ink-faint: #72726E;   /* 4.62:1 auf --bg — AA fuer Fliesstext (4.5:1) */
  --accent: #2B4F72;
  --accent-dim: #EBF0F5;
  --rule: #E4E3DE;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Nav */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  padding: 0 max(2rem, calc((100vw - 820px) / 2));
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}
.nav-links a {
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-muted);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* Language toggle */
.lang-toggle {
  display: flex;
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
}
.lang-btn {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: transparent;
  border: none;
  padding: 4px 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: var(--sans);
}
.lang-btn.active {
  background: var(--accent);
  color: #fff;
}
.lang-btn:not(.active):hover {
  background: var(--bg-raised);
}

/* Layout */
main {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--rule);
}
section:last-child { border-bottom: none; }

/* Hero */
/* Das Leinwand-Band steht jetzt zwischen Kopf und Hero und uebernimmt den
   Abstand zur fixierten Navigation — das frueher noetige Padding von 148px
   wuerde den Hero nur unnoetig nach unten druecken. */
#hero {
  padding-top: clamp(1.75rem, 4vw, 3.5rem);
  padding-bottom: 14rem;
  text-align: center;
}
.hero-eyebrow {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.85rem;
}
.hero-headline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(36px, 6.2vw, 72px);
  line-height: 1.08;
  color: var(--ink);
  max-width: 720px;
  margin-bottom: 2rem;
  font-weight: 400;
}
.quote-rotator {
  position: relative;
  max-width: 540px;
  width: 100%;
  min-height: 84px;
  margin: 2.75rem auto 0;
  text-align: center;
}
.quote-rotator .q {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-muted);
  opacity: 0;
  transition: opacity 1.6s ease;
  padding: 0 12px;
  pointer-events: none;
}
.quote-rotator .q.show { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .quote-rotator .q { transition: none; }
}
@media (max-width: 600px) {
  .quote-rotator { min-height: 110px; }
  .quote-rotator .q { font-size: 14px; }
}
/* Hero tags */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2rem;
}
.hero-tag {
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 14px;
  border-radius: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Section label */
.section-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3.5rem;
  display: block;
  opacity: 0.85;
}

/* About */
.about-body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-muted);
  max-width: 720px;
  font-weight: 300;
}
.about-body strong {
  color: var(--ink);
  font-weight: 400;
}

/* Strengths */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 4rem;
  border: 1px solid var(--rule);
}
.strength-item {
  padding: 2rem 1.8rem;
  border-right: 1px solid var(--rule);
}
.strength-item:last-child { border-right: none; }
.strength-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  color: var(--accent);
  opacity: 0.6;                      /* 3.03:1 auf --bg — AA fuer Grosstext */
  line-height: 1;
  margin-bottom: 1rem;
}
/* Dieselbe Ziffer in der Karte "Was noch offen ist" — kleiner und aufrecht.
   Stand bis dahin als Inline-Style im Markup; hier, weil der Deckungswert zu
   den beiden anderen Ziffern gehoert und sonst beim naechsten Kontrast-Blick
   uebersehen wird. Sie braucht mehr Deckung als die beiden: die Karte liegt
   auf --bg-raised, und 22px reichen fuer die Grosstext-Schwelle nicht — die
   beginnt erst bei 24px, also gelten die vollen 4.5:1. */
.open-num {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--accent);
  opacity: 0.8;                      /* 4.62:1 auf --bg-raised */
  line-height: 1;
  margin-bottom: 10px;
}
.strength-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
}
.strength-desc {
  font-size: 12px;
  color: var(--ink-faint);
  line-height: 1.7;
  font-weight: 300;
}















/* Projects */
.project-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0 3.5rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--rule);
}
.project-item:first-child { padding-top: 0; }
.project-item:last-child { border-bottom: none; padding-bottom: 0; }
.project-meta { padding-top: 2px; }
.project-type {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.5rem;
}
.project-year {
  font-size: 11px;
  color: var(--ink-faint);
  margin-bottom: 0.3rem;
}
.project-tech {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 0.8rem;
}
.project-tech span {
  font-size: 11px;
  color: var(--ink-muted);
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  padding: 2px 8px;
  border-radius: 2px;
  display: inline-block;
  width: fit-content;
}
.project-title {
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.8rem;
  letter-spacing: 0.01em;
}
.project-desc {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 1.5rem;
  max-width: 520px;
}
/* Live-Link als Button — der einzige echte Call-to-Action je Produkt */
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 10px 20px;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.project-link:hover { background: transparent; color: var(--accent); }
.project-link::after { content: '↗'; font-size: 11px; }

/* Rueckweg am Ende der Produktliste. Bewusst ein Textlink: der fixierte
   Nav-Balken traegt die Wortmarke schon auf #hero, ein schwebender Knopf
   waere das dritte Element fuer dieselbe Bewegung. */
.to-top {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-decoration: none;
  transition: color 0.3s;
}
.to-top::before { content: '↑'; margin-right: 8px; }
.to-top:hover { color: var(--accent); }











/* Skills */
.skills-block { margin-top: 4rem; border: 1px solid var(--rule); }
.skill-row {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.skill-row:last-child { border-bottom: none; }
.skill-row-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  min-width: 140px;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-tag {
  font-size: 11px;
  color: var(--ink-muted);
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  padding: 3px 10px;
  border-radius: 2px;
  letter-spacing: 0.02em;
  font-weight: 300;
}






/* Contact */
.contact-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--ink);
  max-width: 560px;
  line-height: 1.3;
  font-weight: 400;
}

/* Footer */
footer {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 2rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  border-top: 1px solid var(--rule);
}
.footer-note { font-size: 11px; color: var(--ink-faint); letter-spacing: 0.04em; }
.footer-logo { display: inline-flex; align-items: center; gap: 14px; opacity: 0.9; }
.footer-logo .logo-mark { width: 38px; height: 38px; flex-shrink: 0; }
.footer-logo .logo-square { fill: none; stroke: var(--ink); stroke-width: 2.2; }
.footer-logo .logo-s {
  fill: none; stroke: var(--accent); stroke-width: 2.6;
  stroke-linecap: butt; stroke-linejoin: miter;
}
.footer-logo .logo-cursor {
  fill: var(--accent);
  animation: footerBlink 1.1s steps(1) infinite;
}
@keyframes footerBlink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .footer-logo .logo-cursor { animation: none; opacity: 1; }
}
.footer-logo .logo-divider { width: 1.5px; height: 32px; background: var(--ink); opacity: 0.25; }
.footer-logo .logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.footer-logo .logo-text span { font-weight: 700; font-size: 16px; letter-spacing: 0.13em; color: var(--ink); }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 5px 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  margin-left: 0.8rem;
}
.hamburger span {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--ink-muted);
  transition: transform 0.2s, opacity 0.2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.mobile-menu {
  display: none;
  position: fixed;
  top: 52px; left: 0; right: 0;
  background: rgba(250,250,248,0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  padding: 1.2rem 1.2rem;
  z-index: 99;
  flex-direction: column;
  gap: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  transition: color 0.2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--accent); }

@media (max-width: 580px) {
  .hamburger { display: flex; }
}

/* i18n — Standardsprache DE, gespeicherte Wahl steht in html[data-lang].
   Beide Regeln blenden nur aus (kein display-Wert wird gesetzt), damit der
   sichtbare Zweig seinen display-Wert aus dem übrigen CSS behält. */
html:not([data-lang="en"]) [data-en] { display: none; }
html[data-lang="en"] [data-de] { display: none; }

/* ── Tablet (≤768px) ── */
@media (max-width: 768px) {
  nav {
    padding: 0 1.5rem;
    height: 54px;
  }
  .nav-links { gap: 1.5rem; }
  .nav-links a { font-size: 10px; }
  main { padding: 0 1.5rem; }
  footer { padding: 1.5rem 1.5rem 2.5rem; }
  section { padding: 4.5rem 0; }
  #hero { padding-top: clamp(1.75rem, 4vw, 3.5rem); padding-bottom: 5rem; }
  .hero-headline { font-size: clamp(34px, 6vw, 58px); }

  .project-item { grid-template-columns: 130px 1fr; gap: 0 2rem; }
  .strengths-grid { grid-template-columns: 1fr 1fr; }
  .strength-item:nth-child(2) { border-right: none; }
  .strength-item:nth-child(3) { border-right: none; border-top: 1px solid var(--rule); grid-column: 1 / -1; }
}

/* ── Mobile (≤580px) ── */
@media (max-width: 580px) {
  nav { padding: 0 1.2rem; height: 52px; }
  .nav-links { display: none; }
  .nav-right { gap: 0; }
  main { padding: 0 1.2rem; }
  footer { padding: 1.2rem 1.2rem 2rem; }
  section { padding: 3.5rem 0; }
  #hero { padding-top: clamp(1.75rem, 4vw, 3.5rem); padding-bottom: 4rem; }

  .hero-eyebrow { margin-bottom: 1.2rem; }
  .hero-headline { font-size: clamp(30px, 9vw, 44px); margin-bottom: 1.2rem; }

  .section-label { margin-bottom: 2rem; }

  .strengths-grid { grid-template-columns: 1fr; }
  .strength-item { border-right: none; border-bottom: 1px solid var(--rule); padding: 1.4rem 1.2rem; }
  .strength-item:nth-child(2) { border-right: none; }
  .strength-item:nth-child(3) { border-right: none; border-top: none; grid-column: auto; }
  .strength-item:last-child { border-bottom: none; }







  .project-item { grid-template-columns: 1fr; gap: 0; padding: 2rem 0; }
  .project-meta { padding-bottom: 0.8rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.2rem; }
  .project-tech { flex-direction: row; flex-wrap: wrap; margin-top: 0.5rem; }




  .skill-row { flex-direction: column; gap: 0.6rem; }
  .skill-row-label { min-width: 0; }



  .contact-tagline { font-size: 22px; }



}

/* ── Very small (≤380px) ── */
@media (max-width: 380px) {
  .hero-headline { font-size: 28px; }
  .strengths-grid { border: none; }
  .strength-item { border: 1px solid var(--rule); margin-bottom: -1px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }







/* Mobile carousel for strengths grid */
@media (max-width: 600px) {
  #str-carousel {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border: 1px solid var(--rule);
    border-radius: 4px;
  }
  #str-carousel::-webkit-scrollbar { display: none; }
  #str-carousel .strength-item {
    flex: 0 0 85vw;
    scroll-snap-align: start;
    border-right: 1px solid var(--rule) !important;
    border-bottom: none !important;
    border-top: none !important;
    min-width: 0;
  }
  #str-carousel .strength-item:last-child {
    border-right: none !important;
  }
  .str-dots { display: flex !important; }
}
.str-dots {
  display: none;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}
.str-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rule);
  transition: background 0.2s;
}
.str-dot.active { background: var(--accent); }


/* Swipe hint for carousels */
.swipe-hint {
  display: none;
}
@media (max-width: 600px) {
  .swipe-hint {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: var(--ink-faint);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
    justify-content: flex-end;
  }
  .swipe-hint svg {
    width: 14px;
    height: 14px;
    opacity: 0.4;
  }
}

/* Der rote Faden — drei Dimensionen */
.thread { margin-top: 4rem; }
.thread-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
  margin-bottom: 0.9rem;
}
.thread-intro {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  max-width: 62ch;
  margin-bottom: 2.5rem;
}
.thread-line {
  display: block;
  width: 100%;
  height: 18px;
}
.thread-line path {
  fill: none;
  stroke: var(--accent);
  stroke-opacity: 0.3;
}
.thread-nodes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 2rem;
  margin-top: -9px;          /* Knotenoberkante trifft die Linienmitte */
}
.thread-node { position: relative; padding-top: 1.6rem; }
.thread-node::before {       /* Punkt auf dem Faden */
  content: '';
  position: absolute;
  top: -4.5px;
  left: 50%;
  margin-left: -4.5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--bg);   /* deckt den Faden unter dem Punkt ab */
}
/* Ziffer inline vor dem Titel — die grosse Serifen-Kursive bleibt den
   Haltungs-Kacheln direkt darunter vorbehalten, sonst doppelt sich 01/02/03 */
.thread-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--accent);
  opacity: 0.8;                      /* 4.87:1 auf --bg — darunter reisst AA */
  margin-right: 5px;
}
.thread-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.7rem;
}
.thread-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 0.9rem; }
.thread-tag {
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 2px;
  padding: 3px 8px;
  font-weight: 400;
}
.thread-desc {
  font-size: 12.5px;
  color: var(--ink-faint);
  line-height: 1.65;
  font-weight: 300;
}

/* Hero-Tags reagieren auf Hover — der Faden bleibt ruhig, die Pillen nicht */
.hero-tag {
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.hero-tag:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* Logo prominenter im Hero (der Cursor blinkt bereits ueber footerBlink) */
/* Markenzeichen im Header — dieselbe Sperre wie im Footer, nur kleiner.
   (Die Basisklasse heisst historisch .footer-logo; sie traegt inzwischen
   das Logo an beiden Stellen.) */
.nav-brand { gap: 9px; opacity: 1; text-decoration: none; }
.nav-brand .logo-mark { width: 24px; height: 24px; }
.nav-brand .logo-divider { height: 19px; }
.nav-brand .logo-text span { font-size: 9.5px; letter-spacing: 0.12em; }

/* Vier Haltungs-Kacheln statt drei: als 2x2-Raster. Vier Spalten haetten
   bei 756px Inhaltsbreite nur ~130px Textbreite je Kachel ergeben, in der
   Titel wie "Nachvollziehbar statt magisch" dreizeilig umbrechen. Die alten
   nth-child-Regeln waren auf genau drei Kacheln gebaut und werden hier
   ueberschrieben — sie stehen frueher im Stylesheet. */
.strengths-grid { grid-template-columns: repeat(2, 1fr); }
.strength-item { border-right: none; border-bottom: none; }
.strength-item:nth-child(odd) { border-right: 1px solid var(--rule); }
.strength-item:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
.strength-item:nth-child(3) { grid-column: auto; border-top: none; }
@media (max-width: 580px) {
  .strengths-grid { grid-template-columns: 1fr; }
  .strength-item:nth-child(odd) { border-right: none; }
  .strength-item { border-bottom: 1px solid var(--rule); }
  .strength-item:last-child { border-bottom: none; }
}

/* Der Hero fuellt auf Mobil mindestens einen Bildschirm, damit die
   Produktsektion nie auf dem ersten Screen anreisst. Bewusst ueber die
   Viewport-Hoehe statt ueber ein festes Padding: bei 390x844 fehlten 168px,
   bei 320x568 passte es schon — jede feste Zahl waere auf dem einen Geraet
   zu klein und auf dem anderen zu gross. svh rechnet die eingeblendete
   Browserleiste mit; vh bleibt als Rueckfallwert davor stehen. */
@media (max-width: 768px) {
  #hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: clamp(1.75rem, 4vw, 3.5rem);
    padding-bottom: 3.5rem;
  }
}

/* Die Mobil-Abstufung muss hier stehen, nicht oben bei den anderen Media
   Queries: die Basisregeln darueber sind gleich spezifisch und wuerden
   spaeter im Stylesheet gewinnen. Die Wortmarke bleibt auf jeder Breite —
   sie wird nur enger, damit Hamburger und Sprachumschalter Platz behalten. */
@media (max-width: 580px) {
  .nav-brand { gap: 7px; }
  .nav-brand .logo-text span { font-size: 9px; letter-spacing: 0.1em; }
}
@media (max-width: 380px) {
  .nav-brand { gap: 6px; }
  .nav-brand .logo-mark { width: 21px; height: 21px; }
  .nav-brand .logo-divider { height: 16px; }
  .nav-brand .logo-text span { font-size: 8px; letter-spacing: 0.08em; }
}

/* Footer: Logo und QR nebeneinander; auf Mobil rutscht der QR unter die
   Wortmarke, statt zu verschwinden. Die Logo-Sperre selbst bleibt dabei
   als Einheit erhalten — sie ist ein gestaltetes Element, kein Stapel. */
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 1.6rem; }
@media (max-width: 768px) {
  .footer-brand { flex-direction: column; gap: 1.4rem; }
}

/* QR als gerahmte Karte statt nacktem Bild */
.brand-qr {
  display: block;
  width: 86px;
  height: 86px;
  padding: 7px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  transition: border-color 0.2s, transform 0.2s;
}
.brand-qr:hover { border-color: var(--accent); transform: translateY(-2px); }

/* Hero-Claim — steht jetzt direkt unter der Headline an der Stelle der
   frueheren Subline und uebernimmt deren Typografie. Der Abstand nach oben
   kommt aus dem margin-bottom der Headline, der nach unten aus dem
   Pills-Wrapper — der Absatz selbst bleibt margenfrei. */
.hero-claim {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-muted);
  font-weight: normal;
  text-align: center;
}
/* Der Nachsatz gehoert zum Satz und steht auf derselben Stufe — kursiv ist
   der einzige Unterschied innerhalb der Zeile. */
.hero-claim-add {
  font-style: italic;
}

/* Hero-Logo blendet beim Laden sanft auf. Bewusst reines CSS: eine
   JS-gesteuerte Variante haengt an rAF/IntersectionObserver, und die
   liefern in gedrosselten Tabs nichts — das Logo bliebe unsichtbar. */
.nav-brand { animation: logoIn 0.8s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
@keyframes logoIn {
  from { opacity: 0; transform: translateY(6px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-brand { animation: none; }
}

/* Produkt-Karten: Icon, Hover-Flaeche, Akzent auf dem Titel */
.project-item {
  position: relative;
  margin-left: -1.2rem;
  margin-right: -1.2rem;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
  border-radius: 4px;
  transition: background 0.25s;
}
.project-item:hover { background: rgba(43, 79, 114, 0.035); }
.project-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.8rem;
}
.project-head .project-title { margin-bottom: 0; transition: color 0.2s; }
.project-item:hover .project-title { color: var(--accent); }
.project-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.55;
  transition: opacity 0.2s;
}
.project-item:hover .project-icon { opacity: 1; }

/* About: Schlussabsatz als Akzentblock statt als weiterer Fliesstext */
.about-highlight {
  margin-top: 2rem;
  padding: 1.6rem 1.8rem;
  border-left: 2px solid var(--accent);
  background: var(--accent-dim);
  border-radius: 0 4px 4px 0;
}
.about-highlight p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink);
  font-weight: 300;
  max-width: 62ch;
}
.about-highlight strong { font-weight: 500; color: var(--accent); }

/* Rechtstexte — ueber :target sichtbar, damit /#impressum direkt
   verlinkbar ist und die Seite auch ohne JavaScript funktioniert. */
.legal { display: none; border-bottom: none; }
.legal:target { display: block; padding-top: 9rem; }
/* Wird ein Rechtstext angesteuert, tritt der Rest der Seite zurueck. Sonst
   bliebe der Text unten am Seitenende: der Browser springt nicht hin, weil
   das Ziel im Moment des Sprungs noch display:none ist. */
main:has(.legal:target) > section:not(.legal) { display: none; }
#contact { border-bottom: none; }   /* ist nach den Rechtsteilen nicht mehr :last-child */
.legal-block { margin-bottom: 2.2rem; max-width: 68ch; }
.legal-h {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.legal-p {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-muted);
  font-weight: 300;
}
.legal-p a, .legal-list a { color: var(--accent); }
.legal-list { list-style: none; }
.legal-list li {
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink-muted);
  font-weight: 300;
  padding-left: 1rem;
  position: relative;
}
.legal-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.legal-stand { font-size: 12px; color: var(--ink-faint); }
.legal-back {
  display: inline-block;
  margin-top: 1rem;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-dim);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.legal-back:hover { border-color: var(--accent); }

/* Footer-Links zu den Rechtstexten */
.footer-legal { display: flex; gap: 1.4rem; }
.footer-legal a {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--accent); }

/* Produkt-Screenshots — je Geraet eine eigene Maximalbreite, damit iPad,
   iPhone und MacBook ihre Proportionen behalten und nicht gleich gross
   wirken. Unter der jeweiligen Breite skalieren sie mit. */
.project-shot { margin-bottom: 1.5rem; text-align: center; }
.project-shot img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
/* width statt max-width: max-width: 100% oben deckelt sonst nichts mehr,
   weil diese Regeln gleich spezifisch sind und spaeter stehen. */
.shot-ipad img   { width: 420px; }
.shot-iphone img { width: 290px; }
.shot-mac img    { width: 620px; }

/* Kontakt: Karten mit Icons statt Tabellenzeilen */
.contact-sub {
  font-size: 15px;
  color: var(--ink-muted);
  font-weight: 300;
  line-height: 1.8;
  max-width: 56ch;
  margin-top: 1.2rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2rem; }
.cta-row .cta { margin-top: 0; }
/* Doppelklasse, weil .cta weiter unten steht und bei gleicher
   Spezifitaet sonst gewinnen wuerde */
.cta.cta-ghost { background: transparent; color: var(--accent); }
.cta.cta-ghost:hover { background: var(--accent); color: #fff; }
/* ── Kontaktformular ──────────────────────────────────────────────────────
   Das Formular braucht JavaScript, um zu senden. Es bleibt deshalb bis zum
   Setzen der js-Klasse verborgen (das erledigt das Skript im <head>, also
   vor dem ersten Paint — es blitzt nichts auf). Ohne JavaScript stehen die
   Kontaktkarten darunter mit der klickbaren E-Mail-Adresse. */
.contact-form { display: none; margin-top: 3rem; max-width: 560px; }
/* :not([hidden]) ist noetig, nicht kosmetisch — ohne die Einschraenkung
   schlaegt diese Regel das hidden-Attribut, und das Formular bliebe nach
   dem Absenden unter der Erfolgsmeldung stehen. */
html.js .contact-form:not([hidden]) { display: block; }
.form-noscript { margin-top: 2rem; font-size: 14px; color: var(--ink-muted); max-width: 60ch; }

.form-row { margin-bottom: 1.3rem; }
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.form-input {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.9rem;
  font-family: var(--sans);
  /* 16px ist kein Gestaltungswert: darunter zoomt iOS beim Fokus hinein */
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: 3px;
  transition: border-color 0.2s;
}
.form-input:hover { border-color: #cfcec8; }
.form-input:focus-visible,
.form-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}
.form-textarea { min-height: 150px; resize: vertical; }

/* Honigtopf: aus dem Sichtfeld geschoben statt per hidden-Attribut oder
   display:none — beides lesen Bots als Falle. Fuer Tastatur und
   Screenreader ist das Feld ueber tabindex und aria-hidden ausgenommen. */
.form-trap {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-actions { margin-top: 1.6rem; }
.form-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 26px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 3px;
  color: #fff;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.form-send:hover { background: transparent; color: var(--accent); }
.form-send:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.form-send[disabled] { cursor: default; opacity: 0.6; }
.form-send[disabled]:hover { background: var(--accent); color: #fff; }
/* Die Umbeschriftung haengt an den Wrappern ohne data-Attribut — setLang()
   setzt auf jedes [data-*]-Element ein inline display und wuerde eine
   Regel von hier ueberschreiben. */
.send-busy { display: none; }
.contact-form.is-sending .send-idle { display: none; }
.contact-form.is-sending .send-busy { display: inline; }

.form-status {
  margin-top: 1.1rem;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 60ch;
}
.form-status:empty { margin-top: 0; }
.form-status:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.form-status.is-error { color: #8A2F2A; }

.form-success {
  margin-top: 3rem;
  max-width: 560px;
  padding: 1.6rem 1.7rem;
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--accent);
  border-radius: 3px;
}
.form-success:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.form-success-head {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.form-success-body { font-size: 14px; line-height: 1.65; color: var(--ink-muted); }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 3rem;
}
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
a.contact-card:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}
.contact-icon {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin-top: 3px;
  stroke: var(--accent); fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.contact-card-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 5px;
}
.contact-card-value {
  display: block;
  font-size: 14px;
  color: var(--ink-muted);
  overflow-wrap: anywhere;
}
a.contact-card .contact-card-value { color: var(--accent); }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 2rem;
  padding: 13px 26px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 3px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.cta:hover { background: transparent; color: var(--accent); }
.cta svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

/* Mobil: der Faden kippt in die Senkrechte */
@media (max-width: 580px) {
  /* main hat hier nur noch 1.2rem Innenabstand — die negative Margin der
     Produktkarten wuerde ihn exakt aufheben und die Hover-Flaeche bis an
     den Bildschirmrand ziehen. Auf Touch ist Hover ohnehin bedeutungslos. */
  .project-item {
    margin-left: 0; margin-right: 0;
    padding-left: 0; padding-right: 0;
  }
  .cta { padding: 12px 20px; font-size: 11.5px; }
  .cta-row .cta { flex: 1 1 100%; justify-content: center; }
  .contact-cards { grid-template-columns: 1fr; }
  .thread { margin-top: 3rem; }
  .thread-intro { font-size: 15px; margin-bottom: 2rem; }
  .thread-line { display: none; }
  .thread-nodes {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    margin-top: 0;
    border-left: 1px solid var(--rule);
    padding-left: 1.5rem;
  }
  .thread-node { padding-top: 0; }
  .thread-node::before { top: 6px; left: -1.5rem; }
}

/* ── Leinwand-Band ────────────────────────────────────────────────────────
   Vollbreites Band zwischen Kopf und Hero. Der Kopf ist position:fixed und
   damit aus dem Fluss — das margin-top haelt das Band exakt darunter und
   muss der Kopfhoehe je Breakpoint folgen (58/54/52px). Eine Haarlinie nach
   oben braucht es nicht: nav bringt bereits border-bottom in --rule mit.
   Der CSS-Hintergrund in --bg steht, bevor der Canvas ueberhaupt gesizt
   ist — an dieser Stelle ist nie eine leere oder dunkle Flaeche zu sehen. */
.canvas-band {
  position: relative;
  margin-top: 58px;
  height: clamp(124px, 17vw, 232px);
  background: var(--bg);
  overflow: hidden;
}
.canvas-band canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
/* Aufloesung ins Papier statt harter Unterkante. Liegt als eigene Schicht
   ueber dem Canvas, damit das Bild selbst unaufgehellt bleibt. */
.canvas-band-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(250,250,248,0) 55%, #FAFAF8 100%);
}
/* Das Schild folgt der Leinwand, nicht dem Textraster: es sitzt am rechten
   Rand des Viewports, weil das Band ohnehin ueber die volle Breite geht. */
.canvas-band-inner {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0 clamp(1.25rem, 3vw, 2.75rem) 7px 1rem;
  text-align: right;
}
.band-label {
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}
/* Der Button traegt Farbe und Gewicht, Werkangabe und Seed bleiben in
   --ink-muted und Normalgewicht — dieser Kontrast macht ihn als Bedien-
   element lesbar, ohne dass die Zeile laut wird. */
.band-repaint {
  font: inherit;
  letter-spacing: inherit;
  font-weight: 500;
  color: var(--accent);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.band-repaint:hover { text-decoration: underline solid; }
.band-repaint:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Das Icon dreht sich beim Hover — inline-block, weil transform auf einem
   reinen Inline-Element nicht greift. */
.band-repaint-icon {
  display: inline-block;
  font-size: 0.9em;
  transition: transform 0.4s;
}
.band-repaint:hover .band-repaint-icon { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) {
  .band-repaint-icon { transition: none; }
}

@media (max-width: 768px) {
  .canvas-band { margin-top: 54px; }
  .canvas-band-inner { padding-bottom: 6px; }
}
/* Auf schmalen Schirmen bleibt nur Seed und Schaltflaeche stehen. Die
   Kuerzung haengt am aeusseren Span ohne data-Attribut — setLang() setzt
   auf jedes [data-*]-Element ein inline display, das eine display:none aus
   der Media Query ueberschreiben wuerde. */
@media (max-width: 640px) {
  .band-label-long { display: none; }
  /* Am Handy traegt das Band deutlich mehr Hoehe — quer liegt sonst viel
     Flaeche brach, und die senkrechten Zuege kommen erst hier zur Geltung. */
  .canvas-band { height: clamp(260px, 40vh, 380px); }
  /* Die Hoehe muss sich das Band mit dem Hero teilen: dessen 100svh und die
     vertikale Zentrierung aus dem 768px-Block haetten darunter rund 400px
     Leerraum stehen lassen. Diese Regel steht bewusst spaeter im Stylesheet
     als jener Block — gleiche Spezifitaet, die letzte gewinnt. */
  #hero {
    min-height: 0;
    justify-content: flex-start;
    padding-top: clamp(1.5rem, 6vw, 3rem);
  }
}
@media (max-width: 580px) {
  .canvas-band { margin-top: 52px; }
}

