/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --color-text:    #1A1A1A;
  --color-heading: #0F0F0E;
  --color-accent:  #8B7355;
  --color-muted:   #6B6560;
  --color-border:  #D9D0C7;
  --color-white:   #FFFFFF;

  --font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --nav-height: 72px;
  --pad-h:      clamp(1.5rem, 5vw, 5rem);
  --pad-v-top:  clamp(2rem, 6vw, 4rem);
  --pad-v-bot:  clamp(2rem, 4vw, 4rem);

  --ease: 0.3s ease;

  /* Filmkorn als gekachelte SVG-Grafik (statt Live-Filter):
     iOS Safari begrenzt die Flaeche von filter:url(...) auf grossen
     Elementen und liess dadurch ungekoernte Streifen oben/unten stehen. */
  --grain-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)' opacity='0.13'/%3E%3C/svg%3E");
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Dunkler Dokument-Hintergrund: verhindert weisse Balken beim
     Überscrollen (oben am Hero) und in den Übergängen zwischen den
     Abschnitten, falls die iOS-Adressleiste die dvh-Höhe verschiebt. */
  background-color: #0c0c0a;
  background-image: var(--grain-tile);
  background-repeat: repeat;
  background-size: 160px 160px;
}

body {
  background-color: #0c0c0a;
  /* Gleiche Koernung wie im Hero: falls die dynamische iOS-Adressleiste
     einen Spalt zwischen zwei Abschnitten freigibt, ist er nicht sichtbar. */
  background-image: var(--grain-tile);
  background-repeat: repeat;
  background-size: 160px 160px;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}

img   { display: block; max-width: 100%; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
address { font-style: normal; }

/* Kopierschutz: Textmarkierung unterbinden (Formularfelder ausgenommen) */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
input, textarea, select,
.hero-contact, .hero-contact *,
.kontakt-info, .kontakt-info *,
.legal-body address, .legal-body address *,
.copyable, .copyable * {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
img { -webkit-user-drag: none; }

/* ============================================================
   NAVIGATION (always on top)
   ============================================================ */
#navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 0 var(--pad-h);
  transition: background-color 0.45s ease-in-out;
  --navbar-bg: transparent;
}

#navbar.scrolled {
  background-color: var(--navbar-bg);
}

#navbar.nav-theme-light .nav-logo,
#navbar.scrolled.nav-theme-light .nav-logo          { color: rgba(26,26,26,0.60); }
#navbar.nav-theme-light .nav-logo:hover,
#navbar.nav-theme-light .nav-logo:focus-visible,
#navbar.scrolled.nav-theme-light .nav-logo:hover,
#navbar.scrolled.nav-theme-light .nav-logo:focus-visible { color: #0F0F0E; }
#navbar.nav-theme-light .nav-menu a,
#navbar.scrolled.nav-theme-light .nav-menu a        { color: rgba(26,26,26,0.60); }
#navbar.nav-theme-light .nav-menu a:hover,
#navbar.nav-theme-light .nav-menu a:focus-visible,
#navbar.scrolled.nav-theme-light .nav-menu a:hover,
#navbar.scrolled.nav-theme-light .nav-menu a:focus-visible { color: #0F0F0E; }
#navbar.nav-theme-light .nav-hamburger span,
#navbar.scrolled.nav-theme-light .nav-hamburger span { background: #0F0F0E; }

.nav-logo {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--ease);
  white-space: nowrap;
  position: relative;
}
.nav-logo::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width var(--ease);
}
.nav-logo:hover,
.nav-logo:focus-visible         { color: var(--color-white); }
.nav-logo:hover::after,
.nav-logo:focus-visible::after  { width: 100%; }
#navbar.scrolled .nav-logo      { color: rgba(255, 255, 255, 0.75); }
#navbar.scrolled .nav-logo:hover,
#navbar.scrolled .nav-logo:focus-visible { color: #fff; }

.nav-menu { display: flex; gap: 2.5rem; }

.nav-menu a {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  position: relative;
  transition: color var(--ease);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width var(--ease);
}

.nav-menu a:hover,
.nav-menu a:focus-visible         { color: var(--color-white); }
.nav-menu a:hover::after,
.nav-menu a:focus-visible::after  { width: 100%; }

#navbar.scrolled .nav-menu a { color: rgba(255, 255, 255, 0.75); }
#navbar.scrolled .nav-menu a:hover,
#navbar.scrolled .nav-menu a:focus-visible { color: #fff; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.nav-hamburger span {
  display: block;
  width: 22px; height: 1px;
  background: var(--color-white);
  transition: transform var(--ease), opacity var(--ease), background var(--ease);
}

#navbar.scrolled .nav-hamburger span { background: var(--color-heading); }

.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   FLOW ART — BASE LAYOUT
   Each section is a "card" that folds in from bottom-left
   ============================================================ */
.flow-main { width: 100%; overflow-x: hidden; }

[data-flow-section] {
  position: relative;
  min-height: 100vh;   /* Fallback für Browser ohne dvh */
  min-height: 100dvh;  /* iOS: folgt der dynamischen Adressleiste */
  width: 100%;
  overflow: hidden;
}

.flow-art-container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(0.875rem, 2vw, 1.5rem);
  min-height: 100vh;   /* Fallback für Browser ohne dvh */
  min-height: 100dvh;  /* iOS: folgt der dynamischen Adressleiste */
  width: 100%;
  padding:
    calc(var(--nav-height) + var(--pad-v-top))
    var(--pad-h)
    var(--pad-v-bot);
  transform-origin: bottom left;
  will-change: transform;
}

/* Hero: dunkel, full-bleed */
.hero-container {
  padding: 0;
  overflow: hidden;
  background-color: #0c0c0a;
  position: relative;
}

/* ============================================================
   FLOW TYPOGRAPHY
   ============================================================ */
.flow-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.flow-heading {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 9.5vw, 12rem);
  font-weight: 800;
  font-style: normal;
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--color-heading);
}

.flow-intro {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-muted);
  max-width: 42em;
  margin-top: 0.5rem;
}

.flow-hr {
  display: none;
}

/* Fliesstexte im Blocksatz mit automatischer Silbentrennung (lang="de") */
.flow-intro,
.leistungen-lead,
.leistung-block__text,
.ki-intro {
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* ============================================================
   HERO (Section 0) — Halide Topo Style
   ============================================================ */

/* Filmkorn via SVG-Filter */
.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background-image: var(--grain-tile);
  background-repeat: repeat;
  background-size: 160px 160px;
}

/* ── Grosser Animations-Text ── */
.hero-text-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  padding-bottom: 5rem;
  cursor: pointer;
}

/* Wrapper für beide Zeilen */
.hero-words {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15em;
  width: 100%;
}

.hero-chars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0 clamp(0.5rem, 2vw, 2rem);
  gap: 0;
}

.hero-char {
  position: relative;
  padding: 0 0.04vw;
  overflow: hidden;
  display: inline-block;
  line-height: 1;
}

/* Haupt-Zeichen — Basis (wird per Zeilen-Klasse überschrieben) */
.hero-char-main {
  display: block;
  font-family: var(--font-sans);
  line-height: 0.88;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: rgba(224, 224, 224, 0.90);
}

/* Beide Zeilen gleich gross */
.hero-chars--top .hero-char-main,
.hero-chars--bot .hero-char-main {
  font-size: clamp(2.5rem, 9.5vw, 12rem);
}

/* ── Kontaktdaten unten-links ── */
.hero-contact {
  position: absolute;
  bottom: 3rem;
  left: var(--pad-h);
  z-index: 12;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 2;
  color: rgba(224, 224, 224, 0.82);
  display: flex;
  flex-direction: column;
}
.hero-contact a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.hero-contact a:hover { color: #fff; }
.hero-contact .hc-tel {
  display: flex;
}
.hero-contact .hc-label {
  flex: 0 0 auto;
  width: 1.6em;
}

/* Scroll-Hinweis */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  width: 2px;
  height: 84px;
  overflow: hidden;
  z-index: 6;
}
.hero-scroll-hint::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(224, 224, 224, 0.65), transparent);
  animation: hero-flow 2.2s infinite ease-in-out;
}

@keyframes hero-flow {
  0%   { transform: translateY(-100%); }
  45%  { transform: translateY(0);     }
  100% { transform: translateY(100%);  }
}

/* ============================================================
   LIST TABLE — Projekte & Dienstleistungen (shared)
   ============================================================ */
.list-table {
  border-top: 1px solid var(--color-border);
}

.list-row {
  display: grid;
  align-items: baseline;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--color-border);
  cursor: default;
  transition: color var(--ease);
}
.list-row:hover { color: var(--color-accent); }
.list-row:hover .col-name,
.list-row:hover .col-ort,
.list-row:hover .col-year { color: var(--color-accent); }

/* Projekte — alle Trennlinien entfernen, Hover etwas dunkler */
#projekte .list-table { border-top: none; }
#projekte .list-row { border-bottom: none; }
#projekte .list-row:hover .col-name,
#projekte .list-row:hover .col-ort,
#projekte .list-row:hover .col-year,
#projekte .list-row:hover .col-nr { color: rgba(255,255,255,0.42); }

/* Projekte: 4-column grid (nr, description, ort, year) */
.list-table .list-row {
  grid-template-columns: 2.5rem 1fr auto 3.25rem;
  gap: 0 2rem;
}

.col-nr {
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: inherit;
}

.col-name {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--color-heading);
  transition: color var(--ease);
}

.col-ort {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--color-heading);
  white-space: nowrap;
}

.col-year {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--color-heading);
  text-align: right;
}

/* Projekte-Intro: gleiche Grösse & Farbe wie die Projektnamen (.col-name),
   zusätzlich 30% der eigenen Höhe nach unten verschoben */
.projekte-intro {
  font-size: 0.9375rem;          /* wie .col-name */
  color: var(--color-heading);   /* wie .col-name — #fff im Projekte-Abschnitt */
  transform: translateY(30%);
}

/* Compact variant: no row dividers, tight spacing */
.list-table--compact {
  margin-bottom: 3cm;
}
.list-table--compact .list-row {
  border-bottom: none;
  padding: 0.14rem 0;
}

/* ============================================================
   PERSONA — CV list (Über uns section)
   ============================================================ */
.cv-list {
  display: flex;
  flex-direction: column;
}

.cv-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0 2rem;
  padding: 0.4rem 0;
}

.cv-year,
.cv-desc,
.cv-name,
.cv-title {
  font-size: 0.875rem;
  font-weight: 400;
  font-style: normal;
  color: var(--color-text);
  line-height: 1.5;
}

.cv-year {
  white-space: nowrap;
  padding-top: 0.05rem;
}

.cv-name {
  margin-top: 1.25rem;
  letter-spacing: 0.01em;
  font-size: 0.9375rem;
  font-weight: 700;
}

.cv-title {
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  font-style: italic;
}

/* Split: Intro/CV links — Porträt rechts.
   Das Bild streckt sich über die volle Höhe der Textspalte:
   Oberkante bündig mit dem ersten Absatz, Unterkante mit der letzten CV-Zeile. */
.ueber-split {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 480px);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: stretch;
  margin-top: 1.25rem;
}

/* Erster Absatz startet ohne Vorabstand → Oberkante bündig mit Bild */
.ueber-split__text .flow-intro:first-child {
  margin-top: 0;
}

/* Abstand zwischen Fliesstext und CV-Block */
.ueber-split__text .cv-name {
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
}

/* CV-Liste sitzt in der linken Spalte, neben dem Porträt */
.ueber-split__text .cv-list {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.ueber-portrait {
  margin: 0;
  position: relative;        /* für die Schutzschicht */
  align-self: stretch;       /* füllt die volle Höhe der Textspalte */
}

.ueber-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ausschnitt leicht nach rechts verschoben, damit die Person
     im hochformatigen Rahmen mittig sitzt */
  object-position: 72% center;
  display: block;
  /* Schwarz-Weiss passend zum Hero — eine Zeile entfernen für Farbe: */
  filter: grayscale(100%);
  transition: filter var(--ease);
  /* Bildschutz: kein Markieren, Ziehen oder direktes Anklicken */
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.ueber-portrait:hover img {
  filter: grayscale(0%);
}

/* Transparente Schutzschicht liegt über dem Bild und fängt
   Rechtsklick / „Bild speichern" ab */
.ueber-portrait__shield {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: default;
}

@media (max-width: 768px) {
  .ueber-split {
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 2.5rem);
  }

  /* Einspaltig: keine Textspalte zum Strecken mehr → festes Hochformat,
     gleicher Bildausschnitt wie auf Desktop */
  .ueber-portrait {
    max-width: 320px;
    align-self: start;
  }

  .ueber-portrait img {
    height: auto;
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 768px) {
  .cv-row {
    grid-template-columns: 5rem 1fr;
    gap: 0 1rem;
  }
}

/* ============================================================
   KONTAKT
   ============================================================ */

/* Flow-hr im Kontakt-Abschnitt sichtbar machen */
#kontakt .flow-hr {
  display: block;
  height: 1px;
  background: rgba(255,255,255,0.15);
  border: none;
  margin: 0;
}


.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* ── Leistungen — neue Textblöcke ── */
.leistungen-lead {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.6;
  color: #000;
  max-width: 40%;
  margin-top: 0.75rem;
}

.leistungen-blocks {
  display: flex;
  flex-direction: column;
  margin-top: 0.5rem;
}

.leistung-block {
  position: relative;
  padding: clamp(0.75rem, 1.8vw, 1.15rem) 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  overflow: hidden;
}

.leistung-block__title {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #000;
}

.leistung-block__text {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.6;
  color: #000;
  max-width: 40%;
}

/* ── Kontakt-Info-Blöcke ── */
.ki-block {
  padding: 0.55rem 0;
  font-size: 0.875rem;
  line-height: 1.7;
}
.ki-block:first-child { padding-top: 0; }
.ki-firm {
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.1rem;
}
.ki-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.2rem;
}
.ki-block a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}
.ki-block a:hover { opacity: 0.7; }
.ki-tel {
  display: flex;
}
.ki-tel-label {
  flex: 0 0 auto;
  width: 1.6em;
}

.ki-intro {
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.7;
  color: #fff;
  max-width: 36em;
}

/* ── Kontaktformular ── */
.kf-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.kf-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.kf-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.kf-lbl {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.kf-field input,
.kf-field textarea {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 400;
  padding: 0.3rem 0 0.45rem;
  outline: none;
  resize: none;
  transition: border-color 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.kf-field textarea {
  min-height: 5rem;
  overflow: hidden;
}
.kf-field input:focus,
.kf-field textarea:focus { border-bottom-color: #fff; }
.kf-field input::placeholder,
.kf-field textarea::placeholder { color: rgba(255,255,255,0.25); }

/* ── Submit-Button (Motion-Button aus 21st.dev) ── */
.kf-submit {
  position: relative;
  width: 100%;
  height: 3.5rem;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 9999px;
  background: transparent;
  cursor: pointer;
  outline: none;
  overflow: hidden;
  margin-top: 0.75rem;
}
.kf-submit:focus-visible {
  outline: 2px solid rgba(255,255,255,0.6);
  outline-offset: 2px;
}
.kf-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* Kreis — absolut, gleicher Abstand auf allen Seiten */
.kf-btn-circle {
  position: absolute;
  top:    0.3rem;
  left:   0.3rem;
  bottom: 0.3rem;
  width:  2.9rem;          /* Breite = Höhe → perfekter Kreis */
  border-radius: 9999px;
  background: rgba(255,255,255,0.92);
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}
.kf-submit:not(:disabled):hover .kf-btn-circle {
  width: calc(100% - 0.6rem);   /* 0.3 rem links + 0.3 rem rechts */
}

/* Pfeil-Icon */
.kf-btn-arrow {
  position: absolute;
  top:  50%;
  left: 1rem;
  transform: translate(0, -50%);
  color: #0c0c0a;
  display: flex;
  align-items: center;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.kf-submit:not(:disabled):hover .kf-btn-arrow {
  transform: translate(0.4rem, -50%);
}

/* Label-Text */
.kf-submit__label {
  position: absolute;
  top:  50%;
  left: 50%;
  margin-left: 1rem;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  color: rgba(255,255,255,0.92);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  pointer-events: none;
  transition: color 0.5s cubic-bezier(0.4,0,0.2,1);
}
.kf-submit:not(:disabled):hover .kf-submit__label {
  color: #0c0c0a;
}

.form-note {
  font-size: 0.875rem;
  min-height: 1.4em;
  color: var(--color-accent);
}

/* Footer line inside last section */
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-copy {
  font-size: 0.6875rem;
  font-weight: 300;
  color: var(--color-muted);
  letter-spacing: 0.06em;
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a {
  font-size: 0.6875rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover { color: #fff; }


/* ── Projekt-Vorschaubild beim Hover ── */
.project-preview {
  position: fixed;
  pointer-events: none;
  z-index: 999;
  width: 331px;
  height: 248px;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.94) translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  border-radius: 2px;
  background: #1a1a1a;
}
.project-preview.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   FOCUS VISIBLE (global)
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE — TABLET ≤ 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .kontakt-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Leistungstexte nutzen auf Tablet/Handy die volle Breite
     (statt der schmalen 40%-Spalte vom Desktop) */
  .leistungen-lead,
  .leistung-block__text {
    max-width: 100%;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE ≤ 768px
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --pad-h: 1.25rem;
    --pad-v-top: 1.5rem;
    --pad-v-bot: 2rem;
  }

  /* Nav mobile */
  .nav-hamburger { display: flex; }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    /* Geöffnetes Menü: in ALLEN Abschnitten schwarzer Hintergrund */
    background: #0c0c0a;
    border-top: 1px solid rgba(255,255,255,0.12);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1.25rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
    z-index: 99;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  /* Menü-Links: immer weiss — überschreibt auch die nav-theme-light-Regel
     im hellen Dienstleistungen-Abschnitt (gleiche Spezifität, später im Code) */
  #navbar .nav-menu a,
  #navbar.nav-theme-light .nav-menu a {
    display: block;
    padding: 0.875rem var(--pad-h);
    color: rgba(255,255,255,0.85);
    font-size: 0.875rem;
    letter-spacing: 0.08em;
  }
  #navbar .nav-menu a:hover,
  #navbar .nav-menu a:focus-visible,
  #navbar.nav-theme-light .nav-menu a:hover,
  #navbar.nav-theme-light .nav-menu a:focus-visible { color: #fff; }
  .nav-menu a::after { display: none; }

  /* Bei geöffnetem Menü: Navbar-Leiste + Hamburger/Logo schwarz/weiss,
     egal in welchem Abschnitt */
  #navbar.menu-open { background: #0c0c0a; }
  #navbar.menu-open .nav-hamburger span,
  #navbar.menu-open.nav-theme-light .nav-hamburger span { background: #fff; }
  #navbar.menu-open .nav-logo,
  #navbar.menu-open.nav-theme-light .nav-logo { color: rgba(255,255,255,0.85); }

  /* Projekte list mobile */
  .list-table .list-row {
    grid-template-columns: 2rem 1fr auto;
    gap: 0 1rem;
  }
  .col-ort  { display: none; }
  .col-year { font-size: 0.75rem; text-align: right; }

  /* Formularfelder min. 16px → verhindert automatisches Hineinzoomen auf iOS */
  .kf-field input,
  .kf-field textarea {
    font-size: 16px;
  }

  /* Kontakt grid */
  .kontakt-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   RESPONSIVE — KLEINE HANDYS ≤ 480px
   ============================================================ */
@media (max-width: 480px) {
  /* Vor-/Nachname untereinander statt nebeneinander */
  .kf-row-2 {
    grid-template-columns: 1fr;
  }
}
