/* =====================================================================
   STIL / DESIGN DER WEBSITE  —  "Werkstatt / Warm-Minimal"
   ---------------------------------------------------------------------
   Diese Datei bestimmt das Aussehen (Farben, Schriften, Abstände).
   Du musst sie normalerweise NICHT anfassen. Wenn du aber z. B. die
   Akzentfarbe ändern willst, findest du alle Farben ganz oben unter
   ":root". Ändere dort z. B. --akzent auf einen anderen Farbwert.
   ===================================================================== */

:root {
  /* --- Farben HELL (Standard) --- */
  --bg:          #f6f2ea;   /* Hintergrund (warmes Creme) */
  --bg-karte:    #fffdf8;   /* Karten/Kästen etwas heller */
  --ink:         #26231f;   /* Haupttextfarbe (fast schwarz) */
  --ink-weich:   #4a453d;   /* etwas weicher als Haupttext */
  --muted:       #8a8175;   /* gedämpfter Text (grau-braun) */
  --akzent:      #c25a30;   /* Akzentfarbe (Terrakotta) */
  --akzent-weich:#f0d9cd;   /* helle Variante der Akzentfarbe */
  --linie:       #e5ded2;   /* feine Trennlinien */
  --bild-bg:     #efe9df;   /* Hintergrund hinter Bildern */
  /* Kontakt-Block */
  --kontakt-bg:  #26231f;
  --kontakt-fg:  #f6f2ea;
  --kontakt-muted:#cdc7bc;
  --kontakt-border: transparent;

  /* --- Schriften ---
     Bewusst systemeigene Schriften: keine externe Verbindung (DSGVO-freundlich),
     laden sofort und funktionieren offline. Wenn du später eigene Schriften
     (z. B. Fraunces/Inter) willst, sag Bescheid – dann werden sie eingebunden. */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max: 1120px;            /* maximale Inhaltsbreite */

  color-scheme: light dark;
}

/* --- Farben DUNKEL (Dark Mode) ---
   Werden aktiv, wenn oben rechts auf "dunkel" geschaltet wird
   oder das Gerät auf dunkles Design steht. */
:root[data-theme="dark"] {
  --bg:          #1b1712;
  --bg-karte:    #241f19;
  --ink:         #ece5d8;
  --ink-weich:   #c9c1b2;
  --muted:       #a2988a;
  --akzent:      #e07a4a;
  --akzent-weich:#4a3326;
  --linie:       #342c22;
  --bild-bg:     #241f19;
  --kontakt-bg:  #221d17;
  --kontakt-fg:  #ece5d8;
  --kontakt-muted:#b3aa9b;
  --kontakt-border: #342c22;
}
/* Dasselbe automatisch, wenn das Gerät auf Dunkelmodus steht und
   noch nichts manuell gewählt wurde. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          #1b1712;
    --bg-karte:    #241f19;
    --ink:         #ece5d8;
    --ink-weich:   #c9c1b2;
    --muted:       #a2988a;
    --akzent:      #e07a4a;
    --akzent-weich:#4a3326;
    --linie:       #342c22;
    --bild-bg:     #241f19;
    --kontakt-bg:  #221d17;
    --kontakt-fg:  #ece5d8;
    --kontakt-muted:#b3aa9b;
    --kontakt-border: #342c22;
  }
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  /* Feine Körnung für "Werkstatt"-Charakter (reines CSS, kein Bild nötig) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

/* Nur für Screenreader & Suchmaschinen sichtbar (optisch ausgeblendet). */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

a { color: inherit; }

/* Zentrierter Inhaltsbereich */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Überschriften in der Serifenschrift */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }

/* Kleine Abschnitts-Überschrift ("Label") */
.label {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--akzent);
  font-weight: 600;
  display: flex; align-items: center; gap: 10px;
}
.label::before { content: ""; width: 26px; height: 2px; background: var(--akzent); display: inline-block; }

/* =================== NAVIGATION =================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linie);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; text-decoration: none; color: var(--ink); }
.brand .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--akzent); flex: none; }
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; font-size: 15.5px; color: var(--ink); opacity: 0.8; transition: opacity .15s, color .15s; }
.nav-links a:hover { opacity: 1; color: var(--akzent); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Sprach-Umschalter DE / EN */
.lang { display: inline-flex; align-items: center; border: 1px solid var(--linie); border-radius: 999px; overflow: hidden; background: var(--bg-karte); height: 34px; }
.lang button {
  font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .03em;
  border: 0; background: transparent; color: var(--muted);
  min-width: 38px; height: 100%; padding: 0 10px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.lang button.aktiv { background: var(--akzent); color: #fff; }

/* Hell/Dunkel-Schalter */
.theme-toggle {
  width: 34px; height: 34px; border-radius: 999px;
  border: 1px solid var(--linie); background: var(--bg-karte); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: color .15s, border-color .15s;
}
.theme-toggle:hover { color: var(--akzent); border-color: var(--akzent); }
.theme-toggle svg { width: 17px; height: 17px; display: block; }

/* Menü-Aufklappknopf (nur auf dem Handy sichtbar) */
.burger { display: none; flex-direction: column; align-items: center; justify-content: center; width: 38px; height: 34px; border: 1px solid var(--linie); background: var(--bg-karte); border-radius: 10px; padding: 0; cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 3px auto; } 

/* =================== HERO =================== */
.hero { padding: clamp(70px, 12vw, 140px) 0 clamp(50px, 8vw, 90px); }
.hero .kicker { margin-bottom: 22px; }
.hero h1 { font-size: clamp(42px, 8vw, 88px); max-width: 15ch; margin-bottom: 26px; }
.hero h1 em { font-style: italic; color: var(--akzent); }
.hero .lead { font-size: clamp(18px, 2.4vw, 22px); color: var(--muted); max-width: 46ch; }
.hero .tagline {
  margin-top: 40px; font-family: var(--serif); font-style: italic;
  font-size: clamp(18px, 2.5vw, 24px); color: var(--ink);
}
.hero .tagline::before { content: "— "; color: var(--akzent); }

/* =================== ABSCHNITTE ALLGEMEIN =================== */
section { padding: clamp(56px, 9vw, 104px) 0; scroll-margin-top: 78px; }
.section-head { margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 5vw, 46px); margin-top: 14px; }
.rule { height: 1px; background: var(--linie); border: 0; }

/* =================== ÜBER MICH =================== */
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.about-foto { border-radius: 16px; overflow: hidden; border: 1px solid var(--linie); box-shadow: 0 18px 40px -24px rgba(60,40,20,.4); }
.about-foto img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.about-text p { margin-bottom: 18px; max-width: 62ch; }
.about-text p:last-child { margin-bottom: 0; }

.interessen { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.interesse { background: var(--bg-karte); border: 1px solid var(--linie); border-radius: 14px; padding: 22px; }
.interesse h3 { font-family: var(--sans); font-weight: 600; font-size: 17px; margin-bottom: 6px; display: flex; gap: 10px; align-items: baseline; }
.interesse h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--akzent); flex: none; transform: translateY(-1px); }
.interesse p { color: var(--muted); font-size: 15.5px; }

.werdegang { margin-top: 44px; }
.werdegang h3 { font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.werdegang ul { list-style: none; }
.werdegang li { display: grid; grid-template-columns: 160px 1fr; gap: 18px; padding: 14px 0; border-top: 1px solid var(--linie); }
.werdegang li:last-child { border-bottom: 1px solid var(--linie); }
.werdegang .zeit { color: var(--akzent); font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 600; }

/* =================== PROJEKTE =================== */
.projekte-liste { display: flex; flex-direction: column; gap: clamp(48px, 8vw, 96px); }
.projekt { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
/* jede zweite Reihe: Bild auf die andere Seite */
.projekt:nth-child(even) .projekt-bild { order: 2; }

.projekt-bild { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--linie); background: var(--bild-bg); box-shadow: 0 22px 48px -30px rgba(60,40,20,.55); }
.projekt-bild img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .5s ease; }
.projekt:hover .projekt-bild img { transform: scale(1.03); }
.projekt-nr { position: absolute; top: 14px; left: 16px; font-family: var(--serif); font-size: 15px; color: #fff; background: rgba(0,0,0,.42); padding: 3px 10px; border-radius: 999px; letter-spacing: .05em; }

.projekt-meta { display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.projekt-meta .jahr { color: var(--akzent); font-weight: 700; font-variant-numeric: tabular-nums; }
.projekt-meta .ort::before { content: "·"; margin-right: 14px; color: var(--linie); }
.projekt h3 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 14px; }
.projekt-text { color: var(--ink-weich); max-width: 52ch; margin-bottom: 18px; }

.awards { list-style: none; margin: 0 0 18px; display: flex; flex-direction: column; gap: 6px; }
.awards li { font-size: 14.5px; font-weight: 600; color: var(--ink); display: flex; gap: 9px; align-items: center; }
.awards li::before { content: "★"; color: var(--akzent); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 13px; color: var(--muted); background: var(--bg-karte); border: 1px solid var(--linie); border-radius: 999px; padding: 5px 12px; }

.projekt-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--akzent); border-bottom: 2px solid var(--akzent-weich); padding-bottom: 2px; transition: border-color .15s; }
.projekt-link:hover { border-color: var(--akzent); }
.projekt-link::after { content: "→"; }

/* --- Bild-Karussell im Projekt --- */
.slider { position: relative; width: 100%; }
.slider-img { cursor: zoom-in; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: none; border-radius: 50%;
  background: rgba(20,16,12,.5); color: #fff; font-size: 24px; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .15s; z-index: 2;
}
.slider-arrow:hover { background: rgba(20,16,12,.82); }
.slider-arrow.prev { left: 12px; }
.slider-arrow.next { right: 12px; }
.slider-count {
  position: absolute; bottom: 12px; right: 14px; z-index: 2;
  background: rgba(0,0,0,.5); color: #fff; font-size: 12.5px;
  padding: 3px 9px; border-radius: 999px; font-variant-numeric: tabular-nums;
}

/* --- Großansicht (Lightbox) --- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 40px 16px; background: rgba(15,11,8,.86); backdrop-filter: blur(4px); }
.lightbox.open { display: flex; }
.lb-figure { margin: 0; max-width: min(1100px, 92vw); display: flex; flex-direction: column; align-items: center; }
.lb-img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 10px; background: #000; box-shadow: 0 24px 70px rgba(0,0,0,.5); }
.lb-cap { margin-top: 16px; color: #f2ede4; font-size: 15px; line-height: 1.6; text-align: center; max-width: 60ch; }
.lb-close { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border: none; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; transition: background .15s; }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: none; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 30px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s; }
.lb-close:hover, .lb-arrow:hover { background: rgba(255,255,255,.26); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
@media (max-width: 640px) {
  .lb-arrow { width: 44px; height: 44px; font-size: 26px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .lb-close { top: 10px; right: 12px; }
}

/* =================== SKILLS =================== */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.skill-gruppe { background: var(--bg-karte); border: 1px solid var(--linie); border-radius: 14px; padding: 24px; }
.skill-gruppe h3 { font-family: var(--sans); font-weight: 600; font-size: 16px; margin-bottom: 16px; }
.skill-gruppe .tags .tag { background: transparent; }

/* =================== PRIVATES =================== */
.privates-intro { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 54ch; margin-bottom: 40px; }
.privates-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.privat { background: var(--bg-karte); border: 1px solid var(--linie); border-radius: 14px; padding: 26px; }
.privat-icon { font-size: 30px; line-height: 1; margin-bottom: 14px; }
.privat h3 { font-family: var(--sans); font-weight: 600; font-size: 18px; margin-bottom: 8px; }
.privat p { color: var(--muted); font-size: 15.5px; }

/* =================== KONTAKT =================== */
.kontakt { background: var(--kontakt-bg); color: var(--kontakt-fg); border: 1px solid var(--kontakt-border); border-radius: 24px; padding: clamp(40px, 7vw, 80px); margin-bottom: 40px; }
.kontakt .label { color: var(--akzent); }
.kontakt .label::before { background: var(--akzent); }
.kontakt h2 { font-size: clamp(34px, 6vw, 60px); margin: 16px 0 18px; color: var(--kontakt-fg); }
.kontakt p { color: var(--kontakt-muted); max-width: 44ch; margin-bottom: 34px; }
.kontakt-links { display: flex; flex-wrap: wrap; gap: 14px; }
.kbtn { text-decoration: none; font-weight: 600; font-size: 15.5px; padding: 13px 22px; border-radius: 999px; display: inline-flex; align-items: center; gap: 9px; transition: transform .12s, background .15s; }
.kbtn:hover { transform: translateY(-2px); }
.kbtn.primär { background: var(--akzent); color: #fff; }
.kbtn.sekundär { background: transparent; color: var(--kontakt-fg); border: 1px solid color-mix(in srgb, var(--kontakt-fg) 28%, transparent); }
.kbtn.sekundär:hover { border-color: var(--akzent); }

/* =================== FOOTER =================== */
footer { padding: 34px 0 60px; border-top: 1px solid var(--linie); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; color: var(--muted); font-size: 14px; }
.footer-recht { display: inline-flex; gap: 18px; }
.footer-recht a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--linie); padding-bottom: 1px; transition: color .15s, border-color .15s; }
.footer-recht a:hover { color: var(--akzent); border-color: var(--akzent); }

/* =================== RESPONSIV (Handy / Tablet) =================== */
@media (max-width: 860px) {
  body { font-size: 17px; }
  .nav-links { position: fixed; inset: 66px 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--linie); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 18px; display: none; }
  .nav-links.offen { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--linie); font-size: 17px; }
  .burger { display: inline-flex; }
  .about-grid { grid-template-columns: 1fr; }
  .about-foto { max-width: 260px; }
  .interessen { grid-template-columns: 1fr; }
  .projekt { grid-template-columns: 1fr; }
  .projekt:nth-child(even) .projekt-bild { order: 0; }
  .werdegang li { grid-template-columns: 120px 1fr; gap: 12px; }
  .skills-grid { grid-template-columns: 1fr; }
  .privates-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .werdegang li { grid-template-columns: 1fr; gap: 2px; }
}

/* Für Menschen, die Animationen reduziert haben möchten */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
