/* ===========================================================
   Basis-Styles und Layout
   =========================================================== */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
  color: #222;
}

body.body-padding {
  padding-top: 5rem; /* Platz für Fixed Header */
}

/* Content-Wrapper */
#main-content {
  padding: 0;
  margin: 0;
}
#main-content > .hero {
  margin: 0;
}
#main-content > *:not(.hero) {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 2rem 1.5rem;
  margin: 2rem auto;
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
}

/* ===========================================================
   Header und Navigation
   =========================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 56px;
  background: transparent;
  z-index: 2000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  display: block;
  transition: background 0.3s;
}
.site-header.scrolled .nav-wrapper {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
}
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-bottom: none;
  padding: 1rem 2vw 1rem 0;
}

/* Logo */
.site-logo {
  position: absolute;
  left: 2vw;
  height: 2.5rem;
  background: rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
  padding: 0.2rem;
  border-radius: 4px;
  z-index: 1100;
}

/* Navigation */
.main-nav {
  display: flex;
  gap: 1rem;
  margin-left: calc(6rem + 2vw);
}
.main-nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 1.2rem;
  background: #8fa3a9;
  border-radius: 4px 4px 0 0;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a.active {
  background: #ffc107;
  color: #fff;
}

/* Hamburger-Menü */
.menu-toggle {
  display: none;
  position: absolute;
  top: 1rem;
  right: 2vw;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  z-index: 1200;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  background: #333;
  height: 3px;
  border-radius: 2px;
  position: absolute;
  width: 100%;
  transition: transform 0.3s ease;
}
.menu-toggle span { top: 50%; transform: translateY(-50%); }
.menu-toggle span::before { content: ''; top: -8px; }
.menu-toggle span::after { content: ''; top: 8px; }

/* ===========================================================
   Hero-Section
   =========================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
}
.hero-text {
  position: absolute;
  bottom: 4rem;
  right: 8vw;
  color: #fff;
  max-width: 40%;
  text-align: right;
  z-index: 2;
  text-shadow:
    -1px -1px 2px #222, 1px -1px 2px #222,
    -1px 1px 2px #222, 1px 1px 2px #222,
    0 2px 6px rgba(0,0,0,0.30);
}
.hero-text h1 {
  font-size: 3.8rem;
  margin: 0 0 1rem 0;
  font-weight: bold;
  text-shadow: inherit;
}
.hero-text p {
  font-size: 1.6rem;
  font-weight: 500;
  margin: 0;
  text-shadow: inherit;
}
/* Hero-Image Klassen */
.hero.home { background-image: url('/data/img/heros/hero-startseite2.jpg'); background-position: 20% 35%; }
.hero.about { background-image: url('/data/img/heros/hero-ueber-mich.jpg'); background-position: 100% 20%; }
.hero.politik { background-image: url('/data/img/heros/hero-politik.jpg'); background-position: 20% 10%; }
.hero.kontakt { background-image: url('/data/img/heros/hero-kontakt.jpg'); }
.hero.impressum { background-image: url('/data/img/heros/hero-impresum.jpg'); background-position: 20% 30%; }

/* ===========================================================
   Welcome/Intro Section & Grid
   =========================================================== */
.welcome-section {
  max-width: 1200px;
  margin: 2.5rem auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  padding: 2rem 1.5rem;
  text-align: center;
}
.welcome-section h2 {
  margin-top: 0;
  color: #222;
  margin-bottom: 1.5rem;
  font-size: 2.8rem;
}
.welcome-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
.text-box#welcome-text,
.text-box#welcome-text-long {
  max-width: 90%;
  margin: 0 auto;
  grid-column: 1;
  background: none;
  border: none;
  padding: 1rem;
  text-align: left;
  font-size: 1.3rem;
  line-height: 1.8;
  width: 100%;
}
.welcome-video {
  grid-column: 2;
  display: flex;
  align-items: flex-start;
}
.video-thumb {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.welcome-text-long {
  grid-column: 1 / -1;
  padding: 1rem;
  font-size: 1.3rem;
  line-height: 1.8;
  text-align: justify;
  width: 100%;
}

/* ===========================================================
   Flip-Card (About & Politik-Grid)
   =========================================================== */
.about-section {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1rem;
}
.about-section h2 {
  text-align: left;
  margin-bottom: 2.5rem;
  color: #259ca4;
  font-size: 2.2rem;
}
.about-grid,
.politik-grid .about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.flip-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  perspective: 1200px;
  cursor: pointer;
  overflow: hidden;
  border: 2px solid #FF9C00;
  border-radius: 12px;
  box-sizing: border-box;
  transition: transform 0.3s;
}
.flip-card-inner {
  width: 100%; height: 100%;
  transition: transform 0.65s cubic-bezier(.68,-0.55,.27,1.55);
  transform-style: preserve-3d;
  box-sizing: border-box;
}
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  backface-visibility: hidden;
  box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
}
.flip-card-front {
  background-size: cover; background-position: center;
}
.flip-card-front .flip-title {
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.8);
  color: #FF9C00;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: bold;
  text-align: center;
  max-width: 85%;
}
.flip-card-back {
  background: #f9f9f9;
  color: #333;
  transform: rotateY(180deg);
  padding: 2.2rem 1.5rem 1.5rem 1.5rem;
  align-items: flex-start;
  justify-content: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch; /* verbessert Scrollverhalten auf Mobilgeräten */
}


/* ===========================================================
   Politik-Bereich: Sektionen, Grid, Werte-Buttons
   =========================================================== */

/* Grid: Wrapper für alle Sektionen */
.politik-sections-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  box-sizing: border-box;
}
.politik-sections-wrapper > section {
  flex: 1 1 45%;
  text-align: center;
}
.politik-sections-wrapper .politik-az {
  flex: 1 1 100%;
  margin-top: 2rem;
}

#nauen-kann-mehr h2,
#nauen-kann-mehr p,
.politik-werte h2 {
  text-align: center;
  margin: 0 auto 1rem;
}

/* Werte-Buttons */
.politik-werte .werte-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
  box-sizing: border-box;
}
.politik-werte .wert-btn {
  padding: 0.8rem 1.5rem;
  background: #ffc107;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.politik-werte .wert-btn:hover {
  background: #e0a800;
}
.politik-werte .wert-text {
  width: 100%;      /* full width of its container */
  max-width: none;  /* override previous max-width */
  margin: 0 auto 2rem;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: justify;
  box-sizing: border-box; /* ensure padding included in width */
}

/* Politik A-Z Single-Line Layout */
.politik-az-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  /* Allow horizontal scroll only for the letter list */
  overflow: visible;
}

/* A–Z list remains horizontal */
.politik-az .az-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  justify-content: center;
  width: 100%;
  overflow-x: auto;
  padding: 0 1rem;
}

.politik-az-inner h2 {
  font-size: 2.8rem;
  margin: 0 1rem 0 0;
  white-space: nowrap;
  text-align: center;
}
.politik-az .az-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  justify-content: flex-start;
  padding: 0 1rem;
}
.politik-az .az-letter {
  font-size: clamp(0.8rem, 2.5vw, 1rem);
  width: 1.75rem;
  height: 1.75rem;
  line-height: 1.75rem;
  display: inline-block;
  margin: 0.25rem;
}
.politik-az .az-letter::after,
.politik-az .az-letter:hover::after {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Letter Buttons (optional wie Wert-Buttons) */
.letter-buttons .letter-btn,
.letter-btn {
  padding: 0.8rem 1.5rem;
  background: #259ca4;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  margin: 0.25rem;
}
.letter-btn:hover {
  background: #1e7b86;
}

/* ===========================================================
   Footer
   =========================================================== */
.site-footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
}

/* ===========================================================
   Responsive Anpassungen
   =========================================================== */

@media (max-width: 950px) {
  .welcome-row { display: block; }
  .text-box, .welcome-video, .welcome-text-long { width: 100%; margin-bottom: 1rem; }
  .about-grid, .politik-grid .about-grid { grid-template-columns: 1fr; }
  .politik-sections-wrapper { flex-direction: column; }
  .politik-sections-wrapper > section { flex: 1 1 100%; }
}

/* --- Mobile Navigation & Hero --- */
@media (max-width: 700px) {
  .main-content, .hero { padding-top: 56px !important; }
  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0;
    background: #fff;
    width: 100vw;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1001;
    overflow-x: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    color: #222; background: none; padding: 1.1rem 1.5rem;
    border-radius: 0; border-bottom: 1px solid #eee;
    width: 100%; text-align: left; font-size: 1.1rem;
    box-sizing: border-box; white-space: normal; overflow: visible;
  }
  .main-nav a:hover, .main-nav a.active { background: #f0f0f0; color: #000; }
  .menu-toggle { display: block; background: none; border: none; font-size: 2.2rem; color: #222; height: 44px; width: 44px; }
  .nav-wrapper { display: flex; justify-content: space-between; align-items: center; height: 56px; padding: 0 1rem; background: #fff; }
  .site-header { background: #fff; }
  .site-logo, .logo { height: 44px; max-height: 44px; object-fit: contain; }
  .hero { margin-top: 3.5rem; height: 75vw; min-height: 420px; }
  .hero-text { bottom: 2rem; left: 0; right: 0; max-width: 95vw; margin: 0 auto; text-align: center; padding: 0 1rem; }
  .hero-text h1 { font-size: 2rem; margin: 0 0 0.7rem 0; line-height: 1.1; letter-spacing: -1px; }
  .hero-text p { font-size: 1.1rem; line-height: 1.2; }
  .about-grid, .politik-grid .about-grid { grid-template-columns: 1fr !important; }

  /* Politik-Sektionen untereinander */
  .politik-sections-wrapper { flex-direction: column; gap: 2rem; }
  .politik-sections-wrapper > .politik-werte,
  .politik-sections-wrapper > .politik-az,
  .politik-sections-wrapper > #nauen-kann-mehr { flex: 1 1 100% !important; width: 100%; }
  .politik-werte .werte-buttons { flex-direction: column; align-items: stretch; }
  .politik-werte .wert-btn { width: 100%; text-align: center; }
  .politik-werte .wert-text { text-align: center; }
  .politik-az-inner { flex-direction: column; align-items: center; overflow-x: hidden; }
  .politik-az .az-list { flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
}

/* --- Desktop: Werte nebeneinander, A-Z drunter --- */
@media (min-width: 951px) {
  .politik-sections-wrapper { flex-wrap: wrap; }
  #nauen-kann-mehr { order: 1; flex: 0 1 45%; }
  .politik-werte { order: 2; flex: 0 1 45%; align-items: flex-start; }
  .politik-az { order: 3; flex: 1 1 100%; margin-top: 2rem; }
  .politik-werte .werte-buttons { flex-direction: row; flex-wrap: nowrap; gap: 1rem; }
  .politik-werte .wert-btn { min-width: 120px; }
  .politik-werte .wert-text { order: 1; width: 100%; margin-top: 1rem; text-align: justify; }
  .politik-grid .about-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 2rem !important; }
  /* === Desktop: politik-az header and list inline === */
  .politik-az-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }
  .politik-az-inner h2 {
    margin: 0;
    flex-shrink: 0;
  }
}
  #nauen-kann-mehr { order: 1; flex: 0 1 45%; }
  .politik-werte { order: 2; flex: 0 1 45%; align-items: flex-start; }
  .politik-az { order: 3; flex: 1 1 100%; margin-top: 2rem; }
  .politik-werte .werte-buttons { flex-direction: row; flex-wrap: nowrap; gap: 1rem; }
  .politik-werte .wert-btn { min-width: 120px; }
  .politik-werte .wert-text { order: 1; width: 100%; margin-top: 1rem; text-align: justify; }
  .politik-grid .about-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 2rem !important; }
/* ======= Politik: Meine Politik ist-Buttons Orange/Grau Desktop & Mobil ======= */
.politik-werte .wert-btn {
  background: #8fa3a9;
  color: #fff;
  border: none;
  transition: background 0.2s, color 0.2s;
}
.politik-werte .wert-btn.active,
.politik-werte .wert-btn.selected {
  background: #ffc107;
  color: #fff;
}
.politik-werte .wert-btn:hover {
  filter: brightness(1.08);
}



/* ======= Politik A-Z: Buchstaben wie Minibuttons und aktiv Orange ======= */
.politik-az .az-letter {
  background: #8fa3a9;
  color: #fff;
  border-radius: 6px;
  border: none;
  font-weight: 700;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  outline: none;
  box-shadow: none;
  cursor: pointer;
  padding: 0 0.6em;
}
.politik-az .az-letter.active,
.politik-az .az-letter.selected {
  background: #ffc107;
  color: #fff;
  box-shadow: 0 0 0 2px #ffc107;
  border-radius: 2em;
}
.politik-az .az-letter:hover {
  filter: brightness(1.05);
}

/* ===== Letter Buttons Display Below A-Z List ===== */
.politik-az #letter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0 1rem;
  box-sizing: border-box;
}
.politik-az #letter-buttons .letter-btn {
  background: #259ca4;
}
.politik-az #letter-buttons .letter-btn:hover {
  background: #1e7b86;
}

/* ===== Wert-Buttons: Default Grau, Active Orange ===== */
.politik-werte .wert-btn {
  background: #8fa3a9 !important;
  color: #fff !important;
}
.politik-werte .wert-btn.active,
.politik-werte .wert-btn.selected {
  background: #ffc107 !important;
  color: #fff !important;
}
.politik-werte .wert-btn:hover {
  filter: brightness(1.08);
}
/* ===========================================================
   Full-Width Layout für Politik-Werte und Flip-Cards (Tablet/Mobil)
   =========================================================== */
@media (max-width: 950px) {
  /* Werte-Buttons einspaltig */
  .politik-werte .werte-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .politik-werte .wert-btn {
    width: 100%;
    text-align: center;
  }

  /* Flip-Cards in der Politik-Grid einspaltig */
  .politik-grid .about-grid {
    grid-template-columns: 1fr !important;
  }
}
/* Einheitliche H2-Größe für Politik-Sektionen im Mobile-Layout */
@media (max-width: 700px) {
  #nauen-kann-mehr h2,
  .politik-werte h2,
  .politik-az-inner h2 {
    font-size: 2.2rem;
  }
}
@media (min-width: 951px) {
  /* About-Hero: Text links statt rechts */
  .hero.about .hero-text {
    left: 32vw;    /* gleiches Padding wie rechts bisher */
    right: auto;  /* heb den rechten Rand auf */
    text-align: left;
  }
}
@media (min-width: 951px) {
  /* About-Hero: Text links statt rechts */
  .hero.impressum .hero-text {
    left: 32vw;    /* gleiches Padding wie rechts bisher */
    right: auto;  /* heb den rechten Rand auf */
    text-align: left;
  }
}
/* ==============================
   Kontakt-Seite: moderner Look
   ============================== */

/* Container für Kontakt-Section */
#kontakt.welcome-section {
  background: #f0f4f8;          /* leichtes Hellblau-Grau */
  border-left: 4px solid #259ca4; /* Akzent in deinem Aqua-Ton */
  padding: 2rem;
}

/* Überschriften */
#kontakt.welcome-section h2 {
  color: #259ca4;
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

/* Text-Box */
#kontakt .text-box {
  text-align: left;
  color: #333;
}

/* Links hervorheben */
#kontakt a {
  color: #259ca4;
  text-decoration: none;
  border-bottom: 2px solid #259ca4;
  transition: color 0.3s, border-color 0.3s;
}
#kontakt a:hover {
  color: #ffc107;            /* dein Orange-Akzent */
  border-color: #ffc107;
}

/* Liste & Address */
#kontakt ul {
  list-style: disc inside;
  margin: 1rem 0 1.5rem;
}
#kontakt ul li {
  margin-bottom: 0.5rem;
}
/* Kontakt-Links: Unterstreichung entfernen */
#kontakt a, #kontakt a:hover {
  text-decoration: none !important;
}


/* Feinjustierung: Abstände */
#kontakt .text-box p,
#kontakt .text-box address {
  margin-bottom: 1rem;
}
/* Kontakt Hero-Bild: Mobile Ansicht nach rechts verschieben */
@media (max-width: 700px) {
  .hero.kontakt {
    /* Hintergrundbild auf 80% horizontal und 50% vertikal verschieben */
    background-position: 0% 50% !important;
  }
}
/* Footer Links weiß */
.site-footer .footer-nav a {
  color: #fff !important;
  text-decoration: none;
  border-bottom: none;
}
.site-footer .footer-nav a:hover {
  color: #ffc107 !important;
}

@media (min-width: 951px) {
  .flip-card-back {
    overflow-y: auto;
    overflow-x: hidden;
  }

  .flip-card-back .flip-back-content {
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
  }

  .flip-card-back .flip-back-content h3 {
    font-size: clamp(0.8rem, 1.5vw, 1.1rem);
    margin: 0 0 1rem 0;
    word-break: break-word;
    max-width: 100%;
  }
}

/* ===========================================================
   Desktop-Override: kleinere Flip-Titles auf Politik.html
   =========================================================== */
@media (min-width: 951px) {
  /* Nur innerhalb des Politik-Grids anwenden */
  .politik-grid .flip-card-front .flip-title {
    /* Verringere die Minimal-, Mittel- und Maximalgröße */
    font-size: clamp(0.8rem, 1.5vw, 1.5rem) !important;
  }
}
/* ===========================================================
   Impressum & Rechtliche Abschnitte Styles
   =========================================================== */
#impressum,
#urheberrecht,
#haftung,
#datenschutzhinweise,
#kontakt,
#spenden {
  max-width: 1200px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 2rem 1.5rem;
}

#impressum h1,
#impressum h2,
#urheberrecht h2,
#haftung h2,
#datenschutzhinweise h2,
#kontakt h2,
#spenden h2 {
  color: #259ca4;
  margin-bottom: 1rem;
  font-weight: 700;
}

#impressum h1 {
  font-size: 2.5rem;
  margin-top: 0;
}

#impressum address,
#kontakt address {
  font-style: normal;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  color: #333;
}

#impressum p,
#urheberrecht p,
#haftung p,
#datenschutzhinweise p,
#kontakt p,
#spenden p {
  margin-bottom: 1rem;
  color: #333;
}

#impressum a,
#urheberrecht a,
#haftung a,
#datenschutzhinweise a,
#kontakt a,
#spenden a {
  color: #259ca4;
  text-decoration: none;
  border-bottom: 1px dashed #259ca4;
  transition: color 0.3s, border-color 0.3s;
}

#impressum a:hover,
#urheberrecht a:hover,
#haftung a:hover,
#datenschutzhinweise a:hover,
#kontakt a:hover,
#spenden a:hover {
  color: #ffc107;
  border-color: #ffc107;
}

#impressum time,
#datenschutzhinweise time,
#kontakt time {
  font-size: 0.9rem;
  color: #777;
}
/* Mobile: Hero Impressum Background adjust */
@media (max-width: 700px) {
  .hero.impressum {
    /* Hintergrundbild weiter nach links schieben */
    background-position: 80% 50% !important;
  }
}

/* Firefox-Fix: Verstecke Flip-Card-Titel bei Rückseite */
.flip-card.flipped .flip-title {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
