/* ============================================================
   such-werk — components.css
   SICHTWERK-Design-Komponenten (siehe E7). Nutzt tokens.css.
   ============================================================ */

/* ---------- Header / Nav (sticky) ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--sw-z-header);
  background: color-mix(in srgb, var(--sw-paper) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--sw-dur) var(--sw-ease), box-shadow var(--sw-dur) var(--sw-ease);
}
.site-header.is-scrolled { border-bottom-color: var(--sw-line); box-shadow: var(--sw-shadow-sm); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sw-s3); min-height: 68px;
}
.site-brand {
  font-family: var(--sw-font-sans); font-weight: var(--sw-fw-bold);
  font-size: 1.15rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--sw-ink); text-decoration: none;
}
.site-brand .dot { color: var(--sw-primary); }
.nav-primary ul { display: flex; gap: var(--sw-s3); list-style: none; margin: 0; padding: 0; }
.nav-primary a {
  color: var(--sw-ink-soft); font-size: var(--sw-fs-sm); font-weight: var(--sw-fw-medium);
  text-decoration: none; padding: .4rem 0; position: relative;
}
.nav-primary a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--sw-primary); transition: right var(--sw-dur) var(--sw-ease);
}
.nav-primary a:hover { color: var(--sw-ink); }
.nav-primary a:hover::after { right: 0; }
.site-header__cta { display: none; }
@media (min-width: 800px) { .site-header__cta { display: inline-flex; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; font-family: var(--sw-font-sans); font-size: var(--sw-fs-sm);
  font-weight: var(--sw-fw-semi); line-height: 1; text-decoration: none;
  padding: .95rem 1.5rem; border-radius: var(--sw-r-sm); border: 1.5px solid transparent;
  cursor: pointer; transition: all var(--sw-dur) var(--sw-ease); white-space: nowrap;
}
.btn--primary { background: var(--sw-primary); color: #fff; border-color: var(--sw-primary); }
.btn--primary:hover { background: var(--sw-primary-600); border-color: var(--sw-primary-600); color:#fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--sw-ink); border-color: var(--sw-ink); }
.btn--ghost:hover { background: var(--sw-ink); color: var(--sw-on-dark); }
.btn--sm { padding: .6rem 1rem; }

/* ---------- Hero (split) ---------- */
.hero { border-bottom: 1px solid var(--sw-line); }
.hero__grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.05fr .95fr; } }
.hero__content { padding: clamp(2.5rem, 6vw, 6rem) 0; display: flex; flex-direction: column; gap: var(--sw-s3); justify-content: center; }
.hero__title { font-size: var(--sw-fs-3xl); }
.hero__title .accent { font-style: italic; color: var(--sw-ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sw-s2); margin-top: var(--sw-s1); }
.hero__meta { font-size: var(--sw-fs-sm); color: var(--sw-muted); letter-spacing: .02em; }
.hero__media { position: relative; min-height: 340px; background: var(--sw-paper-2); }
.hero__media img { position:absolute; inset:0; width:100%; height:100%; object-fit: cover; }

/* ---------- Sektionen ---------- */
.section { padding-block: clamp(3.5rem, 8vw, var(--sw-s7)); }
.section--paper2 { background: var(--sw-paper-2); }
.section--dark { background: var(--sw-dark); color: var(--sw-on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--sw-on-dark); }
.section--dark .sw-lead { color: var(--sw-on-dark-muted); }
.section__head { max-width: 640px; margin-bottom: var(--sw-s4); display: flex; flex-direction: column; gap: var(--sw-s2); }

/* ---------- KPI / Stats-Band ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--sw-s3); }
.kpi { padding: var(--sw-s3) 0; }
.kpi__num { font-family: var(--sw-font-serif); font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; color: var(--sw-primary); }
.section--dark .kpi__num { color: #e6a08a; }
.kpi__label { margin-top: .5rem; font-size: var(--sw-fs-sm); color: var(--sw-muted); }
.section--dark .kpi__label { color: var(--sw-on-dark-muted); }

/* ---------- Steps (So funktioniert's) ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: var(--sw-s3); }
.step { background: var(--sw-surface); border: 1px solid var(--sw-line); border-radius: var(--sw-r-md); padding: var(--sw-s3); }
.step__no { font-family: var(--sw-font-serif); font-size: 1.5rem; color: var(--sw-primary); }
.step h3 { font-size: var(--sw-fs-lg); margin: .5rem 0; }
.step p { color: var(--sw-muted); font-size: var(--sw-fs-sm); }

/* ---------- Card-Grid (Aktuelles / Referenz) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--sw-s3); }
.card { background: var(--sw-surface); border: 1px solid var(--sw-line); border-radius: var(--sw-r-md); padding: var(--sw-s3); transition: transform var(--sw-dur) var(--sw-ease), box-shadow var(--sw-dur) var(--sw-ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--sw-shadow-md); }
.card h3 { font-size: var(--sw-fs-lg); margin-bottom: .5rem; }
.card p { color: var(--sw-muted); font-size: var(--sw-fs-sm); }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: var(--sw-s3); align-items: stretch; }
.price { background: var(--sw-surface); border: 1px solid var(--sw-line); border-radius: var(--sw-r-lg); padding: var(--sw-s4); display: flex; flex-direction: column; gap: var(--sw-s2); }
.price--featured { border-color: var(--sw-primary); box-shadow: var(--sw-shadow-md); }
.price__amount { font-family: var(--sw-font-serif); font-size: 2.5rem; color: var(--sw-ink); }

/* ---------- FAQ ---------- */
.faq { max-width: var(--sw-content); }
.faq details { border-bottom: 1px solid var(--sw-line); padding: var(--sw-s2) 0; }
.faq summary { cursor: pointer; font-family: var(--sw-font-serif); font-size: var(--sw-fs-lg); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sw-primary); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { color: var(--sw-muted); margin-top: .75rem; }

/* ---------- Kontakt / CTA-Band ---------- */
.contact { display: grid; grid-template-columns: 1fr; gap: var(--sw-s4); }
@media (min-width: 860px) { .contact { grid-template-columns: 1fr 1fr; } }
.contact__pitch h2 { margin-bottom: var(--sw-s2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--sw-dark); color: var(--sw-on-dark); padding-block: var(--sw-s5) var(--sw-s3); }
.site-footer a { color: var(--sw-on-dark-muted); }
.site-footer a:hover { color: var(--sw-on-dark); }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sw-s3); padding-bottom: var(--sw-s3); border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer__brand { font-family: var(--sw-font-sans); font-weight: var(--sw-fw-bold); text-transform: uppercase; letter-spacing:.04em; color: var(--sw-on-dark); }
.site-footer__brand .dot { color: var(--sw-primary); }
.site-footer nav ul { display:flex; gap: var(--sw-s3); list-style:none; margin:0; padding:0; flex-wrap: wrap; }
.site-footer__copy { padding-top: var(--sw-s3); font-size: var(--sw-fs-sm); color: var(--sw-on-dark-muted); }

/* ---------- Pagination / Posts ---------- */
.sw-pagination { display: flex; gap: .5rem; margin-top: var(--sw-s4); }
.sw-pagination a, .sw-pagination span { padding: .4rem .8rem; border: 1px solid var(--sw-line); border-radius: var(--sw-r-sm); }

/* ============================================================
   CLAUDE-KOMPONENTEN — Slot fuer weitere vom User ergaenzte
   Design-Komponenten. Hier unten anfuegen.
   ============================================================ */

/* --- Footer-Widget-Kontrast (dark) --- */
.site-footer__widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: var(--sw-s3); padding-block: var(--sw-s3); }
.footer-widget__title { color: var(--sw-on-dark); font-family: var(--sw-font-sans); font-size: var(--sw-fs-eyebrow); font-weight: var(--sw-fw-semi); letter-spacing: var(--sw-tracking-eyebrow); text-transform: uppercase; margin-bottom: .75rem; }
.site-footer__widgets ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .35rem; }
.site-footer__widgets a { color: var(--sw-on-dark-muted); font-size: var(--sw-fs-sm); }
.site-footer__widgets a:hover { color: var(--sw-on-dark); }


/* Hero visual (SVG fallback + uploaded header image) */
.hero__viz {
	display: block;
	width: 100%;
	max-width: 480px;
	height: auto;
	margin-inline: auto;
}
.hero__img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--radius-lg, 12px);
	object-fit: cover;
}
@media (prefers-reduced-motion: no-preference) {
	.hero__viz { animation: heroFade 0.9s ease both; }
	@keyframes heroFade {
		from { opacity: 0; transform: translateY(12px); }
		to   { opacity: 1; transform: translateY(0); }
	}
}


/* ============================================================
   SICHTWERK-Erweiterung v0.4.0 — Atoms & Module (Design-System)
   Neu: Orange-Balken (Atom), Section-Band (Modul), Zitat-Zeile (Modul).
   Konform zur verbindlichen Spezifikation: Tinte-basierte Schatten,
   Radius 14 nur auf Glas, Pfirsich statt Orange auf Dunkel,
   Hover Tinte->Orange mit Transition-Standard, keine Emojis.
   ============================================================ */

/* ---------- Atom: Orange-Balken (5px, mittig auf der Linie) ---------- */
.sw-bar {
  display: block;
  height: 5px;
  width: 72px;                 /* Goldener-Schnitt-naher Anschnitt */
  background: var(--sw-primary);
  border-radius: var(--sw-r-pill);
  margin-top: -3px;            /* sitzt mittig auf der 1px-Section-Linie */
}
.sw-bar--center { margin-inline: auto; }
.sw-bar--right  { margin-inline-start: auto; }
/* Kein Balken auf Dunkel (04) und Glas (08) — Spez */
.section--dark .sw-bar,
.sw-glass .sw-bar { display: none; }

/* ---------- Modul: Section-Band (eine Quelle fuer alle Seiten) ---------- */
.sw-band {
  border-top: 1px solid var(--sw-line);
  padding-top: var(--sw-s3);
  margin-bottom: var(--sw-s4);
  display: flex;
  flex-direction: column;
  gap: var(--sw-s1);
}
.sw-band__label {
  font-family: var(--sw-font-mono);
  font-size: var(--sw-fs-eyebrow);
  letter-spacing: var(--sw-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--sw-primary);
}
.section--dark .sw-band__label { color: var(--sw-primary-tint); } /* Pfirsich statt Orange auf Dunkel */
.sw-band__title {
  font-family: var(--sw-font-serif);
  font-size: var(--sw-fs-2xl);
  line-height: var(--sw-lh-head);
  letter-spacing: var(--sw-tracking-tight);
  color: var(--sw-heading);
  margin: 0;
}
.section--dark .sw-band__title { color: var(--sw-on-dark); }
.sw-band--center { text-align: center; align-items: center; }
.sw-band--right  { text-align: right; align-items: flex-end; }

/* ---------- Modul: Zitat-Zeile (Kundenstimme) ---------- */
.sw-quote {
  display: flex;
  gap: var(--sw-s3);
  align-items: flex-start;
  max-width: var(--sw-content);
}
.sw-quote__avatar {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: var(--sw-r-pill);
  border: 1.5px solid var(--sw-ink);      /* 64px-Knoten, 1.5px */
  display: grid;
  place-items: center;
  color: var(--sw-ink);
  background: transparent;
}
.section--dark .sw-quote__avatar {
  border-color: var(--sw-on-dark-muted);
  color: var(--sw-primary-tint);          /* Pfirsich-Akzent auf Dunkel */
}
.sw-quote__body { flex: 1 1 auto; }
.sw-quote__text {
  font-family: var(--sw-font-serif);
  font-style: italic;
  font-size: var(--sw-fs-lg);
  line-height: var(--sw-lh-body);
  color: var(--sw-ink-soft);
  margin: 0 0 var(--sw-s2);
}
.section--dark .sw-quote__text { color: var(--sw-on-dark); }
.sw-quote__cite {
  font-family: var(--sw-font-mono);
  font-size: var(--sw-fs-eyebrow);
  letter-spacing: var(--sw-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--sw-muted);
  font-style: normal;
}
.section--dark .sw-quote__cite { color: var(--sw-on-dark-muted); }
.sw-quote a {
  color: var(--sw-ink);
  transition: color var(--sw-dur) var(--sw-ease);   /* Hover-Standard */
}
.sw-quote a:hover { color: var(--sw-primary); }

@media (max-width: 640px) {
  .sw-quote { flex-direction: column; gap: var(--sw-s2); }
}


/* ============================================================
   T18b: Section-Head als Section-Band (Landing v3)
   Orange-Balken zwischen Eyebrow und Titel; eine Quelle fuer
   alle Sektionen. Balken 5px (Spez). Serif-Titel.
   ============================================================ */
.section__head { position: relative; gap: var(--sw-s1); }
.section__head .sw-eyebrow { margin-bottom: var(--sw-s1); }
.section__head .sw-eyebrow::after {
	content: "";
	display: block;
	height: 5px;
	width: 72px;
	margin-top: var(--sw-s2);
	background: var(--sw-primary);
	border-radius: var(--sw-r-pill);
}
.section__head h2 {
	font-family: var(--sw-font-serif);
	font-size: var(--sw-fs-2xl);
	line-height: var(--sw-lh-head);
	letter-spacing: var(--sw-tracking-tight);
	font-weight: var(--sw-fw-semi);
	max-width: 18ch;
}
.section--dark .section__head .sw-eyebrow { color: rgb(230, 160, 138); }
.section--dark .section__head .sw-eyebrow::after { background: rgb(230, 160, 138); }
