/* HBN-Coaching — site styles
   Tokens and component styles come from the HBN Coaching design system
   (Claude Design). Page layout lives inline in the HTML, as in the design;
   the responsive layer at the bottom adapts it for tablets and phones. */

/* Webfont: see fonts.css (Outfit, embedded so pages also work when opened from disk) */

/* ---------- Tokens ---------- */
:root {
  --hbn-cream: #FFFCF2;
  --hbn-ink: #05001E;
  --hbn-gold: #E2CC83;
  --hbn-white: #FFFFFF;
  --hbn-off-white: #FDFDFC;
  --hbn-ink-80: #33304A;
  --hbn-ink-60: #5C5A70;
  --hbn-ink-40: #908FA0;
  --hbn-ink-15: #DDDCE3;
  --hbn-ink-08: #ECEBF0;
  --hbn-gold-dark: #D0B65F;
  --hbn-gold-soft: #F0E4BE;
  --hbn-gold-wash: #FAF4E2;
  --hbn-success: #22C55E;

  --surface-page: var(--hbn-cream);
  --surface-page-alt: var(--hbn-white);
  --surface-card: var(--hbn-white);
  --surface-card-tinted: var(--hbn-gold-wash);
  --surface-inverse: var(--hbn-ink);
  --text-heading: var(--hbn-ink);
  --text-body: var(--hbn-ink-80);
  --text-muted: var(--hbn-ink-60);
  --text-subtle: var(--hbn-ink-40);
  --text-on-gold: var(--hbn-ink);
  --text-on-inverse: var(--hbn-cream);
  --border-hairline: var(--hbn-ink-15);
  --border-accent: var(--hbn-gold);
  --accent: var(--hbn-gold);
  --accent-hover: var(--hbn-gold-dark);
  --link-color: var(--hbn-ink);
  --link-hover: var(--hbn-gold-dark);

  --font-core: "Outfit", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --font-display: var(--font-core);
  --font-body: var(--font-core);
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fs-display: 64px;
  --fs-h1: 46px;
  --fs-h2: 30px;
  --fs-h3: 24px;
  --fs-h4: 20px;
  --fs-price: 56px;
  --fs-lead: 20px;
  --fs-body: 17px;
  --fs-small: 15px;
  --fs-eyebrow: 14px;
  --lh-tight: 1.1;
  --lh-heading: 1.2;
  --lh-body: 1.65;
  --lh-lead: 1.55;
  --ls-tight: -0.01em;
  --ls-normal: 0;
  --ls-button: 0.06em;
  --ls-eyebrow: 0.18em;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 56px;
  --space-9: 80px;
  --space-10: 120px;
  --content-max: 1140px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-card: 20px;
  --radius-pill: 999px;
  --border-width-frame: 6px;

  --shadow-card: 0 6px 28px rgba(5, 0, 30, 0.06);
  --shadow-card-hover: 0 10px 36px rgba(5, 0, 30, 0.10);
  --shadow-button: 0 2px 10px rgba(5, 0, 30, 0.06);
  --shadow-image: 0 12px 40px rgba(5, 0, 30, 0.12);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-base: 220ms;
  --transition-base: all var(--dur-base) var(--ease-standard);
}

/* ---------- Base ---------- */
/* The design is laid out with the default content-box model; only pop-up
   cards (width: 100% plus padding) need border-box to stay inside the screen. */
.modal-card { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--text-heading); font-family: var(--font-display); line-height: var(--lh-heading); letter-spacing: var(--ls-tight); margin: 0; }
h1 { font-size: var(--fs-h1); font-weight: var(--fw-bold); }
h2 { font-size: var(--fs-h2); font-weight: var(--fw-regular); }
h3 { font-size: var(--fs-h3); font-weight: var(--fw-medium); }
h4 { font-size: var(--fs-h4); font-weight: var(--fw-medium); }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--link-color); text-decoration: none; transition: color var(--dur-base) var(--ease-standard); }
a:hover { color: var(--link-hover); }
strong { font-weight: var(--fw-semibold); color: var(--text-heading); }
img { max-width: 100%; }
button, input { font: inherit; }
[id] { scroll-margin-top: 110px; }
:focus-visible { outline: 2px solid var(--hbn-gold-dark); outline-offset: 3px; }

/* Larger screens: scale the whole layout like the design does */
@media (min-width: 1440px) { html { zoom: 1.12; } }
@media (min-width: 1680px) { html { zoom: 1.25; } }
@media (min-width: 1920px) { html { zoom: 1.4; } }
@media (min-width: 2400px) { html { zoom: 1.6; } }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--hbn-ink); color: var(--hbn-cream); border-radius: var(--radius-md); }
.skip-link:focus { top: 16px; color: var(--hbn-cream); }

/* Runtime hooks */
[data-if] { display: contents; }
[data-if][hidden] { display: none; }
[data-for] { display: contents; }
.nowrap { white-space: nowrap; }
html.modal-open { overflow: hidden; }

/* ---------- Button ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-core); font-weight: var(--fw-medium); letter-spacing: var(--ls-button);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: var(--transition-base); text-align: center; line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
/* Guard against site-wide plugin styles for links and buttons */
html body .btn { font-family: var(--font-core); text-shadow: none; text-transform: none; text-decoration: none; }
html body .nav-toggle { text-shadow: none; box-shadow: none; }
html body button[aria-label="Schließen"] { padding: 0; margin: 0; font-family: var(--font-core); letter-spacing: 0; text-shadow: none; text-transform: none; box-shadow: none; display: inline-flex; align-items: center; justify-content: center; }
.btn-sm { font-size: var(--fs-small); padding: 10px 20px; }
.btn-md { font-size: var(--fs-body); padding: 15px 28px; }
.btn-lg { font-size: var(--fs-lead); padding: 18px 36px; }
.btn-primary { background: var(--hbn-gold); color: var(--text-on-gold); border-radius: var(--radius-md); box-shadow: var(--shadow-button); }
.btn-primary:hover { background: var(--hbn-gold-dark); box-shadow: var(--shadow-card-hover); color: var(--text-on-gold); }
.btn-pill { background: var(--hbn-gold); color: var(--text-on-gold); border-radius: var(--radius-lg); }
.btn-pill:hover { background: var(--hbn-gold-dark); color: var(--text-on-gold); }
.btn-outline { background: transparent; color: var(--text-heading); border-color: var(--hbn-gold); border-radius: var(--radius-md); }
.btn-outline:hover { background: var(--hbn-gold-soft); color: var(--text-heading); }
.btn-ghost { background: transparent; color: var(--text-heading); border-radius: var(--radius-md); letter-spacing: var(--ls-normal); padding: 8px 0; border-bottom: 1px solid var(--hbn-gold); }
.btn-ghost:hover { color: var(--hbn-gold-dark); }

/* ---------- CheckList ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-4); text-align: left; }
.checklist li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--fs-body); color: var(--text-body); line-height: var(--lh-lead); }
.checklist-sm li { font-size: var(--fs-small); }
.checklist .check { flex: 0 0 16px; margin-top: 5px; color: var(--hbn-success); }

/* ---------- PortraitFrame ---------- */
.portrait { margin: 0; padding: var(--border-width-frame); background: var(--hbn-gold); box-shadow: var(--shadow-image); display: block; max-width: 100%; }
.portrait img { display: block; width: 100%; object-fit: cover; object-position: center; border-radius: 0; }

/* ---------- Quote ---------- */
.quote { margin: 0; font-family: var(--font-display); font-size: var(--fs-lead); font-weight: var(--fw-light); font-style: italic; color: var(--text-heading); line-height: var(--lh-lead); padding-left: var(--space-5); border-left: 2px solid var(--hbn-gold); }
.quote footer { display: block; }
.quote-lg { font-size: var(--fs-h2); }
.quote footer { margin-top: var(--space-3); font-size: var(--fs-small); font-style: normal; letter-spacing: var(--ls-button); color: var(--text-muted); }

/* ---------- BlogCard ---------- */
.blogcard { background: var(--surface-card); border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; display: flex; flex-direction: column; transition: var(--transition-base); }
.blogcard:hover { box-shadow: var(--shadow-card-hover); }
.blogcard-body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.blogcard-cat { font-size: var(--fs-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--text-subtle); }
.blogcard h3 { font-size: var(--fs-h4); font-weight: var(--fw-medium); line-height: var(--lh-heading); }
.blogcard p { margin: 0; font-size: var(--fs-small); color: var(--text-muted); line-height: var(--lh-lead); }
.blogcard-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-4); }
.blogcard-date { font-size: var(--fs-small); color: var(--text-subtle); }

/* ---------- Breadcrumb ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-size: var(--fs-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--text-subtle); }
.crumbs a { color: var(--text-subtle); }
.crumbs a:hover { color: var(--link-hover); }
.crumbs [aria-current] { color: var(--text-heading); }
.crumbs .sep { opacity: 0.6; }

/* ---------- SiteHeader ---------- */
.site-header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding: var(--space-4) var(--space-7); background: var(--surface-page); }
.site-logo { display: block; line-height: 0; }
.site-logo img { height: 64px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: var(--space-6); }
.site-nav a:not(.btn) { font-size: var(--fs-body); font-weight: var(--fw-regular); color: var(--text-heading); padding-bottom: 4px; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover { color: var(--link-hover); }
.site-nav a.active { font-weight: var(--fw-medium); border-bottom-color: var(--hbn-gold); }
.site-nav-cta { display: none; }
.nav-toggle { display: none; }

/* ---------- SiteFooter ---------- */
.site-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-5); padding: var(--space-7); background: var(--surface-page); border-top: 1px solid var(--border-hairline); }
.site-footer-brand { display: flex; align-items: center; gap: var(--space-4); }
.site-footer-brand img { height: 52px; width: auto; display: block; }
.site-footer-brand span { font-size: var(--fs-small); color: var(--text-muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); }
.site-footer nav a { font-size: var(--fs-small); color: var(--text-body); }
.site-footer nav a:hover { color: var(--link-hover); }
.site-footer-copy { font-size: var(--fs-small); color: var(--text-subtle); }

/* ---------- Range inputs (sliders in the interactive graphics) ---------- */
input[type="range"] { min-height: 28px; }

/* ================= Responsive layer ================= */
/* Tablet */
@media (max-width: 1060px) {
  .site-header { gap: var(--space-5); padding: var(--space-4) var(--space-6); }
  .site-nav { gap: var(--space-5); }
  .site-nav a:not(.btn) { font-size: var(--fs-small); }
  .site-cta.btn-sm { padding: 10px 16px; }
}

@media (max-width: 900px) {
  /* Header becomes a menu */
  .site-header { padding: 12px 20px; }
  .site-logo img { height: 48px; }
  .site-cta { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--border-hairline);
    border-radius: var(--radius-pill); background: var(--hbn-white); cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--hbn-ink); border-radius: 2px; transition: transform var(--dur-base) var(--ease-standard), opacity var(--dur-base); }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 24px; background: var(--hbn-cream);
    border-bottom: 1px solid var(--border-hairline); box-shadow: 0 16px 32px rgba(5, 0, 30, 0.08);
    display: none;
  }
  .nav-open .site-nav { display: flex; }
  .site-nav a:not(.btn) { font-size: var(--fs-lead); padding: 14px 0; border-bottom: 1px solid var(--border-hairline); }
  .site-nav a.active { border-bottom-color: var(--border-hairline); color: var(--hbn-ink); box-shadow: inset 3px 0 0 var(--hbn-gold); padding-left: 14px; }
  .site-nav-cta { display: inline-flex; margin-top: 20px; }

  /* Layout */
  .wrap { padding-left: 20px !important; padding-right: 20px !important; }
  .sec-pad { padding-top: 80px !important; }
  .sec-pad-sm { padding-top: 64px !important; padding-bottom: 64px !important; }
  .sec-mt { margin-top: 80px !important; }
  .split { grid-template-columns: minmax(0, 1fr) !important; gap: 40px !important; }
  .stick { position: static !important; }
  .pad-48 { padding: 32px 24px !important; }

  /* Type */
  .fs-64 { font-size: 46px !important; }
  .fs-56 { font-size: 46px !important; }
  .fs-46 { font-size: 36px !important; }
  .fs-40 { font-size: 32px !important; }
  .fs-36 { font-size: 30px !important; }

  /* Modals */
  .modal-ov { padding: 16px 12px !important; }
  .modal-card { padding: 56px 24px 32px !important; }

  /* Sticky area indicator on the method page: a small pill instead of a card */
  .venn-mini {
    right: 12px !important; bottom: 12px !important; width: auto !important;
    flex-direction: row !important; gap: 10px !important;
    padding: 6px 16px 6px 6px !important; border-radius: 999px !important;
  }
  .venn-mini-art { width: 40px !important; height: 40px !important; flex: 0 0 40px; }
  .venn-mini-art > div:last-child { display: none !important; }

  .site-footer { padding: 32px 20px; }
}

/* Flower legend: built by hbn.js, used on phones instead of the labels around the flower */
.flower-legend { display: none; }

@media (max-width: 640px) {
  .autofit { grid-template-columns: minmax(0, 1fr) !important; }
  .sec-pad { padding-top: 64px !important; }
  .sec-mt { margin-top: 64px !important; }
  .fs-64 { font-size: 38px !important; }
  .fs-56 { font-size: 40px !important; }
  .fs-46 { font-size: 31px !important; }
  .fs-40 { font-size: 28px !important; }
  .fs-36 { font-size: 27px !important; }
  .fs-30 { font-size: 24px !important; }
  .quote-lg { font-size: 24px; }
  .pad-32 { padding: 24px 20px !important; }
  .pad-lg { padding: 28px 22px !important; }
  .mw-narrow { max-width: none !important; }

  /* Buttons: one line, comfortable to tap */
  .btn { letter-spacing: 0.02em; }
  .btn-md { padding: 14px 22px; }
  .btn-lg { font-size: var(--fs-body); padding: 16px 24px; }
  .btn-ghost { padding: 8px 0; }
  .wrap > .btn-lg, [style*="align-items: center"] > .btn-lg { align-self: stretch; }

  /* Flower: petals fill the width, labels move into a legend below */
  .flower { max-width: 100% !important; width: 100% !important; }
  .flower .flower-petals { inset: 2% !important; }
  .flower .flower-label { display: none !important; }
  .flower .flower-hub { width: 24% !important; min-width: 78px; }
  .flower-legend {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
    width: 100%; box-sizing: border-box; margin: 4px 0 8px;
  }
  /* Selectors carry extra weight and reset properties that site-wide
     plugin styles (e.g. Elementor's global button style) like to set. */
  html body .flower-legend button.flower-chip {
    appearance: none; box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; margin: 0;
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px; border-radius: 14px; border: 1px solid var(--border-hairline);
    background: var(--hbn-white); color: var(--hbn-ink); box-shadow: none; text-shadow: none;
    font-family: var(--font-core); font-size: 15px; font-weight: 500; font-style: normal;
    letter-spacing: 0; text-transform: none; text-decoration: none; line-height: 1.25;
    text-align: left; white-space: normal; overflow-wrap: anywhere; cursor: pointer;
    transition: border-color var(--dur-base), background var(--dur-base);
  }
  html body .flower-legend button.flower-chip:hover,
  html body .flower-legend button.flower-chip:focus { background: var(--hbn-white); color: var(--hbn-ink); border-color: var(--hbn-gold); }
  html body .flower-legend button.flower-chip.active { border-color: var(--hbn-gold); background: var(--hbn-gold-wash); }
  html body .flower-legend .chip-nr { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--text-subtle); }
  html body .flower-legend .chip-dot { width: 10px; height: 10px; border-radius: 999px; flex: 0 0 10px; }

  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 359px) {
  .nowrap { white-space: normal; }
}
