/* =====================================================================
   Nur's Beauty Atelier — Shared Design System
   ---------------------------------------------------------------------
   Single source of truth for all /share/ guides.
   Link with: <link rel="stylesheet" href="shared.css">
   (templates/*.html use: <link rel="stylesheet" href="../shared.css">)
   ===================================================================== */


/* ---------------------------------------------------------------------
   1. Design Tokens (CSS Variables)
   --------------------------------------------------------------------- */
:root {
  /* Primary */
  --noir:          #1C1C1C;
  --ivory:         #FAF7F2;

  /* Secondary */
  --champagne:     #C9B39A;
  --warm-taupe:    #A8937A;
  --honey-oak:     #D4A574;

  /* Accent */
  --rose-gold:     #B76E79;
  --rose-text:     #7E3F48;   /* AAA on ivory/pearl */
  --soft-blush:    #E8D5CC;
  --pearl:         #F3EBE1;

  /* Support */
  --charcoal:      #3A3A3A;
  --taupe-text:    #72604B;   /* AA on ivory/pearl */
  --warm-sand:     #E5D5C0;

  /* Semantic colors (for callouts, badges, status cues) */
  --green:         #5B8C5A;
  --green-bg:      #EEF5EE;
  --green-text:    #3D6A3C;
  --amber:         #C49A3C;
  --amber-bg:      #FCF3DE;
  --amber-text:    #8A6A20;
  --red:           #B85C5C;
  --red-bg:        #FCEAEA;
  --red-text:      #8A3F3F;
  --blue:          #5C7FB8;
  --blue-bg:       #EAF0FC;
  --blue-text:     #3F558A;
  --purple:        #7C5CAA;
  --purple-bg:     #F3EEF8;
  --purple-text:   #574080;

  /* Radii, shadows, timings */
  --radius-sm:     2px;
  --radius-md:     6px;
  --radius-lg:     8px;
  --shadow-card:   0 2px 24px rgba(28, 28, 28, 0.06);
  --shadow-lift:   0 12px 40px rgba(28, 28, 28, 0.14);
}


/* ---------------------------------------------------------------------
   2. Reset + Base
   --------------------------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--ivory);
  color: var(--noir);
  line-height: 1.7;
  font-weight: 300;
}
.serif { font-family: 'Cormorant Garamond', serif; }


/* ---------------------------------------------------------------------
   3. Sidebar (fixed left, collapses on < 1080px)
   --------------------------------------------------------------------- */
.sidebar {
  position: fixed; left: 0; top: 0;
  width: 300px; height: 100vh;
  background: var(--noir);
  overflow-y: auto;
  padding: 2rem 1.2rem 2.5rem;
  z-index: 100;
  transition: transform 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--warm-taupe) transparent;
}
.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--warm-taupe); border-radius: 3px; }

.sidebar-header {
  padding: 0 0.6rem 1.2rem;
  border-bottom: 1px solid rgba(201,179,154,0.2);
  margin-bottom: 1.2rem;
}
.sidebar-header .brand {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--champagne);
  margin-bottom: 6px;
}
.sidebar-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ivory);
  line-height: 1.35;
  letter-spacing: 0.01em;
}
.sidebar-header p {
  font-size: 0.68rem;
  color: var(--warm-taupe);
  margin-top: 0.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sidebar-nav { display: flex; flex-direction: column; gap: 1.1rem; }
.sidebar-section h3 {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--champagne);
  font-weight: 600;
  margin-bottom: 0.4rem;
  padding: 0 0.6rem;
}
.sidebar-section a {
  display: flex; align-items: flex-start; gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  font-size: 0.8rem;
  color: rgba(250,247,242,0.7);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s ease;
  line-height: 1.3;
  font-weight: 300;
}
.sidebar-section a:hover { background: rgba(201,179,154,0.15); color: var(--ivory); }
.sidebar-section a.active { background: var(--champagne); color: var(--noir); font-weight: 500; }
.sidebar-section a .num {
  flex-shrink: 0; min-width: 1.3rem;
  color: var(--champagne);
  font-weight: 600;
  font-size: 0.72rem;
  font-family: 'Cormorant Garamond', serif;
  padding-top: 0.08rem;
}
.sidebar-section a:hover .num { color: var(--ivory); }
.sidebar-section a.active .num { color: var(--noir); }

/* Sub-menu items (one level of nesting below a main chapter) */
.sidebar-section a.sub {
  padding-left: 1.8rem;
  font-size: 0.72rem;
}

/* ---------------------------------------------------------------------
   Pagefind Search — Sidebar-Trigger + Overlay-Panel
   --------------------------------------------------------------------- */

/* Sidebar-Trigger: sieht aus wie Suchbox, öffnet ein Overlay */
.sidebar-search-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: calc(100% - 0.4rem);
  margin: 0 0.2rem 1rem;
  padding: 0.55rem 0.8rem;
  background: var(--charcoal);
  border: 1px solid rgba(201,179,154,0.25);
  border-radius: 6px;
  color: rgba(250,247,242,0.65);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 300;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}
.sidebar-search-trigger:hover {
  border-color: var(--champagne);
  color: var(--ivory);
  background: rgba(58,58,58,0.85);
}
.sidebar-search-trigger svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: rgba(201,179,154,0.75);
}
.sidebar-search-trigger .stxt {
  flex: 1;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
}
.sidebar-search-trigger kbd {
  font-family: 'Inter', monospace;
  font-size: 0.7rem;
  padding: 0.1rem 0.35rem;
  background: rgba(201,179,154,0.15);
  border: 1px solid rgba(201,179,154,0.2);
  border-radius: 3px;
  color: var(--champagne);
}
@media (max-width: 1079px) {
  .sidebar-search-trigger kbd { display: none; }
}

/* Overlay: Dimmer + zentrales Panel */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28,28,28,0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  padding: 4rem 2rem;
  overflow-y: auto;
}
.search-overlay.open { display: block; }
body.search-open { overflow: hidden; }

.search-panel {
  max-width: 720px;
  margin: 0 auto;
  background: var(--ivory);
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
  overflow: hidden;
  animation: search-pop 0.18s ease-out;
}
@keyframes search-pop {
  from { opacity: 0; transform: translateY(-12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.search-hint {
  padding: 0.8rem 1.5rem;
  background: var(--pearl);
  color: var(--taupe-text);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.8rem;
  text-align: center;
  border-top: 1px solid var(--warm-sand);
}

/* Pagefind UI inside overlay */
.search-panel #search {
  padding: 1.5rem 1.5rem 0.5rem;

  --pagefind-ui-scale: 1;
  --pagefind-ui-primary: var(--rose-text);
  --pagefind-ui-text: var(--noir);
  --pagefind-ui-background: var(--ivory);
  --pagefind-ui-border: var(--warm-sand);
  --pagefind-ui-tag: var(--pearl);
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: 6px;
  --pagefind-ui-image-border-radius: 4px;
  --pagefind-ui-font: 'Inter', sans-serif;
}
.search-panel .pagefind-ui__search-input {
  font-size: 1.1rem;
  font-weight: 400;
  padding: 0.8rem 1rem;
  background: white;
  border: 1px solid var(--warm-sand);
  color: var(--noir);
}
.search-panel .pagefind-ui__search-input::placeholder {
  color: var(--taupe-text);
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
}
.search-panel .pagefind-ui__search-input:focus {
  border-color: var(--rose-gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(183,110,121,0.12);
}
.search-panel .pagefind-ui__message {
  color: var(--taupe-text);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  padding: 0.8rem 0;
}
.search-panel .pagefind-ui__results {
  max-height: 55vh;
  overflow-y: auto;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}
.search-panel .pagefind-ui__result {
  padding: 1rem 0;
  border-top: 1px solid var(--warm-sand);
}
.search-panel .pagefind-ui__result-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
  line-height: 1.2;
}
.search-panel .pagefind-ui__result-link {
  color: var(--noir);
  text-decoration: none;
}
.search-panel .pagefind-ui__result-link:hover {
  color: var(--rose-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.search-panel .pagefind-ui__result-excerpt {
  font-size: 0.88rem;
  color: var(--charcoal);
  line-height: 1.55;
  font-weight: 300;
}
.search-panel .pagefind-ui__result-excerpt mark {
  background: rgba(201,179,154,0.4);
  color: var(--noir);
  padding: 0 3px;
  border-radius: 2px;
  font-weight: 500;
}
.search-panel .pagefind-ui__result-nested {
  margin-top: 0.6rem;
  padding-left: 1rem;
  border-left: 2px solid var(--champagne);
}
.search-panel .pagefind-ui__button {
  background: var(--noir);
  color: var(--champagne);
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  margin: 1rem 0;
  display: block;
  width: 100%;
}
.search-panel .pagefind-ui__button:hover { background: var(--charcoal); }
.search-panel .pagefind-ui__search-clear {
  color: var(--rose-text);
  font-size: 0.82rem;
  font-weight: 500;
}

/* Mobile */
@media (max-width: 720px) {
  .search-overlay { padding: 1rem; }
  .search-panel { border-radius: 8px; }
  .search-panel #search { padding: 1rem; }
}

.menu-toggle {
  display: none; position: fixed; top: 1rem; left: 1rem; z-index: 200;
  background: var(--noir); color: var(--champagne);
  border: 1px solid var(--champagne);
  padding: 0.6rem 0.8rem; border-radius: 8px;
  font-size: 1.2rem; cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.menu-toggle:hover { background: var(--charcoal); }
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 99;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.visible { display: block; }

@media (min-width: 1080px) { body.has-sidebar { padding-left: 300px; } }
@media (max-width: 1079px) {
  .sidebar { transform: translateX(-100%); width: 280px; }
  .sidebar.open { transform: translateX(0); }
  .menu-toggle { display: block; }
}


/* ---------------------------------------------------------------------
   4. Hero Header
   --------------------------------------------------------------------- */
header.hero {
  background: var(--noir);
  color: var(--ivory);
  padding: 6rem 6% 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--champagne);
}
header.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(201,179,154,0.08), transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(183,110,121,0.06), transparent 50%);
  pointer-events: none;
}
header.hero .mark {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--champagne);
  margin-bottom: 20px;
  position: relative;
}
header.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  position: relative;
  line-height: 1.15;
}
header.hero h1 em { font-style: italic; }
header.hero .subtitle {
  font-size: 1.05rem;
  color: rgba(250,247,242,0.85);
  max-width: 720px;
  margin: 0 auto 1.8rem;
  position: relative;
  font-weight: 300;
  line-height: 1.6;
}
header.hero .meta {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--warm-taupe);
  position: relative;
}

.stats-bar {
  display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap;
  margin: 2.2rem 0 1.5rem; position: relative;
}
.stat { text-align: center; }
.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem; font-weight: 400;
  display: block; color: var(--champagne);
  line-height: 1; margin-bottom: 4px;
}
.stat-label {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--warm-taupe); max-width: 140px; display: block;
}


/* ---------------------------------------------------------------------
   5. Main Layout + Sections
   --------------------------------------------------------------------- */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
}
main.wide { max-width: 1200px; }

section.section {
  margin-bottom: 3rem;
  padding: 3rem 0 1rem;
  scroll-margin-top: 1rem;
}
section.section:first-of-type { padding-top: 1.5rem; }

.section-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--taupe-text);
  margin-bottom: 10px;
  display: block;
}
.section-intro {
  max-width: 680px;
  font-size: 1rem;
  color: var(--charcoal);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
}


/* ---------------------------------------------------------------------
   6. Typography (headings, text, links)
   --------------------------------------------------------------------- */
h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--noir);
  line-height: 1.2;
}
h2 em { font-style: italic; color: var(--rose-text); }

h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--noir);
  margin: 2rem 0 0.6rem;
  line-height: 1.3;
}
h3 em { font-style: italic; color: var(--rose-text); }

h4 {
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--charcoal);
  margin: 1.5rem 0 0.5rem;
}

p { margin-bottom: 1rem; }
strong { font-weight: 500; color: var(--noir); }
em { font-style: italic; }

ul, ol { margin: 0.5rem 0 1.25rem 1.5rem; }
li { margin-bottom: 0.4rem; }

a { color: var(--rose-text); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--rose-gold); }

/* Links in dark-background boxes — WCAG AA (champagne on noir = 7.7:1, AAA) */
.vision-card a,
.example-box a,
.grund-card a,
.phase-card a,
.hero-note a,
.refresh-cta a,
.reel-structure a,
.template-box a,
.script a,
.featured a,
header.hero a,
.sop-meta a {
  color: var(--champagne);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.vision-card a:hover,
.example-box a:hover,
.grund-card a:hover,
.phase-card a:hover,
.hero-note a:hover,
.refresh-cta a:hover,
.reel-structure a:hover,
.template-box a:hover,
.script a:hover,
.featured a:hover,
header.hero a:hover,
.sop-meta a:hover {
  color: var(--ivory);
}


/* ---------------------------------------------------------------------
   7. Tables
   --------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; margin: 1rem 0 2rem; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: white;
  border: 1px solid var(--warm-sand);
  border-radius: 6px;
  overflow: hidden;
}
th {
  background: var(--noir);
  color: var(--champagne);
  text-align: left;
  padding: 0.7rem 0.9rem;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--warm-sand);
  vertical-align: top;
}
tr:last-child td { border-bottom: none; }


/* ---------------------------------------------------------------------
   8. Callouts
   --------------------------------------------------------------------- */
.callout {
  border-left: 4px solid var(--champagne);
  background: var(--pearl);
  padding: 1.2rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}
.callout > strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--rose-text);
  margin-bottom: 0.5rem;
}
.callout p { margin-bottom: 0.5rem; }
.callout p:last-child { margin-bottom: 0; }
.callout p strong { font-weight: 500; color: var(--noir); }

.callout.hormozi,
.callout.rose {
  border-left-color: var(--rose-gold);
  background: var(--soft-blush);
}
.callout.success {
  border-left-color: var(--green);
  background: var(--green-bg);
}
.callout.success > strong { color: var(--green-text); }
.callout.warning {
  border-left-color: var(--red);
  background: var(--red-bg);
}
.callout.warning > strong { color: var(--red-text); }
.callout.info {
  border-left-color: var(--blue);
  background: var(--blue-bg);
}
.callout.info > strong { color: var(--blue-text); }
.callout.amber {
  border-left-color: var(--amber);
  background: var(--amber-bg);
}
.callout.amber > strong { color: var(--amber-text); }


/* ---------------------------------------------------------------------
   9. Card Grid (.pcard)
   --------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}
.pcard {
  background: var(--pearl);
  padding: 1.5rem 1.5rem 1.25rem;
  border-radius: 2px;
  border-top: 3px solid var(--champagne);
}
.pcard h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--noir);
  text-transform: none;
  letter-spacing: 0;
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.pcard .price {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--rose-text);
  font-size: 1rem;
  margin-bottom: 0.9rem;
  display: block;
}
.pcard p {
  font-size: 0.9rem;
  color: var(--charcoal);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}
.pcard ul {
  font-size: 0.85rem;
  color: var(--charcoal);
  margin: 0.5rem 0 0 1.2rem;
}
.pcard.hero-pricing,
.pcard.accent {
  border-top-color: var(--rose-gold);
  background: var(--soft-blush);
}
.pcard.hero-pricing h4 em,
.pcard.accent h4 em {
  font-style: italic;
  color: var(--rose-text);
  font-size: 0.85rem;
  margin-left: 0.5rem;
}


/* ---------------------------------------------------------------------
   10. 2-Column Grid
   --------------------------------------------------------------------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

/* grid-4: explicit 2×2 (Desktop) → 1×4 (Mobile). Für genau 4 Karten optimal. */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}
@media (max-width: 720px) {
  .grid-4 { grid-template-columns: 1fr; }
}


/* ---------------------------------------------------------------------
   11. Timeline
   --------------------------------------------------------------------- */
.timeline {
  margin: 1.25rem 0 2rem;
  border-left: 2px solid var(--champagne);
  padding-left: 1.25rem;
}
.timeline .t-step {
  position: relative;
  margin-bottom: 1rem;
  padding-left: 0.2rem;
}
.timeline .t-step::before {
  content: '';
  position: absolute;
  left: -1.65rem; top: 0.45rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--rose-gold);
}
.timeline .t-step .t-time {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--rose-text);
  display: block;
  margin-bottom: 0.1rem;
  letter-spacing: 0.01em;
}
.timeline .t-step .t-desc {
  font-size: 0.92rem;
  color: var(--charcoal);
  line-height: 1.55;
}


/* ---------------------------------------------------------------------
   12. Checklist
   --------------------------------------------------------------------- */
.checklist {
  margin: 1rem 0 1.5rem;
  padding: 1.1rem 1.3rem;
  background: var(--pearl);
  border-radius: 6px;
}
.checklist h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--noir);
  margin: 0 0 0.6rem;
}
.checklist ul { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  color: var(--charcoal);
  line-height: 1.55;
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.25rem;
  width: 1.1rem; height: 1.1rem;
  border: 1.5px solid var(--warm-taupe);
  border-radius: 3px;
  background: white;
}


/* ---------------------------------------------------------------------
   13. Template Box + Script
   --------------------------------------------------------------------- */
.template-box {
  background: white;
  border: 1px solid var(--warm-sand);
  border-left: 3px solid var(--champagne);
  border-radius: 4px;
  padding: 1.1rem 1.3rem;
  margin: 1rem 0 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--charcoal);
  line-height: 1.6;
  white-space: pre-wrap;
}
.template-box .t-label {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--rose-text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}
.template-box strong { font-weight: 600; color: var(--noir); }

.script {
  background: var(--ivory);
  border: 1px solid var(--warm-sand);
  border-left: 3px solid var(--rose-gold);
  border-radius: 4px;
  padding: 1rem 1.3rem;
  margin: 1rem 0 1.5rem;
}
.script .context {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rose-text);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.script .script-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--charcoal);
  line-height: 1.65;
  margin-bottom: 0;
}


/* ---------------------------------------------------------------------
   14. Formula Box
   --------------------------------------------------------------------- */
.formula {
  background: var(--noir);
  color: var(--ivory);
  padding: 2rem 2.5rem;
  border-radius: 8px;
  margin: 1.5rem 0 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.formula::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(201,179,154,0.1), transparent 70%);
}
.formula .label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--champagne);
  margin-bottom: 1rem;
  position: relative;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.formula .eq {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  line-height: 1.8;
  position: relative;
  color: var(--ivory);
}
.formula .eq .numerator,
.formula .eq .denominator { display: inline-block; }
.formula .eq .frac {
  display: inline-block;
  vertical-align: middle;
  text-align: center;
  margin: 0 0.3rem;
}
.formula .eq .frac .numerator {
  border-bottom: 1px solid var(--champagne);
  padding: 0.3rem 0.8rem;
  display: block;
}
.formula .eq .frac .denominator {
  padding: 0.3rem 0.8rem;
  display: block;
}
.formula .eq em { font-style: italic; color: var(--champagne); }


/* ---------------------------------------------------------------------
   15. SOP Component (Standard Operating Procedure card)
   --------------------------------------------------------------------- */
.sop {
  background: white;
  border: 1px solid var(--warm-sand);
  border-radius: 8px;
  margin: 1.5rem 0 2rem;
  overflow: hidden;
  scroll-margin-top: 1rem;
}
.sop-head {
  background: linear-gradient(135deg, var(--noir) 0%, #2A2A2A 100%);
  color: var(--ivory);
  padding: 1.1rem 1.5rem;
  position: relative;
}
.sop-head::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(201,179,154,0.1), transparent 55%);
  pointer-events: none;
}
.sop-head .sop-id {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.82rem;
  color: var(--champagne);
  letter-spacing: 0.06em;
  margin-bottom: 0.15rem;
  position: relative;
}
.sop-head h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--ivory);
  margin: 0 0 0.4rem;
  position: relative;
  line-height: 1.2;
}
.sop-head h3 em { font-style: italic; color: var(--champagne); }
.sop-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: rgba(250,247,242,0.95);
  position: relative;
  margin-top: 0.5rem;
}
.sop-meta .meta-item { display: flex; align-items: center; gap: 0.3rem; }
.sop-meta .meta-item strong {
  color: var(--champagne);
  font-weight: 500;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.82rem;
}

.sop-body { padding: 1.5rem 1.8rem 1.8rem; }
.sop-why {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--taupe-text);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.3rem;
  border-left: 3px solid var(--champagne);
  padding: 0.3rem 0 0.3rem 1rem;
}
.sop-section-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--rose-text);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 1.3rem 0 0.5rem;
  display: block;
}
.sop-section-label:first-child { margin-top: 0; }

.sop ol.steps {
  list-style: none;
  padding-left: 0;
  counter-reset: step;
  margin: 0.5rem 0 1rem;
}
.sop ol.steps li {
  counter-increment: step;
  position: relative;
  padding: 0.6rem 0 0.6rem 2.6rem;
  border-top: 1px dashed var(--warm-sand);
}
.sop ol.steps li:first-child { border-top: none; }
.sop ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0.55rem;
  width: 1.9rem; height: 1.9rem;
  background: var(--pearl);
  color: var(--rose-text);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sop ol.steps li strong { font-weight: 500; color: var(--noir); }
.sop ol.steps li .step-note {
  display: block;
  font-size: 0.82rem;
  color: var(--taupe-text);
  margin-top: 0.2rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
}

.sop .quality-check {
  background: var(--green-bg);
  border: 1px solid #C8E0C8;
  border-radius: 6px;
  padding: 0.8rem 1.1rem;
  margin: 1rem 0;
  font-size: 0.88rem;
}
.sop .quality-check strong {
  font-family: 'Cormorant Garamond', serif;
  color: var(--green-text);
  font-style: italic;
  font-size: 0.92rem;
  display: block;
  margin-bottom: 0.2rem;
}
.sop .quality-check ul { margin: 0.3rem 0 0 1.2rem; font-size: 0.88rem; }
.sop .quality-check li { margin-bottom: 0.15rem; }

.sop .mistakes {
  background: var(--red-bg);
  border: 1px solid #F1CCCC;
  border-radius: 6px;
  padding: 0.8rem 1.1rem;
  margin: 1rem 0;
  font-size: 0.88rem;
}
.sop .mistakes strong {
  font-family: 'Cormorant Garamond', serif;
  color: var(--red-text);
  font-style: italic;
  font-size: 0.92rem;
  display: block;
  margin-bottom: 0.2rem;
}
.sop .mistakes ul { margin: 0.3rem 0 0 1.2rem; font-size: 0.88rem; }
.sop .mistakes li { margin-bottom: 0.15rem; }

.sop .teaching {
  background: var(--pearl);
  border-left: 3px solid var(--rose-gold);
  border-radius: 0 6px 6px 0;
  padding: 0.9rem 1.2rem;
  margin: 1.1rem 0 0.5rem;
  font-size: 0.88rem;
}
.sop .teaching strong {
  font-family: 'Cormorant Garamond', serif;
  color: var(--rose-text);
  font-style: italic;
  font-size: 0.92rem;
  display: block;
  margin-bottom: 0.3rem;
}
.sop .teaching p { margin-bottom: 0.3rem; color: var(--charcoal); }
.sop .teaching p:last-child { margin-bottom: 0; }

/* SOP-internal script: dark variant (note: specificity .sop .script
   overrides the top-level light .script defined in section 13) */
.sop .script {
  background: var(--noir);
  color: var(--ivory);
  border: none;
  border-left: none;
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
  margin: 0.8rem 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.65;
}
.sop .script .ctx {
  color: var(--champagne);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-style: normal;
  font-family: 'Inter', sans-serif;
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.sop .template-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0.6rem 0 0;
  padding: 0.4rem 0.8rem;
  background: var(--pearl);
  color: var(--rose-text);
  border-radius: 4px;
  font-size: 0.82rem;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid var(--warm-sand);
}
.sop .template-link:hover {
  background: var(--soft-blush);
  text-decoration: none;
}
.sop .template-link::after {
  content: '→';
  transition: transform 0.2s;
}
.sop .template-link:hover::after { transform: translateX(3px); }


/* ---------------------------------------------------------------------
   16. Method Cards
   --------------------------------------------------------------------- */
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.2rem 0 1.8rem;
}
.method-card {
  background: var(--pearl);
  border-top: 3px solid var(--rose-gold);
  padding: 1.2rem 1.3rem;
  border-radius: 4px;
}
.method-card .m-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--rose-text);
  font-size: 0.82rem;
  margin-bottom: 0.3rem;
  display: block;
}
.method-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--noir);
  margin: 0 0 0.4rem;
  text-transform: none;
  letter-spacing: 0;
}
.method-card p {
  font-size: 0.88rem;
  color: var(--charcoal);
  line-height: 1.55;
  margin: 0;
}


/* ---------------------------------------------------------------------
   17. Principles (edge-to-edge rose-gold top border)
   --------------------------------------------------------------------- */
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}
.principles.grid-2x2,
.method-grid.grid-2x2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) {
  .principles.grid-2x2,
  .method-grid.grid-2x2 { grid-template-columns: 1fr; }
}
.principle {
  border-top: 2px solid var(--rose-gold);
  padding-top: 1.2rem;
}
.principle h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0 0 0.6rem;
}
.principle p {
  font-size: 0.92rem;
  color: var(--charcoal);
  line-height: 1.55;
}


/* ---------------------------------------------------------------------
   18. Footer
   --------------------------------------------------------------------- */
footer {
  background: var(--noir);
  color: var(--champagne);
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 4rem;
}
footer .mark {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  display: block;
  color: var(--ivory);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}


/* ---------------------------------------------------------------------
   19. Landing / Index components (cards linking to guides)
   --------------------------------------------------------------------- */
.landing-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px;
}
.greeting {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-style: italic;
  color: var(--charcoal);
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
  line-height: 1.6;
}

.featured {
  background: var(--noir);
  color: var(--ivory);
  border-radius: 2px;
  padding: 56px 56px 48px;
  margin-bottom: 64px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-card);
}
.featured::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(201,179,154,0.12), transparent 55%),
    radial-gradient(ellipse at 20% 90%, rgba(183,110,121,0.08), transparent 55%);
  pointer-events: none;
}
.featured:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.featured .feat-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--champagne);
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  position: relative;
}
.featured h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 48px;
  line-height: 1.1;
  margin-bottom: 18px;
  color: var(--ivory);
  position: relative;
}
.featured .desc {
  font-size: 15px;
  color: rgba(250,247,242,0.95);
  margin-bottom: 24px;
  max-width: 640px;
  line-height: 1.7;
  position: relative;
}
.featured .cta {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--honey-oak);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.featured .cta::after {
  content: "→";
  transition: transform 0.3s ease;
}
.featured:hover .cta::after { transform: translateX(6px); }

/* Doppel-Hero: Start-hier + Event-Guide nebeneinander */
.featured-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 64px;
}
.featured-pair .featured {
  margin-bottom: 0;
  padding: 44px 40px 36px;
}
.featured-pair .featured h2 { font-size: 36px; }
.featured-pair .featured .desc { font-size: 14px; max-width: none; }

/* Alternative Variante: hell (pearl), für den Event-Guide als Referenz-Einstieg */
.featured.alt {
  background: var(--pearl);
  color: var(--noir);
  border-left: 3px solid var(--rose-gold);
}
.featured.alt::before {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(183,110,121,0.08), transparent 55%),
    radial-gradient(ellipse at 20% 90%, rgba(201,179,154,0.10), transparent 55%);
}
.featured.alt .feat-label { color: var(--rose-text); }
.featured.alt h2 { color: var(--noir); }
.featured.alt h2 em { color: var(--rose-text); }
.featured.alt .desc { color: var(--charcoal); }
.featured.alt .cta { color: var(--rose-text); }

/* Dreier-Hero: Start-hier + Business-Stages + Event-Guide nebeneinander */
.featured-trio {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 64px;
}
.featured-trio .featured {
  margin-bottom: 0;
  padding: 44px 36px 36px;
}
.featured-trio .featured h2 { font-size: 32px; }
.featured-trio .featured .desc { font-size: 14px; max-width: none; }

/* Stages-Variante: champagner-Hintergrund mit noir-Text */
.featured.stages {
  background: var(--champagne);
  color: var(--noir);
  border-left: 3px solid var(--rose-gold);
}
.featured.stages::before {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(183,110,121,0.10), transparent 55%),
    radial-gradient(ellipse at 20% 90%, rgba(28,28,28,0.06), transparent 55%);
}
.featured.stages .feat-label { color: var(--rose-text); }
.featured.stages h2 { color: var(--noir); }
.featured.stages h2 em { color: var(--rose-text); }
.featured.stages .desc { color: var(--charcoal); }
.featured.stages .cta { color: var(--rose-text); }

@media (max-width: 1100px) {
  .featured-trio { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .featured-pair { grid-template-columns: 1fr; }
  .featured-trio { grid-template-columns: 1fr; }
}

.section-heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 32px;
  color: var(--noir);
  margin: 16px 0 8px;
  text-align: center;
}
.section-heading em { font-style: italic; color: var(--rose-text); }
.section-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--taupe-text);
  font-size: 15px;
  text-align: center;
  margin-bottom: 36px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
a.card {
  display: block;
  background: var(--pearl);
  border-radius: 2px;
  padding: 48px 40px 40px;
  text-decoration: none;
  color: var(--noir);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 24px rgba(28, 28, 28, 0.04);
  position: relative;
  overflow: hidden;
}
a.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(28, 28, 28, 0.1);
}
a.card .num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--rose-gold);
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  display: block;
}
a.card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 26px;
  margin: 0 0 12px;
  color: var(--noir);
  line-height: 1.25;
}
a.card h3 em { font-style: italic; }
a.card .desc {
  font-size: 14px;
  color: var(--charcoal);
  line-height: 1.6;
  margin-bottom: 16px;
}
a.card .cta {
  font-size: 13px;
  color: var(--rose-text);
  font-weight: 500;
  letter-spacing: 0.02em;
}


/* ---------------------------------------------------------------------
   20. Responsive overrides
   --------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  main { padding: 1.5rem 1.2rem 3rem; }
  header.hero { padding: 4rem 6% 3rem; }
  .cards { grid-template-columns: 1fr; }
  .featured { padding: 40px 32px 36px; }
  .featured h2 { font-size: 36px; }
  .sop-body { padding: 1.2rem 1.2rem 1.3rem; }
}
