/* ================================================================
   MARTIN RUMBOHM — COACHING & ENERGIEARBEIT
   ================================================================
   BEARBEITEN LEICHT GEMACHT:
   Alle Farben, Schriften und Abstände stehen HIER OBEN als Variablen.
   Ändere nur die Werte hinter dem Doppelpunkt (vor dem ";") —
   der Rest der Datei muss nicht angefasst werden.
   ================================================================ */

:root {
  /* ---- Farben -------------------------------------------------- */
  --color-bg:          #FBF7F1;   /* Haupt-Hintergrund, warmes Off-White */
  --color-bg-alt:      #F2EAE0;   /* Abwechselnder Abschnitts-Hintergrund */
  --color-surface:     #FFFFFF;   /* Karten / Boxen */
  --color-text:        #2B2620;   /* Haupttext, warmes Fast-Schwarz */
  --color-text-muted:  #6B6156;   /* Nebentext */
  --color-border:      #E7DCCC;   /* dezente Trennlinien */

  --color-accent:      #C1572A;   /* Terrakotta – Buttons, Highlights */
  --color-accent-dark: #9A4620;   /* Hover-Zustand vom Akzent */
  --color-accent-soft: #F0DCC9;   /* helle Akzentfläche (Icon-Kreise etc.) */

  --color-dark:        #211D18;   /* dunkler Abschnitt (Kontakt-Band) */
  --color-on-dark:     #F5EEE3;   /* Text auf dunklem Hintergrund */

  /* ---- Schrift --------------------------------------------------- */
  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* ---- Abstände & Formen ----------------------------------------- */
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 45px -25px rgba(43, 38, 32, 0.35);
  --section-pad: clamp(64px, 9vw, 120px);
  --wrap-width: 1160px;
  --transition: 220ms ease;
}

/* ================================================================
   EIGENE SCHRIFT (selbst gehostet – kein Google-Fonts-Tracking)
   ================================================================ */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('../fonts/fraunces-latin-500-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

/* ================================================================
   RESET / GRUNDLAGEN
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap {
  max-width: var(--wrap-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 0.9em;
}
.eyebrow-light { color: var(--color-accent-soft); }

.lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 46ch;
}
.lead-light { color: rgba(245, 238, 227, 0.8); }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(193, 87, 42, 0.65);
}
.btn-primary:hover { background: var(--color-accent-dark); }

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }

.btn-ghost-light { color: var(--color-on-dark); border-color: rgba(245, 238, 227, 0.35); }
.btn-ghost-light:hover { border-color: var(--color-on-dark); color: var(--color-on-dark); }

.btn-light {
  background: var(--color-on-dark);
  color: var(--color-dark);
}
.btn-light:hover { background: #fff; }

.btn-small { padding: 10px 20px; font-size: 0.92rem; }

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
/* Blur läuft über ein Pseudo-Element, damit .site-header selbst keinen
   "containing block" für fixed-positionierte Kindelemente (mobiles Menü) erzeugt. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(251, 247, 241, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
}
.site-header.is-scrolled {
  border-color: var(--color-border);
  box-shadow: 0 8px 30px -20px rgba(43, 38, 32, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--color-text);
  line-height: 1.2;
}
.logo-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
  position: relative;
}
.primary-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}
.primary-nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================
   HERO
   ================================================================ */
.hero { padding: clamp(48px, 8vw, 96px) 0 var(--section-pad); }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-actions--center { justify-content: center; }
.hero-note { margin-top: 18px; font-size: 0.88rem; color: var(--color-text-muted); }

.hero-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-poster,
.hero-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 825 / 1100;
  object-fit: cover;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  transition: opacity 500ms ease;
}
.hero-canvas.is-active { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero-canvas { display: none; }
}

/* ================================================================
   SECTIONS (general)
   ================================================================ */
.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--color-bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: left; }
.section-head p { color: var(--color-text-muted); }

.location-subheadline {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-accent-dark);
  margin: -0.6em 0 0.9em;
}

.location-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.location-gallery-item {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---- Über mich / Für dich (Bild + Text) ---- */
.about-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.about-inner--reverse { grid-template-columns: 1.15fr 0.85fr; }
.about-inner--reverse .about-media { order: 2; }
.about-inner--reverse .about-copy { order: 1; }

.about-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
}

.pull-quote {
  font-family: var(--font-heading);
  font-style: normal;
  font-size: 1.3rem;
  color: var(--color-accent-dark);
  border-left: 3px solid var(--color-accent);
  padding-left: 20px;
  margin-top: 1.4em;
}

.check-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--color-text);
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%239A4620' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ================================================================
   ANGEBOTE / CARDS
   ================================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }

.card-sub { color: var(--color-accent-dark); font-weight: 600; font-size: 0.92rem; margin-bottom: 12px; }
.card p:not(.card-sub) { color: var(--color-text-muted); }

.card-link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-accent);
  transition: color var(--transition);
}
.card-link:hover { color: var(--color-accent-dark); }

/* ================================================================
   ABLAUF / STEPS
   ================================================================ */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  counter-reset: step;
  position: relative;
}
.step { position: relative; padding-top: 8px; }
.step-num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--color-accent-soft);
  -webkit-text-stroke: 1.5px var(--color-accent);
  display: block;
  margin-bottom: 10px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--color-text-muted); }

/* ================================================================
   FAQ / AKKORDEON (native <details>, ohne JavaScript)
   ================================================================ */
.faq-list {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 22px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
  transition: color var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-accent);
  transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--color-accent-dark); }
.faq-answer { padding: 0 22px 20px; color: var(--color-text-muted); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ================================================================
   KONTAKT / CTA BAND
   ================================================================ */
.cta-band {
  background: var(--color-dark);
  color: var(--color-on-dark);
  padding: var(--section-pad) 0;
  text-align: center;
}
.cta-band h2 { color: var(--color-on-dark); }
.cta-band .lead { margin: 0 auto; }

/* ================================================================
   WISSEN / PILLAR-CONTENT (Kategorien, Beiträge, Startseiten-Teaser)
   ================================================================ */
.wissen-hero { padding-bottom: 8px; }
.breadcrumb-link { text-decoration: none; color: var(--color-accent); }
.breadcrumb-link:hover { color: var(--color-accent-dark); }

.draft-banner {
  margin: 20px auto 0;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  font-weight: 600;
  text-align: center;
}

.pillar-hero-image {
  margin: 28px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 720px;
}
.pillar-hero-image img { width: 100%; height: auto; display: block; }

.post-date { color: var(--color-text-muted); font-size: 0.9rem; margin-top: -0.6em; }
.post-back { margin-top: 40px; }
.wissen-cta { margin: 32px 0 0; }

/* Formatierter Fließtext (aus dem "Wissen"-Backend, sicher gerendert) */
.richtext { max-width: 68ch; }
.richtext h2 { margin-top: 1.3em; }
.richtext h3 { margin-top: 1.1em; color: var(--color-accent-dark); }
.richtext p { color: var(--color-text-muted); }
.richtext ul { padding-left: 1.2em; color: var(--color-text-muted); margin: 0 0 1em; }
.richtext li { margin-bottom: 0.4em; }
.richtext a { color: var(--color-accent); text-decoration: underline; }
.richtext a:hover { color: var(--color-accent-dark); }
.richtext strong { color: var(--color-text); }

/* Kacheln für Kategorien/Beiträge (Übersicht, Kategorieseite, Startseite) */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.teaser-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  transition: transform var(--transition), box-shadow var(--transition);
}
.teaser-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.teaser-card-image { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-bg-alt); }
.teaser-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.teaser-card-body { display: flex; flex-direction: column; gap: 8px; padding: 22px; }
.teaser-card-title { font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; }
.teaser-card-excerpt { color: var(--color-text-muted); font-size: 0.95rem; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 48px 0 24px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}
.footer-nav, .footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-nav a, .footer-legal a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}
.footer-nav a:hover, .footer-legal a:hover { color: var(--color-accent); }
.footer-copy {
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ================================================================
   SCROLL-REVEAL ANIMATION (dezenter Fade-Effekt)
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 420px; margin: 0 auto; }
  .about-inner, .about-inner--reverse { grid-template-columns: 1fr; }
  .about-inner--reverse .about-media,
  .about-inner--reverse .about-copy { order: initial; }
  .about-media { max-width: 420px; margin: 0 auto; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    inset: 0 0 0 30%;
    top: 73px;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 28px;
    background: var(--color-bg);
    border-left: 1px solid var(--color-border);
    transform: translateX(100%);
    transition: transform var(--transition);
  }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav a:not(.btn) { font-size: 1.1rem; }
  .primary-nav .btn { margin-top: 12px; width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .primary-nav { inset: 0; top: 73px; }
}
