/*
Theme Name: Carolin Fülle
Theme URI: https://www.carolinfuelle.de
Author: breed.design GmbH
Author URI: https://breed.design
Description: Maßgeschneidertes One-Page-Theme für Carolin Fülle – Konzeption & Text. Editorial Onepager mit Petrol- und Akzent-Rot-Palette. Sämtliche Inhalte (Texte, Agenturen, Vita, Kontaktdaten, Menü) sind über den Block-Editor, Custom Post Types und den Customizer pflegbar – ohne Code. Kontaktformular ohne Plugin, lokale Schriften, DSGVO-konform.
Version: 1.0.0
Requires at least: 6.4
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: carolin-fuelle
Tags: one-page, editorial, custom-colors, custom-menu, block-patterns, translation-ready
*/

/* ────────────────────────────────────────────────────────────
   carolin fülle – Konzeption & Text · Website
   Editorial Onepager · Petrol & knalliges Rot
   ──────────────────────────────────────────────────────────── */

/* ───────────── LOCAL FONTS (Fraunces & Manrope, OFL) ───────────── */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/Fraunces-VF.ttf') format('truetype-variations'),
       url('assets/fonts/Fraunces-VF.ttf') format('truetype');
  font-variation-settings: "opsz" 14, "SOFT" 50;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/Fraunces-Italic-VF.ttf') format('truetype-variations'),
       url('assets/fonts/Fraunces-Italic-VF.ttf') format('truetype');
  font-variation-settings: "opsz" 14, "SOFT" 50;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('assets/fonts/Manrope-VF.ttf') format('truetype-variations'),
       url('assets/fonts/Manrope-VF.ttf') format('truetype');
}

:root {
  /* Petrol – etwas mehr blau, weniger grün als die ursprüngliche Farbe */
  --petrol:        #155566;
  --petrol-deep:   #0E3D4B;
  --petrol-mid:    #2C7286;
  --petrol-soft:   #C8D7DC;
  --petrol-veil:   rgba(21, 85, 102, 0.08);

  /* Papier & Tinte */
  --paper:         #FBF8F2;
  --paper-warm:    #F4EFE5;
  --ink:           #14272E;
  --ink-mute:      #5A6E76;

  /* Akzent: knalliges Rot */
  --red:           #E63946;
  --red-deep:      #C42835;

  /* Typo */
  --serif:    'Fraunces', 'Times New Roman', Georgia, serif;
  --sans:     'Manrope', system-ui, -apple-system, sans-serif;

  /* Layout */
  --page-pad-x:    clamp(24px, 5vw, 80px);
  --max-w:         1320px;
  --rail:          1px solid rgba(20, 39, 46, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: clamp(15.5px, 1vw + 0.5rem, 18px);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(21,85,102,0.06), transparent 60%),
    radial-gradient(ellipse 50% 35% at 0% 100%, rgba(230,57,70,0.04), transparent 60%);
}

/* Subtle paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' /%3E%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.15 0 0 0 0 0.18 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  opacity: .35;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}
body > * { position: relative; z-index: 2; }

::selection { background: var(--red); color: var(--paper); }

a { color: inherit; text-decoration: none; }

/* Skip link (a11y) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--petrol-deep);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ───────────── TYPOGRAPHY ───────────── */
.serif      { font-family: var(--serif); font-feature-settings: "ss01"; }
.italic     { font-style: italic; }
.caps       { text-transform: uppercase; letter-spacing: .22em; }
.caps-tight { text-transform: uppercase; letter-spacing: .14em; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -0.02em; color: var(--petrol-deep); }
h1 { font-size: clamp(48px, 8.5vw, 132px); font-variation-settings: "opsz" 144, "SOFT" 50; }
h2 { font-size: clamp(38px, 5.5vw, 78px); font-variation-settings: "opsz" 144, "SOFT" 60; font-style: italic; font-weight: 300; }
h2 em { font-style: italic; font-weight: 300; color: var(--red); font-variation-settings: "opsz" 144, "SOFT" 100; }
h3 { font-size: clamp(20px, 2vw, 26px); font-variation-settings: "opsz" 24, "SOFT" 70; letter-spacing: 0; }

p  { max-width: 60ch; }
p + p { margin-top: 1em; }

.lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.28;
  color: var(--petrol);
  font-variation-settings: "opsz" 100, "SOFT" 80;
  max-width: 28ch;
  letter-spacing: -0.01em;
}

.amp,
.has-akzent-rot-color { color: var(--red); font-style: italic; font-weight: 400; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .32em;
  color: var(--petrol);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--red);
}

.section-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  color: var(--petrol-mid);
  font-variation-settings: "opsz" 14;
  letter-spacing: 0;
}

/* ───────────── LAYOUT ───────────── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--page-pad-x);
  padding-right: var(--page-pad-x);
  position: relative;
  isolation: isolate;
}

section.cf-section {
  padding: clamp(80px, 11vw, 160px) 0;
  position: relative;
}
section.cf-section + section.cf-section { border-top: var(--rail); }

/* ───────────── NAV ───────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--petrol);
  transition: box-shadow .3s;
}
.nav.scrolled {
  box-shadow: 0 6px 24px rgba(14, 39, 75, 0.20);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px var(--page-pad-x);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #ffffff;
}
.nav-logo svg { height: 24px; width: auto; display: block; }
.nav-links {
  display: flex; gap: clamp(16px, 1.8vw, 30px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(251, 248, 242, 0.82);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  transition: color .25s;
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--paper); outline: none; }
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--red);
  transition: width .35s cubic-bezier(.2,.8,.2,1);
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after { width: 100%; }

/* Mobile-Toggle (Hamburger) */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 10px;
  cursor: pointer;
  color: var(--paper);
  margin: -10px;
}
.nav-toggle:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: transform .3s, opacity .25s;
}
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--petrol);
    padding: 20px var(--page-pad-x) 28px;
    gap: 18px;
    box-shadow: 0 12px 32px rgba(14, 39, 75, 0.30);
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a { font-size: 14px; padding: 8px 0; }
  .nav-links a::after { display: none; }

  /* Gestaffelter Slide-in + Fade-in der Menüpunkte (analog breed.design) */
  .nav.is-open .nav-links li {
    animation: cf-menu-item-in .55s cubic-bezier(.2, .8, .2, 1) both;
  }
  .nav.is-open .nav-links li:nth-child(1) { animation-delay: .04s; }
  .nav.is-open .nav-links li:nth-child(2) { animation-delay: .09s; }
  .nav.is-open .nav-links li:nth-child(3) { animation-delay: .14s; }
  .nav.is-open .nav-links li:nth-child(4) { animation-delay: .19s; }
  .nav.is-open .nav-links li:nth-child(5) { animation-delay: .24s; }
  .nav.is-open .nav-links li:nth-child(6) { animation-delay: .29s; }
  .nav.is-open .nav-links li:nth-child(7) { animation-delay: .34s; }
  .nav.is-open .nav-links li:nth-child(8) { animation-delay: .39s; }
}

@keyframes cf-menu-item-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@media (max-width: 520px) {
  .nav-logo svg { height: 21px; }
}

/* ───────────── HERO ───────────── */
.hero {
  padding: clamp(80px, 14vw, 180px) 0 clamp(60px, 9vw, 120px);
  position: relative;
  background: var(--petrol);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 80px);
}

.hero-logo {
  text-align: center;
  margin: 0 auto;
}
.hero-logo svg,
.hero-logo img {
  display: block;
  margin: 0 auto;
  width: clamp(300px, 46vw, 540px);
  height: auto;
}

/* ───────────── SECTION HEADERS ───────────── */
.section-head {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: clamp(48px, 6vw, 80px);
  align-items: start;
}
.section-head .num-col {
  position: sticky; top: 100px;
}
.section-head .num-col .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 1.7vw, 24px);
  color: var(--red);
  font-variation-settings: "opsz" 24, "SOFT" 80;
  letter-spacing: 0;
  display: block;
}

.section-head .title-col h2 {
  margin-bottom: 16px;
  margin-top: 18px;
}
.section-head .title-col .lead {
  margin-top: 24px;
}

/* ───────────── BODY CONTENT ───────────── */
.content-grid {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: clamp(24px, 4vw, 48px);
}
.content-grid > .spacer { display: block; }
.body-text {
  max-width: 80ch;
  font-size: clamp(15.5px, 1.05vw, 17.5px);
  line-height: 1.75;
  color: var(--ink);
}
.body-text p { max-width: none; }
.body-text p + p { margin-top: 1.1em; }
.body-text strong { font-weight: 600; }
.body-text em { font-family: var(--serif); color: var(--petrol-deep); }

/* Automatisches Fließtext-Styling für direkt im Inhaltsbereich liegende Absätze
   (z. B. ein neu eingefügter Absatz, der nicht im .body-text-Wrapper sitzt).
   Greift NUR im content-grid und ausschließlich für die rechte Spalte ohne
   eigene Wrapper-Klasse — Sektionen wie Vita, Kontakt, Agentur-Intro etc.
   bleiben unangetastet, weil sie nicht .content-grid verwenden. */
.cf-section .content-grid > div:not(.spacer):not(.body-text) > p,
.cf-section .content-grid > div:not(.spacer):not(.body-text) > .wp-block-paragraph {
  max-width: 80ch;
  font-size: clamp(15.5px, 1.05vw, 17.5px);
  line-height: 1.75;
  color: var(--ink);
}
.cf-section .content-grid > div:not(.spacer):not(.body-text) > p + p,
.cf-section .content-grid > div:not(.spacer):not(.body-text) > .wp-block-paragraph + .wp-block-paragraph {
  margin-top: 1.1em;
}
.cf-section .content-grid > div:not(.spacer):not(.body-text) > p strong,
.cf-section .content-grid > div:not(.spacer):not(.body-text) > .wp-block-paragraph strong { font-weight: 600; }
.cf-section .content-grid > div:not(.spacer):not(.body-text) > p em,
.cf-section .content-grid > div:not(.spacer):not(.body-text) > .wp-block-paragraph em { font-family: var(--serif); color: var(--petrol-deep); }

/* ───────────── SERVICE GRIDS ───────────── */
.services {
  margin-top: clamp(64px, 8vw, 120px);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: clamp(24px, 4vw, 48px);
}
.services-intro {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.35;
  color: var(--petrol-deep);
  margin-bottom: clamp(40px, 5vw, 56px);
  font-variation-settings: "opsz" 36, "SOFT" 70;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.svc-col {
  border-top: 1.5px solid var(--petrol-deep);
  padding-top: 22px;
  position: relative;
}
.svc-col h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 1.6vw, 26px);
  color: var(--petrol-deep);
  margin-bottom: 18px;
  font-variation-settings: "opsz" 36, "SOFT" 80;
}
.svc-col h3 .amp { color: var(--red); font-style: italic; padding: 0 .05em; }
.svc-col p.svc-sub {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-mute);
  font-size: 13.5px;
  margin: -12px 0 16px;
}
.svc-col ul {
  list-style: none;
  display: flex; flex-direction: column; gap: 10px;
  margin: 0; padding: 0;
}
.svc-col li {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
  padding-left: 18px;
  position: relative;
  list-style: none;
}
.svc-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
}

/* ───────────── KUNDEN / CLIENTS ───────────── */
.kunden-block {
  margin-top: clamp(64px, 8vw, 96px);
}
/* Wenn ein Absatz/anderes Element direkt davor steht, deutlich enger setzen */
* + .kunden-block { margin-top: clamp(20px, 2.5vw, 32px); }
.kunden-block h3 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--petrol);
  margin-bottom: 32px;
  display: flex; align-items: center; gap: 14px;
}
.kunden-block h3::before {
  content: "";
  width: 24px; height: 1.5px;
  background: var(--red);
}

/* ── Agentur-Tabs ── */
.agency-intro {
  font-family: var(--serif);
  font-style: italic;
  color: var(--petrol);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.5;
  margin-bottom: clamp(28px, 3.5vw, 40px);
  max-width: 64ch;
}
.agency-intro p { margin: 0 0 .6em 0; max-width: none; }
.agency-intro p:last-child { margin-bottom: 0; }
.agency-tabs {
  display: flex;
  gap: clamp(10px, 1.6vw, 20px);
  margin-bottom: 0;
  flex-wrap: wrap;
}
.agency-tab {
  flex: 1 1 0;
  min-width: 170px;
  min-height: 140px;
  padding: 28px 22px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0.34;
  transition: opacity .3s, background .3s;
  font-family: inherit;
  color: var(--petrol-deep);
}
.agency-tab:hover,
.agency-tab:focus-visible { opacity: 0.72; outline: none; }
.agency-tab[aria-selected="true"] {
  opacity: 1;
  background: #ffffff;
}
.agency-tab:focus-visible { box-shadow: inset 0 0 0 2px var(--red); }
.agency-tab svg,
.agency-tab img { max-width: 100%; height: auto; display: block; }
.agency-tab.is-wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--petrol-deep);
  font-variation-settings: "opsz" 36, "SOFT" 60;
  letter-spacing: -0.01em;
}
.agency-tab .tab-logo-wrap {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
.agency-tab .tab-logo-wrap svg,
.agency-tab .tab-logo-wrap img {
  width: auto;
  max-width: clamp(120px, 18vw, 220px);
  max-height: 88px;
  object-fit: contain;
}
.agency-panel {
  /* Gleicher Hintergrund wie der aktive Tab – visuell verbunden. */
  background: #ffffff;
  padding: clamp(28px, 4vw, 48px);
}
.agency-panel[hidden] { display: none; }
.agency-empty {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-mute);
  font-size: clamp(16px, 1.4vw, 20px);
  padding: 10px 0;
}

.kunden-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 2.5vw, 36px) clamp(24px, 3.5vw, 56px);
  margin: 4px 0 0;
  list-style: none;
  padding: 0;
}
.kunden-list .kunde { flex: 0 0 auto; min-width: 200px; text-align: center; }
.kunden-list .kunde {
  padding: 14px 4px;
  text-align: left;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--petrol-deep);
}

/* Kunden mit Logo (Beitragsbild im CPT „Kunde") */
.kunden-list .kunde.has-logo {
  padding: 10px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
}
.kunden-list .kunde-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  max-width: 100%;
  height: 84px;
}
.kunden-list .kunde-logo svg,
.kunden-list .kunde-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin: 0 auto;
  /* Skalierungs-Hook für Einzel-Logos via CSS Custom Property */
  transform: scale(var(--cf-logo-scale, 1));
  transform-origin: center;
}

/* ─────── Einzel-Logo-Tuning via Slug-Klasse ─────────────────────────
   Jedes Kunde-CPT bekommt eine Klasse "kunde--{slug}" am <li>.
   Damit lassen sich einzelne Marken bei Bedarf größer oder kleiner skalieren,
   ohne Theme-Code anzufassen. Beispiele (kannst du gern anpassen): */
.kunden-list .kunde--zehnder     { --cf-logo-scale: 1.35; }
.kunden-list .kunde--ewk         { --cf-logo-scale: 1.30; }
.kunden-list .kunde--fsb         { --cf-logo-scale: 1.9; }
.kunden-list .kunde--eltex       { --cf-logo-scale: 1.25; }
.kunden-list .kunde--sparkasse   { --cf-logo-scale: 1.20; }
.kunden-list .kunde--spitznagel  { --cf-logo-scale: 1.20; }
.kunden-list .kunde--alcon       { --cf-logo-scale: 0.7; }
.kunden-list .kunde--welte       { --cf-logo-scale: 0.8; }
.kunden-list .kunde--knf         { --cf-logo-scale: 0.8; }

/* Eigene Variante der breed-card im Agentur-Tab: kompakterer Margin,
   Text darf voll ausreizen, damit längere Sätze nicht zweizeilig brechen. */
.agency-card { margin-top: clamp(32px, 4vw, 56px); }
.agency-card .breed-card-text { max-width: none; flex: 1 1 auto; }

/* ───────────── VITA — Portrait ───────────── */
/* Image-Block mit zusätzlicher CSS-Klasse "vita-portrait" wird kreisförmig
   zugeschnitten und – wenn er in der title-col der Sektion „Vita" steht –
   automatisch rechts neben die Headline platziert. */
.vita-portrait,
figure.vita-portrait {
  max-width: 240px;
  margin: 0;
}
.vita-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
/* Größenvarianten */
.vita-portrait.is-small  { max-width: 180px; }
.vita-portrait.is-large  { max-width: 300px; }

/* Layout: Portrait rechts neben der H2 (Eyebrow bleibt darüber alleine) */
#vita .title-col:has(.vita-portrait) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(32px, 5vw, 72px);
  row-gap: 0;
}
#vita .title-col:has(.vita-portrait) > .eyebrow {
  grid-column: 1;
  grid-row: 1;
}
#vita .title-col:has(.vita-portrait) > h2,
#vita .title-col:has(.vita-portrait) > .wp-block-heading {
  grid-column: 1;
  grid-row: 2;
  margin-top: 16px;
}
#vita .title-col:has(.vita-portrait) > .vita-portrait,
#vita .title-col:has(.vita-portrait) > figure.vita-portrait {
  grid-column: 2;
  grid-row: 2;            /* nur neben der H2, nicht neben dem Eyebrow */
  align-self: center;
  margin: 0;
}

/* Mobile: stapeln statt nebeneinander */
@media (max-width: 760px) {
  #vita .title-col:has(.vita-portrait) {
    display: block;
  }
  #vita .title-col:has(.vita-portrait) > .vita-portrait,
  #vita .title-col:has(.vita-portrait) > figure.vita-portrait {
    margin-top: clamp(24px, 4vw, 40px);
    max-width: 220px;
  }
}

/* ───────────── VITA ───────────── */
.vita-list {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: clamp(24px, 4vw, 48px);
}
.vita-entries {
  display: flex; flex-direction: column;
  border-top: var(--rail);
  list-style: none;
  margin: 0;
  padding: 0;
}
.vita-entry {
  display: grid;
  grid-template-columns: minmax(120px, 170px) 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: var(--rail);
  align-items: baseline;
  list-style: none;
}
.vita-year {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(16px, 1.3vw, 20px);
  color: var(--red);
  font-variation-settings: "opsz" 24, "SOFT" 80;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
}
.vita-text {
  font-size: clamp(15px, 1vw, 17px);
  line-height: 1.65;
  color: var(--ink);
  max-width: 60ch;
}
.vita-text p { max-width: none; }
.vita-text p + p { margin-top: .8em; }
.vita-text strong { font-weight: 600; }
.vita-text em { font-family: var(--serif); color: var(--petrol-deep); }

/* ───────────── KONTAKT ───────────── */
.kontakt-grid {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.kontakt-info {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--petrol-deep);
  font-variation-settings: "opsz" 36, "SOFT" 70;
}
.kontakt-info .label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--petrol);
  display: block;
  margin-bottom: 6px;
}
.kontakt-info > div + div { margin-top: 28px; }
.kontakt-info a:hover { color: var(--red); }
.kontakt-info .amp { color: var(--paper); font-style: italic; }

/* form */
.kontakt-form .form-prompt {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.25;
  color: var(--petrol-deep);
  margin-bottom: 28px;
  max-width: 18ch;
  font-variation-settings: "opsz" 36, "SOFT" 80;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.form-field { position: relative; }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 0 12px;
  border: none;
  border-bottom: 1px solid rgba(20, 39, 46, 0.25);
  background: transparent;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color .25s;
  resize: vertical;
  border-radius: 0;
}
.form-field textarea { min-height: 90px; padding-top: 18px; }
.form-field input:focus,
.form-field textarea:focus { border-bottom-color: var(--red); }
.form-field label {
  position: absolute;
  top: 14px; left: 0;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--ink-mute);
  pointer-events: none;
  transition: all .25s cubic-bezier(.2,.8,.2,1);
}
.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label {
  top: -2px;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--petrol);
  font-weight: 600;
}

/* Honeypot (versteckt) */
.form-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-checkbox {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 18px 0 24px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-mute);
  cursor: pointer;
}
.form-checkbox input { margin-top: 3px; accent-color: var(--red); }
.form-checkbox a { color: var(--petrol); border-bottom: 1px solid var(--petrol-soft); }

.btn-submit {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 28px;
  background: var(--petrol-deep);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background .3s, transform .3s;
}
.btn-submit:hover,
.btn-submit:focus-visible { background: var(--red); transform: translateX(4px); outline: none; }
.btn-submit svg { transition: transform .3s; }
.btn-submit:hover svg,
.btn-submit:focus-visible svg { transform: translateX(4px); }

.form-note {
  font-size: 11px;
  color: var(--ink-mute);
  margin-top: 14px;
  letter-spacing: .04em;
}

.kontakt-form { scroll-margin-top: 96px; }
.form-message {
  margin: 12px 0 20px;
  padding: 16px 20px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  scroll-margin-top: 96px;
}
.form-message.is-success {
  background: rgba(251, 248, 242, 0.16);
  color: var(--paper);
  border-left: 3px solid var(--paper);
}
.form-message.is-error {
  background: rgba(230, 57, 70, 0.14);
  color: var(--paper);
  border-left: 3px solid var(--red);
}
.form-field.has-error input,
.form-field.has-error textarea { border-bottom-color: var(--red); }

/* ───────────── BREED LINK CARD ───────────── */
.breed-card {
  margin-top: clamp(48px, 6vw, 72px);
  padding: clamp(28px, 4vw, 44px);
  background: var(--petrol);
  color: var(--paper);
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.breed-card-text {
  font-family: var(--serif);
  font-size: clamp(18px, 1.7vw, 22px);
  font-style: italic;
  font-variation-settings: "opsz" 36, "SOFT" 80;
  max-width: 30ch;
  color: var(--paper);
}
/* Button-Variante des Links — analog zu .btn-submit im Kontaktformular */
.breed-card a.breed-link {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 28px;
  background: var(--petrol-deep);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background .3s, transform .3s;
}
.breed-card a.breed-link svg { transition: transform .3s; }
.breed-card a.breed-link:hover,
.breed-card a.breed-link:focus-visible {
  background: var(--red);
  color: var(--paper);
  transform: translateX(4px);
  outline: none;
}
.breed-card a.breed-link:hover svg,
.breed-card a.breed-link:focus-visible svg { transform: translateX(4px); }

/* ───────────── INVERTED (PETROL) SECTION ───────────── */
.section-invert {
  background: var(--petrol);
  border-top: none !important;
}
.section-invert + .cf-section { border-top: none; }
.section-invert .eyebrow { color: rgba(251, 248, 242, 0.72); }
.section-invert h2 { color: var(--paper); }
.section-invert h2 em { color: var(--paper); }
.section-invert .body-text { color: rgba(251, 248, 242, 0.90); }
.section-invert .body-text strong { color: var(--paper); }
.section-invert .body-text em { color: var(--paper); }
.section-invert .services-intro { color: var(--paper); }
.section-invert .svc-col { border-top-color: rgba(251, 248, 242, 0.42); }
.section-invert .svc-col h3 { color: var(--paper); }
.section-invert .svc-col li { color: rgba(251, 248, 242, 0.85); }
.section-invert .big-amp { color: rgba(251, 248, 242, 0.07); }
.section-invert .breed-card { background: var(--paper); }
.section-invert .breed-card-text { color: var(--petrol-deep); }
.section-invert .breed-card a.breed-link { color: var(--petrol-deep); }
.section-invert .breed-card a.breed-link:hover { color: var(--red); }
.section-invert .vita-entries { border-top-color: rgba(251, 248, 242, 0.20); }
.section-invert .vita-entry { border-bottom-color: rgba(251, 248, 242, 0.20); }
.section-invert .vita-text { color: rgba(251, 248, 242, 0.88); }
.section-invert .vita-text strong { color: var(--paper); }
.section-invert .vita-text em { color: var(--paper) !important; }
.section-invert .section-head .num-col .num { color: rgba(251, 248, 242, 0.55); }
.section-invert .kontakt-info { color: rgba(251, 248, 242, 0.92); }
.section-invert .kontakt-info .label { color: rgba(251, 248, 242, 0.62); }
.section-invert .kontakt-info a:hover { color: var(--paper); }
.section-invert .form-prompt { color: var(--paper); }
.section-invert .form-prompt .amp { color: var(--paper); }
.section-invert .form-field input,
.section-invert .form-field textarea {
  color: var(--paper);
  border-bottom-color: rgba(251, 248, 242, 0.32);
}
.section-invert .form-field input:focus,
.section-invert .form-field textarea:focus { border-bottom-color: var(--paper); }
.section-invert .form-field label { color: rgba(251, 248, 242, 0.58); }
.section-invert .form-field input:focus + label,
.section-invert .form-field input:not(:placeholder-shown) + label,
.section-invert .form-field textarea:focus + label,
.section-invert .form-field textarea:not(:placeholder-shown) + label { color: rgba(251, 248, 242, 0.85); }
.section-invert .form-checkbox { color: rgba(251, 248, 242, 0.75); }
.section-invert .form-checkbox input { accent-color: var(--paper); }
.section-invert .form-checkbox a { color: var(--paper); border-bottom-color: rgba(251, 248, 242, 0.4); }
.section-invert .btn-submit:hover,
.section-invert .btn-submit:focus-visible { background: var(--paper); color: var(--petrol-deep); }
.section-invert .form-note { color: rgba(251, 248, 242, 0.55); }

/* ───────────── BIG AMPERSAND BACKGROUND DECOR ───────────── */
.big-amp {
  position: absolute;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--petrol-soft);
  pointer-events: none;
  user-select: none;
  z-index: -1;
  opacity: .55;
  line-height: 0.85;
}
.big-amp.amp-tl { top: clamp(40px, 5vw, 80px); left: clamp(8px, 2vw, 40px); font-size: clamp(180px, 22vw, 380px); }
.big-amp.amp-br { bottom: clamp(40px, 5vw, 80px); right: clamp(8px, 2vw, 40px); font-size: clamp(160px, 20vw, 340px); }

/* ───────────── FOOTER ───────────── */
.site-footer {
  background: var(--petrol-deep);
  color: rgba(251, 248, 242, 0.75);
  padding: clamp(48px, 6vw, 72px) 0 32px;
  margin-top: 0;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--page-pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
}
.footer-logo { color: var(--paper); }
.footer-logo svg,
.footer-logo img { height: 26px; width: auto; display: block; }
.footer-links {
  display: flex; gap: 32px;
  justify-content: flex-end;
  list-style: none;
  margin: 0; padding: 0;
}
.footer-links a {
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(251, 248, 242, 0.7);
  transition: color .25s;
}
.footer-links a:hover,
.footer-links a:focus-visible { color: var(--red); outline: none; }
.footer-bottom {
  max-width: var(--max-w);
  margin: 40px auto 0;
  padding: 24px var(--page-pad-x) 0;
  border-top: 1px solid rgba(251, 248, 242, 0.12);
  display: flex; justify-content: space-between;
  font-size: 11px;
  letter-spacing: .14em;
  color: rgba(251, 248, 242, 0.45);
  flex-wrap: wrap;
  gap: 12px;
}

/* ───────────── LEGAL PAGES ───────────── */
.legal-page {
  padding: clamp(80px, 10vw, 140px) 0 clamp(80px, 10vw, 140px);
}
.legal-page .wrap { max-width: 820px; }
.legal-page h1 {
  font-size: clamp(40px, 6vw, 72px);
  margin-bottom: clamp(32px, 4vw, 48px);
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 70;
}
.legal-page h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  margin-top: clamp(32px, 4vw, 56px);
  margin-bottom: 16px;
  font-variation-settings: "opsz" 36, "SOFT" 70;
}
.legal-page h3 {
  font-size: clamp(18px, 1.6vw, 22px);
  margin-top: 24px;
  margin-bottom: 8px;
}
.legal-page p,
.legal-page ul,
.legal-page ol { max-width: 65ch; margin-bottom: 1em; }
.legal-page a { color: var(--petrol); border-bottom: 1px solid var(--petrol-soft); }
.legal-page a:hover { color: var(--red); border-bottom-color: var(--red); }

/* Aufzählungen: rote Punkte, links bündig — analog zu .svc-col im Hauptlayout */
.legal-page ul {
  list-style: none;
  padding-left: 0;
}
.legal-page ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
  line-height: 1.55;
  list-style: none;
}
.legal-page ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
}
.legal-page ul ul {
  margin-top: 6px;
  margin-bottom: 6px;
}
.legal-page ul ul li::before { background: var(--petrol-mid); }
.legal-page ol {
  list-style: decimal;
  padding-left: 1.4em;
}
.legal-page ol li {
  margin-bottom: 6px;
  line-height: 1.55;
  padding-left: 4px;
}
.legal-page ol li::marker { color: var(--red); }

/* ───────────── 404 ───────────── */
.error-404 {
  padding: clamp(120px, 18vw, 220px) 0;
  text-align: center;
}
.error-404 .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(96px, 18vw, 200px);
  color: var(--red);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  line-height: 1;
}
.error-404 .lead { margin: 24px auto; }
.error-404 .back-link {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 32px;
  padding: 14px 24px;
  background: var(--petrol-deep);
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
}
.error-404 .back-link:hover { background: var(--red); }

/* ───────────── REVEAL ANIMATIONS ───────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-1 { transition-delay: .05s; }
.reveal-2 { transition-delay: .15s; }
.reveal-3 { transition-delay: .25s; }
.reveal-4 { transition-delay: .35s; }

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

/* ───────────── RESPONSIVE ───────────── */
@media (max-width: 900px) {
  .section-head, .content-grid, .services, .vita-list, .kontakt-grid {
    grid-template-columns: 1fr;
  }
  .section-head .num-col { position: static; display: flex; gap: 16px; align-items: baseline; }
  .services-grid { grid-template-columns: 1fr; gap: 36px; }
  .agency-tab { min-width: 0; flex-basis: 30%; }
  .kunden-list { grid-template-columns: 1fr 1fr; }
  .vita-entry { grid-template-columns: 1fr; gap: 8px; }
  .footer-inner { grid-template-columns: 1fr; gap: 16px; }
  .footer-links { justify-content: flex-start; }
  .form-row { grid-template-columns: 1fr; }
}

/* ───────────── BLOCK-EDITOR COMPAT ───────────── */
/* Damit Core-Blocks innerhalb der Sektionen kein doppeltes Margin erzeugen */
.cf-section .wp-block-columns { margin-bottom: 0; }
.cf-section .wp-block-group { margin: 0; }
.cf-section .wp-block-heading + .wp-block-paragraph { margin-top: 16px; }
