:root {
  --color-bg: #ffffff;
  --color-primary: #3b7a5a;
  --color-primary-soft: #6fbf7d;
  --color-highlight: #f1f57a;
  --color-accent: #e27a5b;
  --color-text: #31363a;
  --color-muted: #6c757d;
  --color-section-soft: #f8fbf6;
  --max-width: 1080px;
  --header-gradient: linear-gradient(115deg, #f1d18c 0%, #a6d9c0 68%, #e9f5ef 100%);
  --header-gold: #f1d18c;
  --header-sage: #a6d9c0;
  --header-mist: #e9f5ef;
  --header-sun: #f6dba4;
  --header-mint: #c8e8ce;
  --brand-mark-size: 28px;
  --brand-mark-gap: 0.35rem;
  --brand-lockup-offset: 6px;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/SourceSans3-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/SourceSans3-600.woff2") format("woff2");
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/PlayfairDisplay-500.woff2") format("woff2");
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/PlayfairDisplay-600.woff2") format("woff2");
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

header {
  position: relative;
  padding: 1.5rem 1rem 5.6rem;
  color: #1b2a27;
  overflow: hidden;
  box-shadow: 0 18px 42px -32px rgba(49, 54, 58, 0.26);
  background: var(--header-gradient);
}

/* Scroll-Progress-Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: transparent;
  z-index: 30;
  pointer-events: none;
}

.scroll-progress__bar {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  box-shadow: 0 2px 10px rgba(212, 106, 91, 0.25);
  transition: width 0.08s ease-out;
}

header::before {
  content: "";
  position: absolute;
  inset: -40px -16px -200px -16px;
  background:
      radial-gradient(circle at 0% 25%, #f6dba4 0, #f6dba4 40%, transparent 48%),
      radial-gradient(circle at 82% 12%, #c8e8ce 0, #c8e8ce 36%, transparent 44%),
      var(--header-gradient);
  opacity: 1;
  clip-path: ellipse(150% 140% at 50% 100%);
  z-index: -2;
}

header::after {
  content: none;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.brand-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-lockup {
  display: flex;
  align-items: flex-start;
  gap: var(--brand-mark-gap);
  margin-left: 0;
}

.brand-mark {
  width: var(--brand-mark-size);
  height: var(--brand-mark-size);
  flex: 0 0 auto;
  margin-top: calc(0.06rem - 3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.brand {
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.brand span {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 1.7rem;
  line-height: 1.7rem;
  letter-spacing: 0.1em;
  margin-top: 0.15rem;
  margin-left: 0;
}


nav { font-size: 0.85rem; }

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.2rem;
  row-gap: 0;
  padding: 0;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  line-height: 2;
}

.nav-list li { line-height: 2; }
.nav-list a {
  font-weight: 600;
  line-height: 2;
}
.nav-break {
  display: block;
  flex-basis: 100%;
  height: 0;
}

main {
  position: relative;
  background: #ffffff;
  z-index: 0;
}

main::before { content: none; }

/* Weiße Welle oberhalb des ersten Inhaltsabschnitts */
#ueber-mich {
  position: relative;
  background: #ffffff;
  z-index: 0;
}

#ueber-mich::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -70px;
  height: 120px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 140' preserveAspectRatio='none'><g transform='translate(0 140) scale(1 -1)'><path d='M0 100 C 220 40 460 170 680 90 C 900 10 1080 130 1200 70 L1200 0 L0 0 Z' fill='%23ffffff'/></g></svg>") center bottom / 100% 100% no-repeat;
  pointer-events: none;
  z-index: -1;
}

/* Gleiche weiße Welle für Impressum- und Datenschutz-Start */
#impressum::before,
#datenschutz::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -70px;
  height: 120px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 140' preserveAspectRatio='none'><g transform='translate(0 140) scale(1 -1)'><path d='M0 100 C 220 40 460 170 680 90 C 900 10 1080 130 1200 70 L1200 0 L0 0 Z' fill='%23ffffff'/></g></svg>") center bottom / 100% 100% no-repeat;
  pointer-events: none;
  z-index: -1;
}

section { padding: 3.5rem 1rem; }

.reveal-section {
  opacity: 1;
  transform: none;
}

.has-io .reveal-section {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.has-io .reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-side {
  opacity: 1;
  transform: none;
}

.has-io .reveal-side {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.has-io .reveal-side.from-left { transform: translateX(-18px); }
.has-io .reveal-side.from-right { transform: translateX(18px); }
.has-io .reveal-side.is-visible { opacity: 1; transform: translateX(0); }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title-block {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--color-muted);
  font-weight: 600;
}

h1, h2, h3 {
  margin: 0;
  font-family: "Playfair Display", serif;
  color: var(--color-text);
}

h1 { font-size: 2.4rem; letter-spacing: 0.08em; text-transform: uppercase; }
h2 { font-size: 1.9rem; letter-spacing: 0.06em; text-transform: uppercase; }
h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }

p {
  margin: 0 0 0.9rem;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
}

li {
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
}

.two-column {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: flex-start;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

.two-column > * { flex: 1; min-width: 260px; }

.intro-photo-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 5px solid var(--color-highlight);
  padding: 0.7rem;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(0,0,0,0.07);
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 15px;
}

.photo-media {
  position: relative;
}

.contact-stack .intro-photo-frame {
  max-width: none;
  width: 100%;
}

.intro-photo-frame + .intro-photo-frame {
  margin-top: 1rem;
}

.intro-photo-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 9px;
}

.contact-stack .intro-photo-frame img {
  aspect-ratio: 4 / 3;
}

.intro-photo-frame.is-compact {
  max-width: 190px;
  padding: 0.5rem;
  border-width: 3px;
}

.intro-photo-frame.is-compact img {
  aspect-ratio: 3 / 4;
}

.companion-card {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
  background: var(--color-section-soft);
  border-radius: 0.9rem;
  padding: 1.2rem 1.3rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  max-width: 880px;
  margin: 1.4rem auto 0;
  justify-content: center;
}

#kontakt .companion-card {
  margin: 0 0 1.6rem;
  max-width: none;
}

.companion-text p {
  margin: 0;
}

.companion-text {
  flex: 1;
  min-width: 220px;
}

.companion-note {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(59, 122, 90, 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.photo-credit {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-size: 0.54rem;
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.75);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  opacity: 0.75;
}

.photo-caption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.highlight-box {
  border-left: 4px solid var(--color-primary);
  padding-left: 1rem;
  margin-top: 1.2rem;
  font-size: 0.95rem;
}

.pill-note {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(59, 122, 90, 0.06);
  color: var(--color-muted);
  font-size: 0.8rem;
}

.soft-section { background: var(--color-section-soft); }

/* Kräftigere, warme Hintergründe je Abschnitt */
#systemische-beratung { background: #f1d98d; }
#gfk { background: #f6e4b5; }
#konfliktklaerung { background: #e2f0d8; }
#inqa { background: #f8dcb8; }
#kontakt { background: #ffffff; }
#kontakt { padding-bottom: calc(3.5rem + 20px); }

#ueber-mich .intro-photo-frame { border-color: var(--header-sun); }
#ueber-mich .companion-card { border-color: var(--header-sun); }

#systemische-beratung .intro-photo-frame { border-color: #88c1f6; }

#gfk .intro-photo-frame { border-color: #88c1f6; }
#gfk .service-card { border-top-color: #88c1f6; }

#konfliktklaerung .intro-photo-frame { border-color: #9a8f4b; }
#konfliktklaerung .service-card { border-top-color: var(--header-sun); }

#inqa .inqa-box {
  border-color: var(--header-mint);
  border-left-color: var(--color-primary);
}

#kontakt .intro-photo-frame { border-color: var(--header-sun); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

.service-card {
  background: #ffffff;
  border-radius: 0.9rem;
  padding: 1.8rem 1.7rem 1.5rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  border-top: 4px solid rgba(59, 122, 90, 0.85);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.service-divider {
  height: 1px;
  background: rgba(59, 122, 90, 0.25);
  margin: 0.9rem 0 0.8rem;
}

.service-card blockquote {
  margin: 1rem 0 0;
  padding: 0.75rem 0.9rem;
  background: #f8e8b8;
  border-left: 3px solid rgba(59, 122, 90, 0.6);
  border-radius: 0.35rem;
  color: var(--color-text);
  font-size: 0.9rem;
  line-height: 1.45;
  font-style: italic;
}

.service-meta {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 0.6rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
  align-content: start;
}

.contact-card {
  background: #ffffff;
  border-radius: 0.9rem;
  padding: 0.8rem 1.1rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  border: 4px solid var(--header-sun);
  line-height: 1.4;
  flex: 1;
}

.contact-card p { margin: 0 0 0.35rem; }
.contact-card p:last-child { margin-bottom: 0; }

.contact-info-note {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.contact-stack {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  height: 100%;
}

.contact-details-card {
  background: #ffffff;
  border-radius: 0.9rem;
  padding: 1.8rem 1.6rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--color-primary);
  display: grid;
  gap: 1rem;
}

.contact-details-plain {
  display: grid;
  gap: 1rem;
}

.detail-title {
  margin: 0;
  margin-bottom: -0.35rem;
  font-family: "Source Sans 3", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--color-muted);
}

.contact-details-card p {
  margin: 0;
}

.section-with-photo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
  align-content: start;
  grid-auto-rows: 1fr;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.section-with-photo .service-grid {
  grid-column: span 2;
}

.section-with-photo > * {
  align-self: stretch;
}

.section-with-photo .section-photo {
  margin-top: 0;
  justify-content: flex-start;
  align-items: flex-start;
}

.section-with-photo .intro-photo-frame {
  margin: 0;
}

@media (max-width: 720px) {
  .section-with-photo .service-grid {
    grid-column: span 1;
  }
}

.inqa-box {
  margin-top: 1.4rem;
  padding: 1.35rem 1.2rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #f6edd7 0%, #e8f3ea 100%);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.15rem;
}

#inqa .inqa-box {
  margin-top: 0;
}

.inqa-logo {
  flex: 0 0 auto;
  max-width: 150px;
  padding: 0.35rem 0.5rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

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

.inqa-text { flex: 1; min-width: 220px; }
.inqa-text strong { color: var(--color-primary); }

.pdf-links { margin-top: 1.1rem; font-size: 0.9rem; }
.pdf-links ul { margin: 0.4rem 0 0; padding-left: 1.15rem; }
.pdf-links li { margin-bottom: 0.2rem; }

.pdf-links a {
  color: var(--color-text);
  padding: 0.2rem 0.35rem;
  border-radius: 0.4rem;
  border: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.pdf-links a:hover,
.pdf-links a:focus {
  color: var(--color-accent);
  border-color: rgba(212, 106, 91, 0.35);
  background: rgba(212, 106, 91, 0.08);
  text-decoration: none;
}

.section-photo {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.link-box {
  margin-top: 1.1rem;
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(212, 106, 91, 0.3);
  background: linear-gradient(135deg, rgba(212, 106, 91, 0.06), rgba(15, 85, 102, 0.03));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}

.link-box-title {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--color-accent);
  margin-bottom: 0.4rem;
}

.link-box ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.link-box li {
  margin: 0.2rem 0;
}

/* Datenschutz */
.policy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  margin: 1.4rem auto 0;
  max-width: 960px;
}

@media (min-width: 820px) {
  .policy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.policy-card {
  background: #ffffff;
  border-radius: 0.95rem;
  padding: 1.4rem 1.25rem 1.25rem;
  border: 1px solid rgba(49, 54, 58, 0.12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.policy-card h3 {
  font-family: "Source Sans 3", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--color-muted);
  margin: 0 0 0.3rem;
}

.notice {
  margin-top: 0;
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  background: rgba(226, 122, 91, 0.08);
  border-left: 4px solid var(--color-accent);
  color: var(--color-text);
}

.policy-width {
  max-width: 960px;
  margin: 1.6rem auto 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.2rem;
  font-weight: 600;
  color: var(--color-primary);
}

.back-link svg { width: 16px; height: 16px; }

/* Impressum */
.impressum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.2rem;
}

.impressum-card {
  background: #ffffff;
  border-radius: 0.95rem;
  padding: 1.35rem 1.25rem 1.2rem;
  border: 1px solid rgba(49, 54, 58, 0.12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.impressum-card h3 {
  font-family: "Source Sans 3", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--color-muted);
  margin: 0 0 0.3rem;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.15);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, background 0.2s ease-out, opacity 0.2s ease-out, visibility 0.2s ease-out, bottom 0.2s ease-out;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
}

.back-to-top:hover,
.back-to-top:focus {
  background: #2f5f48;
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.18);
}

.back-to-top svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top.is-raised {
  bottom: 86px;
}

footer {
  position: relative;
  background: var(--header-gradient);
  color: #1b2a27;
  padding: 2.5rem 1rem 1.4rem;
  font-size: 0.85rem;
  margin-top: 0;
}

.footer-wave {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 120px;
  width: 100%;
  transform: translateY(-100%);
  display: block;
  pointer-events: none;
  z-index: 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-inner p,
.footer-inner strong {
  color: #1b2a27;
}

.footer-inner a { color: var(--color-primary); }

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

.footer-col {
  flex: 1;
  min-width: 240px;
}

.footer-col h3 {
  font-family: "Source Sans 3", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  margin: 0 0 0.8rem;
  color: #f1f4f5;
}

.footer-bottom {
  margin-top: 0;
  padding: 0.41rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  color: #1b2a27;
}

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

@media (max-width: 860px) {
  header { padding-bottom: 3.3rem; }
  .brand-row { flex-direction: column; align-items: flex-start; }
  header { --brand-mark-size: 24px; }
  .nav-list {
    padding-left: calc(var(--brand-lockup-offset) + var(--brand-mark-size) + var(--brand-mark-gap));
  }
  .nav-list {
    column-gap: 0.8rem;
    row-gap: 0;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .two-column,
  .service-grid,
  .section-with-photo,
  .contact-layout {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
}


@media (max-width: 640px) {
  section { padding: 3rem 1.1rem; }
  .brand-lockup { width: 100%; justify-content: center; }
  .brand { text-align: center; }
  .brand span {
    margin-left: 0;
    line-height: 1.5rem;
    letter-spacing: 0.12em;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
