/*
Theme Name: Schwimmbad
Theme URI: https://example.com/schwimmbad
Author: MackSmaTec
Author URI: https://example.com
Description: Ein modernes, responsives WordPress-Theme fuer Baeder aller Art – Freibad, Hallenbad, Kombibad oder Erlebnisbad. Enthaelt eigene Beitragstypen fuer Becken und Kurse, ein eigenes Admin-Menue fuer Oeffnungszeiten, Preise und Wassertemperatur, Shortcodes und ein barrierefreies, mobiles Navigationssystem.
Version: 1.3.0
Requires at least: 6.2
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wellenbad
Tags: e-commerce, blog, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, wide-blocks, one-column, two-columns, responsive-layout, accessibility-ready
*/

/* =========================================================
   INHALTSVERZEICHNIS
   1. Reset & Grundlagen
   2. Design-Tokens (Custom Properties)
   3. Typografie
   4. Layout-Helfer
   5. Barrierefreiheit (Skip-Link, Screenreader)
   6. Header & Navigation
   7. Mobiles Off-Canvas-Menue
   8. Hero
   9. Schnellinfo-Leiste (Glass-Karte)
   10. Wellen-Trenner (Signatur-Element)
   11. Oeffnungszeiten & Preise
   12. Becken-Karten
   13. Kurse
   14. Highlights / Ausstattung
   15. Aktuelles / Blog
   16. Newsletter / CTA
   17. Footer
   18. Einzelbeitraege & Seiten
   19. Formulare & Buttons
   20. Utilities & Zustaende
   ========================================================= */

/* -------------------- 1. Reset & Grundlagen -------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--color-foam);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* -------------------- 2. Design-Tokens -------------------- */
:root {
  /* Farben: Wasser, Sonne, Sand */
  --color-deep:        #0B4B5C;  /* tiefes Beckenwasser */
  --color-pool:        #12879E;  /* mittleres Poolblau, Primärfarbe */
  --color-pool-light:  #4FC7D9;  /* Wasseroberfläche / Highlights */
  --color-ink:         #0C2B33;  /* Fließtext, fast Schwarz mit Blaustich */
  --color-foam:        #EAF6F6;  /* Schaum-Weiß, Seitenhintergrund */
  --color-foam-strong: #D9EEEE;  /* Kartenhintergrund auf Foam */
  --color-sand:        #F4E9D8;  /* warmer Wechsel-Hintergrund */
  --color-gold:        #FFB627;  /* Leinen-Gelb, Primär-Akzent/CTA */
  --color-gold-dark:   #E29A0E;
  --color-coral:       #E85D4C;  /* Warnung / Sale-Badge, sparsam */
  --color-white:       #FFFFFF;

  /* Typografie */
  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1:  clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.6rem, 1.4rem + 1vw, 2.1rem);
  --step-3:  clamp(2.1rem, 1.7rem + 1.8vw, 3rem);
  --step-4:  clamp(2.6rem, 1.9rem + 3.2vw, 4.5rem);

  /* Layout */
  --content-max: 1200px;
  --content-narrow: 780px;
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 32px;
  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 1.75rem;
  --space-l: 3rem;
  --space-xl: 5.5rem;
  --shadow-soft: 0 20px 50px -25px rgba(11, 75, 92, 0.35);
  --shadow-card: 0 10px 30px -18px rgba(11, 75, 92, 0.4);
  --header-h: 168px;
}

/* -------------------- 3. Typografie -------------------- */
h1, h2, h3, h4,
.font-display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--color-deep);
  margin: 0 0 0.5em;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 700; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-pool);
  margin-bottom: var(--space-s);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--color-gold);
  display: inline-block;
}

.lede {
  font-size: var(--step-1);
  color: var(--color-deep);
  max-width: 60ch;
  opacity: 0.85;
}

/* -------------------- 4. Layout-Helfer -------------------- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--space-s);
}
@media (min-width: 640px) { .container { padding-inline: var(--space-l); } }

.container--narrow { max-width: var(--content-narrow); }

.section { padding-block: var(--space-xl); position: relative; }
.section--sand { background: var(--color-sand); }
.section--deep {
  background: var(--color-deep);
  color: var(--color-foam);
}
.section--deep h2, .section--deep h3 { color: var(--color-white); }

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-l);
}
.section-head--center { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: var(--space-m); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.flow > * + * { margin-top: var(--space-s); }

/* -------------------- 5. Barrierefreiheit -------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  z-index: 10000;
  background: var(--color-deep);
  color: var(--color-white);
  padding: 0.9em 1.4em;
  border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; overflow: hidden; position: absolute !important;
  word-wrap: normal !important; margin: -1px; padding: 0;
}

:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

/* -------------------- 6. Header & Navigation -------------------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, box-shadow 0.35s ease, height 0.35s ease;
}
.site-header.is-scrolled {
  background: rgba(234, 246, 246, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -20px rgba(11, 43, 51, 0.35);
  height: calc(var(--header-h) - 12px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
}

.site-branding { display: flex; align-items: center; gap: 0.7em; }
.site-branding a { display: flex; align-items: center; gap: 0.6em; }
.site-title {
  font-family: var(--font-display);
  font-size: clamp(var(--step-1), calc(var(--header-h) * 0.16), var(--step-3));
  font-weight: 700;
  color: var(--color-deep);
}
.site-header:not(.is-scrolled) .site-title,
.site-header:not(.is-scrolled) .site-logo-mark { color: var(--color-white); }
.site-logo-mark { color: var(--color-pool); flex-shrink: 0; }
.site-logo-mark svg { width: clamp(22px, calc(var(--header-h) * 0.22), 64px); height: auto; }
.custom-logo { max-height: calc(var(--header-h) - 28px); width: auto; }

.primary-navigation { display: none; }
@media (min-width: 960px) {
  .primary-navigation { display: block; }
  .primary-menu {
    display: flex;
    align-items: center;
    gap: var(--space-m);
    font-weight: 600;
    font-size: var(--step--1);
  }
  .primary-menu > li > a {
    position: relative;
    padding: 0.4em 0.1em;
  }
  .primary-menu > li > a::after {
    content: "";
    position: absolute;
    left: 0; right: 100%;
    bottom: -2px;
    height: 2px;
    background: var(--color-gold);
    transition: right 0.25s ease;
  }
  .primary-menu > li > a:hover::after,
  .primary-menu > li.current-menu-item > a::after { right: 0; }
  .site-header:not(.is-scrolled) .primary-menu > li > a { color: var(--color-white); }
}

.header-actions { display: flex; align-items: center; gap: var(--space-s); }
.header-cta { display: none; }
@media (min-width: 720px) { .header-cta { display: inline-flex; } }

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5em;
}
@media (min-width: 960px) { .menu-toggle { display: none; } }
.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--color-deep);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.site-header:not(.is-scrolled) .menu-toggle span { background: var(--color-white); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-toggle[aria-expanded="true"] span { background: var(--color-deep); }

/* -------------------- 7. Mobiles Off-Canvas-Menue -------------------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: var(--color-deep);
  color: var(--color-white);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.65,0,.35,1);
  display: flex;
  flex-direction: column;
  padding: var(--space-l) var(--space-m);
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav-close {
  align-self: flex-end;
  background: none; border: none;
  color: var(--color-white);
  font-size: 1.8rem;
  line-height: 1;
  padding: 0.3em;
}
.mobile-menu {
  margin-top: var(--space-l);
  display: flex;
  flex-direction: column;
  gap: 0.2em;
  font-family: var(--font-display);
  font-size: var(--step-2);
}
.mobile-menu > li > a {
  display: block;
  padding: 0.35em 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.mobile-nav-meta {
  margin-top: auto;
  padding-top: var(--space-l);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  opacity: 0.75;
}

/* -------------------- 8. Hero -------------------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--color-deep) 0%, var(--color-pool) 65%, var(--color-pool-light) 100%);
  color: var(--color-white);
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.12), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(255,255,255,0.1), transparent 40%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--space-l);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}
.hero h1 { color: var(--color-white); }
.hero .lede { color: rgba(255,255,255,0.88); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  margin-top: var(--space-m);
}

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11,43,51,0.55));
}

/* -------------------- 9. Schnellinfo-Leiste -------------------- */
.quick-info {
  position: relative;
  z-index: 3;
  margin-top: calc(var(--space-xl) * -1);
  margin-bottom: var(--space-l);
}
.quick-info-card {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: var(--space-m);
  padding: var(--space-m) var(--space-l);
}
@media (min-width: 780px) {
  .quick-info-card { grid-template-columns: repeat(4, 1fr); align-items: center; }
}
.quick-info-item { display: flex; align-items: flex-start; gap: 0.7em; }
.quick-info-item svg { flex-shrink: 0; color: var(--color-pool); margin-top: 0.2em; }
.quick-info-item .label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-pool);
}
.quick-info-item .value { font-weight: 700; color: var(--color-deep); }

/* -------------------- 10. Wellen-Trenner (Signatur-Element) -------------------- */
.wave-divider {
  position: relative;
  line-height: 0;
  transform: translateY(1px);
}
.wave-divider svg { width: 100%; height: 70px; display: block; }
.wave-divider .wave-back { fill: var(--wave-color-back, var(--color-sand)); opacity: 0.6; }
.wave-divider .wave-front { fill: var(--wave-color-front, var(--color-sand)); }
.wave-divider--flip { transform: translateY(-1px) rotate(180deg); }
.wave-divider .wave-anim {
  animation: wave-drift 14s linear infinite;
  transform-origin: center;
}
@keyframes wave-drift {
  0% { transform: translateX(0); }
  50% { transform: translateX(-2.5%); }
  100% { transform: translateX(0); }
}

/* -------------------- 11. Oeffnungszeiten & Preise -------------------- */
.hours-price-grid {
  display: grid;
  gap: var(--space-l);
}
@media (min-width: 900px) { .hours-price-grid { grid-template-columns: 1fr 1fr; } }

.hours-table { width: 100%; border-collapse: collapse; font-size: var(--step-0); }
.hours-table tr { border-bottom: 1px solid rgba(11,75,92,0.12); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table th, .hours-table td { padding: 0.75em 0.5em; text-align: left; }
.hours-table th { font-family: var(--font-body); font-weight: 700; color: var(--color-deep); }
.hours-table td { font-family: var(--font-mono); }
.hours-table tr.is-today { background: var(--color-foam-strong); border-radius: var(--radius-s); }
.hours-table tr.is-today td:first-child,
.hours-table tr.is-today th:first-child { border-radius: var(--radius-s) 0 0 var(--radius-s); }

.price-list { display: flex; flex-direction: column; gap: 0.9em; }
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1em;
  padding-bottom: 0.9em;
  border-bottom: 1px dashed rgba(11,75,92,0.2);
}
.price-row:last-child { border-bottom: none; padding-bottom: 0; }
.price-row .price-name { font-weight: 600; color: var(--color-deep); }
.price-row .price-note { display: block; font-size: var(--step--1); opacity: 0.7; }
.price-row .price-amount { font-family: var(--font-mono); font-size: var(--step-1); color: var(--color-pool); white-space: nowrap; }

/* -------------------- 12. Becken-Karten -------------------- */
.pool-card {
  background: var(--color-white);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pool-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.pool-card-media { position: relative; aspect-ratio: 4/3; }
.pool-card-media img { width: 100%; height: 100%; object-fit: cover; }
.pool-card-temp {
  position: absolute;
  top: 0.8em; right: 0.8em;
  background: var(--color-gold);
  color: var(--color-deep);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--step--1);
  border-radius: 999px;
  padding: 0.3em 0.8em;
}
.pool-card-body { padding: var(--space-m); flex-grow: 1; display: flex; flex-direction: column; }
.pool-card-meta {
  display: flex;
  gap: var(--space-s);
  margin-top: auto;
  padding-top: var(--space-s);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--color-pool);
}

/* -------------------- 13. Kurse -------------------- */
.course-card {
  background: var(--color-white);
  border-left: 4px solid var(--color-gold);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  padding: var(--space-m);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}
.course-card .course-level {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--color-foam-strong);
  color: var(--color-pool);
  padding: 0.25em 0.7em;
  border-radius: 999px;
}
.course-card-footer {
  margin-top: var(--space-s);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--step--1);
}
.course-card-footer .slots { color: var(--color-coral); font-weight: 600; }

/* -------------------- 14. Highlights / Ausstattung -------------------- */
.highlight-card {
  text-align: left;
  padding: var(--space-m);
  border-radius: var(--radius-m);
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(11,75,92,0.08);
}
.highlight-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-s);
  background: var(--color-pool);
  color: var(--color-white);
  margin-bottom: var(--space-s);
}

/* -------------------- 15. Aktuelles / Blog -------------------- */
.post-card {
  background: var(--color-white);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.post-card-media { aspect-ratio: 16/10; overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-card:hover .post-card-media img { transform: scale(1.06); }
.post-card-body { padding: var(--space-m); display: flex; flex-direction: column; gap: 0.5em; flex-grow: 1; }
.post-card-date {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--color-pool);
}
.post-card-title { font-size: var(--step-1); margin: 0; }
.post-card-excerpt { color: rgba(12,43,51,0.75); font-size: var(--step--1); }
.post-card-link { margin-top: auto; font-weight: 700; color: var(--color-deep); }
.post-card-link::after { content: " \2192"; }

/* -------------------- 16. Newsletter / CTA -------------------- */
.cta-band {
  background: var(--color-deep);
  color: var(--color-white);
  border-radius: var(--radius-l);
  padding: var(--space-l);
  display: grid;
  gap: var(--space-m);
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 860px) { .cta-band { grid-template-columns: 1.3fr 1fr; } }
.cta-band h2 { color: var(--color-white); }
.cta-form { display: flex; gap: 0.6em; flex-wrap: wrap; }
.cta-form input[type="email"] {
  flex: 1 1 220px;
  padding: 0.9em 1.1em;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
}
.cta-form input[type="email"]::placeholder { color: rgba(255,255,255,0.6); }

/* -------------------- 17. Footer -------------------- */
.site-footer {
  background: var(--color-ink);
  color: rgba(234,246,246,0.8);
  padding-block: var(--space-xl) var(--space-m);
}
.footer-grid {
  display: grid;
  gap: var(--space-l);
  padding-bottom: var(--space-l);
  border-bottom: 1px solid rgba(234,246,246,0.12);
}
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid h2 { color: var(--color-white); font-size: var(--step-1); }
.footer-widget-title {
  color: var(--color-white);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-s);
}
.footer-widget ul li { margin-bottom: 0.6em; }
.footer-widget a:hover { color: var(--color-gold); }
.footer-social { display: flex; gap: 0.7em; margin-top: var(--space-s); }
.footer-social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(234,246,246,0.1);
}
.footer-social a:hover { background: var(--color-gold); color: var(--color-ink); }
.footer-bottom {
  padding-top: var(--space-m);
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: space-between;
  font-size: var(--step--1);
}
.footer-bottom a:hover { color: var(--color-gold); }

.back-to-top {
  position: fixed;
  right: var(--space-s);
  bottom: var(--space-s);
  z-index: 800;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-deep);
  display: flex; align-items: center; justify-content: center;
  border: none;
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* -------------------- 18. Einzelbeitraege & Seiten -------------------- */
.page-hero {
  padding-top: calc(var(--header-h) + var(--space-l));
  padding-bottom: var(--space-l);
  background: linear-gradient(180deg, var(--color-deep), var(--color-pool));
  color: var(--color-white);
}
.page-hero h1 { color: var(--color-white); }
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  opacity: 0.8;
  margin-bottom: var(--space-s);
}
.breadcrumbs a:hover { color: var(--color-gold); }

.entry-content { max-width: var(--content-narrow); margin-inline: auto; }
.entry-content h2 { margin-top: 1.4em; }
.entry-content img { border-radius: var(--radius-m); }
.entry-content blockquote {
  border-left: 4px solid var(--color-gold);
  margin: 1.5em 0;
  padding: 0.2em 1.2em;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-deep);
}
.entry-meta {
  display: flex; gap: 1em; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--color-pool);
  margin-bottom: var(--space-m);
}
.entry-footer {
  max-width: var(--content-narrow);
  margin: var(--space-l) auto 0;
  padding-top: var(--space-m);
  border-top: 1px solid rgba(11,75,92,0.15);
  display: flex;
  gap: 0.6em;
  flex-wrap: wrap;
}
.tag-pill {
  font-size: var(--step--1);
  background: var(--color-foam-strong);
  color: var(--color-pool);
  padding: 0.3em 0.9em;
  border-radius: 999px;
}

.pool-detail-meta, .course-detail-meta {
  display: grid;
  gap: var(--space-s);
  grid-template-columns: repeat(2, 1fr);
  max-width: var(--content-narrow);
  margin: 0 auto var(--space-l);
}
@media (min-width: 600px) { .pool-detail-meta, .course-detail-meta { grid-template-columns: repeat(4, 1fr); } }
.meta-tile {
  background: var(--color-white);
  border-radius: var(--radius-s);
  padding: var(--space-s);
  text-align: center;
  box-shadow: var(--shadow-card);
}
.meta-tile .label { display: block; font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; color: var(--color-pool); margin-bottom: 0.3em; }
.meta-tile .value { font-weight: 700; color: var(--color-deep); }

.pagination {
  display: flex;
  gap: 0.5em;
  justify-content: center;
  margin-top: var(--space-l);
  font-family: var(--font-mono);
}
.pagination a, .pagination span {
  min-width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: var(--shadow-card);
}
.pagination .current { background: var(--color-pool); color: var(--color-white); }

.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-body {
  background: var(--color-white);
  border-radius: var(--radius-m);
  padding: var(--space-m);
  margin-bottom: var(--space-s);
  box-shadow: var(--shadow-card);
}
.comment-author { font-weight: 700; color: var(--color-deep); }
.comment-metadata { font-family: var(--font-mono); font-size: var(--step--1); opacity: 0.7; }
.children { margin-left: var(--space-m); }

/* -------------------- 19. Formulare & Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--step--1);
  border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--color-gold); color: var(--color-deep); box-shadow: 0 12px 24px -12px rgba(255,182,39,0.7); }
.btn-primary:hover { background: var(--color-gold-dark); }
.btn-ghost { background: transparent; color: var(--color-white); border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { border-color: var(--color-white); }
.btn-outline { background: transparent; color: var(--color-deep); border-color: var(--color-deep); }
.btn-outline:hover { background: var(--color-deep); color: var(--color-white); }

.wp-block-search__inside-wrapper,
.search-form {
  display: flex;
  border: 2px solid var(--color-deep);
  border-radius: 999px;
  overflow: hidden;
}
.search-form input[type="search"] {
  flex: 1;
  border: none;
  padding: 0.7em 1.1em;
  background: transparent;
}
.search-form input[type="search"]:focus { outline: none; }
.search-form button {
  border: none;
  background: var(--color-deep);
  color: var(--color-white);
  padding: 0 1.2em;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: 0.8em 1em;
  border: 1px solid rgba(11,75,92,0.25);
  border-radius: var(--radius-s);
  background: var(--color-white);
  margin-bottom: var(--space-s);
}
.comment-form textarea { min-height: 120px; }

/* -------------------- 20. Utilities & Zustaende -------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.is-hidden { display: none !important; }
.no-scroll { overflow: hidden; }

::selection { background: var(--color-gold); color: var(--color-deep); }

.alignwide { max-width: 1100px; margin-inline: auto; }
.alignfull { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }

@media print {
  .site-header, .mobile-nav, .back-to-top, .site-footer { display: none; }
}
