/* Ermekeil Cohousing — zentrales Stylesheet (Theme + Mockup) */

/* ── Lokale Schriften (DSGVO: kein Google-Fonts-CDN) ── */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/source-serif-4-var-latin.woff2") format("woff2");
}

:root {
  /* Farbpalette: übernommen vom früheren Sydney-Theme des Projekts */
  --color-primary: #3c7b99;
  --color-primary-dark: #2f657d;
  --color-accent: #eb7e35;
  --color-accent-hover: #d46a22;
  /* Abgedunkeltes Akzent-Orange für Text auf hellem Grund (WCAG AA >= 4.5:1) */
  --color-accent-text: #b4530a;
  --color-accent-text-dark: #8f420a;
  /* Logo-Farben als Akzentsystem (Vielfalt): Grün & Ocker, je mit AA-Textvariante */
  --color-green: #7a9b57;
  --color-green-dark: #5c7a3f;
  --color-ochre: #d9a441;
  --color-ochre-text: #946a15;
  --color-heading: #00102e;
  --color-heading-secondary: #443f3f;
  --color-bg: #ffffff;
  /* Warmes Sand statt kaltem Blaugrau */
  --color-bg-alt: #f7f2e9;
  --color-bg-card: #ffffff;
  --color-text: #233452;
  /* AA-konform auch auf --color-bg-alt */
  --color-text-muted: #5f6875;
  --color-white: #ffffff;
  --color-border: #e4dccc;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --max-width: 1120px;
  --text-width: 720px;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(92, 74, 40, 0.08);
  --shadow-lg: 0 12px 48px rgba(92, 74, 40, 0.12);
  --nav-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-accent-text);
}

/* ── Barrierefreiheit: Fokus & Skip-Link ── */

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

.site-footer :focus-visible,
.cta-banner :focus-visible,
.hero :focus-visible {
  outline-color: var(--color-white);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 300;
  background: var(--color-heading);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
  color: var(--color-white);
}

.container {
  width: min(var(--max-width), calc(100% - 2.5rem));
  margin-inline: auto;
}

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

/* ── Navigation ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text);
  font-weight: 600;
}

.logo:hover {
  color: var(--color-text);
}

.logo-img {
  height: 58px;
  width: auto;
  display: block;
}

/* Neue Wort-Bild-Marke: Inline-SVG + Schriftzug in Website-Fonts */
.logo-mark {
  height: 38px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--color-heading);
  white-space: nowrap;
}

.logo-sub {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-top: 2px;
  white-space: nowrap;
}

@media (max-width: 430px) {
  .logo-sub {
    display: none;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.footer-logo .logo-mark {
  height: 32px;
}

.footer-brand .footer-claim {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--color-white);
  margin-top: 0.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-accent-text);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.25s;
}

.nav-links a:hover::after,
.nav-links a.active::after,
.nav-links .current-menu-item a::after,
.nav-links .current_page_item a::after {
  width: 100%;
}

.nav-links a.active,
.nav-links .current-menu-item a,
.nav-links .current_page_item a {
  color: var(--color-accent-text-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: 0.3s;
}

/* ── Buttons (Mockup-Anker + Gutenberg-Button-Block) ── */

.btn,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn.btn-primary,
.wp-block-button.btn-primary .wp-block-button__link {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn.btn-primary:hover,
.wp-block-button.btn-primary .wp-block-button__link:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
}

.btn.btn-outline,
.wp-block-button.btn-outline .wp-block-button__link {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn.btn-outline:hover,
.wp-block-button.btn-outline .wp-block-button__link:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn.btn-accent,
.wp-block-button.btn-accent .wp-block-button__link {
  background: var(--color-accent-text);
  color: var(--color-white);
  border-color: var(--color-accent-text);
}

.btn.btn-accent:hover,
.wp-block-button.btn-accent .wp-block-button__link:hover {
  background: var(--color-accent-text-dark);
  border-color: var(--color-accent-text-dark);
  color: var(--color-white);
}

.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Buttons in zentrierten Kontexten auch zentrieren */
.events-footer .wp-block-buttons,
.vision-preview .wp-block-buttons,
.contact-box .wp-block-buttons,
.section-header.centered .wp-block-buttons {
  justify-content: center;
}

/* ── Hero (Startseite) ── */

.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 16, 46, 0.78) 0%,
    rgba(35, 52, 82, 0.55) 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

/* ── Hero mit Illustration (Startseite): heller Grund, dunkle Schrift ── */

.hero-illu {
  position: relative;
  background: linear-gradient(180deg, #fdfbf6 0%, #f9f4ea 100%);
  border-bottom: 1px solid var(--color-border);
  padding: 3.5rem 0 0;
  overflow: hidden;
}

/* Felder als ruhiges, vollbreites Band am unteren Rand */
.hero-illu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(140px, 16vw, 200px);
  background: url("../assets/images/hero-felder.svg") bottom center / cover no-repeat;
}

.hero-illu .hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: end;
  /* Platz für das Felder-Band reservieren */
  padding-bottom: clamp(150px, 17vw, 210px);
}

.hero-illu .hero-text {
  align-self: center;
}

.hero-illu p.hero-label {
  color: var(--color-accent-text);
  margin-bottom: 1rem;
}

.hero-illu h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4.5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--color-heading);
  margin-bottom: 1.25rem;
}

.hero-illu .hero-text p:not(.hero-label) {
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-illu .hero-visual {
  align-self: end;
  /* Das Motiv steht AUF dem Felder-Band: Füße ragen hinein */
  margin-bottom: calc(-1 * clamp(95px, 11vw, 140px));
  max-width: 520px;
  justify-self: center;
  width: 100%;
}

.hero-illu .hero-visual img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .hero-illu .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: clamp(140px, 24vw, 190px);
  }

  .hero-illu::after {
    height: clamp(120px, 22vw, 180px);
  }

  .hero-illu .hero-visual {
    max-width: 400px;
    margin-inline: auto;
    margin-bottom: calc(-1 * clamp(75px, 15vw, 115px));
  }
}

/* Hero als Block-Gruppe mit CSS-Hintergrundbild (Startseiten-Inhalt im Editor) */
.hero.hero-static {
  background-image: url("../assets/images/wohnzimmer.jpg");
  background-size: cover;
  background-position: center;
}

.hero.hero-static::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 16, 46, 0.78) 0%,
    rgba(35, 52, 82, 0.55) 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

.hero .container,
.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
  color: var(--color-white);
  max-width: 640px;
}

.hero .container {
  margin-inline: auto;
  width: min(var(--max-width), calc(100% - 2.5rem));
  max-width: var(--max-width);
}

.hero .hero-text {
  max-width: 640px;
}

.hero-label,
p.hero-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--color-white);
}

.hero p:not(.hero-label) {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--color-white);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero .btn.btn-primary,
.hero .wp-block-button.btn-primary .wp-block-button__link {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.hero .btn.btn-primary:hover,
.hero .wp-block-button.btn-primary .wp-block-button__link:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-bg-alt);
  color: var(--color-primary-dark);
}

.hero .btn.btn-outline,
.hero .wp-block-button.btn-outline .wp-block-button__link {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.6);
  background: transparent;
}

.hero .btn.btn-outline:hover,
.hero .wp-block-button.btn-outline .wp-block-button__link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-white);
  color: var(--color-white);
}

/* ── Stats / Kennzahlen ── */

.stats {
  padding: 0;
  margin-top: -3rem;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-card {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
}

/* Kennzahlen-Karten tragen die Logo-Farben (Vielfalts-Akzent) */
.stats-grid .stat-card:nth-child(2) {
  border-top-color: var(--color-accent);
}

.stats-grid .stat-card:nth-child(3) {
  border-top-color: var(--color-green);
}

.stats-grid .stat-card:nth-child(4) {
  border-top-color: var(--color-ochre);
}

.stat-value,
p.stat-value {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 0.35rem;
  margin-top: 0;
}

.stat-label,
p.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin: 0;
}

/* ── Sections ── */

section {
  padding: 5rem 0;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header.centered {
  text-align: center;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 600;
  color: var(--color-heading);
  line-height: 1.25;
}

.section-header p {
  margin-top: 1rem;
  color: var(--color-text-muted);
  max-width: 560px;
}

.section-header.centered p {
  margin-inline: auto;
}

/* Label-Absatz im Section-Header behält die Akzentfarbe (nach .section-header p definiert) */
.section-header p.section-label {
  color: var(--color-accent-text);
  margin-top: 0;
  margin-bottom: 0.75rem;
  max-width: none;
}

/* ── Events ── */

.events {
  background: var(--color-bg-card);
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.event-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--color-primary);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  padding: 0.5rem;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 8px;
  text-align: center;
}

.event-date .day {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.event-date .month {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-info h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.event-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.event-meta span + span::before {
  content: " · ";
}

.events-footer {
  text-align: center;
  margin-top: 2rem;
}

.teasers {
  background: var(--color-bg-alt);
}

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.teaser-card {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.teaser-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.teaser-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.teaser-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.teaser-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-heading-secondary);
  margin-bottom: 0.75rem;
}

.teaser-card-body p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  flex: 1;
  margin-bottom: 1rem;
}

.teaser-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary);
}

.teaser-card:hover .teaser-link,
.teaser-link:hover {
  color: var(--color-accent-text);
}

/* ── CTA Banner ── */

.cta-banner {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 4rem 0;
  text-align: center;
}

.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
  color: var(--color-white);
}

.cta-banner p {
  margin-bottom: 2rem;
  max-width: 480px;
  margin-inline: auto;
  color: var(--color-white);
}

.cta-banner a:not(.btn):not(.wp-block-button__link) {
  color: var(--color-white);
  text-decoration: underline;
}

.cta-banner .btn.btn-primary,
.cta-banner .wp-block-button.btn-primary .wp-block-button__link {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.cta-banner .btn.btn-primary:hover,
.cta-banner .wp-block-button.btn-primary .wp-block-button__link:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-bg-alt);
  color: var(--color-primary-dark);
}

.cta-banner .wp-block-buttons {
  justify-content: center;
}

/* ── Page Hero (Unterseiten) ── */

.page-hero {
  background: var(--color-bg-alt);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--color-border);
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--color-heading);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 560px;
}

.page-hero p.section-label {
  color: var(--color-accent-text);
  font-size: 0.78rem;
  margin-bottom: 0.75rem;
}

/* ── Content blocks ── */

.content-block {
  padding: 4rem 0;
}

.content-block--alt {
  background: var(--color-bg-alt);
}

.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.content-split.reverse {
  direction: rtl;
}

.content-split.reverse > * {
  direction: ltr;
}

.content-split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.content-split h2 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: var(--color-heading-secondary);
  margin-bottom: 1rem;
}

.content-split p + p {
  margin-top: 1rem;
}

/* Gutenberg-Spaltenblock als content-split */
.wp-block-columns.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.wp-block-columns.content-split .wp-block-column p + p {
  margin-top: 1rem;
}

/* ── Feature list ── */

.feature-list,
ul.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
  padding-left: 0;
}

.feature-list li {
  padding-left: 1.75rem;
  position: relative;
  font-size: 0.95rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* Aufzählungspunkte rotieren durch die Logo-Farben */
.feature-list li:nth-child(3n + 2)::before {
  background: var(--color-green);
}

.feature-list li:nth-child(3n)::before {
  background: var(--color-primary);
}

/* ── Facts (dl im Mockup, Gruppen-Blöcke im Editor) ── */

.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.fact-item {
  padding: 1.25rem 1.5rem;
  background: var(--color-bg);
  border-radius: 8px;
  border-left: 3px solid var(--color-primary);
  box-shadow: var(--shadow);
}

/* Fakten-Karten: linke Kante rotiert durch die Logo-Farben */
.facts-grid .fact-item:nth-child(4n + 2) {
  border-left-color: var(--color-accent);
}

.facts-grid .fact-item:nth-child(4n + 3) {
  border-left-color: var(--color-green);
}

.facts-grid .fact-item:nth-child(4n) {
  border-left-color: var(--color-ochre);
}

.fact-item dt,
.fact-item p:first-child {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
  margin-top: 0;
}

.fact-item dd,
.fact-item p + p {
  font-weight: 500;
  color: var(--color-text);
  margin: 0;
}

/* ── Timeline ── */

.timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  background: var(--color-primary);
  border-radius: 50%;
  border: 3px solid var(--color-bg);
}

.timeline-item:last-child::before {
  background: var(--color-accent);
}

.timeline-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-heading-secondary);
  margin-bottom: 0.35rem;
}

.timeline-item .year,
.timeline-item p.year {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent-text);
  margin-bottom: 0.25rem;
}

.timeline-item p:not(.year) {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* ── Steps (3er-Raster, Mockup) ── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--color-bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.15rem;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--color-heading-secondary);
}

.step p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* ── Journey (Weg zur Mitgliedschaft, automatisch nummeriert) ── */

.journey {
  counter-reset: journey;
  max-width: var(--text-width);
  margin-top: 2rem;
  position: relative;
}

.journey::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: var(--color-border);
}

.journey-step {
  counter-increment: journey;
  position: relative;
  padding: 0 0 2.5rem 4.5rem;
}

.journey-step:last-child {
  padding-bottom: 0;
}

.journey-step::before {
  content: counter(journey);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.15rem;
  border-radius: 50%;
  border: 4px solid var(--color-bg);
  box-shadow: var(--shadow);
}

/* Journey-Nummern tragen die Logo-Farben (alle AA-konform mit weißer Schrift) */
.journey-step:nth-child(2)::before {
  background: var(--color-accent-text);
}

.journey-step:nth-child(3)::before {
  background: var(--color-green-dark);
}

.journey-step:nth-child(4)::before {
  background: var(--color-ochre-text);
}

.journey-step:nth-child(5)::before {
  background: var(--color-primary-dark);
}

.journey-step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-heading-secondary);
  margin-bottom: 0.4rem;
  padding-top: 0.55rem;
}

.journey-step p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.journey-step p + p {
  margin-top: 0.5rem;
}

.content-block--alt .journey-step::before {
  border-color: var(--color-bg-alt);
}

/* ── Downloads / Presse ── */

.download-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.download-item {
  display: block;
  padding: 1.25rem 1.5rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  border-left: 3px solid var(--color-primary);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.download-item:hover {
  box-shadow: var(--shadow);
}

.download-item p:first-child {
  font-weight: 600;
  color: var(--color-heading-secondary);
  margin-bottom: 0.25rem;
}

.download-item p + p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

.download-item a {
  font-weight: 600;
}

.download-item--pending {
  border-left-color: var(--color-border);
  background: var(--color-bg-alt);
}

/* ── Contact box ── */

.contact-box {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  margin-top: 3rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.contact-box h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-heading);
  margin-bottom: 0.75rem;
}

.contact-box a.email {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  word-break: break-word;
}

/* ── Footer ── */

.site-footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 3rem 0 2rem;
  font-size: 0.88rem;
}

.content-image,
figure.content-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 320px;
  object-fit: cover;
}

figure.content-image {
  margin: 0;
}

.content-image--kitchen,
figure.content-image--kitchen img {
  object-position: 15% 20%;
}

/* Kartenausschnitt/Schaubild: nicht beschneiden, mit Rahmen und Bildunterschrift */
figure.content-image--map,
.content-image--map {
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--color-white);
}

figure.content-image--map img {
  height: auto;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

/* ── FAQ: aufklappbare Fragen (native details) ── */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 820px;
}

.faq-list details {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-heading-secondary);
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--color-bg-alt);
  color: var(--color-accent-text);
  border-radius: 4px;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 0.1em;
}

.faq-list details[open] summary::before {
  content: "−";
}

.faq-list details[open] summary {
  margin-bottom: 0.65rem;
}

.faq-list details p {
  font-size: 0.95rem;
  color: var(--color-text);
}

.faq-list details p + p {
  margin-top: 0.6rem;
}

/* Grundstücksfoto: volle Breite, sanft beschnitten, Schild bleibt im Bild */
figure.foto-grundstueck {
  margin-top: 2.5rem;
}

figure.foto-grundstueck img {
  height: auto;
  max-height: 480px;
  width: 100%;
  object-fit: cover;
  object-position: 55% 45%;
}

figure.content-image figcaption,
.wp-block-image figcaption {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  padding: 0.6rem 1rem 0.8rem;
  text-align: center;
  margin: 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.footer-brand .logo-name {
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 600;
}

.footer-brand p {
  margin-top: 0.75rem;
  max-width: 280px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 3rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--color-white);
}

.footer-links a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

/* Sprachlink („English"/„Deutsch") neben der E-Mail-Adresse */
.footer-bottom a {
  color: var(--color-white);
  text-decoration: underline;
}

.footer-bottom a:hover {
  text-decoration: none;
}

.footer-links h4 {
  color: var(--color-white);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  font-size: 0.8rem;
}

/* ── Mockup badge ── */

.mockup-badge {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: var(--color-accent-text);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  z-index: 200;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: var(--shadow);
}

/* ── Vision ── */

.vision-download {
  margin-top: 1.5rem;
}

.vision-section {
  padding: 3rem 0 5rem;
}

.vision-block {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem 2rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
}

.vision-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.vision-quote {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--color-heading-secondary);
  border-left: 4px solid var(--color-accent);
  padding-left: 1.25rem;
  margin: 0 0 1.25rem;
  font-style: normal;
}

blockquote.vision-quote p {
  font-size: inherit;
  font-family: inherit;
}

.vision-quote--compact {
  font-size: 1.05rem;
  margin-bottom: 0;
}

.vision-details {
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

.vision-details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-accent-text);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vision-details summary::-webkit-details-marker {
  display: none;
}

.vision-details summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--color-bg-alt);
  border-radius: 4px;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.vision-details[open] summary::before {
  content: "−";
}

.vision-details .feature-list {
  margin-top: 1.25rem;
}

.doc-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary);
}

.doc-link:hover {
  color: var(--color-accent-text);
}

.vision-preview {
  margin-inline: auto;
  text-align: center;
}

.vision-preview .vision-quote {
  text-align: left;
  display: inline-block;
  max-width: 640px;
}

.vision-preview .btn-outline {
  display: inline-flex;
}

@media (max-width: 768px) {
  .vision-block {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .vision-quote {
    font-size: 1.05rem;
  }

  .vision-preview .btn-outline {
    display: flex;
    margin-left: 0 !important;
    margin-top: 0.75rem;
  }
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .teaser-grid {
    grid-template-columns: 1fr;
  }

  .content-split,
  .wp-block-columns.content-split {
    grid-template-columns: 1fr;
  }

  .content-split.reverse {
    direction: ltr;
  }

  .facts-grid,
  .download-list {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    gap: 2rem;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-bg);
    padding: 1.5rem 1.25rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .stats {
    margin-top: -2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stat-card {
    padding: 1.25rem 1rem;
  }

  .event-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .event-date {
    margin-inline: auto;
  }

  .hero {
    min-height: 60vh;
  }

  section {
    padding: 3.5rem 0;
  }

  .journey-step {
    padding-left: 3.75rem;
  }

  .journey::before {
    left: 19px;
  }

  .journey-step::before {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .vision-preview-actions .btn-outline + .btn-outline {
    margin-left: 0;
    margin-top: 0.75rem;
  }
}

/* WordPress theme extras */
.vision-preview-note {
  margin-top: 1.25rem;
  color: var(--color-text-muted);
}

.vision-preview-actions {
  margin-top: 1.5rem;
}

.vision-preview-actions .btn-outline + .btn-outline {
  margin-left: 0.75rem;
}

.content-spaced {
  margin-top: 1rem;
}

.content-heading {
  font-family: var(--font-serif);
  color: var(--color-heading-secondary);
  margin-bottom: 1rem;
}

.content-heading-spaced {
  margin-top: 2.5rem;
}

.contact-box-note {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

.contact-box-spaced {
  margin-top: 1.5rem;
}

.contact-box-spaced-top {
  margin-top: 3rem;
}

.events-page {
  padding-top: 3rem;
}

.event-description {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.event-description p {
  margin: 0;
}

.event-anmeldung {
  margin-top: 0.85rem;
}

.event-mehr {
  font-weight: 600;
  white-space: nowrap;
}

/* Optionaler Info-Link einer Terminkarte (termine.json: "link"/"linktext") */
.event-link {
  margin-top: 0.6rem;
  font-size: 0.9rem;
}

.event-link a {
  font-weight: 600;
}

/* Anker-Sprungziel landet nicht unter der klebrigen Navigation */
.event-card {
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}

.event-anmeldung .btn {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

/* Aufklappbares Anmelde-Formular in der Terminkarte */
.event-embed {
  margin-top: 1rem;
}

.event-embed iframe {
  width: min(750px, 100%);
  height: 900px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-card);
}

.event-embed-fallback {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Rückblick: vergangene Veranstaltungen, gedimmt */
.event-vergangen-titel {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-heading-secondary);
  margin-top: 2.5rem;
  margin-bottom: 0.25rem;
}

.event-card--vergangen {
  opacity: 0.65;
}

.event-card--vergangen:hover {
  box-shadow: none;
  border-color: var(--color-border);
}

.event-card--vergangen .event-date {
  background: var(--color-text-muted);
}

.event-empty {
  text-align: center;
  color: var(--color-text-muted);
  padding: 2rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

/* Editor-Inhalte: Grundabstände zwischen Blöcken */
.entry-content > * + *,
.text-content > * + * {
  margin-top: 1rem;
}

.entry-content > .content-block + .content-block,
.entry-content > section + section,
.entry-content > .content-block + section,
.entry-content > section + .content-block {
  margin-top: 0;
}

.entry-content .content-block,
.entry-content section,
.entry-content .page-hero {
  margin-top: 0;
}

.entry-content h2:not(.section-header h2):not(.cta-banner h2) {
  font-family: var(--font-serif);
  color: var(--color-heading-secondary);
}

.entry-content h3 {
  color: var(--color-heading-secondary);
}

/* Steckbrief-Formular (eingebettete Nextcloud-Form) */
#steckbrief {
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}

.steckbrief-embed {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.steckbrief-embed iframe {
  width: min(750px, 100%);
  height: 900px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-card);
  box-shadow: var(--shadow);
}

.steckbrief-fallback,
p.steckbrief-fallback {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Contact form */
.contact-form-wrap {
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}

.contact-form-box {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.contact-form-box h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-heading);
  margin-bottom: 0.75rem;
}

.contact-form-note {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.contact-notice {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.contact-notice--success {
  background: #e8f3ea;
  color: #2d5a36;
  border: 1px solid #b8d4bc;
}

.contact-notice--error {
  background: #fdeee8;
  color: #7a3b2a;
  border: 1px solid #e8c4b8;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.form-field .required {
  color: var(--color-accent-text);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: border-color 0.2s;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(60, 123, 153, 0.25);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field-checkbox .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 400;
  cursor: pointer;
}

.form-field-checkbox input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form-fallback {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.contact-form-fallback a {
  font-weight: 600;
}

@media (max-width: 768px) {
  .contact-form-box {
    padding: 1.75rem 1.25rem;
  }
}
