/*
Theme Name:  Poemsl Erbrecht
Description: Massgeschneidertes Theme fuer die Kanzlei Yvonne Poemsl, Ludwigsburg.
             Klassisches Theme mit statischen Seitentemplates, ohne externe Abhaengigkeiten.
             Schriften werden lokal ausgeliefert, es werden keine Daten an Dritte uebermittelt.
Author:      Benjamin Lindner
Version:     1.0.0
Requires at least: 6.5
Tested up to:      7.0
Requires PHP:      8.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: poemsl-erbrecht
*/

/* ---------------------------------------------------------------------------
   Schriften lokal eingebunden (DSGVO: keine Anfrage an Google-Server).
   Quelle: Google Fonts, Inter und Playfair Display, SIL Open Font License 1.1.
   Nur die tatsaechlich verwendeten Schnitte, Subsets latin und latin-ext.
   --------------------------------------------------------------------------- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/inter-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/inter-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/inter-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/inter-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/playfair-display-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/playfair-display-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/playfair-display-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/playfair-display-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/playfair-display-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/playfair-display-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Premium Palette - Light & Gold */
  --primary-color: #0f172a; /* Deep Navy - kept for text contrast */
  --primary-light: #52525b; /* Zinc 600 */
  --primary-dark: #000000;  
  
  --accent-color: #bfa15f;  /* Elegant Gold */
  --accent-hover: #a38848;
  
  --text-dark: #27272a;     /* Zinc 800 */
  --text-light: #52525b;    /* Zinc 600 */
  
  /* Backgrounds */
  --bg-light: #ffffff;      
  --bg-warm: #fdfcf8;       /* Very warm white/paper tone */
  --bg-neutral: #f4f4f5;    /* Zinc 100 */
  --bg-dark: #18181b;       /* Zinc 900 */
  
  --border-color: #e4e4e7;
  --border-gold: #d4c5a3;   /* Soft gold border for accents */
  
  /* Glassmorphism / Overlay */
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-blur: blur(8px);
  --glass-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* Softer shadow */

  /* Typography */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 5rem;     /* Increased for more breathing room */
  --spacing-xl: 8rem;
  
  /* Transitions */
  --transition-base: all 0.3s ease-in-out;
  
  /* Containers */
  --container-width: 1400px;
}

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

::selection {
  background: var(--accent-color);
  color: white;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  line-height: 1.7;
  background-color: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--primary-color);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 2rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

ul { list-style: none; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

/* Utils */
.text-center { text-align: center; }
.mb-lg { margin-bottom: var(--spacing-lg); }
.accent { color: var(--accent-color); font-weight: 500; }
.text-uppercase { text-transform: uppercase; }
.text-tracking-wide { letter-spacing: 0.1em; }
.bg-warm { background-color: var(--bg-warm); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition-base);
  font-family: var(--font-sans);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background-color: var(--accent-color);
  color: white;
  border: 1px solid var(--accent-color);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(180, 155, 87, 0.2);
}

/* Navbar */
.nav {
  position: absolute; /* Not fixed initially, or let's keep it relative/absolute style? The reference looks like it's part of the page flow or top. Let's make it static padding first. */
  position: relative; /* Changed from fixed for the "classic" feel top of page */
  z-index: 1000;
  padding: 2rem 0;
  background: white;
  border-bottom: 1px solid transparent; /* Prepare for sticky if needed */
}

/* If we want sticky, we might need JS to toggle class, but for this specific "intro" look, let's keep it simple at the top. */

.nav-container {
  display: flex;
  flex-direction: row; /* Classic Horizontal */
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: block;
  text-decoration: none;
  margin-bottom: 0; /* Remove bottom margin */
  flex-shrink: 0;
}

.logo img {
  width: 200px; /* Keep size */
  height: auto;
  display: block;
}

.nav-links {
  display: flex; 
  gap: 3rem; /* More spacing for horizontal */
  margin-top: 0;
  align-items: center;
}

.nav-links a {
  color: var(--accent-color); /* Gold links as per top reference? Or dark? Reference shows "Die Kanzlei" in Gold */
  font-weight: 400;
  font-family: var(--font-serif);
  font-size: 1rem;
  text-transform: none; /* Reference is proper case, not Uppercase? Image is blurry. "Die Kanzlei" looks Title Case. */
  letter-spacing: 0;
  position: relative;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a.is-current {
  color: var(--primary-color);
  border-bottom: 1px solid var(--accent-color);
  padding-bottom: 2px;
}

/* Hero Section */
.hero {
  position: relative;
  height: 85vh;
  min-height: 600px;
  display: flex;
  align-items: center; /* Center vertically specifically */
  justify-content: center;
  color: var(--text-dark);
  background: var(--bg-light);
  overflow: hidden;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* Add a subtle overlay to ensures text readability if image is too bright */
  filter: brightness(1.05); 
}

/* Helles Overlay von links nach transparent – sichert die Lesbarkeit des Hero-Textes */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(253, 252, 248, 0.76) 0%,
    rgba(253, 252, 248, 0.62) 30%,
    rgba(253, 252, 248, 0.45) 50%,
    rgba(253, 252, 248, 0.2) 70%,
    rgba(253, 252, 248, 0) 88%
  );
}

/* Subtle white gradient from bottom to blend */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,0));
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: flex-start; /* Left align container text */
  align-items: center;
}

/* New Clean Content Style - No rigid box, but soft backing for contrast */
.hero-content-clean {
  text-align: left;
  padding: 3rem;
  padding-left: 0;
  background: none;
  width: 100%;
  max-width: 800px; 
}

.hero-title {
  font-family: var(--font-serif);
  color: var(--primary-color);
  font-size: 4.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.hero-subtitle-long {
  font-family: var(--font-sans);
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 600px;
  margin: 0px 0px 2.5rem;
  font-weight: 400;
}

.hero-btn {
  padding: 1.2rem 3rem;
  font-size: 1rem;
  background-color: var(--accent-color); /* Gold normal */
  border-color: var(--accent-color);
  color: white;
}

.hero-btn:hover {
  background-color: var(--primary-color); /* Dark/Black hover */
  border-color: var(--primary-color);
  color: white;
}

/* Seitenkopf der Unterseiten – schlanke Variante des Hero */
.page-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-light);
  padding: 4rem 0;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(253, 252, 248, 0.9) 0%,
    rgba(253, 252, 248, 0.78) 35%,
    rgba(253, 252, 248, 0.5) 60%,
    rgba(253, 252, 248, 0.2) 78%,
    rgba(253, 252, 248, 0) 92%
  );
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
  z-index: 1;
}

.page-hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.page-hero-eyebrow {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.page-hero-title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.page-hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  margin: 0;
}

/* Zentrierte Einleitungstexte unter Abschnittsüberschriften */
.section-intro {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

/* Beruflicher Werdegang */
.cv {
  max-width: 900px;
  margin: 0 auto;
}

.cv-item {
  display: grid;
  /* 15rem hält auch "November 2016 bis April 2017" einzeilig */
  grid-template-columns: 15rem 1fr;
  gap: 0.5rem 3rem;
  align-items: baseline;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
}

.cv-item:last-child {
  border-bottom: 1px solid var(--border-color);
}

.cv-period {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--accent-color);
}

.cv-role {
  color: var(--text-dark);
  line-height: 1.6;
}

/* Fortbildungen */
.cpd {
  max-width: 900px;
  margin: 0 auto;
}

.cpd-group {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0 3rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-color);
}

.cpd-group:last-of-type {
  border-bottom: 1px solid var(--border-color);
}

.cpd-year {
  font-size: 2rem;
  font-weight: 400;
  color: var(--accent-color);
  margin: 0;
  line-height: 1;
}

.cpd-entries {
  display: grid;
  gap: 1rem;
}

.cpd-entries li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1.5rem;
  align-items: baseline;
}

.cpd-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Lehrgänge über mehrere Tage bzw. über den Jahreswechsel dürfen umbrechen */
.cpd-date-range {
  white-space: normal;
}

.cpd-topic {
  color: var(--text-dark);
  line-height: 1.55;
}

/* Abschließendes Kontaktband der Unterseiten */
.cta-band {
  background-color: var(--bg-neutral);
  padding: var(--spacing-lg) 0;
}

.cta-band h2 {
  margin-bottom: 1rem;
}

.cta-band .section-intro {
  margin-bottom: 2.5rem;
}

/* Trust Bar */
.trust-bar {
  padding: 3rem 0;
  background-color: white;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.trust-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  font-weight: 600;
}

.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem 5rem;
  flex-wrap: wrap;
}

.trust-logo-img {
  width: auto;
  max-width: 100%;
  display: block;
}

/* Höhen einzeln gesetzt: optischer Ausgleich der unterschiedlichen Logo-Proportionen */
.trust-logo-av {
  height: 58px;
}

.trust-logo-dvev {
  height: 34px;
}

/* Ausgangssituationen ("Sie möchten ...?") */
.situations {
  max-width: 900px;
  margin: 0 auto var(--spacing-lg);
  text-align: center;
}

.situations-list {
  /* Mehrspaltiger Fluss statt Grid: keine Lücken durch ungleich hohe Zeilen */
  columns: 2;
  column-gap: 3rem;
  text-align: left;
  padding: 2.5rem 3rem;
  background-color: var(--bg-warm);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
  margin-bottom: 3rem;
}

.situations-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-dark);
  break-inside: avoid;
}

.situations-list li:last-child {
  margin-bottom: 0;
}

.situations-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border: 1px solid var(--accent-color);
  transform: rotate(45deg);
}

.situations-lead {
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 auto;
}

/* Features/Services */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2rem 1rem;
  background: transparent;
  border: none;
  transition: var(--transition-base);
  text-align: center;
  position: relative;
  /* Karten unterschiedlicher Textlänge: "mehr erfahren" bündig am Kartenfuß */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  /* No shadow or border on hover for this clean style, maybe just icon color change */
}

.feature-icon {
  width: 64px;
  height: 64px;
  color: var(--accent-color);
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Make icons thinner */
}

.feature-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1px; /* Thinner stroke for elegance */
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-weight: 400;
}

.feature-card h3 {
  width: 100%;
}

.feature-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  width: 100%;
  /* Fließtext linksbündig – die Beschreibungen sind zu lang für Blocksatzmitte */
  text-align: left;
}

.feature-card .text-link {
  margin-top: auto;
}

.text-link {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  text-transform: lowercase;
  color: var(--accent-color);
  border-bottom: 1px solid var(--accent-color);
  padding-bottom: 2px;
  transition: var(--transition-base);
}

.text-link:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* About & Contact */
.about-section, .contact-section { background-color: var(--bg-neutral); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

/* Lawyer Profile Styling (NEW) */
.contact-grid.profile-grid {
  align-items: center;
}

.lawyer-image-wrapper {
  position: relative;
  /* Ohne Begrenzung wird das 3:4-Porträt in der 1400er Rasterspalte ~890px hoch */
  max-width: 460px;
}

.lawyer-image-frame {
  aspect-ratio: 3/4;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-neutral);
}

.lawyer-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-subtitle {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.profile-qualification-span {
  font-weight: 400;
  font-size: 0.7em;
  color: var(--text-light);
  display: block;
}

.profile-name {
  margin-bottom: 1.5rem;
}

.profile-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
}

.profile-claim {
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.profile-lead {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* FAQ */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.faq-item {
  padding: 2.5rem;
  background: white;
  border: 1px solid var(--border-color);
  transition: var(--transition-base);
}

.faq-item:hover { border-color: var(--accent-color); }
.faq-item h3 { font-size: 1.25rem; margin-bottom: 1rem; color: var(--primary-color); }
.faq-item p { margin: 0 0 1rem; font-size: 1rem; }
.faq-item p:last-child { margin-bottom: 0; }

/* News */
#aktuelles { background-color: white; }

/* Wenige Beitragskarten sollen bei voller Containerbreite nicht auseinandergezogen werden */
#aktuelles .features-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 420px));
  justify-content: center;
}

/* Ohne Icon beginnt die Karte mit dem Datum, der Titel braucht davon Abstand. */
#aktuelles .feature-card h3 {
  margin-top: 1rem;
}

#aktuelles small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
  font-weight: 600;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  /* 340px hält die Reihe bei drei Karten – sonst kippt sie bei 1400px Breite auf vier */
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: white;
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  /* Optional: Top gold border for a nice accent */
  border-top: 3px solid var(--accent-color); 
}

.stars {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
}

.testimonial-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.testimonial-text {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
  margin: 0;
}

/* Bürozeiten */
.opening-hours {
  border-collapse: collapse;
}

.opening-hours td {
  padding: 0.35rem 0;
  color: var(--text-light);
  vertical-align: top;
}

.opening-hours td:first-child {
  padding-right: 3rem;
  color: var(--text-dark);
  white-space: nowrap;
}

/* Map Placeholder */
/* Kartenausschnitt: statisches Bild, kein Nachladen von fremden Servern */
.map-placeholder {
  margin-top: 2rem;
  border: 1px solid var(--border-color);
  height: 200px;
  background: var(--bg-neutral);
  border-radius: 2px;
  overflow: hidden;
}

.map-link {
  display: block;
  width: 100%;
  height: 100%;
}

.map-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.map-credit {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--text-light);
}

.map-credit a {
  border-bottom: 1px solid currentColor;
}

/* ---------------------------------------------------------------------------
   Inhalte aus dem Editor (Impressum, Datenschutz, Kosten, Blogbeitraege)
   --------------------------------------------------------------------------- */
.entry-content {
  max-width: 800px;
  margin: 0 auto;
}

.entry-content--intro {
  text-align: left;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content h2 {
  font-size: 1.85rem;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
}

.entry-content h3 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.entry-content h4 {
  font-size: 1.1rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.entry-content a {
  color: var(--accent-color);
  border-bottom: 1px solid currentColor;
}

.entry-content a:hover {
  color: var(--primary-color);
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.5rem 1.5rem;
  color: var(--text-light);
}

.entry-content ul {
  list-style: disc;
}

.entry-content ol {
  list-style: decimal;
}

.entry-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.entry-content li::marker {
  color: var(--accent-color);
}

.entry-content blockquote {
  margin: 2rem 0;
  padding-left: 2rem;
  border-left: 3px solid var(--accent-color);
  font-style: italic;
}

.entry-content img,
.entry-content figure {
  max-width: 100%;
  height: auto;
}

.entry-content figcaption {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.entry-content th,
.entry-content td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}

.entry-content th {
  font-weight: 600;
  color: var(--text-dark);
}

/* ---------------------------------------------------------------------------
   Kontaktbox fuer den Editor

   Wird als Custom-HTML-Block eingesetzt (derzeit auf der Kostenseite). Die
   Klassen liegen bewusst hier im Theme, damit der Block selbst ohne
   Inline-Styles auskommt und spaetere Aenderungen an einer Stelle wirken.
   --------------------------------------------------------------------------- */
.contact-cta {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin: 3.5rem 0;
  padding: 2.5rem;
  background-color: var(--bg-warm);
  border-top: 3px solid var(--accent-color);
  border-bottom: 1px solid var(--border-color);
}

.contact-cta__avatar {
  flex-shrink: 0;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.contact-cta__body {
  min-width: 0;
}

.contact-cta__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--primary-color);
  margin: 0 0 0.75rem;
}

.contact-cta__text {
  margin: 0 0 1.5rem;
  color: var(--text-light);
}

ul.contact-cta__details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.contact-cta__details > li {
  margin: 0;
  list-style: none;
}

/* Die Zeile hebt sich als Kontaktangabe ab, ohne wie Fliesstext zu wirken. */
ul.contact-cta__details a {
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-gold);
}

ul.contact-cta__details a:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

@media (max-width: 640px) {
  .contact-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
  }

  ul.contact-cta__details {
    gap: 0.5rem;
    flex-direction: column;
  }
}

/* Blaetterung der Beitragsliste */
.pagination {
  margin-top: 4rem;
}

.pagination ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pagination a,
.pagination span {
  display: block;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-light);
  transition: var(--transition-base);
}

.pagination a:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.pagination .current {
  border-color: var(--accent-color);
  background-color: var(--accent-color);
  color: white;
}

/* Footer */
.footer {
  padding: 5rem 0 3rem;
  background: var(--bg-dark); /* Keep dark for contrast */
  color: white;
  font-size: 0.9rem;
  border-top: 3px solid var(--accent-color); /* Gold top border */
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.05); /* Very subtle */
  padding-bottom: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap; 
  gap: 2rem;
}

.footer-brand {
  max-width: 300px;
}
.footer-desc {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.6;
}

.footer-legal-col {
  text-align: right;
}
.footer-legal-heading {
  color: white;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.footer-legal-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.footer-link { color: rgba(255,255,255,0.6); transition: color 0.3s; }
.footer-link:hover { color: white; }
.footer-bottom { text-align: center; color: rgba(255,255,255,0.4); font-size: 0.8rem; }

/* Schmalere Viewports: Text nimmt anteilig mehr Breite ein, Verlauf reicht weiter nach rechts */
@media (max-width: 1200px) {
  .hero::before {
    background: linear-gradient(
      to right,
      rgba(253, 252, 248, 0.76) 0%,
      rgba(253, 252, 248, 0.66) 45%,
      rgba(253, 252, 248, 0.5) 65%,
      rgba(253, 252, 248, 0.25) 82%,
      rgba(253, 252, 248, 0) 95%
    );
  }
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  
  .nav-links { 
    flex-direction: column; 
    gap: 1.5rem; 
    margin-top: 2rem;
  }
  
  .hero-title { font-size: 2.5rem; }

  /* Mobil läuft der Text über die volle Breite – Overlay entsprechend flächiger */
  .hero::before {
    background: linear-gradient(
      to bottom,
      rgba(253, 252, 248, 0.76) 0%,
      rgba(253, 252, 248, 0.68) 60%,
      rgba(253, 252, 248, 0.76) 100%
    );
  }

  .situations-list {
    columns: 1;
    padding: 2rem 1.5rem;
  }

  .faq-item { padding: 1.75rem; }

  .cpd-group {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 0;
  }

  .cv-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .cpd-entries li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .page-hero { min-height: 260px; padding: 3rem 0; }

  .trust-logos { gap: 1.5rem; }
  .footer-top { flex-direction: column; text-align: center; gap: 2rem; }
  .footer-legal-col { text-align: center; }
  .footer-legal-links { align-items: center; }
}
