@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair_display/PlayfairDisplay-VariableFont_wght.ttf') format('truetype');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair_display/PlayfairDisplay-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source_sans_3/SourceSans3-VariableFont_wght.ttf') format('truetype');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source_sans_3/SourceSans3-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --wine: #752637;
  --wine-dark: #5a1c29;
  --gold: #f5c800;
  --cream: #f2f4f0;
  --text: #1a1a1a;
  --muted: #666;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Source Sans 3', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text); background: var(--cream); line-height: 1.65; }

/* Accessibility: Skip-Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--wine);
  color: #fff;
  padding: .6rem 1.2rem;
  z-index: 101;
  text-decoration: none;
  border-radius: 0 0 3px 0;
}

.skip-link:focus {
  top: 0;
}

/* Accessibility: Fokus-Indikator */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Fallback für ältere Browser */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Home */
.page-home nav {
  background: var(--wine);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 54px;
}

.page-home .nav-brand { font-family: var(--serif); color: #fff; font-size: 1rem; letter-spacing: .03em; text-decoration: none; }
.page-home .nav-brand em { color: #fff; font-style: normal; }
.page-home .nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: .2rem;
  width: 38px;
  height: 38px;
  cursor: pointer;
}

.page-home .nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 4px auto;
  transition: transform .2s ease, opacity .2s ease;
}

.page-home .nav-links { display: flex; gap: 2rem; list-style: none; }
.page-home .nav-links a { color: rgba(255,255,255,.8); text-decoration: none; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; transition: color .2s; }
.page-home .nav-links a:hover { color: var(--gold); }

.page-home nav.menu-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.page-home nav.menu-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.page-home nav.menu-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.page-home .hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.page-home .hero-img { position: absolute; inset: 0; }
.page-home .hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scaleX(-1);
  display: block;
}

.page-home .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(90,28,41,.92) 0%, rgba(90,28,41,.65) 30%, rgba(90,28,41,.1) 60%, rgba(90,28,41,0) 100%), linear-gradient(to top, rgba(90,28,41,.75) 0%, transparent 45%);
}

.page-home .hero-content {
  position: relative;
  z-index: 2;
  padding: 0 3rem 4rem;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
}

.page-home .hero-eyebrow {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
  margin-bottom: 1rem;
}

.page-home .hero-name {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
  color: #fff;
  margin-bottom: .5rem;
}

.page-home .hero-subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: .06em;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}

.page-home .hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.45rem;
  color: rgba(255,255,255,.92);
  margin-bottom: 2rem;
}

.page-home .gold-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--wine-dark);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .7rem 1.8rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background .2s;
}

.page-home .gold-btn:hover { background: #ddb200; }
.page-home .hero-bottom-bar { position: relative; z-index: 2; background: rgba(0,0,0,.3); display: flex; justify-content: center; }
.page-home .hero-bottom-bar-inner { display: flex; max-width: 860px; width: 100%; }
.page-home .hero-stat { flex: 1; padding: 1.1rem 2rem; border-right: 1px solid rgba(255,255,255,.12); }
.page-home .hero-stat:last-child { border-right: none; }
.page-home .hero-stat-label { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: .15rem; }
.page-home .hero-stat-value { font-size: .95rem; color: #fff; }
.page-home .hero-stat-value em { color: #fff; font-style: normal; font-weight: 600; }

.page-home section { padding: 5.5rem 3rem; }
.page-home .max { max-width: 780px; margin: 0 auto; }
.page-home .label { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--wine); font-weight: 600; margin-bottom: .4rem; }
.page-home .section-title { font-family: var(--serif); font-size: 2.1rem; line-height: 1.15; color: var(--text); margin-bottom: .6rem; }
.page-home .gold-bar { width: 38px; height: 3px; background: var(--gold); margin-bottom: 2.2rem; }
.page-home .lead { font-size: 1.1rem; color: var(--muted); line-height: 1.75; margin-bottom: 1.8rem; }
.page-home .body-text { font-size: 1rem; color: var(--text); line-height: 1.8; margin-bottom: 1.3rem; }
.page-home .body-text strong { color: var(--wine); font-weight: 600; }

.page-home .aboutme-image {
  float: right;
  margin: 0 0 1.5rem 2.5rem;
  width: 260px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 3px;
}

.page-home .photo-slot {
  width: 100%;
  aspect-ratio: 16 / 7;
  background: var(--cream);
  border: 2px dashed rgba(117,38,55,.2);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  margin: 2rem 0;
  color: rgba(117,38,55,.4);
}

.page-home .photo-slot svg { width: 32px; height: 32px; fill: rgba(117,38,55,.3); }
.page-home .photo-slot span { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }

.page-home .photo-slot-portrait {
  float: right;
  margin: 0 0 1.5rem 2.5rem;
  width: 260px;
  aspect-ratio: 3 / 4;
  background: var(--cream);
  border: 2px dashed rgba(117,38,55,.2);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  color: rgba(117,38,55,.4);
}

.page-home .photo-slot-portrait svg { width: 28px; height: 28px; fill: rgba(117,38,55,.3); }
.page-home .photo-slot-portrait span { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.page-home .clearfix::after { content: ''; display: table; clear: both; }

.page-home .profil-section { background: var(--cream); }
.page-home .facts-list { list-style: none; margin-bottom: 2.5rem; }
.page-home .facts-list li { display: flex; align-items: flex-start; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.page-home .facts-list li:first-child { border-top: 1px solid rgba(0,0,0,.08); }
.page-home .fact-key { min-width: 160px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: .1rem; }
.page-home .fact-val { font-size: .98rem; color: var(--text); line-height: 1.5; }
.page-home .tag { display: inline-block; background: var(--wine); color: #fff; font-size: .72rem; padding: .2rem .65rem; border-radius: 2px; margin-right: .3rem; margin-top: .2rem; }
.page-home .tag-outline { display: inline-block; border: 1.5px solid var(--wine); color: var(--wine); font-size: .72rem; padding: .15rem .6rem; border-radius: 2px; margin-right: .3rem; margin-top: .2rem; }

.page-home .themen-section { background: var(--cream); }
.page-home .themen-list { list-style: none; counter-reset: themen; }
.page-home .themen-list li { counter-increment: themen; display: grid; grid-template-columns: 56px 1fr; gap: 1.2rem; align-items: start; padding: 1.5rem 0; border-bottom: 1px solid rgba(0,0,0,.07); }
.page-home .themen-list li:last-child { border-bottom: none; }
.page-home .themen-list li::before { content: counter(themen, decimal-leading-zero); font-family: var(--serif); font-size: 1.6rem; color: rgba(117,38,55,.18); line-height: 1; }
.page-home .themen-name { font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: .3rem; }
.page-home .themen-desc { font-size: .93rem; color: var(--muted); line-height: 1.6; }

.page-home .quote-section { background: var(--wine); color: #fff; text-align: center; padding: 7rem 3rem; }
.page-home .quote-section .label { color: var(--cream); }
.page-home .quote-mark { font-family: var(--serif); font-size: 7rem; line-height: .6; color: rgba(255,255,255,.1); display: block; margin-bottom: -.3rem; }
.page-home blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.5; color: rgba(255,255,255,.95); max-width: 700px; margin: 0 auto 1.5rem; }
.page-home .quote-source { font-size: .88rem; color: rgba(255,255,255,.5); letter-spacing: .05em; }

.page-home .kontakt-section { background: var(--cream); }
.page-home .kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: .5rem; }
.page-home .kontakt-box { background: #fff; border-radius: 3px; padding: 2rem; border-top: 3px solid var(--wine); }
.page-home .kontakt-box h3 { font-family: var(--serif); font-size: 1.2rem; color: var(--wine); margin-bottom: 1rem; }
.page-home .contact-row { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; font-size: .95rem; }
.page-home .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.page-home .contact-row a { color: var(--wine); text-decoration: none; font-weight: 600; }
.page-home .social-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.page-home .social-link { display: inline-block; padding: .35rem .9rem; border: 1.5px solid var(--wine); color: var(--wine); font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-decoration: none; border-radius: 2px; transition: all .2s; }
.page-home .social-link:hover { background: var(--wine); color: #fff; }
.page-home .wahl-box { background: var(--wine); border-radius: 3px; padding: 2rem; color: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.page-home .wahl-box h3 { font-family: var(--serif); font-size: 1.2rem; color: rgba(255,255,255,.7); margin-bottom: .8rem; }
.page-home .wahl-date { font-family: var(--serif); font-size: 2.2rem; color: #fff; line-height: 1.1; margin-bottom: 1rem; }
.page-home .wahl-date span { display: block; font-size: 1rem; color: rgba(255,255,255,.6); font-family: var(--sans); font-weight: 300; margin-top: .3rem; }
.page-home .wahl-hint { font-size: .85rem; color: rgba(255,255,255,.55); line-height: 1.6; }
.page-home .wahl-hint strong { color: var(--gold); font-weight: 600; }

/* Legal pages */
.page-legal nav {
  background: var(--wine);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 54px;
}

.page-legal .nav-brand { font-family: var(--serif); color: #fff; font-size: 1rem; letter-spacing: .03em; text-decoration: none; }
.page-legal .nav-back {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: color .2s;
}

.page-legal .nav-back:hover { color: #fff; }
.page-legal .nav-back svg { width: 16px; height: 16px; fill: currentColor; }

.page-legal .page-header {
  background: var(--wine);
  padding: 3.5rem 3rem 3rem;
  text-align: center;
}

.page-legal .page-header .label {
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  font-weight: 600;
  margin-bottom: .5rem;
}

.page-legal .page-header h1 {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: #fff;
  line-height: 1.1;
}

.page-legal .gold-bar { width: 38px; height: 3px; background: var(--gold); margin: .8rem auto 0; }

.page-legal .content {
  max-width: 780px;
  margin: 0 auto;
  padding: 4rem 3rem 5rem;
}

.page-legal .content h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--wine);
  margin: 2.5rem 0 .6rem;
}

.page-legal .content h2:first-child { margin-top: 0; }
.page-legal .content h3 { font-size: 1rem; font-weight: 600; color: var(--text); margin: 1.5rem 0 .4rem; }
.page-legal .content p { font-size: .98rem; color: var(--text); line-height: 1.8; margin-bottom: .8rem; }
.page-legal .content ul { margin: .4rem 0 .8rem 1.2rem; font-size: .98rem; color: var(--text); line-height: 1.8; }
.page-legal .content ul li { margin-bottom: .2rem; }
.page-legal .content p:last-child { margin-bottom: 0; }
.page-legal .content a { color: var(--wine); text-decoration: none; font-weight: 600; }
.page-legal .content a:hover { text-decoration: underline; }

.page-legal .placeholder {
  background: rgba(117,38,55,.06);
  border-left: 3px solid rgba(117,38,55,.2);
  border-radius: 2px;
  padding: .8rem 1rem;
  font-size: .88rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: .8rem;
}

/* Shared footer */
footer {
  background: var(--wine-dark);
  color: rgba(255,255,255,.5);
  text-align: center;
  font-size: .8rem;
  line-height: 1.9;
}

.page-home footer { padding: 2.5rem; }
.page-legal footer { padding: 2rem; }
footer strong { color: rgba(255,255,255,.85); }
footer a { color: rgba(255,255,255,.6); text-decoration: none; margin: 0 .5rem; }
footer a:hover { color: #fff; }

@media (max-width: 680px) {
  .page-home nav,
  .page-legal nav { padding: 0 1.2rem; }

  .page-home nav {
    position: sticky;
  }

  .page-home .nav-toggle {
    display: inline-block;
  }

  .page-home .nav-links {
    display: none;
    position: absolute;
    top: 54px;
    left: 0;
    width: 100%;
    background: var(--wine);
    padding: .5rem 1.2rem 1rem;
    flex-direction: column;
    gap: .3rem;
    border-top: 1px solid rgba(255,255,255,.18);
  }

  .page-home nav.menu-open .nav-links {
    display: flex;
  }

  .page-home .nav-links a {
    display: block;
    padding: .65rem 0;
    font-size: .78rem;
  }

  .page-home section { padding: 3.5rem 1.5rem; }
  .page-home .hero-content { padding: 0 1.5rem 3rem; }
  .page-home .hero-bottom-bar { flex-direction: column; }
  .page-home .hero-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); }
  .page-home .hero-stat-election-date { display: none; }
  .page-home .aboutme-image {
    float: none;
    display: block;
    width: 100%;
    margin: 0 0 1.5rem;
  }
  .page-home .photo-slot-portrait { float: none; width: 100%; aspect-ratio: 4 / 3; margin: 0 0 1.5rem; }
  .page-home .kontakt-grid { grid-template-columns: 1fr; }

  .page-legal .page-header { padding: 2.8rem 1.5rem 2.4rem; }
  .page-legal .page-header h1 { font-size: 2rem; }
  .page-legal .content { padding: 3rem 1.5rem 4rem; }

  .page-legal .nav-back {
    font-size: .72rem;
    letter-spacing: .06em;
    gap: .35rem;
  }

  .page-legal .nav-back svg { width: 14px; height: 14px; }
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: -60px;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--wine);
  color: var(--gold);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
}

.scroll-to-top.show {
  bottom: 2rem;
}

.scroll-to-top:hover {
  background: var(--wine-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.scroll-to-top:active {
  transform: translateY(0);
}

@media (max-width: 680px) {
  .scroll-to-top {
    width: 44px;
    height: 44px;
    right: 1rem;
    bottom: -60px;
  }

  .scroll-to-top.show {
    bottom: 1rem;
  }

  .scroll-to-top svg {
    width: 20px;
    height: 20px;
  }
}
