/* Schrift: General Sans, liegt lokal im Ordner schriften/ (keine externen Dienste) */
@font-face { font-family: "General Sans"; src: url("../schriften/GeneralSans-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../schriften/GeneralSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../schriften/GeneralSans-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../schriften/GeneralSans-Semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* =========================================================
   Farben, Schriften und Schriftgrößen – zentral hier anpassen.
   Schwarzer Hintergrund, weiße Schrift (Wunsch von Franz). Für eine andere Schrift nur --schrift ändern.
   ========================================================= */
:root {
  /* Grautöne */
  --schwarz: #000000;
  --text: #FFFFFF;
  --text-hell: rgba(255, 255, 255, .85);   /* Fließtext: fast weiß, angenehm lesbar */
  --text-leise: rgba(255, 255, 255, .5);
  --linie: rgba(255, 255, 255, .16);

  /* Eine Schrift für alles */
  --schrift: "General Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  /* Feste Schriftgrößen – keine anderen verwenden */
  --gr-h1: clamp(2.6rem, 5.5vw, 4.4rem);
  --gr-h2: clamp(1.6rem, 2.6vw, 2.4rem);   /* alle großen Überschriften, auch der Einstiegssatz */
  --gr-h3: 1.6rem;
  --gr-zahl: 2.8rem;
  --gr-gross: clamp(1.15rem, 1.9vw, 1.5rem);   /* Leitgedanke im Startbild */
  --gr-text: 1rem;
  --gr-klein: .85rem;
  --gr-label: .68rem;     /* alle Versal-Beschriftungen */
  --gr-vorzeile: .85rem;  /* kleine Überschriften über den Abschnitten (Über mich, Referenzen …) */
  --sperrung: .26em;      /* Buchstabenabstand der Versalien */

  --abstand: 112px;     /* Abstand oben und unten je Abschnitt */
  --breite: 1240px;
  --kopf-hoehe: 124px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--kopf-hoehe); }

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: var(--gr-text);
  font-weight: 300;
  line-height: 1.8;
  color: var(--text);
  background: var(--schwarz);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1.2em; }

.inhalt { max-width: var(--breite); margin: 0 auto; padding: 0 32px; }

/* ---------- Schriftsystem ---------- */

/* Überschriften */
h1, h2, h3 {
  font-family: var(--schrift);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.1;
  margin: 0 0 .6em;
}
h1 { font-size: var(--gr-h1); font-weight: 300; letter-spacing: -.02em; }
h2 { font-size: var(--gr-h2); }
/* Großer Einstiegssatz statt Überschrift (Über mich) – wirkt wie eine h2 */
.einstieg { font-size: var(--gr-h2); font-weight: 400; letter-spacing: -.01em; line-height: 1.15; color: var(--text); margin: 0 0 .7em; text-wrap: balance; }
h3 { font-size: var(--gr-h3); line-height: 1.2; }

/* Eine einzige Versal-Beschriftung für alles Kleine */
.vorzeile,
.navigation a,
.knopf,
.platzhalter-bild,
.scroll-hinweis,
.vergleich-legende,
.formular label,
.fuss {
  font-family: var(--schrift);
  font-size: var(--gr-label);
  font-weight: 500;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: var(--sperrung);
}

/* Kleiner Text */
.formular .einwilligung { font-size: .95rem; }

/* ---------- Bausteine ---------- */
.vorzeile { display: block; font-size: var(--gr-vorzeile); color: var(--text-leise); margin-bottom: 1.6em; }

/* Platzhalter */
.platzhalter-bild {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 18px 20px;
  background: linear-gradient(150deg, #1E1E1E 0%, #111111 100%);
  color: rgba(255, 255, 255, .35);
}

/* ---------- Kopfzeile ----------
   Liegt durchsichtig über dem Startbild, nach dem Scrollen dunkel –
   so steht das weiße Logo immer auf dunklem Grund. */
.kopf {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  height: var(--kopf-hoehe);
  color: #fff;
  transition: background .4s, height .4s;
}
.kopf.fest,
.unterseite .kopf { background: rgba(0, 0, 0, .92); backdrop-filter: blur(8px); }
.kopf .inhalt { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.logo { display: block; }
.logo img { width: 84px; height: 84px; }

.navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 48px; align-items: center; }
.navigation a { position: relative; text-decoration: none; padding: 6px 0; font-size: var(--gr-vorzeile); }   /* so groß wie die kleinen Überschriften */
.navigation a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width .35s;
}
.navigation a:hover::after { width: 100%; }

.menue-knopf { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 12px 8px; cursor: pointer; color: inherit; }
.menue-knopf span { display: block; height: 1px; background: currentColor; margin: 6px 0; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 34px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background .35s, color .35s;
}
.knopf::after { content: "→"; letter-spacing: 0; transition: transform .35s; }
.knopf:hover::after { transform: translateX(4px); }
.knopf:hover { background: var(--text); color: var(--schwarz); }

/* ---------- Abschnitte ---------- */
section { padding: var(--abstand) 0; }

/* Startbereich */
.start {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  color: #fff;
  background: var(--schwarz);
  overflow: hidden;
}
.start::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);  /* gleichmäßige Abdunklung, damit der Text auf jedem Foto lesbar ist */
}
.start .inhalt { position: relative; z-index: 1; width: 100%; padding-top: var(--kopf-hoehe); padding-bottom: 60px; }
/* Großes Logo als zartes Wasserzeichen über den ganzen Startbereich – bewusst angeschnitten */
.start .logo-gross {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: max(115vw, 115vh);
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
  opacity: .08;
  pointer-events: none;
}
.start .inhalt { z-index: 2; }
.start h1 { margin-bottom: .25em; }
.start .leitgedanke {
  max-width: 780px;
  margin: 0 auto;
  font-size: var(--gr-gross);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, .88);
}
.scroll-hinweis {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, .6);
  text-decoration: none;
}
.scroll-hinweis::after { content: ""; width: 1px; height: 56px; background: linear-gradient(rgba(255, 255, 255, .6), transparent); }

/* Abschnittskopf: Überschrift in einer Zeile, Satz darunter */
.abschnitt-kopf { max-width: 760px; margin-bottom: 64px; }
.abschnitt-kopf h2 { margin: 0 0 .4em; }
.abschnitt-kopf p { margin: 0; color: var(--text-hell); }

/* Über mich */
.ueber .inhalt { display: grid; grid-template-columns: 4fr 7fr; gap: 80px; align-items: center; }
.ueber p:not(.einstieg) { color: var(--text-hell); }   /* Fließtext gleich hell wie in den anderen Bereichen */
.portrait .platzhalter-bild { aspect-ratio: 4 / 5; }

/* Referenzen */
/* Vorher / Nachher: je Objekt zwei gleich große Fotos nebeneinander */
/* Alle Vorher/Nachher-Paare klein in einer Reihe – nur ein kurzer Eindruck */
.vergleiche { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; align-items: start; }
.vergleich { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.vergleich figure { margin: 0; }
.vergleich .platzhalter-bild,
.vergleich img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.vergleich-legende { margin: 0 0 16px; font-size: .8rem; letter-spacing: .22em; color: var(--text-hell); }

/* Zwei Themen nebeneinander, als Flächen in Grautönen */
.themen { padding: 0; }
.themen-raster { display: grid; grid-template-columns: 1fr 1fr; }
.thema { padding: var(--abstand) 64px var(--abstand) 0; display: flex; flex-direction: column; align-items: flex-start; }
.thema h2 { max-width: 520px; }
.thema p { max-width: 480px; margin-bottom: 2.4em; }
.thema .knopf { margin-top: auto; }   /* Knöpfe beider Flächen auf gleicher Höhe */
.themen { border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.thema + .thema { padding: var(--abstand) 0 var(--abstand) 64px; border-left: 1px solid var(--linie); }
.thema p { color: var(--text-hell); }

/* Kontakt */
.kontakt .inhalt { display: grid; grid-template-columns: 5fr 6fr; gap: 120px; }
.kontakt h2 { margin-bottom: .5em; }
.kontakt .einladung { color: var(--text-hell); }

.formular { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.formular .breit { grid-column: 1 / -1; }
.formular label { display: block; font-size: .82rem; letter-spacing: .2em; color: var(--text-hell); }   /* größer, gut lesbar */
.formular input,
.formular select,
.formular textarea {
  width: 100%;
  padding: 12px 0 14px;
  margin-bottom: 34px;
  border: 0;
  border-bottom: 1px solid var(--linie);
  background: transparent;
  color: #fff;
  font: inherit;
  border-radius: 0;
  transition: border-color .3s;
}
.formular input:focus,
.formular select:focus,
.formular textarea:focus { outline: none; border-bottom-color: #fff; }
.formular textarea { min-height: 120px; resize: vertical; }
/* Automatisches Ausfüllen des Browsers (z. B. Chrome) nicht hell hinterlegen */
.formular input:-webkit-autofill,
.formular input:-webkit-autofill:hover,
.formular input:-webkit-autofill:focus,
.formular textarea:-webkit-autofill,
.formular select:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--schwarz) inset;
  box-shadow: 0 0 0 1000px var(--schwarz) inset;
  transition: background-color 9999s ease-out 0s;
}
.formular input:autofill { background: var(--schwarz); color: var(--text); }
.formular input,
.formular select,
.formular textarea { font-size: 1.1rem; }
.formular-status { font-size: 1rem; }
.formular select { appearance: none; cursor: pointer; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='white'/%3E%3C/svg%3E") no-repeat right 4px center; }
.formular select option { color: #000; }
.formular .einwilligung {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-hell);
  margin-bottom: 40px;
}
.formular .einwilligung input { width: auto; margin: 6px 0 0; accent-color: #fff; }
.formular .falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formular-fuss { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.formular-status { margin: 0; color: rgba(255, 255, 255, .75); }
.formular-status.fehler { color: #F0A8A0; }
.formular button[disabled] { opacity: .5; cursor: wait; }

/* Fußzeile */
.fuss { border-top: 1px solid var(--linie); color: var(--text-leise); padding: 40px 0; }
.fuss .inhalt { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.fuss a { text-decoration: none; }
.fuss a:hover { color: #fff; }

/* Rechtstexte */
.rechtstext { padding: calc(var(--kopf-hoehe) + 100px) 0 140px; }
.rechtstext .inhalt { max-width: 820px; }
.rechtstext h1 { font-size: var(--gr-h2); margin-bottom: .8em; }
.rechtstext h2 { font-size: var(--gr-h3); margin: 1.8em 0 .4em; }
.rechtstext p { color: var(--text-hell); }
.rechtstext .stand { margin-top: 3em; font-size: var(--gr-klein); color: var(--text-leise); }

/* ---------- Sanftes Einblenden beim Scrollen ---------- */
.js .einblenden { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1s ease; }
.js .einblenden.sichtbar { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .einblenden { opacity: 1; transform: none; transition: none; }
}

/* Unter 1000 px zwei Paare pro Reihe */
@media (max-width: 1000px) {
  .vergleiche { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  :root { --abstand: 88px; }
  .ueber .inhalt,
  .kontakt .inhalt { grid-template-columns: 1fr; gap: 40px; }
  .ueber .inhalt,
  .kontakt .inhalt { gap: 72px; }
  .themen-raster { grid-template-columns: 1fr; }
  .thema,
  .thema + .thema { padding: var(--abstand) 0; }
  .thema + .thema { border-left: 0; border-top: 1px solid var(--linie); }
  .portrait { max-width: 480px; }
}

/* ---------- Handy ---------- */
@media (max-width: 760px) {
  :root {
    --kopf-hoehe: 92px;
    --abstand: 64px;
    --gr-zahl: 2.3rem;
    --gr-h3: 1.45rem;
  }
  .inhalt { padding: 0 22px; }
  .logo img { width: 60px; height: 60px; }
  .menue-knopf { display: block; }
  .navigation {
    display: none;
    position: absolute;
    top: var(--kopf-hoehe); left: 0; right: 0;
    background: var(--schwarz);
  }
  .navigation.offen { display: block; }
  .kopf:has(.navigation.offen) { background: var(--schwarz); }
  .navigation ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 22px 28px; }
  .navigation li a { display: block; padding: 16px 0; border-bottom: 1px solid var(--linie); }
  .start .inhalt { padding-bottom: 40px; }
  .scroll-hinweis { display: none; }
  .abschnitt-kopf { margin-bottom: 40px; }
  .vergleiche { grid-template-columns: 1fr; gap: 28px; max-width: 360px; }
  .formular { grid-template-columns: 1fr; }
  .fuss .inhalt { flex-direction: column; }
}

/* Porträt bei Über mich (sobald das echte Foto da ist, ersetzt es die leere Fläche) */
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; }
