:root {
  --bg-base: #0B1524;
  --bg-band: #0E1F33;
  --card-bg: #122234;
  --teal: #14B8A6;
  --emerald: #10B981;
  --teal-light: #2DD4BF;
  --emerald-light: #34D399;
  --navy-letter: #0B2340;
  --text-primary: #ffffff;
  --text-secondary: #9FB4BD;
  --text-muted: #7C919B;
  --border-soft: #1f3040;
  --border-strong: #2a4650;
  --field-bg: #1E3444;
  --field-border: #33505d;
  --header-bg: #0B1524;
  --floating-badge-bg: #11202C;
  --contact-form-bg: #152738;
  --accent-text: var(--emerald-light);
  --highlight-grad-1: #0E5C52;
  --highlight-grad-2: var(--bg-base);
  --highlight-li-color: #CFEAE4;
  --grad-text-1: var(--teal-light);
  --grad-text-2: var(--emerald-light);
  --max-width: 1100px;
}

[data-theme="light"] {
  --bg-base: #F4F7F6;
  --bg-band: #EAF0EE;
  --card-bg: #ffffff;
  --teal-light: #0F8F82;
  --emerald-light: #0E7B5E;
  --navy-letter: #0B2340;
  --text-primary: #0B2340;
  --text-secondary: #5a6c67;
  --text-muted: #8a9a95;
  --border-soft: #dde5e3;
  --border-strong: #c7d3d0;
  --field-bg: #eef3f2;
  --field-border: #cddad6;
  --header-bg: #ffffff;
  --floating-badge-bg: #ffffff;
  --contact-form-bg: #ffffff;
  --accent-text: #0E7B5E;
  --highlight-grad-1: #0E7B5E;
  --highlight-grad-2: var(--bg-band);
  --highlight-li-color: #16523F;
  --grad-text-1: #0F8F82;
  --grad-text-2: #0E7B5E;
}

/* Schriftgrößen-Stufen: "normal" (Standard, kein Attribut) ist die kleinste/
   ursprüngliche Größe. Alles ist in rem notiert, damit Text UND die
   dazugehörigen Abstände (Buttons, Karten, Abschnitte) gemeinsam mitwachsen. */
html[data-fontsize="medium"] { font-size: 112.5%; }
html[data-fontsize="large"] { font-size: 125%; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { transition: background-color 0.2s ease, color 0.2s ease, font-size 0.15s ease; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

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

.gradient-text {
  background: linear-gradient(135deg, var(--grad-text-1), var(--grad-text-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.75rem 1.375rem;
  border-radius: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--emerald));
  color: #06231C;
}

.btn-secondary {
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
}

/* Nav */
header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 32px;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 500;
}

.brand img { width: 32px; height: 32px; border-radius: 50%; }

.nav-links {
  display: flex;
  gap: 1.375rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.nav-links a:hover { color: var(--text-primary); }

.header-controls { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

/* Schriftgrößen-Auswahl */
.fontsize-switch {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0.1875rem;
}

.fontsize-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  font-family: inherit;
  line-height: 1;
}

.fontsize-btn:hover { color: var(--text-primary); }
.fontsize-btn.active { background: var(--card-bg); color: var(--text-primary); }
.fontsize-btn[data-size="normal"] { font-size: 0.75rem; }
.fontsize-btn[data-size="medium"] { font-size: 0.9rem; }
.fontsize-btn[data-size="large"] { font-size: 1.05rem; }

/* Sprach-Umschalter, gleiches iOS-Stil-Prinzip wie der Theme-Switch.
   Der Knopf zeigt die Flagge der AKTUELLEN Sprache und sitzt links (Deutsch)
   oder rechts (Englisch, Klasse .lang-toggle-active) — ein Klick springt immer
   zur jeweils anderen Sprachversion derselben Seite. */
.lang-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
  display: block;
}

.lang-toggle-track {
  width: 52px;
  height: 28px;
  border-radius: 999px;
  background: var(--card-bg);
  border: 1px solid var(--border-strong);
  position: relative;
  display: block;
}

.lang-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--emerald));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: transform 0.25s ease;
}

.lang-toggle-active .lang-toggle-thumb { transform: translateX(24px); }

/* Theme-Switch, iOS-Stil */
.theme-switch {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.theme-switch-track {
  width: 52px;
  height: 28px;
  border-radius: 999px;
  background: var(--card-bg);
  border: 1px solid var(--border-strong);
  position: relative;
  display: block;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.theme-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--emerald));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #06231C;
  font-size: 12px;
  transition: transform 0.25s ease;
}

[data-theme="light"] .theme-switch-thumb { transform: translateX(24px); }

.theme-switch-thumb .ti-moon { display: flex; }
.theme-switch-thumb .ti-sun { display: none; }
[data-theme="light"] .theme-switch-thumb .ti-sun { display: flex; }
[data-theme="light"] .theme-switch-thumb .ti-moon { display: none; }

/* Anker-Ziele: Platz für den fixierten Header freilassen.
   In rem, damit der Abstand bei größerer Schrift automatisch mitwächst. */
#was-ich-mache, #aktuelles, #ueber-mich, #kontakt {
  scroll-margin-top: 5rem;
}

/* Hero */
.hero { padding: 3.5rem 0 3.75rem; }

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--emerald-light);
  margin-bottom: 1.625rem;
}

.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald-light);
  display: inline-block;
}

.hero-grid {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.hero-copy { max-width: 460px; }

.hero-copy h1 {
  font-size: 2.375rem;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 1.125rem;
}

.hero-copy p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0 0 1.625rem;
}

.hero-actions { display: flex; gap: 0.75rem; margin-bottom: 1.875rem; flex-wrap: wrap; }

.hero-topics { display: flex; gap: 1.625rem; flex-wrap: wrap; }
.hero-topics strong { display: block; font-size: 0.8125rem; font-weight: 500; }
.hero-topics span { font-size: 0.75rem; color: var(--text-muted); }

.hero-photo-wrap { position: relative; flex-shrink: 0; margin: 0 auto; }

.hero-photo {
  width: 260px;
  height: 320px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}

.floating-badge {
  position: absolute;
  background: var(--floating-badge-bg);
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: 8px;
  padding: 0.5rem 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.floating-badge .icon {
  width: 26px; height: 26px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}

.icon-emerald { background: rgba(16,185,129,0.15); color: var(--emerald-light); }
.icon-teal { background: rgba(20,184,166,0.15); color: var(--teal-light); }

.floating-badge .label { font-size: 0.5625rem; color: var(--text-muted); display: block; }
.floating-badge .value { font-size: 0.75rem; font-weight: 500; }

.badge-top { top: -16px; right: -30px; }
.badge-bottom { bottom: -16px; left: -26px; }

/* Section shells */
section { padding: 3.5rem 0; }
.band { background: var(--bg-band); }

.section-kicker {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--accent-text);
  letter-spacing: 1px;
  margin-bottom: 0.625rem;
}

.section-title { font-size: 1.5rem; font-weight: 500; margin: 0 0 1.875rem; }
.section-centered { text-align: center; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.125rem;
}

.card-highlight {
  background: linear-gradient(160deg, var(--highlight-grad-1), var(--highlight-grad-2));
  border-radius: 12px;
  padding: 1.375rem;
  border: 1px solid rgba(20, 184, 166, 0.2);
  display: flex;
  flex-direction: column;
}

.card-gradient-border {
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(160deg, var(--teal), var(--emerald));
  display: flex;
}

/* Hervorhebung, wenn über die Nav-Links Beruf/Schreiben/Fotografie angesprungen */
.card-flash {
  animation: card-flash 1.6s ease;
}

@keyframes card-flash {
  0% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.6); }
  20% { box-shadow: 0 0 0 6px rgba(20, 184, 166, 0.35); }
  100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); }
}

.card-inner {
  background: var(--card-bg);
  border-radius: 11px;
  padding: 1.3125rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  align-self: flex-start;
}

.card-highlight .card-tag { background: rgba(255,255,255,0.13); color: #fff; }
.card-inner .card-tag.tag-teal { background: rgba(20,184,166,0.15); color: var(--teal-light); }
.card-inner .card-tag.tag-emerald { background: rgba(16,185,129,0.15); color: var(--emerald-light); }

.card h3 { font-size: 1rem; font-weight: 500; margin: 0 0 0.75rem; }
.card ul { list-style: none; margin: 0; padding: 0; font-size: 0.8125rem; }
.card li { margin-bottom: 0.375rem; color: var(--text-secondary); }
.card-highlight li { color: var(--highlight-li-color); }
.card a.card-link { display: inline-block; margin-top: 1rem; font-size: 0.75rem; color: var(--text-secondary); }

/* Aktuelles */
.feed-list { display: flex; flex-direction: column; gap: 0.5rem; }

.feed-item {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.feed-item .feed-title { font-size: 0.8125rem; }
.feed-item .feed-source { font-size: 0.6875rem; color: var(--text-muted); margin-top: 0.1875rem; }
.feed-item .feed-arrow { color: var(--text-muted); font-size: 14px; flex-shrink: 0; }

.feed-item .feed-meta { display: flex; align-items: center; gap: 0.625rem; }
.feed-item .source-icon {
  width: 26px; height: 26px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}

/* About */
.about-grid { display: flex; gap: 2.25rem; align-items: flex-start; flex-wrap: wrap; }

.about-photo {
  width: 190px;
  height: 230px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
}

.about-text { flex: 1; min-width: 280px; }
.about-text p { font-size: 0.875rem; color: var(--text-secondary); margin: 0 0 0.875rem; }

.pill-links { display: flex; gap: 0.625rem; flex-wrap: wrap; margin-top: 0.875rem; }
.pill-links a {
  background: var(--card-bg);
  border: 1px solid rgba(20,184,166,0.3);
  border-radius: 8px;
  padding: 0.5625rem 1rem;
  font-size: 0.8125rem;
}

/* Contact */
.contact-grid { display: flex; gap: 2.25rem; flex-wrap: wrap; }
.contact-copy { max-width: 240px; }
.contact-copy p { font-size: 0.8125rem; color: var(--text-secondary); }

.contact-form {
  flex: 1;
  min-width: 280px;
  background: var(--contact-form-bg);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 1.375rem;
}

.field-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.375rem; display: block; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: 6px;
  padding: 0.625rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-primary);
  margin-bottom: 0.875rem;
  font-family: inherit;
}

.contact-form textarea { resize: vertical; min-height: 90px; }

/* Honeypot-Feld: für Menschen unsichtbar, aber im DOM vorhanden — Bots füllen es
   trotzdem oft aus, echte Besucher:innen sehen und nutzen es nie. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form button {
  background: linear-gradient(135deg, var(--teal), var(--emerald));
  color: #06231C;
  border: none;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.625rem 1.125rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-soft);
  padding: 1.25rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.625rem;
}

.footer-links { display: flex; gap: 1.125rem; align-items: center; }
.footer-links a:hover { color: var(--text-secondary); }

/* Legal pages */
.legal-page .wrap { padding-top: 3rem; padding-bottom: 4rem; max-width: 760px; }
.legal-page h1 { font-size: 1.625rem; font-weight: 500; margin-bottom: 1.5rem; }
.legal-page h2 { font-size: 1.0625rem; font-weight: 500; margin: 2rem 0 0.75rem; }
.legal-page p { font-size: 0.875rem; color: var(--text-secondary); margin: 0 0 0.875rem; }
.legal-page ul { color: var(--text-secondary); font-size: 0.875rem; }
.legal-page a { color: var(--teal-light); }

/* Responsive */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
  .hero-grid { flex-direction: column; }
  .hero-photo-wrap { margin-top: 20px; }
  .nav-links { display: none; }
}
