/* ===== LOKALE SCHRIFTARTEN ===== */
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/karla-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Karla';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/karla-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Archivo Narrow';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/archivo-narrow-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Archivo Narrow';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/archivo-narrow-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/caveat.woff2') format('woff2');
}

/* ===== CUSTOM PROPERTIES ===== */
:root {
  --color-red:           #E3000F;
  --color-red-dark:      #b40009;
  --color-white:         #ffffff;
  --color-surface:       #fcf9f8;
  --color-surface-low:   #f6f3f2;
  --color-surface-mid:   #f0eded;
  --color-card:          #ffffff;
  --color-text:          #1b1c1c;
  --color-text-muted:    #5e3f3a;
  --color-border:        #e9bcb6;

  --nav-height:    70px;
  --max-width:     1280px;
  --section-pad:   6rem 2rem;
  --radius-card:   12px;
  --shadow-editorial: 0px 10px 40px rgba(27, 28, 28, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Archivo Narrow', sans-serif;
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-surface);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

section[id] {
  scroll-margin-top: var(--nav-height);
}

/* ===== SHARED: SECTION LABEL ===== */
.section-label {
  display: block;
  font-family: 'Karla', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-red);
  margin-bottom: 1rem;
}

/* ===== NAVIGATION ===== */
#main-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: var(--color-red);
  transition: box-shadow 0.3s ease;
}

#main-nav.scrolled {
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
}

.nav-inner {
  width: 100%;
  padding: 0 2rem;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  font-family: 'Karla', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-family: 'Karla', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.8);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-link:hover {
  color: var(--color-white);
}

.nav-link.active {
  color: var(--color-white);
  border-bottom-color: var(--color-white);
}

.nav-cta {
  flex-shrink: 0;
  background: var(--color-white);
  color: var(--color-red);
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-family: 'Karla', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: opacity 0.2s, transform 0.1s;
}

.nav-cta:hover {
  opacity: 0.9;
}

.nav-cta:active {
  transform: scale(0.96);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--color-white);
  padding: 0.25rem;
  line-height: 1;
}

/* ===== MOBILE NAV ===== */
@media (max-width: 767px) {
  .nav-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-cta {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-red);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .nav-links.open {
    max-height: 300px;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    color: var(--color-white);
    border-bottom: none;
  }

  .nav-link:hover,
  .nav-link.active {
    border-bottom: none;
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
  }
}

/* ===== HERO ===== */
#hero {
  min-height: 100dvh;
  background-color: var(--color-red);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: var(--nav-height);
}

/* ── Wasserzeichen: SVG hochformatig (118×206) → ab ~8% von oben,
      läuft nach unten aus dem Hero heraus (overflow:hidden schneidet ab) ── */
.hero-watermark {
  position: absolute;
  left: 30%;   
  top: 8%;
  width: 42%;
  pointer-events: none;
  z-index: 0;
}

.hero-watermark img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0);
  opacity: 0.14;
}

/* SPD Emden Logo oben rechts */
.hero-spd-badge {
  position: absolute;
  top: calc(var(--nav-height) + 1rem);
  right: 1.5rem;
  z-index: 3;
  width: clamp(80px, 11vw, 140px);
}

.hero-spd-badge img {
  width: 100%;
  height: auto;
  display: block;
}

/* Claim-Textblock – wächst mit dem Hero, Claim oben, Namenbalken bleiben darunter */
.hero-inner {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  padding: 2.5rem 2rem 0 4rem;
  max-width: 58%;
}

/* Headline */
.hero-claim {
  font-family: 'Karla', sans-serif;
  font-weight: 800;
  color: var(--color-white);
  line-height: 0.9;
  letter-spacing: -0.025em;
}

.hero-claim span {
  display: block;
  font-size: clamp(4.5rem, min(12vw, 15dvh), 10rem);
}

.hero-claim-upper {
  text-transform: uppercase;
}

/* "Emden" – schlanker und kursiv */
.hero-claim-city {
  font-weight: 400;
  font-style: italic;
}

/* ── Zwei getrennte Namensbalken: jede Zeile hat eigenen Hintergrund.
      "Thomas" ist natürlich breiter als "Boley" → oberer Balken länger.
      links: 0 = Balken beginnt am Rand; padding-left = sichtbarer Abstand
      vor dem Text (wie in der Vorlage) ── */
.hero-name-bars {
  flex: 0 0 auto;
  padding-bottom: 2rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0px;
}

.hero-name-line {
  display: inline-block;    /* Breite = Textbreite + Padding → je Wort unterschiedlich */
  background: var(--color-white);
  color: var(--color-red);
  padding: 0.4rem 2.5rem 0.8rem 20rem;   /* 4rem Links-Einzug = weißer Raum vor Text */
  font-family: 'Karla', sans-serif;
  font-size: clamp(2.5rem, 6.7vw, 6rem);
  font-weight: 900;
  line-height: 1;
}

.hero-name-line-second {
  margin-top: -1.5rem ;
}

/* Kandidaten-Foto – groß, liegt über den Namenbalken */
.hero-photo-col {
  position: absolute;
  bottom: -8%;
  right: 0;
  width: 50%;
  height: 120%;
  z-index: 4;
  pointer-events: none;
}

.hero-photo {
  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: bottom center;
  display: block;
}

/* ── TABLET (768–1023px): gleiche Struktur wie Desktop, komprimiert ── */
@media (max-width: 1023px) {
  /* Foto: top+bottom statt height%, damit kein Abschneiden oben */
  .hero-photo-col {
    top: var(--nav-height);
    bottom: -5%;
    height: auto;
    width: 80%;
  }

  .hero-inner {
    max-width: 65%;
    padding: 2rem 2rem 0 2.5rem;
  }

  .hero-name-line {
    padding-left: 2.5rem;
    padding-right: 2rem;
  }

  .hero-name-line-second {
    margin-top: -1.0rem;
  }

  .hero-watermark {
    left: 25%;
    width: 46%;
  }

}

/* ── MOBILE (<768px): Desktop-Prinzip, komprimiert ── */
@media (max-width: 767px) {
  #hero {
    min-height: 67dvh;
  }

  /* Claim links, Platz für Foto rechts */
  .hero-inner {
    max-width: 58%;
    padding: 1.5rem 1rem 0 1.5rem;
  }

  /* Schriftgröße für 4 Zeilen auf schmalem Screen */
  .hero-claim span {
    font-size: clamp(2.8rem, 11vw, 4.5rem);
  }

  /* Wasserzeichen */
  .hero-watermark {
    left: -5%;
    top: 28%;
    width: 75%;
  }

  /* Foto: top+bottom aufspannen → kein Abschneiden, skaliert mit Bildschirmhöhe */
  .hero-photo-col {
    position: absolute;
    top: var(--nav-height);
    bottom: -5%;
    height: auto;
    right: 0;
    width: 74%;
    z-index: 1;
    pointer-events: none;
  }

  .hero-name-line {
    font-size: clamp(1.8rem, 8vw, 3rem);
    padding: 0.3rem 1.5rem 0.55rem 1.5rem;
  }

  .hero-name-line-second {
    margin-top: -0.8rem;
  }
}

/* ===== ÜBER MICH ===== */
#ueber-mich {
  background: var(--color-surface);
  padding: var(--section-pad);
}

.ueber-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
  align-items: start;
}

.ueber-foto-wrap {
  position: relative;
  padding-bottom: 1.5rem;
  padding-right: 1.5rem;
}

.ueber-foto-frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  box-shadow: var(--shadow-editorial);
}

.ueber-foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ueber-badge {
  display: none;
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--color-red);
  color: var(--color-white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-card);
  text-align: center;
}

.ueber-badge-icon {
  display: block;
  height: 3.5rem;
  width: auto;
  margin: 0 auto;
}

.ueber-badge-label {
  display: block;
  font-family: 'Karla', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-top: 0.5rem;
  opacity: 0.9;
}

@media (min-width: 768px) {
  .ueber-badge {
    display: block;
  }
}

.ueber-text h2 {
  font-family: 'Karla', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.text-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 600px;
}

.text-body p {
  font-size: 1.5rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

.ueber-profil-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.5rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--color-red);
  border-radius: 6px;
  font-family: 'Karla', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-red);
  background: transparent;
  transition: background 0.2s, color 0.2s;
}

.ueber-profil-btn:hover {
  background: var(--color-red);
  color: var(--color-white);
}

@media (max-width: 767px) {
  .ueber-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .ueber-foto-wrap {
    padding-bottom: 0;
    padding-right: 0;
  }
}

/* ===== MEINE THEMEN ===== */
#themen {
  background: var(--color-surface-low);
  padding: var(--section-pad);
}

.themen-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.themen-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  gap: 2rem;
}

.themen-header-left h2 {
  font-family: 'Karla', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: 0.5rem;
}

.themen-header-desc {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--color-text-muted);
  max-width: 220px;
  border-left: 4px solid var(--color-red);
  padding-left: 1.25rem;
  line-height: 1.6;
  flex-shrink: 0;
}

.themen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.themen-karte {
  background: var(--color-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-editorial);
  padding: 2rem;
  transition: transform 0.3s ease;
}

.themen-karte:hover {
  transform: translateY(-8px);
}

.themen-icon-wrap {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.themen-icon-wrap i {
  font-size: 3rem;
  color: #fff;
}

.themen-karte-header .themen-icon-wrap,
.themen-modal-header .themen-icon-wrap {
  margin-bottom: 0;
}

.themen-sprite {
  width: 5rem;
  height: 5rem;
  background-image: image-set(
    url('../img/sprite_map.webp') type('image/webp'),
    url('../img/sprite_map.png') type('image/png')
  );
  background-size: 497px 331px;
  background-repeat: no-repeat;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.themen-karte-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.themen-karte-header .themen-sprite,
.themen-modal-header .themen-sprite {
  margin-bottom: 0;
}

.themen-sprite--sicherheit { background-position:  -29px  -31px; }
.themen-sprite--wohnen     { background-position: -138px  -31px; }
.themen-sprite--klinik     { background-position: -259px  -31px; }
.themen-sprite--sport      { background-position: -386px  -31px; }
.themen-sprite--verkehr    { background-position:  -29px -127px; }
.themen-sprite--arbeit     { background-position: -138px -127px; }
.themen-sprite--bildung    { background-position: -260px -127px; }
.themen-sprite--oepnv      { background-position: -387px -127px; }
.themen-sprite--ehrenamt   { background-position:  -30px -225px; }
.themen-sprite--waerme     { background-position: -139px -225px; }
.themen-sprite--rettung    { background-position: -260px -225px; }
.themen-sprite--aerzte     { background-position: -387px -225px; }

.themen-karte h3 {
  font-family: 'Karla', sans-serif;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.themen-karte p {
  font-size: clamp(0.95rem, 1.5vw, 1.125rem);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Decorative card */
.themen-karte--deco {
  background: image-set(url('../img/schleuse.webp') type('image/webp'), url('../img/schleuse.jpg') type('image/jpeg')) top center / cover no-repeat;
  /* background: var(--color-red);*/
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.themen-karte--deco:hover {
  transform: translateY(-8px);
}

.themen-karte--deco::before {
  content: '';
  position: absolute;
  inset: 0;
  /* background: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, transparent 60%);*/
  background: linear-gradient(
    to top,
    rgba(227, 0, 15, 0.75) 0%,   /* SPD-Rot unten, kräftiger */
    rgba(227, 0, 15, 0.25) 100%  /* leicht getönt oben */
  );
}

.themen-deco-overlay {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
}

.themen-deco-overlay p {
  font-family: 'Karla', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

@media (max-width: 1023px) {
  .themen-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .themen-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .themen-header-desc {
    max-width: 100%;
  }

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

/* ===== AKTUELLES ===== */
#aktuelles {
  background: var(--color-surface);
  padding: var(--section-pad);
}

.aktuelles-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.aktuelles-header {
  margin-bottom: 4rem;
}

.aktuelles-header h2 {
  font-family: 'Karla', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-top: 0.5rem;
}

.aktuelles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.aktuelles-artikel {
  display: flex;
  gap: 2rem;
  cursor: pointer;
  min-width: 0;
}

.aktuelles-bild {
  width: 48%;
  flex-shrink: 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.5s ease;
}

.aktuelles-artikel:hover .aktuelles-bild {
  transform: scale(1.03);
}

.aktuelles-bild--1 {
  background: linear-gradient(135deg, #c8474d 0%, #8b1a1a 100%);
}

.aktuelles-bild--2 {
  background: linear-gradient(135deg, #b40009 0%, #5a0004 100%);
}

.aktuelles-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  min-width: 0;
}

.aktuelles-text time {
  display: block;
  font-family: 'Karla', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-red);
}

.aktuelles-text h4 {
  font-family: 'Karla', sans-serif;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.3;
  transition: color 0.2s;
  overflow-wrap: break-word;
}

.aktuelles-artikel:hover .aktuelles-text h4 {
  color: var(--color-red);
}

.aktuelles-text h4 a {
  color: inherit;
  text-decoration: none;
}

.aktuelles-text p {
  font-size: clamp(0.95rem, 1.5vw, 1.125rem);
  color: var(--color-text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.aktuelles-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Karla', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-red);
  margin-top: 0.25rem;
}

@media (max-width: 1279px) {
  .aktuelles-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 767px) {
  .aktuelles-artikel {
    flex-direction: column;
  }

  .aktuelles-bild {
    width: 100%;
  }
}

/* ===== KONTAKT / CTA ===== */
#kontakt {
  background: var(--color-red);
  color: var(--color-white);
  padding: var(--section-pad);
  position: relative;
  overflow: hidden;
}

.kontakt-deco {
  position: absolute;
  bottom: -5rem;
  right: -2rem;
  font-family: 'Karla', sans-serif;
  font-size: clamp(8rem, 20vw, 20rem);
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.kontakt-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.kontakt-left h2 {
  font-family: 'Karla', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 2rem;
}

.kontakt-left p {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 300;
  opacity: 0.9;
  max-width: 440px;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

.kontakt-icons {
  display: flex;
  gap: 1.25rem;
}

.kontakt-icon-btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: opacity 0.2s, background 0.2s;
  border: none;
  cursor: pointer;
  padding: 0;
}

.kontakt-icon-btn:hover {
  background: #fff4f2;
}

.kontakt-right {
  background: var(--color-white);
  color: var(--color-text);
  padding: 2.5rem;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-editorial);
}

.kontakt-right h3 {
  font-family: 'Karla', sans-serif;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.kontakt-right-text {
  font-size: clamp(0.95rem, 1.5vw, 1.125rem);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.kontakt-mailto {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-red);
  color: var(--color-white);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-family: 'Karla', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  transition: opacity 0.2s;
  word-break: break-all;
}

.kontakt-mailto:hover {
  opacity: 0.88;
}

@media (max-width: 767px) {
  .kontakt-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ===== FOOTER ===== */
#footer {
  background: var(--color-surface);
  border-top: 1px solid #e5e2e1;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.footer-brand {
  display: block;
  font-family: 'Karla', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.footer-col > p {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.65;
  max-width: 240px;
}

.footer-col h4 {
  font-family: 'Karla', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.footer-col nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col nav a {
  font-size: 1rem;
  color: #64748b;
  transition: color 0.2s;
}

.footer-col nav a:hover {
  color: var(--color-red);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.footer-social a {
  color: var(--color-red);
  font-size: 1.25rem;
  transition: transform 0.2s;
}

.footer-social a:hover {
  transform: scale(1.15);
}

.footer-copy {
  font-size: 1rem;
  color: #64748b;
  max-width: 100% !important;
}

@media (max-width: 767px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-col > p {
    max-width: 100%;
  }
}

/* ===== LEGAL PAGES (Impressum, Datenschutz) ===== */
.legal-page {
  padding-top: var(--nav-height);
  min-height: 100vh;
  background: var(--color-surface);
}

.legal-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
}

.legal-header h1 {
  font-family: 'Karla', sans-serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--color-text);
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.legal-header-desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-top: 1.25rem;
}

.legal-accent-bar {
  width: 4rem;
  height: 4px;
  background: var(--color-red);
  border-radius: 2px;
}

.legal-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem 6rem;
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: 4rem;
  align-items: start;
}

/* Sidebar */
.legal-aside {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

.legal-aside-block {
  margin-bottom: 2.5rem;
}

.legal-aside-label {
  display: block;
  font-family: 'Karla', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.legal-aside-name {
  font-family: 'Karla', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 0.3rem;
}

.legal-aside p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

.legal-aside a {
  font-family: 'Karla', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-red);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.legal-aside a:hover {
  opacity: 0.75;
}

/* Sticky Inhaltsverzeichnis (Datenschutz) */
.legal-nav-aside {
  border-left: 3px solid var(--color-border);
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.legal-nav-aside a {
  font-family: 'Karla', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  padding: 0.3rem 0;
  transition: color 0.2s;
  text-decoration: none;
}

.legal-nav-aside a:hover {
  color: var(--color-red);
  opacity: 1;
}

/* Hauptinhalt */
.legal-content {
  background: var(--color-surface-low);
  border-radius: var(--radius-card);
  padding: 3rem;
}

.legal-section {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--color-border);
}

.legal-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.legal-section h2 {
  font-family: 'Karla', sans-serif;
  font-size: clamp(1.2rem, 1.8vw, 1.3rem);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.legal-section p,
.legal-section li {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.legal-infobox {
  background: var(--color-card);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  margin: 1rem 0;
  box-shadow: var(--shadow-editorial);
}

.legal-infobox p {
  margin-bottom: 0.2rem;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--color-text);
}

.legal-infobox p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .legal-header {
    padding: 3rem 1.5rem 2rem;
  }

  .legal-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.5rem 4rem;
  }

  .legal-aside {
    position: static;
  }

  .legal-nav-aside {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    border-left: none;
    border-top: 3px solid var(--color-border);
    padding-left: 0;
    padding-top: 1rem;
  }

  .legal-content {
    padding: 2rem 1.5rem;
  }
}

/* ===== THEMEN-INFO-BUTTON ===== */
.themen-karte {
  position: relative;
}

.themen-info-btn {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-red);
  font-size: 1.25rem;
  opacity: 0.3;
  transition: opacity 0.2s, transform 0.2s;
  padding: 0;
  line-height: 1;
}

.themen-karte:hover .themen-info-btn {
  opacity: 1;
  transform: scale(1.15);
}

/* ===== THEMEN-MODAL ===== */
.themen-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 28, 28, 0.6);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.themen-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.themen-modal {
  background: var(--color-card);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  max-width: 560px;
  width: 100%;
  max-height: calc(100dvh - 4rem);
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 80px rgba(27, 28, 28, 0.2);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.themen-modal-overlay.open .themen-modal {
  transform: translateY(0);
}

.themen-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  padding: 0.25rem;
  line-height: 1;
  transition: color 0.2s;
}

.themen-modal-close:hover {
  color: var(--color-red);
}

.themen-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.themen-modal-header h2 {
  font-family: 'Karla', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.themen-modal-bar {
  width: 3rem;
  height: 3px;
  background: var(--color-red);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

#modal-text {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

@media (max-width: 767px) {
  .themen-modal {
    padding: 2rem 1.5rem;
  }
}

/* ===== PROFILSEITE ===== */
.profile-photo-frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-card);
  box-shadow: 0 4px 24px rgba(0,0,0,.12);
  margin-bottom: 2rem;
}

.profile-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-theme-list {
  display: flex;
  flex-direction: column;
  margin-top: 1.5rem;
}

.profile-theme-item {
  padding: 1.25rem 0 1.25rem 1.5rem;
  border-left: 3px solid var(--color-red);
  margin-bottom: 1rem;
}

.profile-theme-item:last-child {
  margin-bottom: 0;
}

.profile-theme-item strong {
  font-family: 'Karla', sans-serif;
  font-weight: 800;
  color: var(--color-text);
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.profile-theme-item p {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.profile-closing {
  background: var(--color-red);
  border-radius: var(--radius-card);
  padding: 2rem 2.25rem;
}

.profile-closing p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.75rem;
}

.profile-closing p:last-child {
  margin-bottom: 0;
}

.profile-signatur {
  font-family: 'Caveat', cursive;
  font-weight: 500;
  font-size: 2.2rem !important;
  color: #fff !important;
  letter-spacing: 0;
}
