/* Bürgerenergie Bösingen-Herrenzimmern Custom Styles */

/* Farbpalette passend zum Logo */
:root {
  --primary-blue: #2763a5;       /* Hauptblau aus Logo */
  --primary-blue-dark: #1d4b8b;  /* Dunkleres Blau */
  --primary-blue-light: #3676c4; /* Helleres Blau */
  --accent-gold: #f9b61d;        /* Gold aus Logo */
  --text-dark: #1a262e;          /* Dunkelgrau aus Logo */

  /* Legacy-Variablen für Kompatibilität (werden auf neue Farben gemappt) */
  --nature-green: #2763a5;
  --nature-light-green: #3676c4;
  --nature-accent: #f9b61d;
  --nature-brown: #5d4e37;
  --nature-blue: #2763a5;
}

/* Sidebar Logo - volle Breite der Sidebar */
.sidebar-container .short-about img {
  width: 100% !important;
  max-width: none;
  margin: 0 auto 20px auto;
}

/* Text Flow Around Images */
.float-left {
  float: left !important;
  margin: 0 20px 20px 0 !important;
}

.float-right {
  float: right !important;
  margin: 0 0 20px 20px !important;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* Responsive Float Behavior */
@media (max-width: 768px) {
  .float-left,
  .float-right {
    float: none !important;
    margin: 20px auto !important;
    display: block;
    text-align: center;
  }
}

/* Body Typography Optimization */
body {
  font-size: 16px !important; /* Web-Standard für optimale Lesbarkeit */
  line-height: 1.6 !important; /* Optimierte Zeilenhöhe (war 1.7) */
}

/* Responsive Body Font Sizes */
@media (max-width: 768px) {
  body {
    font-size: 15px !important; /* Etwas kleiner auf Tablets */
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px !important; /* Konsistente Größe für Mobile */
  }
}

/* Paragraph Optimization */
p {
  margin: 16px 0 !important; /* Kompaktes Layout */
  font-size: inherit; /* Verwendet Body-Schriftgröße */
}

/* Content Container Font Adjustments */
.post-container {
  font-size: inherit; /* Verwendet Body-Schriftgröße */
  line-height: 1.6;
}

/* Liste und andere Elemente */
.post-container ul, .post-container ol {
  font-size: inherit;
  line-height: 1.6;
  margin: 15px 0 !important; /* Kompaktere Abstände */
}

.post-container li {
  margin: 5px 0; /* Reduzierte Abstände zwischen Listenelementen */
}

.post-container blockquote {
  font-size: 15px !important; /* Etwas kleiner für Zitate */
  line-height: 1.5;
  margin: 20px 0 !important;
}

/* Responsive Typography für Content */
@media (max-width: 768px) {
  .post-container h1 {
    font-size: 26px !important;
  }

  .post-container h2 {
    font-size: 22px !important;
  }

  .post-container h3 {
    font-size: 19px !important;
  }

  .post-container h4 {
    font-size: 17px !important;
  }
}

@media (max-width: 480px) {
  .post-container h1 {
    font-size: 24px !important;
  }

  .post-container h2 {
    font-size: 20px !important;
  }

  .post-container h3 {
    font-size: 17px !important;
  }
}

/* Header customizations */
.intro-header .site-heading,
.intro-header .post-heading,
.intro-header .page-heading {
  padding: 120px 0 80px !important;
  position: relative;
  z-index: 2;
  text-align: left !important; /* Überschreibt das Theme-CSS text-align:center */
}

/* Container-Wrapper für Header-Text */
.intro-header .site-heading .container,
.intro-header .post-heading .container,
.intro-header .page-heading .container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* Header-Text Bootstrap Grid verwenden - keine zusätzlichen Margins */
.intro-header .site-heading h1,
.intro-header .post-heading h1,
.intro-header .page-heading h1,
.intro-header .site-heading .subheading,
.intro-header .post-heading .subheading,
.intro-header .page-heading .subheading {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: auto !important;
  max-width: none !important;
}

/* Responsive Anpassungen entfernt - Bootstrap Grid übernimmt die Ausrichtung */

/* Kontrast-Overlay entfernt - Text-Schatten sorgen für ausreichende Lesbarkeit */

@media only screen and (min-width:768px) {
  .intro-header .site-heading,
  .intro-header .post-heading,
  .intro-header .page-heading {
    padding-top: 140px !important;
    padding-bottom: 100px !important;
    /* Behalte Container-Ausrichtung bei */
  }
}

/* Hero Image Positioning - Hauptmotiv unten rechts zeigen */
.intro-header {
  max-width: 1200px !important;
  margin: 0 auto !important;
  background-position: right bottom !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  background-attachment: scroll !important; /* Bessere Performance als fixed */
  background-color: transparent !important; /* Entfernt den grauen Hintergrund */
  min-height: 450px !important; /* Erhöhte Mindesthöhe für Desktop */
  height: auto !important;
  overflow: hidden !important;
  transition: background-image 0.3s ease-in-out; /* Sanfter Übergang beim Laden */
}

/* Desktop Parallax-ähnlicher Effekt */
@media (min-width: 992px) {
  .intro-header {
    min-height: 500px !important; /* Noch mehr Höhe für große Bildschirme */
  }
}

/* Responsive Background Positioning */
@media (max-width: 991px) and (min-width: 769px) {
  .intro-header {
    background-position: right bottom !important;
    min-height: 400px !important; /* Tablet-Bereich */
  }
}

@media (max-width: 768px) {
  .intro-header {
    background-position: right bottom !important;
    min-height: 380px !important; /* Erhöhte Höhe für Hamburger-Menü-Bereich */
  }
}

@media (max-width: 480px) {
  .intro-header {
    background-position: right bottom !important;
    min-height: 320px !important; /* Ausreichend für sehr kleine Bildschirme */
  }
}

/* Zusätzliche Sicherstellung für Mobile Navigation */
@media (max-width: 767px) {
  .intro-header {
    min-height: 360px !important; /* Mehr Höhe wenn Hamburger-Menü aktiv ist */
  }
}

.intro-header .post-heading h1,
.intro-header .site-heading h1 {
  color: var(--primary-blue-dark) !important;
  font-size: 40px !important;
  text-shadow:
    /* Weißer Outline für Kontrast */
    1px 1px 3px rgba(255,255,255,0.95),
    -1px -1px 3px rgba(255,255,255,0.95),
    1px -1px 3px rgba(255,255,255,0.95),
    -1px 1px 3px rgba(255,255,255,0.95),
    /* Dunkler Drop-Shadow für Tiefe */
    3px 3px 6px rgba(0,0,0,0.4),
    /* Zusätzlicher subtiler Glow */
    0 0 10px rgba(255,255,255,0.3);
  font-weight: 700;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 3;
  /* text-align entfernt - verwendet jetzt Container-Ausrichtung */
}

/* Desktop-spezifische Schriftgröße */
@media only screen and (min-width: 768px) {
  .intro-header .post-heading h1,
  .intro-header .site-heading h1 {
    font-size: 40px !important;
  }
}

.intro-header .post-heading .subheading,
.intro-header .site-heading .subheading {
  color: var(--primary-blue) !important;
  font-weight: 600;
  text-shadow:
    /* Weißer Outline */
    1px 1px 2px rgba(255,255,255,0.9),
    -1px -1px 2px rgba(255,255,255,0.9),
    1px -1px 2px rgba(255,255,255,0.9),
    -1px 1px 2px rgba(255,255,255,0.9),
    /* Dunkler Drop-Shadow */
    2px 2px 4px rgba(0,0,0,0.3),
    /* Subtiler Glow */
    0 0 8px rgba(255,255,255,0.2);
  position: relative;
  z-index: 3;
  /* text-align entfernt - verwendet jetzt Container-Ausrichtung */
}

/* Navigation */
.navbar-custom {
  background-color: rgba(255, 255, 255, 0.95); /* Weiß - Logo hebt sich gut ab */
  min-height: 80px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-custom .navbar-brand,
.navbar-custom .nav li a {
  color: var(--primary-blue-dark); /* Dunkelblau für Text */
}

.navbar-custom .nav li a:hover {
  color: var(--accent-gold); /* Gold beim Hover */
}

/* Navbar Logo */
.navbar-brand {
  display: flex !important;
  align-items: center;
  padding: 5px 15px !important;
}

.navbar-brand img:hover,
.navbar-brand img:focus {
  cursor: pointer;
}

.navbar-logo {
  height: 70px;
  width: auto;
}

/* Titel visuell versteckt, aber für SEO/Screenreader zugänglich */
.navbar-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile: Logo anpassen */
@media (max-width: 767px) {
  .navbar-logo {
    height: 50px;
  }
}

/* Content styling */
.post-container h1, .post-container h2, .post-container h3 {
  color: var(--nature-green);
}

.post-container h1 {
  font-size: 32px !important; /* 2.0× body für klare Hierarchie */
  margin: 25px 0 15px !important;
}

.post-container h2 {
  font-size: 26px !important; /* 1.625× body */
  border-bottom: 2px solid var(--nature-accent);
  padding-bottom: 5px;
  margin: 25px 0 15px !important;
}

.post-container h3 {
  font-size: 21px !important; /* 1.31× body */
  margin: 20px 0 10px !important;
}

.post-container h4 {
  font-size: 18px !important; /* Neue Definition für h4 */
  margin: 20px 0 10px !important;
}

.post-container h5 {
  font-size: 16px !important; /* Reduziert von 19px */
  margin: 15px 0 8px !important;
}

.post-container h6 {
  font-size: 14px !important; /* 0.875× body, Sekundär-Überschrift */
  margin: 15px 0 8px !important;
}

/* Links */
a {
  color: var(--nature-blue);
}

a:hover {
  color: var(--nature-light-green);
}

/* Status badge for "in Gründung" */
.status-badge {
  background-color: var(--nature-accent);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: bold;
  margin-left: 10px;
}

/* Special styling for contact information */
.contact-info {
  background-color: #f8f9fa;
  border-left: 4px solid var(--nature-accent);
  padding: 15px;
  margin: 20px 0;
}

/* Document links styling */
.document-list {
  list-style: none;
  padding: 0;
}

.document-list li {
  margin: 10px 0;
  padding: 10px;
  background-color: #e8f2fc;  /* Hellblau passend zum Logo */
  border-radius: 5px;
  border-left: 4px solid var(--nature-accent);
}

.document-list li:hover {
  background-color: #d4e5f7;  /* Etwas dunkleres Hellblau */
}

/* Mobile Navigation Fix */
@media only screen and (max-width: 767px) {
  .navbar-default .navbar-collapse {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
  }

  .navbar-default .navbar-collapse .nav li a {
    color: var(--primary-blue-dark) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .navbar-default .navbar-collapse .nav li a:hover,
  .navbar-default .navbar-collapse .nav li a:focus {
    color: var(--accent-gold) !important;
    background-color: rgba(0, 0, 0, 0.05) !important;
  }

  .navbar-default .navbar-collapse .nav li a:active {
    background-color: rgba(0, 0, 0, 0.1) !important;
  }

  /* Hamburger Menu Button Fix */
  .navbar-default .navbar-toggle {
    background-color: transparent !important;
    border: 1px solid var(--primary-blue) !important;
  }

  .navbar-default .navbar-toggle:hover,
  .navbar-default .navbar-toggle:focus {
    background-color: rgba(39, 99, 165, 0.1) !important;
  }

  .navbar-default .navbar-toggle:active {
    background-color: rgba(39, 99, 165, 0.2) !important;
  }

  .navbar-default .navbar-toggle .icon-bar {
    background-color: var(--primary-blue) !important;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .intro-header .post-heading h1,
  .intro-header .site-heading h1 {
    font-size: 28px !important;
    color: var(--primary-blue-dark) !important;
    margin-bottom: 15px;
    /* text-align entfernt - verwendet Container-Ausrichtung */
  }

  .intro-header .post-heading .subheading,
  .intro-header .site-heading .subheading {
    font-size: 18px !important; /* Etwa 1.0em basierend auf neuer Basis */
    color: var(--primary-blue) !important;
    margin-bottom: 10px;
    /* text-align entfernt - verwendet Container-Ausrichtung */
  }

  /* Angepasstes Padding für Hamburger-Menü-Bereich */
  .intro-header .site-heading,
  .intro-header .post-heading,
  .intro-header .page-heading {
    padding-top: 100px !important;
    padding-bottom: 80px !important;
    /* Behalte Container-Ausrichtung bei für Mobile */
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Overlay entfernt - Text-Schatten sorgen für ausreichende Lesbarkeit */
}

/* Extra small screens (320px width and similar) */
@media (max-width: 480px) {
  .intro-header .site-heading,
  .intro-header .post-heading,
  .intro-header .page-heading {
    padding-top: 80px !important;
    padding-bottom: 60px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .intro-header .post-heading h1,
  .intro-header .site-heading h1 {
    font-size: 24px !important;
    line-height: 1.1;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
  }

  .intro-header .post-heading .subheading,
  .intro-header .site-heading .subheading {
    font-size: 16px !important; /* Proportional angepasst */
    line-height: 1.2;
    margin-bottom: 8px;
  }

  /* Overlay entfernt - Text-Schatten sorgen für ausreichende Lesbarkeit */
}

/* Admonition Styles */
.admonition {
  margin: 20px 0;
  padding: 0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.admonition-header {
  padding: 12px 16px;
  font-weight: bold;
  font-size: 1.1em;
  margin: 0;
  border: none;
}

.admonition-content {
  padding: 16px;
  background-color: #ffffff;
}

.admonition-content p:last-child {
  margin-bottom: 0;
}

/* Admonition Types */
.admonition-note {
  border-left: 4px solid #007bff;
}

.admonition-note .admonition-header {
  background-color: #e3f2fd;
  color: #0056b3;
}

.admonition-tip {
  border-left: 4px solid var(--nature-accent);
}

.admonition-tip .admonition-header {
  background-color: #f1f8e9;
  color: var(--nature-green);
}

.admonition-warning {
  border-left: 4px solid #ffc107;
}

.admonition-warning .admonition-header {
  background-color: #fff8e1;
  color: #e65100;
}

.admonition-important {
  border-left: 4px solid #dc3545;
}

.admonition-important .admonition-header {
  background-color: #ffebee;
  color: #c62828;
}

.admonition-danger {
  border-left: 4px solid #dc3545;
}

.admonition-danger .admonition-header {
  background-color: #ffebee;
  color: #c62828;
}

/* Mitglieder-Tabelle Styles */
.members-table {
  margin-top: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  overflow-x: auto; /* Horizontales Scrolling erlauben */
}

.members-table .table {
  margin-bottom: 0;
  table-layout: auto; /* Automatische Spaltenbreiten basierend auf Inhalt */
  width: auto; /* Natürliche Tabellenbreite */
}

.members-table .table-dark th {
  background-color: var(--nature-green);
  border-color: var(--nature-light-green);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8em; /* Etwas größere Schrift für bessere Lesbarkeit */
  letter-spacing: 0.3px;
  padding: 8px 12px; /* Mehr Padding für bessere Lesbarkeit */
  white-space: normal; /* Umbruch in Kopfzeile erlauben */
  text-align: left; /* Linksbündige Ausrichtung */
  line-height: 1.2; /* Besserer Zeilenabstand bei Umbrüchen */
}

.members-table tbody tr:hover {
  background-color: #e8f2fc;  /* Hellblau */
  transition: background-color 0.2s ease;
}

.members-table tbody td {
  vertical-align: middle;
  border-color: #d4e5f7;  /* Hellblau */
  font-size: 0.85em; /* Größere Schrift für bessere Lesbarkeit */
  padding: 6px 12px; /* Mehr Padding um Überlappungen zu vermeiden */
  white-space: nowrap;
  text-align: left; /* Linksbündige Ausrichtung */
}

.members-table .member-status {
  display: inline-block;
  padding: 3px 6px; /* Etwas mehr Padding */
  border-radius: 8px;
  font-size: 0.8em; /* Größere Schrift für Status */
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.members-table .status-active {
  background-color: var(--nature-accent);
  color: white;
}

.members-table .status-interested {
  background-color: #17a2b8;
  color: white;
}

.members-table .status-inactive {
  background-color: #dc3545;
  color: white;
}

.members-table .anteilsscheine {
  font-weight: 600;
  color: var(--nature-green);
  font-size: 0.8em; /* Größere Schrift für Anteilsscheine */
}

/* Email und Telefon Links in der Tabelle */
.members-table .email-link,
.members-table .phone-link {
  color: var(--nature-green);
  text-decoration: none;
  font-size: 0.9em; /* Größere Links für bessere Lesbarkeit */
  white-space: nowrap; /* Links nicht umbrechen */
}

.members-table .email-link:hover,
.members-table .phone-link:hover {
  color: var(--nature-light-green);
  text-decoration: underline;
}

.members-table .email-link i,
.members-table .phone-link i {
  margin-right: 4px;
}

.members-table .badge {
  font-size: 0.8em; /* Größere Badges */
  padding: 2px 6px; /* Mehr Padding */
  white-space: nowrap;
}

/* Spezielle Behandlung für Bemerkung und Expertise Spalten */
.members-table td:nth-child(10), /* Bemerkung-Spalte */
.members-table td:nth-child(11) { /* Expertise-Spalte */
  white-space: normal; /* Umbruch erlauben */
  max-width: 150px; /* Maximale Breite für bessere Lesbarkeit */
  word-wrap: break-word; /* Lange Wörter umbrechen */
  line-height: 1.3; /* Besserer Zeilenabstand */
}

/* Entferne spezielle Spalten-Behandlung für einheitliche Darstellung */

/* Geschützter Bereich Header */
.protected-area {
  background: linear-gradient(135deg, var(--nature-green), var(--nature-light-green));
  color: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 2rem;
  text-align: center;
}

.protected-area h1 {
  color: white;
  margin-bottom: 0.5rem;
}

.protected-area .lock-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

/* CSV Download Button */
.csv-download-section {
  text-align: center;
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid var(--nature-accent);
}

.csv-download-section .btn {
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.csv-download-section .btn-success {
  background-color: var(--nature-accent);
  border-color: var(--nature-accent);
  color: white;
}

.csv-download-section .btn-success:hover {
  background-color: var(--nature-light-green);
  border-color: var(--nature-light-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Tabelle */
@media (max-width: 768px) {
  .members-table {
    font-size: 0.7em; /* Kleinere aber lesbare Schrift auf mobilen Geräten */
    overflow-x: auto; /* Horizontales Scrolling */
  }

  .members-table th,
  .members-table td {
    padding: 4px 8px; /* Reduziertes aber ausreichendes Padding */
    font-size: 0.65em; /* Kleinere Schrift auf Mobile */
  }
}

/* Featured News Section */
.featured-news-container {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-left: 6px solid var(--nature-accent);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.featured-news-title {
  color: var(--nature-green);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--nature-accent);
}

.featured-news-title i {
  color: var(--nature-accent);
  margin-right: 0.5rem;
}

.featured-news-item {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-news-item:last-child {
  margin-bottom: 0;
}

.featured-news-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.featured-news-header h3 {
  color: var(--nature-green);
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.featured-news-header h3 a {
  color: var(--nature-green);
  text-decoration: none;
  transition: color 0.2s ease;
}

.featured-news-header h3 a:hover {
  color: var(--nature-light-green);
}

.featured-news-subtitle {
  color: #666;
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 1rem 0;
  font-style: italic;
}

.featured-news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #666;
}

.featured-news-meta i {
  color: var(--nature-accent);
  margin-right: 0.3rem;
}

.featured-news-date,
.featured-news-author {
  display: inline-flex;
  align-items: center;
}

.featured-news-summary {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #333;
}

.featured-news-summary p {
  margin: 0;
}

.featured-news-link .btn {
  background-color: var(--nature-accent);
  border-color: var(--nature-accent);
  color: white;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.featured-news-link .btn:hover {
  background-color: var(--nature-light-green);
  border-color: var(--nature-light-green);
  transform: translateX(3px);
}

.featured-news-link .btn i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.featured-news-link .btn:hover i {
  transform: translateX(3px);
}

/* Responsive Featured News */
@media (max-width: 768px) {
  .featured-news-container {
    padding: 1.5rem;
  }

  .featured-news-title {
    font-size: 1.5rem;
  }

  .featured-news-header h3 {
    font-size: 1.3rem;
  }

  .featured-news-item {
    padding: 1rem;
  }

  .featured-news-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .featured-news-title {
    font-size: 1.3rem;
  }

  .featured-news-header h3 {
    font-size: 1.2rem;
  }

  .featured-news-subtitle {
    font-size: 1rem;
  }
}

/* PDF Slides Einbettung */
.pdf-slides-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Desktop View - zeige PDF im iframe */
.pdf-viewer-desktop {
  display: block;
}

.pdf-viewer-mobile {
  display: none;
}

.pdf-viewer-desktop iframe {
  display: block;
  width: 100%;
  min-height: 600px;
  border: none;
  background-color: #f8f9fa;
}

/* Mobile View - zeige Download-Button */
@media (max-width: 768px) {
  .pdf-viewer-desktop {
    display: none;
  }

  .pdf-viewer-mobile {
    display: block;
  }

  .mobile-pdf-notice {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid var(--nature-accent);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
  }

  .mobile-pdf-notice i.fa-file-pdf-o {
    font-size: 4rem;
    color: var(--nature-accent);
    margin-bottom: 1rem;
  }

  .mobile-pdf-notice h4 {
    color: var(--nature-green);
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    font-weight: 700;
  }

  .mobile-pdf-notice p {
    color: #666;
    font-size: 1rem;
    margin: 0.5rem 0 1.5rem 0;
    line-height: 1.5;
  }

  .mobile-pdf-notice .btn {
    background-color: var(--nature-accent);
    border-color: var(--nature-accent);
    color: white;
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 6px;
    display: inline-block;
    margin: 1rem 0;
    box-shadow: 0 4px 8px rgba(139, 195, 74, 0.3);
    transition: all 0.3s ease;
  }

  .mobile-pdf-notice .btn:hover,
  .mobile-pdf-notice .btn:focus {
    background-color: var(--nature-light-green);
    border-color: var(--nature-light-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(139, 195, 74, 0.4);
    text-decoration: none;
  }

  .mobile-pdf-notice .btn i {
    margin-right: 0.5rem;
  }

  .mobile-pdf-notice .small-hint {
    font-size: 0.85rem;
    color: #999;
    font-style: italic;
    margin-top: 1rem;
  }
}

/* Tablet-spezifische Anpassungen */
@media (min-width: 769px) and (max-width: 1024px) {
  .pdf-viewer-desktop iframe {
    min-height: 550px;
  }
}

/* Fallback-Nachricht für Browser ohne PDF-Support (Desktop) */
.pdf-viewer-desktop iframe p {
  padding: 2rem;
  text-align: center;
  color: var(--nature-green);
  font-size: 1.1em;
}

.pdf-viewer-desktop iframe p a {
  color: var(--nature-blue);
  font-weight: 600;
  text-decoration: underline;
}

.pdf-viewer-desktop iframe p a:hover {
  color: var(--nature-light-green);
}

/* Post-Navigation: Prev/Next untereinander */
.post-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-pager .post-pager-next {
  margin-left: auto;
}