/* ============================================================
   Praxis Innenraum – Hanna Frydrych-Kernbauer
   frydrych.at Relaunch 2026
   ============================================================ */

:root {
  --paper: #f6f1e8;
  --paper-deep: #efe8da;
  --cream: #fbf8f2;
  --ink: #2b2420;
  --ink-soft: #544539;
  --terra: #b4532a;
  --terra-deep: #8f3e1f;
  --brown: #552b21;
  --sand: #e7ddcb;
  --blush: #f4e3d8;
  --line: rgba(85, 43, 33, 0.14);
  --shadow: 0 20px 60px -24px rgba(85, 43, 33, 0.28);
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Jost", "Avenir Next", sans-serif;
  --wrap: 78rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 10px;
  --header-h: 5.5rem;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 4.5rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a { color: var(--terra); text-decoration: none; }
a:hover { color: var(--terra-deep); }

h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.12; }
p { margin: 0; }
p + p { margin-top: 1em; }

strong { font-weight: 500; }

::selection { background: var(--terra); color: var(--cream); }

/* Grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.wrap--narrow { width: min(50rem, 100% - 2 * var(--gutter)); }

section { padding-block: clamp(4.5rem, 9vw, 8rem); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1001;
  background: var(--terra);
  color: #fff;
  padding: 0.7rem 1.2rem;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 1.1rem;
}

.display {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.display em,
h1 em, h2 em, h3 em, blockquote em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.08em;
  letter-spacing: 0;
}

h2.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  letter-spacing: 0.005em;
}
h2.section-title em { font-size: 1em; }

.title-rule {
  width: 3.2rem;
  height: 2px;
  background: var(--terra);
  border: 0;
  margin: 1.4rem 0 0;
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 38em;
}

.section-head { max-width: 46em; }
.section-head .lead { margin-top: 1.4rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.9rem;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.btn svg { width: 1.15em; height: 1.15em; transition: transform 0.3s ease; }
.btn:hover svg { transform: translateX(4px); }

.btn--primary { background: var(--terra); color: var(--cream); }
.btn--primary:hover { background: var(--terra-deep); color: var(--cream); }

.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--terra); color: var(--terra); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.45rem;
}
.link-arrow svg { width: 1.2em; height: 1.2em; color: var(--terra); transition: transform 0.3s ease; }
.link-arrow:hover { color: var(--terra); border-color: var(--terra); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, box-shadow 0.4s ease, height 0.4s ease, transform 0.4s ease;
}
.site-header.is-scrolled {
  height: 4.25rem;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden {
  transform: translateY(-100%);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(88rem, 100% - 2 * var(--gutter));
}
.brand img { height: 3.1rem; width: auto; transition: height 0.4s ease; }
.site-header.is-scrolled .brand img { height: 2.5rem; }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.4vw, 2.4rem);
}
.main-nav > a {
  position: relative;
  color: var(--ink);
  font-size: 0.98rem;
  letter-spacing: 0.05em;
  padding-block: 0.4rem;
}
.main-nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--terra);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}
.main-nav > a:hover::after,
.main-nav > a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}
.main-nav > a[aria-current="page"] { color: var(--terra); }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}
.lang-switch span, .lang-switch a { padding: 0.35rem 0.75rem; }
.lang-switch .lang-active { background: var(--brown); color: var(--cream); }
.lang-switch a {
  background: rgba(255, 255, 255, 0.3);
  color: var(--ink);
}
.lang-switch a:hover { color: var(--terra); background: rgba(255, 255, 255, 0.45); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.8rem;
  height: 2.8rem;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 26px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    background: var(--paper);
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
  }
  .main-nav > a { font-size: 1.5rem; font-family: var(--font-serif); }
  body.nav-open .main-nav { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ---------- Hero (Home) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + 2rem) 6rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-bg img,
.hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  transform-origin: center;
}
/* Standbild ist die unterste Ebene (immer vorhanden als Fallback);
   das Video liegt darüber und blendet per Opacity ein/aus. */
.hero-bg img { position: absolute; inset: 0; }
.hero-bg-video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
  pointer-events: none;
}
.hero-bg-video.is-visible { opacity: 1; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(246, 241, 232, 0.68) 0%,
    rgba(246, 241, 232, 0.52) 34%,
    rgba(246, 241, 232, 0.22) 58%,
    rgba(246, 241, 232, 0) 82%
  );
}
.hero-inner { max-width: 42rem; }
.hero .display {
  margin-top: 0.4rem;
  font-family: var(--font-serif);
}
.hero-rule {
  width: 3.4rem;
  height: 2px;
  background: var(--terra);
  border: 0;
  margin: 2rem 0;
}
.hero .lead { max-width: 30em; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem 2.4rem;
  margin-top: 2.6rem;
}
.hero-scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 3rem;
  background: linear-gradient(var(--terra), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem));
  overflow: hidden;
}
.page-hero .kicker-num {
  font-family: var(--font-serif);
  color: var(--terra);
  font-size: 1rem;
  letter-spacing: 0.2em;
}

/* ---------- Story split ---------- */
.story {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.story--flip .story-media { order: 2; }
.story-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.story-media img {
  width: 100%;
  height: 100%;
  min-height: 24rem;
  object-fit: cover;
}
.story-text h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.18;
}
.story-text .lead, .story-text > p { margin-top: 1.4rem; }
.story-text .link-arrow { margin-top: 2rem; }

/* vertical side label */
.side-label {
  position: absolute;
  right: calc(var(--gutter) * 0.4);
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--terra);
  opacity: 0.85;
}
.side-label::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 3rem;
  background: var(--terra);
  margin-bottom: 1.2rem;
}
@media (max-width: 1200px) { .side-label { display: none; } }

/* ---------- Quote ---------- */
.quote {
  position: relative;
  padding-block: clamp(5rem, 11vw, 9rem);
  text-align: center;
  overflow: hidden;
  /* Unter der Riss-Kante des Papierbildes scheint die Farbe der
     nachfolgenden Section durch (Modifier .quote--next-tint für tint). */
  background: var(--quote-next-bg, var(--paper));
}
.quote--next-tint { --quote-next-bg: var(--paper-deep); }
.quote::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../assets/images/paper.webp") center bottom / cover no-repeat;
  opacity: 0.55;
}
.quote .wrap { position: relative; }
.quote-mark {
  font-family: var(--font-serif);
  font-size: 10rem;
  line-height: 0.6;
  color: var(--terra);
  display: block;
  margin-bottom: 2.2rem;
}
.quote blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.3;
  max-width: 24em;
  margin-inline: auto;
}
.quote cite {
  display: block;
  margin-top: 2.4rem;
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.quote cite::before {
  content: "";
  display: block;
  width: 3rem;
  height: 1.5px;
  background: var(--terra);
  margin: 0 auto 1.6rem;
}

/* Zielsatz auf der Startseite: kein Zitatnachweis, sondern die eigentliche
   Kernaussage ("was Sie am Ende erreichen"). Bewusst als eigener, deutlich
   gewichtiger Absatz gestaltet statt als kleine cite-Fußnote. */
.quote-payoff {
  position: relative;
  margin: 2.8rem auto 0;
  padding-top: 2.2rem;
  max-width: 30em;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.42;
  color: var(--terra-deep);
}
.quote-payoff {
  --payoff-line-scale: 1;
}
.quote-payoff::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 3rem;
  height: 1.5px;
  background: var(--terra);
  opacity: 0.6;
  transform: translateX(-50%) scaleX(var(--payoff-line-scale));
  transform-origin: center;
}
.quote-waves {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
}
.quote-waves svg { position: absolute; width: 100%; height: auto; color: var(--terra); opacity: 0.25; }
.quote-waves svg:first-child { top: -1rem; }
.quote-waves svg:last-child { bottom: -1rem; }

/* ---------- Numbered service list ---------- */
.service-list {
  list-style: none;
  margin: 3.5rem 0 0;
  padding: 0;
  counter-reset: service;
  border-top: 1px solid var(--line);
}
.service-list li { border-bottom: 1px solid var(--line); }
.service-list a {
  display: flex;
  align-items: baseline;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(1.4rem, 2.6vw, 2.1rem) 0.5rem;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  font-weight: 500;
  transition: background 0.35s ease, padding-left 0.35s ease, color 0.35s ease;
}
.service-list a:hover {
  background: rgba(180, 83, 42, 0.05);
  padding-left: 1.4rem;
  color: var(--terra);
}
.service-list .num {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--terra);
}
.service-list .sl-arrow {
  margin-left: auto;
  align-self: center;
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  color: var(--terra);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.service-list a:hover .sl-arrow { opacity: 1; transform: translateX(0); }
@media (hover: none) { .service-list .sl-arrow { opacity: 0.6; transform: none; } }

/* ---------- Teaser cards ---------- */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
}
.teaser {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--ink);
  box-shadow: 0 10px 40px -20px rgba(85, 43, 33, 0.25);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}
.teaser:hover { transform: translateY(-8px); box-shadow: var(--shadow); color: var(--ink); }
.teaser-img { overflow: hidden; aspect-ratio: 4 / 3; }
.teaser-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.teaser:hover .teaser-img img { transform: scale(1.06); }
.teaser-body { padding: 1.8rem 1.8rem 2rem; display: flex; flex-direction: column; flex: 1; }
.teaser-body .eyebrow { margin-bottom: 0.6rem; font-size: 0.7rem; }
.teaser-body h3 { font-family: var(--font-serif); font-size: 1.5rem; }
.teaser-body p { margin-top: 0.8rem; color: var(--ink-soft); font-size: 0.98rem; flex: 1; }
.teaser-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.4rem;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--terra);
}
.teaser-link svg { width: 1.1em; height: 1.1em; transition: transform 0.3s ease; }
.teaser:hover .teaser-link svg { transform: translateX(5px); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--brown);
  color: var(--cream);
  text-align: center;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 90% at 20% 110%, rgba(180, 83, 42, 0.35), transparent 65%),
    radial-gradient(50% 80% at 85% -10%, rgba(244, 227, 216, 0.12), transparent 60%);
}
.cta-band .wrap { position: relative; }
.cta-band h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 500;
}
.cta-band h2 em { color: var(--blush); }
.cta-band p {
  margin: 1.4rem auto 0;
  max-width: 36em;
  color: rgba(251, 248, 242, 0.8);
}
.cta-band .cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1rem;
  margin-top: 2.4rem;
}
.cta-band .btn--ghost {
  border-color: rgba(251, 248, 242, 0.4);
  color: var(--cream);
}
.cta-band .btn--ghost:hover { border-color: var(--cream); color: var(--cream); }

/* ---------- Subnav (Sprungnavigation) ---------- */
.subnav {
  position: sticky;
  top: 4.25rem;
  z-index: 90;
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: blur(12px);
  border-block: 1px solid var(--line);
  transition: top 0.4s ease;
}
/* Die Hauptnavigation blendet beim Runterscrollen aus (site-header.is-hidden,
   js/main.js). Sobald sie weg ist, muss die Sprungnavigation an die
   Viewport-Oberkante nachrücken statt in der jetzt leeren Lücke zu hängen. */
body.header-is-hidden .subnav {
  top: 0;
}
.subnav .wrap {
  display: flex;
  gap: clamp(1.4rem, 3vw, 3rem);
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 1rem 0;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.subnav a .sn-num {
  font-size: 0.72rem;
  color: var(--terra);
  letter-spacing: 0.1em;
}
.subnav a:hover, .subnav a.is-active {
  color: var(--terra);
  border-bottom-color: var(--terra);
}

/* section counter kicker */
.sec-kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  color: var(--terra);
  margin-bottom: 1.2rem;
}
.sec-kicker::after { content: ""; height: 1px; width: 3rem; background: var(--terra); opacity: 0.5; }

/* ---------- Tinted section ---------- */
.section-tint { background: var(--paper-deep); }
.section-cream { background: var(--cream); }

/* ---------- Person hero (full-bleed portrait) ---------- */
.person-hero-full {
  position: relative;
  height: min(94svh, 58rem);
  min-height: 38rem;
  overflow: hidden;
}
.phf-media { position: absolute; inset: 0; }
.phf-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 22%;
}
.phf-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(246, 241, 232, 0.85) 0%, rgba(246, 241, 232, 0.35) 26%, rgba(246, 241, 232, 0) 48%),
    linear-gradient(180deg, rgba(246, 241, 232, 0.55) 0%, rgba(246, 241, 232, 0) 22%);
}
.phf-rail {
  position: absolute;
  left: clamp(0.9rem, 2vw, 2.2rem);
  top: 55%;
  transform: translateY(-50%);
  display: grid;
  gap: 1.2rem;
  z-index: 3;
}
.phf-rail a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}
.phf-rail a::before {
  content: "";
  width: 0;
  height: 1.5px;
  background: var(--terra);
  transition: width 0.3s ease;
}
.phf-rail a:hover,
.phf-rail a.is-active { color: var(--terra); }
.phf-rail a:hover::before,
.phf-rail a.is-active::before { width: 1.1rem; }
.phf-card {
  position: absolute;
  z-index: 2;
  left: max(calc(var(--gutter) + 2.6rem), calc((100% - var(--wrap)) / 2));
  bottom: clamp(2rem, 7vh, 4.5rem);
  max-width: 33rem;
  background: rgba(251, 248, 242, 0.94);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: clamp(1.9rem, 3.4vw, 3.2rem);
  box-shadow: var(--shadow);
}
.phf-card h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  font-weight: 500;
  color: var(--terra);
  line-height: 1.08;
}
.phf-card .role { margin-top: 1.3rem; font-size: 1.1rem; }
.phf-card .meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.2rem;
  font-size: 0.97rem;
  container-type: inline-size;
}
.phf-card .meta svg { width: 1.5em; height: 1.5em; color: var(--terra); flex: none; }
.phf-card .meta-lines {
  min-width: 0;
}
.phf-card .meta-sep {
  white-space: pre;
}
/* Misst die tatsächlich verfügbare Breite der Card (nicht den Viewport):
   Passt "Seit 2010 … Wien · geb. 1983 … Polen" nicht mehr in eine Zeile,
   wird es zweizeilig ohne Trennpunkt, Icon dabei etwas größer und oben
   ausgerichtet statt vertikal zentriert. */
@container (max-width: 27rem) {
  .phf-card .meta {
    align-items: flex-start;
  }
  .phf-card .meta svg {
    margin-top: 0.15em;
  }
  .phf-card .meta-lines {
    display: flex;
    flex-direction: column;
    gap: 0.15em;
  }
  .phf-card .meta-sep {
    display: none;
  }
}
.phf-card .meta-note {
  margin-top: 0.9rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
@media (max-width: 860px) {
  .person-hero-full { height: auto; min-height: 0; }
  .phf-media { position: relative; height: 56svh; }
  .phf-media img { object-position: 66% 20%; }
  .phf-rail { display: none; }
  .phf-card {
    position: relative;
    left: auto;
    bottom: auto;
    margin: -4.5rem 1rem 0;
    max-width: none;
  }
}

/* ---------- Approach cards ---------- */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.4rem, 2.6vw, 2.2rem);
  margin-top: 3.5rem;
}
.approach {
  grid-column: span 6;
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 44px -22px rgba(85, 43, 33, 0.3);
  display: flex;
  flex-direction: column;
}
.approach--wide { grid-column: span 12; flex-direction: row; align-items: stretch; }
.approach-img { aspect-ratio: 16 / 8.5; overflow: hidden; }
.approach--wide .approach-img { aspect-ratio: auto; flex: 0 0 38%; }
.approach-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.22,1,0.36,1); }
.approach:hover .approach-img img { transform: scale(1.05); }
.approach-body { padding: 1.8rem 2rem 2.1rem; }
.approach-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 0.8rem;
}
.approach-body h3 { font-family: var(--font-serif); font-size: 1.55rem; }
.approach-body p { margin-top: 0.9rem; color: var(--ink-soft); font-size: 0.99rem; }
.approach-body a { display: inline-block; margin-top: 1rem; font-size: 0.94rem; border-bottom: 1px solid currentColor; }
@media (max-width: 820px) {
  .approach, .approach--wide { grid-column: span 12; flex-direction: column; }
  .approach--wide .approach-img { aspect-ratio: 16 / 8.5; }
}

/* ---------- Callout ---------- */
.callout {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  background: var(--color-background-darker);
  border: 1px solid rgb(85 43 33 / 40%);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  margin-top: 3rem;
}

.callout > svg {
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  color: var(--terra);
  margin-top: 0.2rem;
}
.callout p { font-size: 1rem; }
.callout a { border-bottom: 1px solid currentColor; }

/* ---------- Lesbarkeit langer Texte ---------- */
/* Erster Absatz als Einstieg: größer, dunkler, mit Initial */
.focus-body > p:first-of-type,
.p-lead {
  font-size: 1.15rem;
  line-height: 1.68;
  color: var(--ink);
}
.focus-body > p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 3.3em;
  line-height: 0.78;
  float: left;
  padding: 0.09em 0.14em 0 0;
  color: var(--terra);
}
/* Herausgezogener Schlüsselsatz */
.pull {
  margin: 1.9rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--terra);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.45;
  color: var(--ink);
}
/* Gefettete Kernaussagen in gedämpften Absätzen bleiben dunkel */
.focus-body strong,
.term strong,
.p-lead strong { color: var(--ink); }

/* ---------- Focus blocks (Schwerpunkte) ---------- */
.focus-list { margin-top: 3.5rem; display: grid; gap: clamp(3rem, 6vw, 5rem); }
.focus-block {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.focus-marker { position: relative; }
.focus-marker .sticky { position: sticky; top: calc(var(--header-h) + 5rem); }
.focus-marker-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.focus-marker-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.focus-num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(4rem, 8vw, 6.5rem);
  line-height: 0.9;
  color: var(--terra);
}
.focus-marker h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-top: 1.4rem;
  max-width: 12em;
}
.focus-body p { color: var(--ink-soft); }
.focus-points {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.focus-points li {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  font-size: 0.99rem;
}
.focus-points li::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--terra);
  transform: translateY(-0.1em);
}
@media (max-width: 820px) {
  .focus-block { grid-template-columns: 1fr; gap: 1.6rem; }
  .focus-marker .sticky { position: static; }
}

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  position: relative;
  display: grid;
  gap: 2rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: var(--line);
}
.timeline li { position: relative; padding-left: 2.4rem; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--terra);
}
.tl-period {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terra);
}
.tl-title { font-weight: 400; font-size: 1.12rem; margin-top: 0.3rem; }
.tl-note { color: var(--ink-soft); font-size: 0.96rem; margin-top: 0.25rem; }

/* ---------- Chips ---------- */
.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}
.chip {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(180, 83, 42, 0.35);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--brown);
  background: var(--cream);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.chip:hover { border-color: var(--terra); background: var(--blush); }
.chip--accent { background: var(--terra); border-color: var(--terra); color: var(--cream); }

/* ---------- Network grid ---------- */
.network-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1.2rem;
  margin-top: 3rem;
}
.network-item {
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.network-item:hover { transform: translateY(-4px); box-shadow: 0 14px 34px -20px rgba(85,43,33,0.35); }
a.network-item { color: var(--ink); }
.network-item strong { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 500; transition: color 0.3s ease; }
a.network-item:hover strong { color: var(--terra); }
.network-item span { color: var(--ink-soft); font-size: 0.92rem; }
.network-item .site {
  margin-top: auto;
  padding-top: 0.8rem;
  color: var(--terra);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.network-item .site::after { content: " ↗"; font-size: 0.8em; }

/* ---------- Topic cluster cards ---------- */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.4vw, 2rem);
  margin-top: 3.5rem;
}
.topic {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.9rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.topic:hover { transform: translateY(-5px); box-shadow: 0 18px 44px -24px rgba(85,43,33,0.35); }
.topic-icon {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--blush);
  display: grid;
  place-items: center;
  margin-bottom: 1.3rem;
}
.topic-icon svg { width: 1.6rem; height: 1.6rem; color: var(--terra); }
.topic h3 { font-family: var(--font-serif); font-size: 1.45rem; }
.topic ul { margin: 1.1rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.topic li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.topic li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--terra);
  opacity: 0.7;
}
@media (max-width: 1000px) { .topic-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .topic-grid { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.4vw, 2rem);
  margin-top: 3.5rem;
  align-items: stretch;
}
.price-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
}
.price-card h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  min-height: 3.2em;
}
.price-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.97rem;
}
.price-line strong { font-family: var(--font-serif); font-size: 1.35rem; color: var(--brown); white-space: nowrap; }
.price-note { margin-top: auto; padding-top: 1.4rem; font-size: 0.9rem; color: var(--ink-soft); }
.price-card--feature {
  position: relative;
  background: var(--brown);
  color: var(--cream);
  border-color: var(--brown);
  box-shadow: var(--shadow);
  transform: translateY(-0.6rem);
}
.price-card--feature h3 { color: var(--cream); }
.price-card--feature .price-line { border-color: rgba(251,248,242,0.2); }
.price-card--feature .price-line strong { color: var(--blush); }
.price-card--feature .price-note { color: rgba(251,248,242,0.75); }
.price-badge {
  position: absolute;
  top: -0.9rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--terra);
  color: var(--cream);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .price-grid { grid-template-columns: 1fr; }
  .price-card--feature { transform: none; }
  .price-card h3 { min-height: 0; }
}

.subsidy {
  background: var(--cream);
  border-left: 3px solid var(--terra);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: clamp(1.8rem, 3vw, 2.6rem);
  margin-top: 3rem;
}
.subsidy h4 { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 500; }
.subsidy p { margin-top: 1rem; color: var(--ink-soft); font-size: 0.99rem; }
.subsidy-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.4rem;
}
.subsidy-badges span {
  background: var(--blush);
  border-radius: 8px;
  padding: 0.9rem 1.4rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--brown);
}
.smallprint { margin-top: 2rem; font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Terms ---------- */
.terms-feature {
  background: var(--blush);
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 3rem);
  margin-top: 3rem;
}
.terms-feature h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.terms-feature h3 svg { width: 1.8rem; height: 1.8rem; color: var(--terra); flex: none; }
.terms-feature p { margin-top: 1.1rem; }
.terms-feature .cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }

.terms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.6rem, 3vw, 2.6rem);
  margin-top: 3rem;
}
.term { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.term h3 {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
}
.term h3 svg { width: 1.5rem; height: 1.5rem; color: var(--terra); flex: none; }
.term p, .term ul { margin-top: 0.9rem; color: var(--ink-soft); font-size: 0.98rem; }
.term ul { padding-left: 1.2rem; }
@media (max-width: 720px) { .terms-grid { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery {
  columns: 3;
  column-gap: 1.4rem;
  margin-top: 3rem;
}
.gallery a {
  display: block;
  margin-bottom: 1.4rem;
  border-radius: var(--radius);
  overflow: hidden;
  break-inside: avoid;
  box-shadow: 0 10px 34px -20px rgba(85,43,33,0.3);
}
.gallery img { transition: transform 0.7s cubic-bezier(0.22,1,0.36,1); width: 100%; }
.gallery a:hover img { transform: scale(1.045); }
@media (max-width: 900px) { .gallery { columns: 2; } }
@media (max-width: 560px) { .gallery { columns: 1; } }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(43, 36, 32, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(90vw, 70rem);
  max-height: 86vh;
  width: auto;
  border-radius: var(--radius);
  box-shadow: 0 40px 120px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  background: none;
  border: 0;
  color: var(--cream);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  font-family: var(--font-serif);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(251, 248, 242, 0.3);
  background: rgba(43, 36, 32, 0.5);
  color: var(--cream);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.lightbox-nav svg { width: 1.4rem; height: 1.4rem; }
.lightbox-nav:hover {
  background: var(--terra);
  border-color: var(--terra);
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
@media (min-width: 640px) {
  .lightbox-prev { left: 1.8rem; }
  .lightbox-next { right: 1.8rem; }
}
.lightbox-counter {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(251, 248, 242, 0.75);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}
/* Mobil: Pfeile treten optisch zurück, Wischen ist der primäre Weg */
@media (max-width: 640px) {
  .lightbox-nav {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(43, 36, 32, 0.35);
  }
}
@media (hover: none) {
  .lightbox-nav:active { background: var(--terra); border-color: var(--terra); }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  box-shadow: var(--shadow);
}
.contact-card h3 { font-family: var(--font-serif); font-size: 1.7rem; }
.contact-row {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-row:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-row > svg { flex: none; width: 1.5rem; height: 1.5rem; color: var(--terra); margin-top: 0.2rem; }
.contact-row .label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
}
.contact-row a { color: var(--ink); border-bottom: 1px solid var(--line); }
.contact-row a:hover { color: var(--terra); border-color: var(--terra); }

.contact-form { display: grid; gap: 1.4rem; }
.contact-form label {
  display: grid;
  gap: 0.5rem;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  font-size: 1.02rem;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.95rem 1.1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form textarea { min-height: 10rem; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--terra);
  box-shadow: 0 0 0 3px rgba(180, 83, 42, 0.15);
}
.form-note { font-size: 0.88rem; color: var(--ink-soft); display: flex; gap: 0.6rem; align-items: flex-start; }
.form-note svg { flex: none; width: 1.1rem; height: 1.1rem; color: var(--terra); margin-top: 0.2rem; }
.form-status { display: none; border-radius: 8px; padding: 1rem 1.2rem; font-size: 0.98rem; }
.form-status.is-ok { display: block; background: #e7efdd; color: #3c5a2a; }
.form-status.is-err { display: block; background: var(--blush); color: var(--terra-deep); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brown);
  color: rgba(251, 248, 242, 0.85);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem;
  font-size: 0.97rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.footer-logo { height: 3.4rem; width: auto; margin-bottom: 1.4rem; }
.site-footer h4 {
  font-size: 0.76rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.site-footer a { color: rgba(251, 248, 242, 0.85); }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(251, 248, 242, 0.15);
  font-size: 0.86rem;
  color: rgba(251, 248, 242, 0.6);
}
.footer-bottom a { color: rgba(251, 248, 242, 0.8); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal defaults (JS enhances) ---------- */
.js [data-reveal] { opacity: 0; }
.no-js [data-reveal] { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .story { grid-template-columns: 1fr; }
  .story--flip .story-media { order: 0; }
  .teaser-grid { grid-template-columns: 1fr; }
  .hero-bg img,
  .hero-bg-video { object-position: 78% center; }
  .hero-bg::after {
    background: linear-gradient(
      180deg,
      rgba(246, 241, 232, 0.6) 0%,
      rgba(246, 241, 232, 0.45) 55%,
      rgba(246, 241, 232, 0.28) 100%
    );
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .js [data-reveal] { opacity: 1; }
}

/* ============================================================
   Nibbly-Kompatibilität (site-owned Ergänzungen zur Original-CSS)
   ============================================================ */

/* 1) Admin-Ansicht: editableHtml() erzeugt einen div-Wrapper
   (.editable-field-html). Selektoren mit Kind-Kombinator aus dem
   Original werden hier für die Editor-Ansicht gespiegelt. */
.focus-body > .editable-field-html > p:first-of-type {
  font-size: 1.15rem;
  line-height: 1.68;
  color: var(--ink);
}
.focus-body > .editable-field-html > p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 3.3em;
  line-height: 0.78;
  float: left;
  padding: 0.09em 0.14em 0 0;
  color: var(--terra);
}
/* Absatzabstände innerhalb eines Rich-Text-Feldes wie im Original-Raster */
.editable-field-html > p + p { margin-top: 1rem; }

/* 2) Neutralisierung der Nibbly-Core-Styles: style.css/components.css
   werden nur auf Standardseiten (JSON-Front-Controller, z. B. künftiges
   Impressum) geladen. Diese Regeln stellen dort das Original-Aussehen
   von Header/Footer sicher. */
.site-header {
  border-bottom: 0;
  backdrop-filter: none;
  background: transparent;
}
.site-header.header-scrolled { box-shadow: none; }
.site-header.header-hidden { transform: none; }

/* 3) Nibbly-Core-Theme auf die Praxis-Palette mappen (wirkt nur auf
   Standardseiten, wo style.css/components.css geladen werden). */
:root {
  --color-primary: #b4532a;
  --color-primary-dark: #8f3e1f;
  --color-primary-dark-muted: #8f3e1f;
  --color-primary-light: #f4e3d8;
  --color-primary-btn: #b4532a;
  --color-primary-btn-hover: #8f3e1f;
  --color-secondary: #552b21;
  --color-text: #2b2420;
  --color-text-secondary: #6d5f53;
  --color-background: #f6f1e8;
  --color-background-dark: #efe8da;
  --color-background-darker: #e7ddcb;
  --color-background-section: #efe8da;
  --color-background-card: #fbf8f2;
  --color-border: rgba(85, 43, 33, 0.14);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", "Avenir Next", sans-serif;
  --header-height: 5.5rem;
}

/* Footer-Bottom: Copyright und Credit-Zeile als <p> nebeneinander –
   Grundlinien bündig, globales p+p-Margin hier neutralisieren. */
.footer-bottom { align-items: baseline; }
.footer-bottom p + p { margin-top: 0; }
