/* ConVita-KlangRäume – Grundgestaltung */
:root {
  /* Farben aus dem convita-Logo (Dunkelgrün / Hellgrün) und der alten Seite (Teal #169179) */
  --bg: #fbfaf6;
  --surface: #ffffff;
  --tint: #f1f3ec;
  --ink: #233027;
  --ink-soft: #4f5d53;
  --muted: #737f76;
  --line: #e1e5da;
  --primary: #24452f;
  --primary-ink: #ffffff;
  --primary-soft: #e3ece2;
  --accent: #4f8f37;
  --accent-soft: #e9f3e1;
  --teal: #157f6b;
  --font-script: 'Marck Script', 'Segoe Script', cursive;
  --danger: #a23b3b;
  --success: #2f6b45;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(38, 48, 46, .04), 0 8px 28px rgba(38, 48, 46, .07);
  --shadow-lg: 0 2px 4px rgba(38, 48, 46, .05), 0 18px 48px rgba(38, 48, 46, .12);
  --font-serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --font-sans: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1160px;
  --narrow: 760px;
  --header-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.container.narrow, .narrow { max-width: var(--narrow); }
.container.narrow { width: min(100% - 32px, var(--narrow)); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: .8em; }
.eyebrow a { color: inherit; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .8em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 6px 18px rgba(36, 69, 47, .25); }
.btn-primary:hover { background: #1a3423; color: #fff; }
.btn-light { background: rgba(255, 255, 255, .92); color: var(--primary); }
.btn-light:hover { background: #fff; color: var(--primary); }
.btn-ghost { background: transparent; color: var(--primary); border-color: currentColor; }
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary); }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(162, 59, 59, .4); }
.btn-danger:hover { background: #f7e4e4; color: var(--danger); }
.btn-edit { background: #fbf1dc; color: #7a5520; border-color: #ecd6aa; }
.btn-edit:hover { background: #f5e3bd; color: #5f4217; }
.btn-sm { padding: .5em 1em; font-size: .9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
/* Unschärfe auf Pseudo-Element, damit das fixierte Mobilmenü nicht am Header hängt */
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(251, 250, 246, .88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.nav-open .site-header::before { background: var(--bg); }
.is-admin .site-header { top: 44px; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 24px rgba(38, 48, 46, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 56px; width: auto; display: block; }
.brand:hover { color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 600; }
.brand-tag { font-size: .74rem; color: var(--muted); letter-spacing: .02em; }

.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav li { position: relative; }
.main-nav a {
  display: block; padding: .55em .95em; border-radius: 999px;
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .97rem;
  transition: background .2s, color .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); background: var(--primary-soft); }
.sub-nav {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px;
  background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s ease;
}
.sub-nav::before { content: ''; position: absolute; inset: -10px 0 auto; height: 10px; }
.has-sub:hover > .sub-nav, .has-sub:focus-within > .sub-nav { opacity: 1; visibility: visible; transform: none; }
.sub-nav a { border-radius: 8px; }
.sub-toggle { display: none; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .brand-tag { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
    border: 0; border-radius: 12px; background: var(--primary-soft); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 20px; height: 2px; background: var(--primary); border-radius: 2px; position: relative; transition: transform .25s, background .25s;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-open .nav-toggle-bars { background: transparent; }
  .nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg);
    padding: 16px 16px 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .25s ease;
  }
  .is-admin .main-nav { top: calc(var(--header-h) + 44px); }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav > ul { flex-direction: column; gap: 2px; }
  .main-nav a { font-size: 1.15rem; padding: .8em 1em; border-radius: 12px; }
  .has-sub { display: grid; grid-template-columns: 1fr auto; }
  .sub-toggle {
    display: block; width: 48px; border: 0; background: none; cursor: pointer; position: relative;
  }
  .sub-toggle::after {
    content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px;
    border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft);
    transform: translate(-50%, -70%) rotate(45deg); transition: transform .2s;
  }
  .sub-open > .sub-toggle::after { transform: translate(-50%, -30%) rotate(-135deg); }
  .sub-nav {
    grid-column: 1 / -1; position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; background: transparent; padding: 0 0 0 16px; display: none;
  }
  .sub-open > .sub-nav, .has-sub:focus-within > .sub-nav { display: block; }
  .sub-nav a { font-size: 1.05rem; }
}

/* ---------- Klangwellen ---------- */
.hero-waves { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-waves span {
  position: absolute; left: 78%; top: 46%; width: 220px; aspect-ratio: 1; border-radius: 50%;
  border: 1.5px solid rgba(106, 173, 75, .35); transform: translate(-50%, -50%) scale(.4); opacity: 0;
  animation: wave 9s cubic-bezier(.2, .6, .3, 1) infinite;
}
.hero-waves span:nth-child(2) { animation-delay: 1.8s; }
.hero-waves span:nth-child(3) { animation-delay: 3.6s; }
.hero-waves span:nth-child(4) { animation-delay: 5.4s; }
.hero-waves span:nth-child(5) { animation-delay: 7.2s; }
.hero-waves.small span { left: 88%; top: 50%; }
.hero-waves.big span { left: 50%; top: 50%; width: 320px; }
@keyframes wave {
  0% { transform: translate(-50%, -50%) scale(.4); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-waves span { animation: none; opacity: .5; }
  .hero-waves span:nth-child(2) { transform: translate(-50%, -50%) scale(1.6); opacity: .35; }
  .hero-waves span:nth-child(3) { transform: translate(-50%, -50%) scale(2.6); opacity: .2; }
  html { scroll-behavior: auto; }
}

/* ---------- Hero ---------- */
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero.has-image, .page-hero.has-image { color: #fff; }
/* Abdunklung als eigenes Element, Helligkeit des Kopfbilds als zusätzliche Farbschicht darüber (--shade).
   Bewusst ohne filter, transform und ::after: iOS-Safari zeichnete mit diesen Ebenen das Bild über den Text.
   Reihenfolge: Bild (0) < Abdunklung (1) < Text (2), alles in einem eigenen Stapel (isolation). */
.hero.has-image, .page-hero.has-image { isolation: isolate; }
.hero-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(var(--shade, transparent), var(--shade, transparent)),
    linear-gradient(100deg, rgba(20, 36, 26, .78) 0%, rgba(20, 36, 26, .5) 50%, rgba(20, 36, 26, .15) 100%);
}
.shade-m40 { --shade: rgba(0, 0, 0, .4); }
.shade-m30 { --shade: rgba(0, 0, 0, .3); }
.shade-m20 { --shade: rgba(0, 0, 0, .2); }
.shade-m10 { --shade: rgba(0, 0, 0, .1); }
.shade-p10 { --shade: rgba(255, 255, 255, .05); }
.shade-p20 { --shade: rgba(255, 255, 255, .1); }
.shade-p30 { --shade: rgba(255, 255, 255, .15); }
.shade-p40 { --shade: rgba(255, 255, 255, .2); }
.hero.has-image .hero-inner, .page-hero.has-image .page-hero-row { position: relative; z-index: 2; }
.hero.has-image h1, .page-hero.has-image h1, .hero.has-image .hero-sub, .page-hero.has-image .page-sub { color: #fff; }
.hero.has-image .eyebrow, .page-hero.has-image .crumbs a, .page-hero.has-image .crumbs span { color: #d6ecc7; }
.hero.has-image .hero-sub, .page-hero.has-image .page-sub { text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 520px at 82% 40%, rgba(106, 173, 75, .16), transparent 60%),
    radial-gradient(800px 600px at 0% 100%, rgba(36, 69, 47, .14), transparent 60%),
    var(--bg);
  padding: clamp(70px, 12vw, 150px) 0 clamp(110px, 14vw, 170px);
}
.hero-inner { position: relative; max-width: var(--container); }
.hero-title { font-family: var(--font-script); font-weight: 400; font-size: clamp(3rem, 8vw, 5.8rem); line-height: 1.05; max-width: 14ch; letter-spacing: 0; }
.hero-sub { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-soft); max-width: 46ch; margin-bottom: 2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.page-hero {
  position: relative; overflow: hidden;
  background: radial-gradient(800px 360px at 90% 40%, rgba(106, 173, 75, .14), transparent 60%), var(--tint);
  padding: clamp(56px, 9vw, 100px) 0 clamp(40px, 6vw, 64px);
}
.page-hero .container { position: relative; }
.page-hero.has-image { padding: clamp(90px, 14vw, 170px) 0 clamp(40px, 6vw, 70px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .9em; }
.crumbs a { color: var(--accent); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { color: var(--muted); }
.page-sub { font-size: clamp(1.08rem, 1.8vw, 1.25rem); color: var(--ink-soft); max-width: 50ch; margin: 0; }
.page-sub:empty { display: none; }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-tint { background: var(--tint); }
.section-head { text-align: center; margin-bottom: 40px; }
.empty { text-align: center; color: var(--muted); padding: 32px; border: 1.5px dashed var(--line); border-radius: var(--radius); }

/* Redaktioneller Inhalt (alles, was der Editor erzeugt) */
.content > *:first-child { margin-top: 0; }
.content h2 { margin-top: 1.6em; }
.content h3 { margin-top: 1.4em; }
.content .lead { font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.6; color: var(--ink); font-family: var(--font-serif); font-weight: 500; }
.content .box {
  background: var(--accent-soft); border-left: 4px solid var(--accent);
  padding: 1em 1.25em; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: #2c4a23;
}
.content h2, .content h3 { color: var(--teal); }
.content blockquote {
  margin: 1.6em 0; padding: .2em 0 .2em 1.4em; border-left: 3px solid var(--accent);
  font-family: var(--font-serif); font-style: italic; font-size: 1.45rem; line-height: 1.45; color: var(--teal);
}
.content ul, .content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.content ul { list-style: none; padding-left: 0; }
.content ul li { position: relative; padding-left: 1.6em; margin-bottom: .4em; }
.content ul li::before {
  content: ''; position: absolute; left: .2em; top: .62em; width: .55em; height: .55em; border-radius: 50%;
  border: 2px solid var(--accent);
}
.content img { display: block; border-radius: var(--radius); margin: 1.6em auto; box-shadow: var(--shadow); }
.content a > img { margin: 1em 0; max-height: 150px; width: auto; box-shadow: none; border-radius: 8px; }
.content .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 1.4em 0 2em; align-items: start; }
.content .gallery img { margin: 0; width: 100%; }
.content p.gallery:not(:has(img)) { display: block; } /* versehentlich als Galerie formatierter Text */
/* Bildvarianten aus dem Editor: links/rechts mit Text daneben, mittel zentriert */
.content img.img-left, .content img.img-right { width: min(38%, 340px); margin-top: .35em; margin-bottom: 1em; }
.content img.img-left { float: left; margin-left: 0; margin-right: 1.6em; }
.content img.img-right { float: right; margin-right: 0; margin-left: 1.6em; }
.content img.img-medium { width: min(60%, 520px); }
.content h2, .content h3, .content .box, .content blockquote, .content .gallery { clear: both; }
.content::after { content: ''; display: table; clear: both; }
.content .gallery img.img-left, .content .gallery img.img-right, .content .gallery img.img-medium { float: none; width: 100%; margin: 0; }
@media (max-width: 600px) {
  .content img.img-left, .content img.img-right, .content img.img-medium { float: none; width: 100%; margin: 1.2em 0; }
}
.content .gallery a > img { margin: 0; width: auto; max-width: 100%; }
.content .gallery a { display: block; }
.content-center { text-align: center; }
.content-center ul { text-align: left; display: inline-block; }
.content-center blockquote { border-left: 0; padding: 0; }
.content-center .box { text-align: left; }

/* ---------- Karten ---------- */
.card { background: var(--surface); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.card-grid { --cols: 4; --gap: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.card-grid > * { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
/* Kacheln nebeneinander am PC (Verwaltung → Einstellungen) */
.card-grid.cols-2 { --cols: 2; }
.card-grid.cols-3 { --cols: 3; }
.card-grid.cols-4 { --cols: 4; }
.card-grid.cols-5 { --cols: 5; }
.card-grid.cols-6 { --cols: 6; }
@media (max-width: 1000px) { .card-grid, .card-grid.cols-4, .card-grid.cols-5, .card-grid.cols-6 { --cols: 3; } }
.offer-card {
  display: flex; flex-direction: column; gap: 6px; padding: 28px; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.offer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #c9d8c0; color: var(--ink); }
.offer-card:has(.offer-media) { padding: 0; }
.offer-media { display: block; aspect-ratio: 1; overflow: hidden; background: var(--tint); }
.offer-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.offer-card:hover .offer-media img { transform: scale(1.04); }
.offer-body { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.offer-card:has(.offer-media) .offer-body { padding: 20px 22px 24px; }
.cards-after { margin-top: 40px; }
@media (max-width: 600px) {
  .card-grid, .card-grid[class*="cols-"] { --cols: 2; --gap: 12px; }
  .offer-card { padding: 18px; }
  .offer-card:has(.offer-media) .offer-body { padding: 12px 12px 14px; }
  .offer-card h3 { font-size: 1.15rem; margin-top: 0; }
  .offer-card p { font-size: .85rem; line-height: 1.5; }
  .more { font-size: .85rem; }
}
.offer-card h3 { margin: 8px 0 0; }
.offer-card p { color: var(--ink-soft); margin: 0; flex: 1; }
.offer-icon {
  display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
}
.more { margin-top: auto; padding-top: 12px; font-weight: 700; color: var(--accent); font-size: .95rem; }
.more span { display: inline-block; transition: transform .2s; }
.offer-card:hover .more span { transform: translateX(4px); }

/* ---------- Termine ---------- */
.event-list { display: grid; gap: 16px; margin-bottom: 28px; }
.event {
  display: grid; grid-template-columns: 88px 1fr; gap: 22px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.event-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: var(--primary); color: #fff; border-radius: 14px; padding: 10px 6px; line-height: 1.1;
}
.event-weekday, .event-month { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }
.event-day { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 600; }
.event-title { margin: 0 0 6px; }
.event-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--ink-soft); font-size: .95rem; margin: 0 0 8px; }
.event-meta span + span::before { content: '·'; margin-right: 18px; margin-left: -10px; color: var(--accent); }
.event-desc { white-space: pre-line; margin: 8px 0; }
.event-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; }
.event-link { font-weight: 700; font-size: .92rem; margin-left: 4px; text-decoration: none; color: var(--accent); }
@media (max-width: 520px) {
  .event { grid-template-columns: 1fr; gap: 14px; }
  .event-date { flex-direction: row; gap: 8px; justify-content: flex-start; padding: 8px 14px; width: fit-content; }
  .event-day { font-size: 1.4rem; }
}

.tag { display: inline-block; font-size: .8rem; font-weight: 700; padding: .25em .75em; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }
.tag-accent { background: #fbf1dc; color: #7a5520; }
.tag-warn { background: #fbe9d0; color: #8a4f0c; }
.badge { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; padding: 0 .4em; border-radius: 999px; background: var(--danger); color: #fff; font-size: .75rem; font-weight: 700; }

/* ---------- Kommentare ---------- */
.comments { padding-bottom: 80px; }
.comments h2 .count { font-family: var(--font-sans); font-size: 1rem; color: var(--muted); font-weight: 600; vertical-align: middle; }
.testimonials { columns: 2 320px; column-gap: 20px; margin-bottom: 40px; }
.testimonials-row { columns: 3 280px; }
.testimonial {
  break-inside: avoid; margin: 0 0 20px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); position: relative;
}
.testimonial::before { content: '“'; position: absolute; top: -6px; right: 18px; font-family: var(--font-serif); font-size: 5rem; line-height: 1; color: var(--accent-soft); }
.testimonial blockquote { margin: 0 0 16px; white-space: pre-line; position: relative; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 14px; }
.comment { display: grid; grid-template-columns: 44px 1fr; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.comment-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-family: var(--font-serif); font-size: 1.3rem; }
.comment-meta { font-size: .9rem; color: var(--muted); margin-bottom: 4px; }
.comment-meta strong { color: var(--ink); }
.comment-text { white-space: pre-line; margin: 0; }
.comment-form h2, .contact-form h2 { margin-top: 0; font-size: 1.8rem; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; cursor: pointer; font-size: .95rem; }
.check input { width: 20px; height: 20px; flex: none; margin-top: 3px; accent-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.contact-form { margin-bottom: 80px; scroll-margin-top: 100px; }
#formular { scroll-margin-top: 100px; }
.cta { background: var(--primary); color: #e7efe4; }
.cta h2 { color: #fff; }
.cta .btn-primary { background: #fff; color: var(--primary); }
.cta .btn-ghost { color: #fff; }
.cta .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.center-actions { justify-content: center; }

/* ---------- Formulare ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink-soft); }
input:not([type=checkbox]):not([type=radio]), textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .7em .9em;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(36, 69, 47, .14); }
textarea { resize: vertical; }
.hp { position: absolute !important; left: -9999px; }
.notice { padding: .85em 1.1em; border-radius: var(--radius-sm); margin: 0 0 20px; }
.notice ul { margin: 0; padding-left: 1.2em; }
.notice.success { background: #e3f1e7; color: var(--success); }
.notice.error { background: #f8e3e3; color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer { background: #1d3325; color: #cbd4d1; padding: 64px 0 24px; margin-top: 0; }
.site-footer a { color: #e3f0da; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo { height: 64px; width: auto; filter: brightness(0) invert(1); opacity: .92; margin-bottom: 10px; }
.footer-slogan { font-family: var(--font-script); font-size: 1.7rem; color: #cfe6c0; margin: 0 0 4px; }
.site-footer .muted { color: #9aa7a3; }
.footer-title { font-family: var(--font-sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; color: #a9d38f; margin-bottom: 14px; }
.site-footer address { font-style: normal; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 20px; font-size: .88rem; color: #8d9a96; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Newsletter ---------- */
/* Abstand zur Fußzeile am Abschnitt (nicht als Außenabstand der Box, der je nach Browser „durchrutschen“ kann) */
#newsletter { padding-bottom: clamp(56px, 8vw, 80px); }
.newsletter-card { scroll-margin-top: 100px; }
.newsletter-card h2 { margin-top: 0; font-size: 1.8rem; }
.newsletter-home .newsletter-card { margin-bottom: 0; }
.newsletter-home .section-head p:last-child { color: var(--ink-soft); margin: 0; }
.footer-newsletter {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px 40px; align-items: start;
  border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 32px;
}
.footer-newsletter .footer-title { margin-bottom: 8px; }
.footer-newsletter p { margin: 0; }
.newsletter-inline { display: flex; gap: 10px; margin-bottom: 10px; }
.newsletter-inline input { flex: 1; min-width: 0; }
.newsletter-inline .btn { flex: none; }
.newsletter-compact .check { font-size: .82rem; margin: 0; color: #9aa7a3; }
.site-footer .newsletter-compact .btn-primary { background: #e3f0da; color: #1d3325; box-shadow: none; }
@media (max-width: 760px) { .footer-newsletter { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .newsletter-inline { flex-direction: column; } }

/* ---------- Einzelkarte (Wartung / Login) ---------- */
body.solo {
  min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; position: relative; overflow: hidden;
  background:
    radial-gradient(900px 600px at 50% 40%, rgba(106, 173, 75, .18), transparent 60%),
    radial-gradient(700px 500px at 10% 100%, rgba(36, 69, 47, .16), transparent 60%),
    var(--bg);
}
.solo-card {
  position: relative; z-index: 1; width: min(100%, 480px); text-align: center;
  background: rgba(255, 255, 255, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .9); border-radius: 28px; padding: clamp(28px, 6vw, 48px); box-shadow: var(--shadow-lg);
}
.solo-card h1 { font-size: clamp(2rem, 6vw, 2.6rem); margin: 14px 0 4px; }
.solo-logo { width: min(220px, 70%); height: auto; }
.solo-slogan { font-family: var(--font-script); font-size: 2.2rem; color: var(--teal); margin: 14px 0 0; }
.solo-tag { color: var(--accent); font-weight: 600; font-size: .95rem; }
.solo-text { color: var(--ink-soft); font-size: 1.1rem; margin: 20px 0 28px; }
.solo-login summary { cursor: pointer; color: var(--muted); font-size: .92rem; list-style: none; }
.solo-login summary::-webkit-details-marker { display: none; }
.solo-login summary:hover { color: var(--primary); }
.solo-login form, .solo-form { display: flex; gap: 8px; margin-top: 16px; }
.solo-form { margin-bottom: 20px; }
@media (max-width: 420px) { .solo-login form, .solo-form { flex-direction: column; } }

/* ---------- Scroll-Animationen ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
.js .card-grid .reveal:nth-child(2) { transition-delay: .08s; }
.js .card-grid .reveal:nth-child(3) { transition-delay: .16s; }
.js .card-grid .reveal:nth-child(4) { transition-delay: .24s; }
.js .card-grid .reveal:nth-child(5) { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

.tag-series { background: #e4f0f3; color: var(--teal); }

/* Zeilenumbrüche aus Titel und Untertitel anzeigen */
.page-hero h1, .page-sub, .hero-title, .hero-sub { white-space: pre-line; }

/* Helligkeit von Fotos (nur Anzeige) */
.bright-m40 { filter: brightness(0.6); }
.bright-m30 { filter: brightness(0.7); }
.bright-m20 { filter: brightness(0.8); }
.bright-m10 { filter: brightness(0.9); }
.bright-p10 { filter: brightness(1.1); }
.bright-p20 { filter: brightness(1.2); }
.bright-p30 { filter: brightness(1.3); }
.bright-p40 { filter: brightness(1.4); }


/* Titelbereich oben: linker Rand bündig mit der Textspalte (760 px), Breite von Titel und Untertitel je Seite
   (Vorgabe hier, eigene Werte in /theme.css), optional ein Bild rechts daneben. */
.page-hero-row {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 40px;
  padding: 0 24px 0 max(16px, (100% - var(--narrow)) / 2);
}
.page-hero-text { width: var(--narrow); max-width: 100%; flex: 0 1 auto; min-width: 0; }
.page-hero-text h1, .page-hero-text .page-sub { max-width: none; }
.title-image { margin: 0; }
.title-image img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.page-hero-row .title-image { flex: 0 1 280px; min-width: 160px; }

/* Startseite: Titel und Untertitel gleich breit (Vorgabe 600 px), Bild rechts daneben */
.hero-text { width: 600px; max-width: 100%; }
.hero-text .hero-title, .hero-text .hero-sub { max-width: none; }
.hero.has-title-image .hero-inner { display: flex; align-items: center; gap: 48px; }
.hero.has-title-image .hero-text { flex: 0 1 auto; min-width: 0; }
.hero.has-title-image .title-image { flex: 0 1 340px; min-width: 180px; margin-left: auto; }

/* Einheitliche Höhe des Kopfbereichs auf allen Unterseiten (PC); Titel unten, wächst nur, wenn der Inhalt sonst nicht passt */
@media (min-width: 901px) {
  .page-hero, .page-hero.has-image {
    min-height: 460px; display: flex; flex-direction: column; justify-content: flex-end;
    padding: 48px 0 clamp(40px, 6vw, 70px);
  }
}
/* Bild neben dem Titel: nie beschnitten, aber höchstens 320 px (Startseite 360 px) hoch */
.title-image { display: flex; justify-content: flex-end; }
.title-image img { width: auto; max-width: 100%; max-height: 320px; }
.hero .title-image img { max-height: 360px; }

/* Tablet hochkant / Handy quer: Bild bleibt neben dem Titel, nur kleiner */
@media (max-width: 900px) {
  .page-hero-row { gap: 24px; padding-right: 16px; }
  .page-hero-row .title-image { flex-basis: 200px; min-width: 120px; }
  .hero.has-title-image .hero-inner { gap: 24px; }
  .hero.has-title-image .title-image { flex-basis: 220px; min-width: 140px; }
  .title-image img, .hero .title-image img { max-height: 240px; }
}
/* Handy hochkant: Bild unter dem Untertitel, klein und linksbündig */
@media (max-width: 600px) {
  .page-hero-row { display: block; padding: 0 16px; }
  .page-hero-text { width: auto; }
  .page-hero-row .title-image, .hero.has-title-image .title-image { width: auto; margin: 24px 0 0; justify-content: flex-start; }
  .hero.has-title-image .hero-inner { display: block; }
  .hero-text { width: auto; }
  .title-image img, .hero .title-image img { max-width: min(100%, 240px); max-height: 180px; }
}
