/* =============================================================
   NILTON BARROSO CARVALHO — PORTFOLIO CSS
   Design: Clean Azulejo Portfolio
   Aufbau: Variablen → Grundlagen → Bausteine → Seiten → Darkmode
   ============================================================= */

/* ── GOOGLE FONTS ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

/* ── FARB-VARIABLEN (heller Modus) ────────────────────────── */
:root {
  --navy:          #1A3A5C;   /* Hauptfarbe Dunkelblau (Text/Überschriften) */
  --azure:         #2563A8;   /* Azulejo-Blau (Akzent) */
  --sky:           #5B9BD5;   /* helles Akzentblau */
  --tile-pale:     #EBF4FF;   /* sehr helles Blau für Flächen */
  --off-white:     #F8FAFD;   /* Seiten-Hintergrund */
  --white:         #FFFFFF;   /* Karten */
  --dark:          #0E1E34;   /* Textfarbe */
  --muted:         #546880;   /* gedämpfter Text */
  --light-text:    #8AA0B4;

  --border:        rgba(26, 58, 92, 0.10);
  --border-mid:    rgba(26, 58, 92, 0.20);
  --border-strong: rgba(26, 58, 92, 0.30);

  /* Grüne Status-Farbe (offen für Praktikum) */
  --green:         #16a34a;
  --green-bg:      #f0fdf4;
  --green-border:  #bbf7d0;

  --section-pad:   5.5rem;
  --content-max:   1160px;

  --az-tile: url('../img/az-tile.svg');

  color-scheme: light;
}

/* ── FARB-VARIABLEN (dunkler Modus) ───────────────────────────
   Idee ganz einfach: Hell und Dunkel sind ein "Umtausch".
   Die Blautöne werden HELL (für Text/Überschriften), der
   Hintergrund wird dunkel. Weil wir dieselben Variablennamen
   benutzen, übernimmt der Rest der Seite die Farben automatisch.
   Wenige Sonderfälle stehen ganz unten im Abschnitt DARKMODE. */
[data-theme="dark"] {
  --navy:          #cfe0f2;
  --azure:         #6fa8dc;
  --sky:           #4a7fb5;
  --tile-pale:     #1b3151;
  --off-white:     #0e1f33;
  --white:         #15273f;
  --dark:          #e6edf5;
  --muted:         #9fb2c6;
  --light-text:    #7e93a9;

  --border:        rgba(255,255,255,0.09);
  --border-mid:    rgba(255,255,255,0.16);
  --border-strong: rgba(255,255,255,0.24);

  --az-tile: url('../img/az-tile-dark.svg');

  color-scheme: dark;
}

/* ── RESET & GRUNDLAGEN ───────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html { font-size: 16px; }

/* Body als Spalte: so klebt der Footer immer unten,
   auch wenn eine Seite wenig Inhalt hat. */
body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  color: var(--dark);
  background: var(--off-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}
main { flex: 1 1 auto; }

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

/* Sichtbarer Rahmen bei Tastatur-Bedienung (Tab) – Barrierefreiheit */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--azure);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── HILFSKLASSEN ─────────────────────────────────────────── */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}
.section-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--azure);
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.12;
  margin-bottom: 0.75rem;
}
.section-rule {
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, var(--azure), var(--sky));
  border-radius: 2px;
  margin-bottom: 3rem;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.65rem;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.22s ease;
  border: 1.5px solid transparent;
  line-height: 1;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover {
  background: var(--azure);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 168, 0.3);
}
.btn-outline {
  background: var(--white);
  color: var(--navy);
  border-color: var(--border-mid);
}
.btn-outline:hover {
  background: var(--tile-pale);
  border-color: var(--azure);
}

/* ── AZULEJO-STREIFEN (dezente Akzente) ───────────────────── */
.az-header-strip {
  height: 40px;
  background-color: var(--navy);
  background-image: var(--az-tile);
  background-size: 40px 40px;
  background-repeat: repeat;
  position: relative;
}
.az-header-strip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(26,58,92,0.5) 0%, transparent 20%,
    transparent 80%, rgba(26,58,92,0.5) 100%);
}
.az-footer-strip {
  height: 30px;
  background-image: var(--az-tile);
  background-size: 30px 30px;
  background-color: var(--navy);
  opacity: 0.85;
}

/* Vertikale Azulejo-Streifen als dezenter Rahmen links & rechts.
   Liegen fix am Bildschirmrand und sind auf jeder Seite gleich.
   pointer-events:none = sie stören keine Klicks. */
.page-az-stripe {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 12px;
  background-image: var(--az-tile);
  background-size: 12px 12px;
  background-color: var(--azure);
  opacity: 0.3;
  z-index: 250;            /* über dem Inhalt, aber unter der Navigation (300) */
  pointer-events: none;
}
.page-az-left  { left: 0; }
.page-az-right { right: 0; }

/* ============================================================
   NAVIGATION  (gleich auf jeder Seite)
   ============================================================ */
#navbar {
  position: sticky;
  top: 0;
  z-index: 300;
  height: 64px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
#navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Linke Gruppe: Logo + Seiten-Links zusammen */
.nav-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* NBC-Logo: zwei Versionen, je nach Theme.
   - logo-light.png  -> dunkles Logo fuer den hellen Modus
   - logo-dark.png   -> weisses Logo fuer den Darkmode
   CSS blendet automatisch die passende Version ein. */
.nav-logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  transition: transform 0.2s ease;
}
.nav-logo img {
  display: block;
  height: 40px;
  width: auto;
}
.nav-logo:hover {
  transform: translateY(-1px);
}
/* Standard (heller Modus): dunkles Logo zeigen, weisses verstecken */
.nav-logo .logo-dark { display: none; }
/* Darkmode: umgekehrt */
[data-theme="dark"] .nav-logo .logo-light { display: none; }
[data-theme="dark"] .nav-logo .logo-dark { display: block; }

/* Linke Seite: Seiten-Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.85rem;
  color: var(--muted);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1.5px;
  background: var(--azure);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--navy); font-weight: 500; }

/* Dokumente-Link mit kleinem Schloss */
.lock-mini { font-size: 0.72rem; opacity: 0.7; }

/* Rechte Seite */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

/* Theme-Schalter: ein einfacher Schalter (kein Icon/Emoji).
   Der runde Knopf rutscht im Darkmode nach rechts. */
.theme-toggle {
  width: 46px;
  height: 26px;
  border-radius: 13px;
  border: none;
  background: var(--border-strong);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.theme-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transform: translateX(0);
  transition: transform 0.2s ease;
}

/* Sprachwechsel */
.lang-switch { display: flex; gap: 2px; }
.lang-switch button {
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  color: var(--muted);
  padding: 0.25rem 0.48rem;
  border-radius: 5px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all 0.18s;
}
.lang-switch button:hover { color: var(--navy); }
.lang-switch button.active {
  color: var(--navy);
  background: var(--tile-pale);
  border-color: var(--border-mid);
}

/* Login-Button */
.btn-login {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--navy);
  padding: 0.4rem 1rem;
  border: 1.5px solid var(--border-mid);
  border-radius: 7px;
  transition: all 0.18s;
}
.btn-login:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-login.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Burger-Menü (nur mobil) */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.25s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobiles Menü */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  z-index: 299;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(26,58,92,0.12);
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-size: 1.05rem;
  color: var(--dark);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.18s, padding-left 0.18s;
}
.nav-mobile-menu a:last-child { border-bottom: none; }
.nav-mobile-menu a:hover { color: var(--azure); padding-left: 0.5rem; }

/* ============================================================
   HOME / STARTBEREICH
   ============================================================ */
#home {
  min-height: calc(100vh - 64px - 40px);
  display: flex;
  align-items: center;
  padding: var(--section-pad) 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

/* Grüner Hinweis: offen für Praktikum */
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--green);
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1.75rem;
}
.hero-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: blink 2s infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Name: eine Schrift, eine Farbe, schlicht */
.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
  /* verhindert ein Springen des Layouts waehrend des Tippens */
  min-height: 1.08em;
}
/* Blinkender Cursor waehrend der Tipp-Animation (Klasse .typing
   wird per JavaScript gesetzt und am Ende wieder entfernt). */
.hero-name.typing::after {
  content: '';
  display: inline-block;
  width: 3px;
  height: 0.85em;
  margin-left: 5px;
  background: var(--azure);
  vertical-align: -0.06em;
  animation: caret-blink 0.75s step-end infinite;
}
@keyframes caret-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}
.hero-subtitle {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.78;
  max-width: 490px;
  margin-bottom: 2.25rem;
}
.hero-btns { display: flex; gap: 0.85rem; flex-wrap: wrap; }

/* Profilfoto rechts (vorerst Platzhalter) */
.hero-photo-wrap { display: flex; justify-content: center; }
.hero-photo {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-mid);
  box-shadow: 0 16px 50px rgba(26,58,92,0.16), 0 4px 14px rgba(26,58,92,0.08);
  max-width: 320px;
  width: 100%;
}
.hero-photo img { width: 100%; height: auto; display: block; }

/* ── Hero-Animationen ─────────────────────────────────────────
   1) Texte blenden beim Laden sanft von unten ein (gestaffelt).
   2) Das Profilfoto schwebt ruhig auf und ab (fliessender Effekt). */
.hero-status,
.hero-subtitle,
.hero-btns {
  opacity: 0;
  animation: hero-fade-up 0.7s ease forwards;
}
.hero-status   { animation-delay: 0.15s; }
.hero-subtitle { animation-delay: 0.40s; }
.hero-btns     { animation-delay: 0.60s; }
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-photo { animation: hero-float 6s ease-in-out infinite; }
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* Barrierefreiheit: wer wenig Bewegung will, sieht alles ruhig. */
@media (prefers-reduced-motion: reduce) {
  .hero-status,
  .hero-subtitle,
  .hero-btns { opacity: 1; animation: none; }
  .hero-photo { animation: none; }
}

/* ============================================================
   ÜBER MICH
   ============================================================ */
#about {
  padding: var(--section-pad) 0;
  background: var(--white);
  position: relative;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
/* Alle Absätze gleiche Farbe und Schriftgrösse */
.about-text p {
  font-size: 0.97rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
  line-height: 1.82;
}

/* Pros & Con */
.proscon {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.75rem;
}
.pc-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  background: var(--off-white);
}
.pc-box h3 {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.7rem;
}
.pc-pro h3 { color: var(--green); }
.pc-con h3 { color: var(--azure); }
.pc-box ul { display: flex; flex-direction: column; gap: 0.4rem; }
.pc-box li {
  font-size: 0.82rem;
  color: var(--muted);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.55;
}
.pc-pro li::before { content: '✓'; position: absolute; left: 0; color: var(--green); }
.pc-con li::before { content: '→'; position: absolute; left: 0; color: var(--azure); }

/* Eigenschaften-Karten */
.traits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.trait-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--azure);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.1rem;
  transition: border-left-color 0.2s, box-shadow 0.2s;
}
.trait-card:hover {
  border-left-color: var(--sky);
  box-shadow: 0 4px 18px rgba(26,58,92,0.08);
}
.trait-card h4 { font-size: 0.85rem; font-weight: 500; color: var(--navy); margin-bottom: 0.3rem; }
.trait-card p { font-size: 0.74rem; color: var(--muted); line-height: 1.55; }

/* Con-Karten: andere Akzentfarbe = "daran arbeite ich" */
.trait-card.trait-con { border-left-color: #d99a3d; }
.trait-card.trait-con:hover { border-left-color: #e7b56a; }

/* Audio-Karte unter den Eigenschaften: kurze Sprach-Vorstellung */
.about-audio {
  margin-top: 1.5rem;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
}
.about-audio-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}
.about-audio-icon {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--azure);
  color: #fff;
}
.about-audio-icon svg { width: 20px; height: 20px; }
.about-audio-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}
.about-audio-hint {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0.15rem 0 0;
}
.about-audio-player {
  width: 100%;
  height: 40px;
}
/* Pop-up-Animation, wenn die Karte per "Ja" erscheint */
.about-audio.is-revealed {
  animation: audioPop 0.5s ease both;
}
@keyframes audioPop {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* Interaktiver Teaser, steht INLINE direkt hinter dem Gitarren-Satz */
.audio-teaser {
  margin-left: 0.35rem;
}
.audio-teaser button {
  font: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
/* Frage: gleiche Textfarbe, kein Unterstrich → dezent/versteckt.
   Erst beim Drüberfahren zeigt die Farbe, dass man klicken kann. */
.audio-teaser-ask {
  color: var(--azure);
  transition: color 0.2s ease, opacity 0.45s ease;
}
.audio-teaser-ask:hover { color: var(--navy); }
/* Ja / Nein erscheint erst, wenn die Frage weg ist (JS entfernt hidden) */
.audio-teaser-choice {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  transition: opacity 0.45s ease;
}
/* Wichtig: solange hidden gesetzt ist, wirklich ausblenden
   (sonst gewinnt das display: inline-flex von oben) */
.audio-teaser-choice[hidden] { display: none; }
.audio-teaser-yes,
.audio-teaser-no {
  color: var(--azure);
  transition: color 0.2s ease;
}
.audio-teaser-yes:hover,
.audio-teaser-no:hover { color: var(--navy); }
.audio-teaser-sep { color: var(--muted); }
/* Sanftes Ein-/Ausblenden der beiden Schritte */
.audio-teaser .is-fading { opacity: 0; }

/* Zwischentitel im Über-mich-Text (z. B. Hobbys) */
.about-subhead {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--navy);
  margin: 1.75rem 0 0.6rem;
}

/* Link mitten im Fliesstext (z. B. "Etienne"): klar als Link erkennbar */
.inline-link {
  color: var(--azure);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}
.inline-link:hover { color: var(--navy); }

/* ============================================================
   IMPRESSUM (schlicht)
   ============================================================ */
/* Platz oben und unten, damit die Überschrift Luft hat */
#legal {
  padding: var(--section-pad) 0;
  background: var(--white);
}

/* "Zurück zur Webseite"-Link über der Überschrift */
.legal-back {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.legal-back:hover { color: var(--azure); }

/* Inhaltsblock: begrenzte Breite, damit die Zeilen gut lesbar bleiben */
.legal-block {
  max-width: 640px;
}
.legal-block p {
  margin: 0.4rem 0 1.25rem;
  line-height: 1.6;
}

/* Schlusssatz: normale Textfarbe (schwarz im Light-, hell im Darkmode) */
.legal-purpose {
  margin-top: 1.5rem;
  color: var(--dark);
}

/* ============================================================
   IMPRESSUM-POPUP (Modal)
   ============================================================ */
/* Dunkler Hintergrund über der ganzen Seite */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(14, 30, 52, 0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  animation: modalFade 0.2s ease;
}
.modal-overlay[hidden] { display: none; }

/* Wenn das Popup offen ist: Seite im Hintergrund nicht scrollen */
body.modal-open { overflow: hidden; }

/* Die Karte in der Mitte */
.modal-box {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.25rem 2rem;
  box-shadow: 0 20px 50px rgba(14, 30, 52, 0.25);
  animation: modalRise 0.25s ease;
}

/* Schliessen-Knopf oben rechts */
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}
.modal-close:hover {
  color: var(--navy);
  background: var(--tile-pale);
}

/* Überschrift und Trennlinie im Popup */
.modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--navy);
}
.modal-rule {
  width: 46px;
  height: 3px;
  margin: 0.6rem 0 1.25rem;
  background: var(--azure);
  border-radius: 2px;
}
.modal-box .about-subhead { margin-top: 1.25rem; }
.modal-box p { margin: 0.4rem 0; line-height: 1.6; }

/* Sanfte Einblend-Animationen */
@keyframes modalFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes modalRise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Warn-Popup vor langsamen Demos (zentriert, mit Warn-Icon) */
.modal-box-warn { max-width: 420px; text-align: center; }
.modal-box-warn .modal-rule { margin-left: auto; margin-right: auto; }
.modal-box-warn p { margin: 0; color: var(--dark); }
.warn-icon {
  width: 48px;
  height: 48px;
  margin: 0.2rem auto 0.85rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(200, 151, 63, 0.16);
  color: #c8973f;
}
.warn-icon svg { width: 26px; height: 26px; }
.demo-warn-ok { margin-top: 1.4rem; width: 100%; justify-content: center; }

/* "Video ansehen"-Knopf sieht aus wie ein project-link (Button-Reset) */
.project-video-btn {
  font-family: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Popup fürs Video – schmal, da das Video im Handy-Hochformat ist */
.modal-box-video {
  max-width: 360px;
  padding: 1.5rem;
}
.modal-box-video .modal-title { font-size: 1.6rem; }
.modal-box-video .modal-rule { margin-bottom: 1rem; }
/* Das Video ist hochkant (9:16): Breite füllt die Box, Höhe kommt
   aus dem Seitenverhältnis. max-height verhindert Überlauf auf
   niedrigen Bildschirmen; object-fit hält das Bild dabei korrekt. */
.project-video {
  display: block;
  margin: 0 auto;
  width: 100%;
  /* exakt auf das Handy-Video abgestimmt (1080 x 2084), damit keine
     schwarzen Ränder entstehen. object-fit verhindert Verzerrung,
     falls einmal ein Video mit anderem Format eingesetzt wird. */
  aspect-ratio: 1080 / 2084;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
  background: #000;
}

/* ============================================================
   SKILLS MIT PROZENT-BALKEN
   ============================================================ */
#skills {
  padding: var(--section-pad) 0;
  background: var(--off-white);
}
/* Titel oben, danach das Karten-Raster über die ganze Breite */
.skills-head { margin-bottom: 2.5rem; }

/* Karten-Raster mit Balken: passt sich der Breite an */
.skill-bars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}
.skill-bar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.skill-bar-card:hover {
  box-shadow: 0 8px 24px rgba(26,58,92,0.10);
  transform: translateY(-2px);
}
.sb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}
.sb-name { font-size: 0.92rem; font-weight: 500; color: var(--navy); }
.sb-pct {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--azure);
  background: var(--tile-pale);
  border: 1px solid var(--border-mid);
  padding: 0.1rem 0.5rem;
  border-radius: 6px;
}
/* Balken: graue Schiene + blaue Füllung */
.sb-track {
  height: 8px;
  border-radius: 5px;
  background: var(--border);
  overflow: hidden;
}
.sb-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--azure), var(--sky));
}
.sb-desc { font-size: 0.76rem; color: var(--muted); line-height: 1.55; margin-top: 0.7rem; }

/* ============================================================
   BORDER-GLOW an den Skill-Karten (Maus-Effekt, Azulejo-Blau)
   -------------------------------------------------------------
   Idee (nach dem ReactBits-Vorbild, aber in Vanilla):
   Über jeder Karte liegt eine Leuchtschicht (.sb-glow).
   JavaScript setzt je nach Mausposition zwei Variablen:
     --cursor-angle    = Winkel der Maus zur Kartenmitte
     --edge-proximity  = wie nah die Maus am Rand ist (0–100)
   Eine kegelförmige Maske zeigt nur die Kante beim Mauszeiger,
   und über --edge-proximity wird der Glow ein-/ausgeblendet.
   ============================================================ */
:root {
  --glow-edge:  rgba(37, 99, 168, 0.85);   /* Azure, kräftig */
  --glow-soft:  rgba(91, 155, 213, 0.55);  /* Sky */
  --glow-faint: rgba(91, 155, 213, 0.28);
}
[data-theme="dark"] {
  --glow-edge:  rgba(111, 168, 220, 0.90);
  --glow-soft:  rgba(111, 168, 220, 0.55);
  --glow-faint: rgba(111, 168, 220, 0.30);
}

/* Karte als Bühne für die Leuchtschicht vorbereiten */
.skill-bar-card {
  position: relative;
  isolation: isolate;
  --edge-sensitivity: 30;   /* ab dieser Nähe (in %) beginnt der Glow */
  --edge-proximity: 0;
  --cursor-angle: 45deg;
}

/* Die Leuchtschicht: nur der Rand, kegelförmig beim Mauszeiger */
.skill-bar-card .sb-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;     /* blockiert keine Klicks */
  z-index: 3;
  opacity: calc((var(--edge-proximity) - var(--edge-sensitivity)) / (100 - var(--edge-sensitivity)));
  transition: opacity 0.3s ease-out;
  -webkit-mask-image: conic-gradient(from var(--cursor-angle) at center, #000 2.5%, transparent 14%, transparent 86%, #000 97.5%);
  mask-image: conic-gradient(from var(--cursor-angle) at center, #000 2.5%, transparent 14%, transparent 86%, #000 97.5%);
}

/* Das eigentliche Leuchten (innen am Rand + leichter Schein nach aussen) */
.skill-bar-card .sb-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px var(--glow-edge),
    inset 0 0 6px 0 var(--glow-soft),
    inset 0 0 14px 0 var(--glow-faint),
    0 0 4px 0 var(--glow-soft),
    0 0 14px 1px var(--glow-faint);
}

/* Wer wenig Animation möchte: Glow trotzdem ruhig (kein Problem,
   da es nur ein Hover-Schein ist und keine dauernde Bewegung). */

/* ============================================================
   WERDEGANG / ZEITSTRAHL
   ============================================================ */
#werdegang {
  padding: var(--section-pad) 0;
  background: var(--white);
}
/* Linie in der Mitte; Einträge wechseln links/rechts */
.timeline {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border-mid);
  transform: translateX(-50%);
}
.tl-item {
  position: relative;
  width: 50%;
  padding: 0 2.25rem;
  margin-bottom: 2.5rem;
}
.tl-item:last-child { margin-bottom: 0; }
/* linke Einträge: links der Linie, rechtsbündig */
.tl-item.tl-left { left: 0; text-align: right; }
/* rechte Einträge: rechts der Linie, linksbündig */
.tl-item.tl-right { left: 50%; text-align: left; }
/* Punkt sitzt genau auf der Mittellinie */
.tl-dot {
  position: absolute;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--azure);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--border-mid);
}
.tl-left .tl-dot { right: -7px; }
.tl-right .tl-dot { left: -7px; }
.tl-date {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--azure);
}
.tl-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy);
  margin: 0.15rem 0 0.35rem;
}
.tl-text { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }

/* Sanfte Einblend-Animation beim Scrollen.
   Start: leicht verschoben + unsichtbar. Die Klasse .is-visible wird
   per JavaScript hinzugefuegt, sobald die Station ins Bild kommt. */
.tl-item {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.tl-item.tl-left  { transform: translateX(-32px); }
.tl-item.tl-right { transform: translateX(32px); }
.tl-item.is-visible {
  opacity: 1;
  /* left:50% bei tl-right beibehalten, nur die Verschiebung zuruecksetzen */
  transform: translateX(0);
}

/* Nutzer, die wenig Bewegung wollen, sehen alles sofort (Barrierefreiheit). */
@media (prefers-reduced-motion: reduce) {
  .tl-item { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   PROJEKTE
   ============================================================ */
#projects {
  padding: var(--section-pad) 0;
  background: var(--off-white);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 44px rgba(26,58,92,0.12);
  border-color: var(--border-mid);
}
/* Blauer Balken beim Hover */
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--azure), var(--sky));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: 2;
}
.project-card:hover::before { transform: scaleX(1); }

.project-thumb {
  height: 160px;
  overflow: hidden;
  background: var(--tile-pale);
}
.project-thumb img { width: 100%; height: 100%; object-fit: cover; }
/* Hochkant-Handy-Screenshots: ganzes Bild zeigen, zentriert auf
   dunklem Hintergrund (wie das komponierte CookEasyPT-Bild). */
.project-thumb.thumb-phone { background: #14202e; }
.project-thumb.thumb-phone img { object-fit: contain; }

.project-body {
  padding: 1.25rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-type {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--azure);
  margin-bottom: 0.65rem;
}
.project-type::before {
  content: '';
  width: 10px; height: 1.5px;
  background: var(--azure);
  border-radius: 1px;
}
.project-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.55rem;
  line-height: 1.25;
}
.project-card p {
  font-size: 0.79rem;
  color: var(--muted);
  line-height: 1.68;
  margin-bottom: 1rem;
  flex: 1;
}
.project-links {
  display: flex;
  gap: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}
.project-link {
  font-size: 0.76rem;
  color: var(--azure);
  font-weight: 500;
  transition: color 0.18s;
}
.project-link:hover { color: var(--navy); }

/* Kleiner Hinweis unter den Links (z. B. Render-Server-Aufwärmzeit) */
.project-note {
  margin: 0.6rem 0 0;
  font-size: 0.7rem;
  line-height: 1.45;
  color: var(--muted);
}

/* Lieblingsprojekt-Funkeln (nur Geo-Kick): oben links, sanftes Twinkle */
.project-fav {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 3;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(26, 58, 92, 0.14);
  color: #e8a020;
}
.project-fav-icon {
  width: 18px;
  height: 18px;
  transform-origin: center;
  animation: favTwinkle 2.8s ease-in-out infinite;
}
@keyframes favTwinkle {
  0%, 100% { transform: scale(0.55) rotate(0deg); opacity: 0.5; }
  50%      { transform: scale(1) rotate(90deg); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .project-fav-icon { animation: none; transform: none; opacity: 1; }
}

/* "Mehr erfahren"-Knopf, der das Abstract aufklappt */
.project-more {
  margin-top: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--azure);
  transition: color 0.18s;
}
.project-more:hover { color: var(--navy); }
.project-more-icon {
  width: 0.85rem;
  height: 0.85rem;
  transition: transform 0.3s ease;
}
/* Pfeil dreht sich, wenn das Abstract offen ist */
.project-card.abstract-open .project-more-icon { transform: rotate(180deg); }
/* Beschriftung wechselt zwischen "Mehr erfahren" und "Weniger anzeigen" */
.project-more .less-label { display: none; }
.project-card.abstract-open .project-more .more-label { display: none; }
.project-card.abstract-open .project-more .less-label { display: inline; }

/* Aufklappbares Abstract. Die Höhe wird ohne Transition umgeschaltet
   (0 → auto) – das ist in jedem Browser zuverlässig und der Inhalt
   ist immer sichtbar, sobald die Karte offen ist. */
.project-abstract {
  overflow: hidden;
  height: 0;
}
.project-card.abstract-open .project-abstract { height: auto; }

.abstract-list {
  margin: 0.85rem 0 0;
  display: grid;
  gap: 0.6rem;
}
.abstract-row dt {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--azure);
  margin-bottom: 0.15rem;
}
.abstract-row dd {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Label oben rechts (z.B. "Experiment") */
.project-badge {
  position: absolute;
  top: 0.85rem; right: 0.85rem;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.22rem 0.65rem;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--border-mid);
  color: var(--muted);
  z-index: 3;
}

/* ============================================================
   DOKUMENTE (gesperrte Ansicht)
   ============================================================ */
#documents {
  padding: var(--section-pad) 0;
  background: var(--off-white);
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 64px - 40px);
  display: flex;
  align-items: center;
}
.docs-az-bg {
  position: absolute;
  inset: 0;
  background-image: var(--az-tile);
  background-size: 60px 60px;
  background-color: var(--tile-pale);
  opacity: 0.18;
  pointer-events: none;
}
.locked-card {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border-mid);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 16px 50px rgba(26,58,92,0.12);
}
.locked-icon {
  font-size: 2rem;
  width: 64px; height: 64px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tile-pale);
  border-radius: 16px;
}
.locked-card .section-title { margin-bottom: 0.75rem; }
.locked-text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 380px;
  margin: 0 auto 1.5rem;
}
.locked-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.locked-list li {
  font-size: 0.78rem;
  color: var(--navy);
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
}

/* ============================================================
   LOGIN
   ============================================================ */
#login {
  min-height: calc(100vh - 64px - 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--section-pad) 2rem;
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--white);
  border: 1px solid var(--border-mid);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 16px 50px rgba(26,58,92,0.12);
  text-align: center;
}
.login-icon {
  font-size: 1.5rem;
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tile-pale);
  border-radius: 14px;
}
.login-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--navy);
}
.login-sub { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.75rem; }
.login-form { display: flex; flex-direction: column; gap: 1rem; text-align: left; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field span { font-size: 0.78rem; font-weight: 500; color: var(--navy); }
.field input {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  background: var(--off-white);
  color: var(--dark);
  transition: border-color 0.18s;
}
.field input:focus { outline: none; border-color: var(--azure); }

/* Access-Code-Zeile: Eingabefeld + "Freischalten"-Knopf nebeneinander */
.code-row { display: flex; gap: 0.6rem; align-items: stretch; }
.code-input {
  flex: 1;
  min-width: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  background: var(--off-white);
  color: var(--dark);
  transition: border-color 0.18s;
}
.code-input:focus { outline: none; border-color: var(--azure); }
.code-btn { white-space: nowrap; }
@media (max-width: 420px) {
  .code-row { flex-direction: column; }
}

/* Camera-Shake bei falschem Code */
@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-8px); }
  40%, 60% { transform: translateX(8px); }
}
.login-card.shake { animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both; }

/* Passwort-Feld mit Auge-Knopf (Sichtbarkeit umschalten) */
.pass-wrap { position: relative; display: block; }
.pass-wrap input { width: 100%; padding-right: 2.7rem; }
.pass-toggle {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem;
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.18s;
}
.pass-toggle:hover { color: var(--azure); }
.pass-toggle svg { width: 1.2rem; height: 1.2rem; }
/* Standard: „anzeigen"-Auge sichtbar, „verbergen"-Auge versteckt */
.pass-toggle .eye-hide { display: none; }
.pass-toggle.is-on .eye-show { display: none; }
.pass-toggle.is-on .eye-hide { display: inline; }
.login-btn { justify-content: center; margin-top: 0.5rem; }
.login-note {
  font-size: 0.74rem;
  color: var(--light-text);
  margin-top: 1.25rem;
}

/* Meldung unter dem Login-Button (Fehler oder Erfolg) */
.login-msg {
  font-size: 0.8rem;
  text-align: center;
  margin: 0;
  min-height: 1.1em;       /* reserviert Platz, damit nichts springt */
}
.login-msg.is-error { color: #c0392b; }
.login-msg.is-ok    { color: #2e7d32; }

/* ============================================================
   DOKUMENTE – FREIGESCHALTETE ANSICHT (nach dem Login)
   ============================================================ */
.unlocked-card {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border-mid);
  border-radius: 16px;
  padding: 2.25rem 2rem;
  box-shadow: 0 16px 50px rgba(26,58,92,0.12);
}
.unlocked-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.unlocked-head .section-title { margin-bottom: 0; }
.unlocked-text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 1rem 0 1.75rem;
}
.docs-files {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.doc-file {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  transition: border-color 0.18s, transform 0.18s;
}
.doc-file:hover { border-color: var(--azure); transform: translateY(-2px); }
.doc-file-icon {
  font-size: 1.4rem;
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tile-pale);
  border-radius: 12px;
}
.doc-file-body h3 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  margin: 0 0 0.2rem;
}
.doc-file-link {
  font-size: 0.8rem;
  color: var(--azure);
  text-decoration: none;
}
.doc-file-link:hover { text-decoration: underline; }
/* Lebenslauf hat zwei Aktionen nebeneinander (Herunterladen + Öffnen) */
.doc-file-actions { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; }
.doc-file-actions .doc-file-link { white-space: nowrap; }

/* Grösse & Farbe der SVG-Icons (Schloss + Dokumente).
   stroke="currentColor" im SVG -> color steuert die Linienfarbe. */
.locked-icon svg { width: 30px; height: 30px; color: var(--azure); }
.login-icon svg  { width: 26px; height: 26px; color: var(--azure); }
.doc-file-icon svg { width: 22px; height: 22px; color: var(--azure); }
.lock-mini svg { width: 0.95em; height: 0.95em; vertical-align: -0.18em; }

/* Auf dem Handy: Dokumente untereinander */
@media (max-width: 600px) {
  .docs-files { grid-template-columns: 1fr; }
  .unlocked-head { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   KONTAKT-FOOTER  (kurz, auf jeder Seite)
   ============================================================ */
footer#kontakt {
  background: var(--dark);
  position: relative;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 2rem;
  padding-bottom: 1.25rem;
}
.footer-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.6rem;
}
.footer-line {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.6);
}
.footer-line span {
  display: inline-block;
  width: 70px;
  color: rgba(255,255,255,0.4);
}
.footer-line a { color: rgba(255,255,255,0.8); }
.footer-line a:hover { color: #fff; }
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
}
.footer-legal a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.18s;
}
.footer-legal a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  padding-bottom: 1.5rem;
  font-size: 0.74rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   DARKMODE: SONDERREGELN
   Elemente, die nicht einfach dem Farb-Umtausch folgen.
   ============================================================ */
/* Navigation: dunkler, leicht durchsichtig */
[data-theme="dark"] #navbar { background: rgba(14, 31, 51, 0.9); }

/* Theme-Schalter: im Darkmode aktiv (blau) und Knopf rutscht nach rechts */
[data-theme="dark"] .theme-toggle { background: var(--azure); }
[data-theme="dark"] .theme-toggle::after { transform: translateX(20px); }

/* Primärer Button: heller Blauton mit dunkler Schrift */
[data-theme="dark"] .btn-primary { background: var(--azure); color: #0e1f33; }
[data-theme="dark"] .btn-primary:hover { background: var(--sky); color: #0e1f33; }

/* Login-Button im Darkmode */
[data-theme="dark"] .btn-login:hover,
[data-theme="dark"] .btn-login.active { background: var(--azure); color: #0e1f33; border-color: var(--azure); }

/* Grüner Status-Hinweis dezenter */
[data-theme="dark"] .hero-status {
  background: rgba(34,197,94,0.12);
  border-color: rgba(34,197,94,0.3);
  color: #4ade80;
}

/* Footer bleibt dunkel (Text ist hell) */
[data-theme="dark"] footer#kontakt { background: #08111d; }
[data-theme="dark"] .az-footer-strip { background-color: #0e1f33; }

/* ============================================================
   RESPONSIVE (Handy + Tablet)
   ============================================================ */
@media (max-width: 960px) {
  :root { --section-pad: 4rem; }

  /* Auf kleinen Bildschirmen würden die Randstreifen zu eng am Text liegen */
  .page-az-stripe { display: none; }

  .nav-links { display: none; }
  .nav-burger { display: flex; }
  /* Auf kleinen Bildschirmen oben nur Schalter + Burger zeigen */
  .nav-right .lang-switch,
  .nav-right .btn-login { display: none; }

  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-photo-wrap { justify-content: flex-start; }
  .hero-photo { max-width: 260px; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .skills-layout { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  .traits-grid,
  .skill-bars-grid { grid-template-columns: 1fr; }

  /* Zeitstrahl: Linie nach links, alle Einträge gleich ausgerichtet */
  .timeline::before { left: 7px; }
  .tl-item,
  .tl-item.tl-left,
  .tl-item.tl-right {
    width: 100%;
    left: 0;
    text-align: left;
    padding-left: 2rem;
    padding-right: 0;
  }
  .tl-left .tl-dot,
  .tl-right .tl-dot { left: 0; right: auto; }

  .hero-btns { flex-direction: column; }
  .hero-btns .btn { justify-content: center; }

  .projects-grid { grid-template-columns: 1fr; }

  .footer-grid { flex-direction: column; }
}
