/* ============================================
   CUSTOM CSS – Inner Wheel Club Weiden i.d.OPf.
   Theme: GeneratePress
   VOLLSTÄNDIGE, FINALE VERSION – enthält:
   Farben, Schrift, Überschriften-Vereinheitlichung,
   Abstände, Header inkl. Hintergrundbild, Navigation,
   Bilder, Widgets, Buttons, Footer, Responsive
   Einfügen unter: Design -> Customizer -> Zusätzliches CSS
   ============================================ */
 
/* --- 1. Schriftart einbinden (Google Fonts, Ersatz für Myriad Pro) ---
   Hinweis: "Source Sans Pro" wurde von Google in "Source Sans 3"
   umbenannt/zusammengeführt -- daher dieser Name. --- */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;600;700&display=swap');
 
/* --- 2. Farb- und Abstandsvariablen (Inner Wheel CI) --- */
:root {
  --iw-base: #FFFFFF;
  --iw-base-2: #F2F6FB;
  --iw-base-3: #DCE6F1;
  --iw-accent: #005CB8;
  --iw-accent-hover: #00468C;
  --iw-contrast: #1A1A1A;
  --iw-contrast-2: #4A4A4A;
  --iw-contrast-3: #767676;
  --iw-radius: 10px;
  --iw-spacing: 48px;
}
 
/* --- 3. Schriftart überall erzwingen (überschreibt Theme-Standardeinstellungen) --- */
body, button, input, select, textarea,
h1, h2, h3, h4, h5, h6,
.site-title, .site-description,
.main-navigation ul li a,
.widget-title, .widget {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif !important;
}
 
body {
  font-size: 18px;
  line-height: 1.65;
  color: var(--iw-contrast);
  background-color: var(--iw-base);
}
 
/* --- 4. RESET: alten, uneinheitlichen Fließtext vereinheitlichen ---
   "font-family: inherit" holt sich die Schrift von Punkt 3 und
   überschreibt damit zuverlässig alte Times-New-Roman-Reste,
   die z. B. beim Kopieren aus Word im Text stecken können. --- */
.entry-content p,
.entry-content li,
.entry-content span,
.entry-content font {
  font-size: 18px !important;
  color: var(--iw-contrast) !important;
  font-weight: 400 !important;
  font-family: inherit !important;
  background-color: transparent !important;
}
 
.entry-content strong,
.entry-content b {
  font-weight: 600 !important;
  color: inherit !important;
}
 
/* --- 5. RESET: ALLE Überschriften-Ebenen vereinheitlichen ---
   Zieht h1-h6 auf ein einheitliches, gestuftes System,
   unabhängig davon, welche Ebene im alten Editor benutzt
   oder wie sie inline formatiert wurde. --- */
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6,
h1, h2, h3, h4, h5, h6,
.entry-title, .page-title {
  color: var(--iw-contrast) !important;
  font-weight: 700 !important;
  font-family: inherit !important;
  line-height: 1.25 !important;
  background-color: transparent !important;
  margin-bottom: 0.6em !important;
}
 
.entry-content h1, h1, .entry-title, .page-title { font-size: 2.1em !important; margin-top: 0 !important; }
.entry-content h2, h2 { font-size: 1.6em !important; margin-top: 1.6em !important; }
.entry-content h3, h3 { font-size: 1.3em !important; margin-top: 1.3em !important; }
.entry-content h4, h4 { font-size: 1.15em !important; margin-top: 1.1em !important; }
.entry-content h5, .entry-content h6, h5, h6 { font-size: 1.05em !important; margin-top: 1em !important; }
 
p { margin-bottom: 1.3em; }
 
a {
  color: var(--iw-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--iw-accent-hover); text-decoration: underline; }
 
/* --- 6. Seitenbreite und Abstände (luftigeres Layout) --- */
.site-content .inside-article,
.page-content,
.entry-content {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
 
.grid-container {
  max-width: 1200px;
}
 
.inside-article {
  padding-top: var(--iw-spacing);
  padding-bottom: var(--iw-spacing);
}
 
/* --- 7. Kopfbereich MIT Hintergrundbild --- */
.site-header {
  background-image: url('https://iwc-weiden-oberpfalz.de/wp-content/uploads/2026/08/cropped-BlueBackground_Landscape_RGB-scaled-1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 40px 24px;
  border-bottom: none;
}
 
/* Seiten-/Archiv-Titel-Banner (z.B. "Inner Wheel Aktuell") --
   GeneratePress zeigt hier oft die theme-eigene Akzentfarbe an;
   diese Regel stellt sicher, dass stattdessen unsere Corporate-
   Farben verwendet werden, egal was im Theme selbst als
   Akzentfarbe hinterlegt ist. */
.page-header,
.archive-header,
.inside-page-header,
.page-title-wrap,
.generate-page-header,
.page-hero {
  background-color: var(--iw-base-2) !important;
  background-image: none !important;
}
 
.page-header .page-title,
.archive-header .page-title,
.inside-page-header h1,
.page-title-wrap h1 {
  color: var(--iw-accent) !important;
}
 
.site-title a,
.site-title a:hover {
  color: #FFFFFF !important;
  font-size: 1.6em;
  font-weight: 700;
}
 
.site-description {
  color: #E5EFFB !important;
  font-size: 1em;
  margin-top: 4px;
}
 
/* --- 8. Navigation (an blauen Header-Hintergrund angeglichen) --- */
.main-navigation {
  background-color: var(--iw-accent);
  border-bottom: none;
}
 
.main-navigation .inside-navigation {
  display: flex;
  flex-wrap: wrap;
}
 
.main-navigation ul li a {
  padding: 16px 18px !important;
  color: #FFFFFF !important;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}
 
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
  background-color: rgba(255, 255, 255, 0.15) !important;
  color: #FFFFFF !important;
}
 
/* Sticky-Menü: bleibt beim Scrollen oben sichtbar
   (Alternative: unter Customizer -> Layout -> Header "Sticky" direkt aktivieren) */
.main-navigation.sticky-navigation,
.navigation-stick {
  position: sticky;
  top: 0;
  z-index: 999;
}
 
/* --- 9. Bilder: adaptiv, einheitliche Ecken, Schatten --- */
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--iw-radius);
}
 
.entry-content img,
.wp-block-image img {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
 
.wp-block-gallery,
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}
 
/* --- 10. Karten-Optik für Widgets/Seitenleiste --- */
.widget {
  background-color: var(--iw-base-2);
  border-radius: var(--iw-radius);
  padding: 20px;
  margin-bottom: 24px;
}
 
.widget-title {
  color: var(--iw-accent) !important;
  font-size: 1.1em !important;
  font-weight: 700 !important;
  margin-bottom: 12px !important;
  border-bottom: 2px solid var(--iw-accent);
  padding-bottom: 8px;
}
 
.widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--iw-base-3);
}
 
/* --- 11. Buttons statt reiner Textlinks --- */
.entry-content .more-link,
.wp-block-button__link,
.button {
  display: inline-block;
  background-color: var(--iw-accent) !important;
  color: #FFFFFF !important;
  padding: 10px 22px;
  border-radius: var(--iw-radius);
  font-weight: 600;
  text-decoration: none !important;
  transition: background-color 0.2s ease;
}
 
.entry-content .more-link:hover,
.wp-block-button__link:hover,
.button:hover {
  background-color: var(--iw-accent-hover) !important;
}
 
/* --- 12. Footer --- */
.site-footer,
.site-info {
  background-color: var(--iw-base-2);
  color: var(--iw-contrast-2);
  padding: 32px 24px;
  margin-top: var(--iw-spacing);
  font-size: 0.9em;
  text-align: center;
}
 
.site-footer a { color: var(--iw-accent); }
 
.site-footer .widget:has(a[href*="visitorcounterplugin"]) {
  background: none;
  font-size: 0.8em;
  color: var(--iw-contrast-3);
}
 
/* --- 13. Adaptivität / Responsive Anpassungen --- */
 
/* Tablet */
@media (max-width: 900px) {
  .grid-container { padding: 0 16px; }
 
  .site-header {
    padding: 28px 16px;
    background-position: center top;
  }
 
  .entry-content p, .entry-content li, .entry-content span, .entry-content font {
    font-size: 17px !important;
  }
 
  .entry-content h1, h1, .entry-title, .page-title { font-size: 1.7em !important; }
  .entry-content h2, h2 { font-size: 1.4em !important; }
}
 
/* Smartphone */
@media (max-width: 600px) {
  body { font-size: 15px; }
 
  .site-header {
    padding: 20px 12px;
    background-position: 30% top;
  }
 
  .entry-content p, .entry-content li, .entry-content span, .entry-content font {
    font-size: 16px !important;
  }
 
  .entry-content h1, h1, .entry-title, .page-title { font-size: 1.5em !important; }
  .entry-content h2, h2 { font-size: 1.3em !important; }
  .entry-content h3, h3 { font-size: 1.15em !important; }
 
  .site-title a { font-size: 1.2em; }
 
  .wp-block-gallery, .gallery {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
  }
 
  .grid-container { padding: 0 12px; }
 
  .inside-article {
    padding-top: 32px;
    padding-bottom: 32px;
  }
}