/* components.css — Nav, Footer, Buttons, Cards, CTA-Banner, Fade-in */

/* === Nav (NAV-01, NAV-04) === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-nav-bg);
  transition: box-shadow var(--duration-fast) var(--easing-default);
}
.nav--scrolled {
  box-shadow: var(--shadow-nav);
  /* backdrop-filter on fully opaque background is a no-op — box-shadow only */
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo img {
  display: block;
}

/* === Desktop Nav Links (INT-05, NAV-02, RESP-04) === */
.nav-links {
  display: none;    /* hidden on mobile; shown via media query */
  list-style: none;
  gap: 2rem;
}
@media (min-width: 620px) {
  .nav-links { display: flex; align-items: center; }
}
.nav-link {
  color: var(--color-text-light);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.9375rem;   /* 15px */
  font-weight: 500;
  line-height: 1.4;
  min-height: 44px;       /* RESP-04: 44px touch target */
  display: flex;
  align-items: center;
  padding: 0 0.25rem;
  transition: color var(--duration-fast) var(--easing-default);
}
.nav-link:hover,
.nav-link.active {
  color: var(--color-gold);
}
.nav-link.active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* === Hamburger Button (NAV-03, A11Y-05, RESP-04) === */
.hamburger {
  display: flex;    /* shown on mobile */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-light);
}
@media (min-width: 620px) {
  .hamburger { display: none; } /* hidden on desktop */
}
.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-light);
  border-radius: 2px;
  transition: background var(--duration-fast) var(--easing-default);
}

/* === Hamburger Overlay (NAV-03, D-09) === */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  height: 100dvh;             /* D-09: iOS Safari viewport fix — use dvh, not vh */
  background: var(--color-bg-dark);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.nav-overlay--open {
  display: flex;
}
/* Show link list inside overlay (overrides global display:none on mobile) */
.nav-overlay .nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Large nav links in overlay */
.nav-overlay .nav-link {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text-light);
  min-height: 48px;
}
.nav-overlay .nav-link:hover {
  color: var(--color-gold);
}
/* Close (X) button inside overlay */
.nav-overlay-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-light);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Footer (PAGES-08) === */
.footer {
  /* background and color inherited from layout.css .footer rule */
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.footer-tagline {
  font-size: 0.9375rem;
  color: var(--color-muted-dark);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.875rem;   /* 14px */
  color: var(--color-muted-dark);
  text-decoration: none;
  transition: color var(--duration-fast) var(--easing-default);
}
.footer-links a:hover {
  color: var(--color-text-light);
}

/* === Buttons (INT-03, RESP-04) === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gold);
  color: var(--color-bg-dark);
  border: none;
  border-radius: var(--radius-btn);
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;   /* 15px */
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;       /* RESP-04 */
  transition: background var(--duration-fast) var(--easing-default);
}
.btn-primary:hover {
  background: var(--color-gold-bright);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-btn);
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
  transition: background var(--duration-fast) var(--easing-default),
              color var(--duration-fast) var(--easing-default);
}
.btn-outline:hover {
  background: var(--color-gold);
  color: var(--color-bg-dark);
}

/* === Cards (design spec section 6) === */
.card {
  border-radius: var(--radius-card);
  padding: var(--space-card-padding);
  transition: box-shadow var(--duration-fast) var(--easing-default);
}
/* Card on light bands */
.card-light {
  background: var(--color-card-light);
  border: 1px solid var(--color-border-light);
  color: var(--color-text-dark);
}
/* Card on dark bands */
.card-dark {
  background: var(--color-card-dark);
  border: 1px solid var(--color-border-dark);
  color: var(--color-text-light);
}
.card:hover {
  box-shadow: var(--shadow-card-hover); /* INT-04 prep — no translate, shadow only */
}
.card-light:not(:hover) {
  box-shadow: var(--shadow-card);
}
/* Card headline: Inter 600, 18px — on dark bands: gold */
.card-title {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
.card-dark .card-title {
  color: var(--color-gold);
}
.card-light .card-title {
  color: var(--color-text-dark);
}

/* === CTA-Banner (inner component) === */
.cta-banner-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;     /* 36px — design spec section 6 */
  font-weight: 600;
  color: var(--color-text-light);
  line-height: 1.2;
  margin-bottom: 1rem;
  text-align: center;
}
.cta-banner-sub {
  font-size: 1.1875rem;   /* 19px — design spec section 6 */
  color: var(--color-muted-dark);
  margin-bottom: 2rem;
  text-align: center;
}
.cta-banner .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* === Fade-in CSS (Phase 2 IntersectionObserver base state — INT-02 prep) === */
.fade-in {
  opacity: 0;
  transition: opacity var(--duration-fade) var(--easing-default);
}
.fade-in--visible {
  opacity: 1;
}
/* Phase 2 (fade.js) adds .fade-in--visible class via IntersectionObserver */

/* ===================================================================== */
/* === Phase 2 — Startseite components (Plan A) ======================== */
/* ===================================================================== */

/* === Hero typography (D-09, D-10) === */
/* font-family/size/weight inherited from base.css h1 — do NOT redeclare */
.hero-title {
  color: var(--color-gold);
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-family: var(--font-sans);
  font-size: clamp(1.0625rem, 1.5vw + 0.6rem, 1.3125rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  max-width: 640px;
}

/* === Bausteine grid (D-04, D-05, Pitfall 1) === */
/* 2-col from 620px, never 4-col (D-04/D-05) — do NOT use .grid-4 here */
.baustein-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: var(--space-block-gap);
}
@media (min-width: 620px) {
  .baustein-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* === Baustein card === */
/* background/padding/border come from existing .card / .card-dark rules */
/* equal row heights via CSS Grid default align-items: stretch (D-06) */
.baustein-card {
  display: flex;
  flex-direction: column;
}

/* === Secondary CTA text-link (D-03) === */
.card-cta-link {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-gold);
  text-decoration: none;
  margin-top: 1rem;
  transition: color var(--duration-fast) var(--easing-default);
}
.card-cta-link:hover {
  color: var(--color-gold-bright);
}

/* ===================================================================== */
/* === Phase 2 — Startseite (Plan B) ================================== */
/* ===================================================================== */

/* === Alltagsszene quote-block (light band, white card) === */
.quote-block {
  background: var(--color-card-light);
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius-card);
  padding: var(--space-card-padding);
  box-shadow: var(--shadow-card);
  margin-top: var(--space-block-gap);
}
/* Pitfall 4: eyebrow uses --color-gold-soft, NOT --color-gold */
.quote-eyebrow {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-gold-soft);
  margin-bottom: 0.75rem;
}
/* <blockquote> default margin reset; not italic per design spec body style */
.quote-text {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--color-text-dark);
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 1.5rem;
  font-style: normal;
}

/* === Wer-Block (dark band person block) === */
/* layout (220px + 1fr, align-items: start) comes from existing .grid-2-col */
.wer-block {
  margin-top: var(--space-block-gap);
}
.wer-name {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

/* === Text logo (placeholder until final SVG is delivered) === */
.footer-copy {
  font-size: 0.8125rem;
  color: rgb(168, 174, 187);
  margin-top: 1rem;
  text-align: center;
}

.nav-logo .logo-text,
footer .logo-text {
  font-family: var(--font-serif);
  font-size: 1.625rem;
  font-weight: 600;
  color: var(--color-gold-bright);
  letter-spacing: 0.02em;
}

/* === Portrait placeholder (D-07: CSS div, no <img>, ASSET-02) === */
.portrait-placeholder {
  width: 220px;
  height: 270px;
  border-radius: var(--radius-card);
  background: var(--color-border-dark);
}
.portrait-caption {
  font-size: 0.8125rem;
  color: var(--color-muted-dark);
  text-align: center;
  margin-top: 0.5rem;
}

/* ===================================================================== */
/* === Phase 3 — Content Pages (Plan A) ================================ */
/* ===================================================================== */

/* === Numbered block (D-01/D-02/D-03, D-05) === */
/* Shared numbered-list pattern: Ansatz PERMA dimensions + Angebot 4-step process. */
/* Layout: fixed-width gold numeral column (64px per Designbeschreibung §6) + */
/* right column with h3 title, body text, italic Beispiel. Stacks naturally on */
/* mobile because the number column is already narrow. No media query needed. */
.numbered-list {
  display: flex;
  flex-direction: column;
  gap: 0; /* spacing comes from per-block padding-bottom */
  margin-top: var(--space-block-gap);
}
.numbered-block {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-border-light);
}
.numbered-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.numbered-block__number {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4vw + 1rem, 3rem); /* ~48px desktop per D-02 */
  font-weight: 600;
  color: var(--color-gold);
  line-height: 1;
  min-width: 64px; /* Designbeschreibung §6: 64px linke Spalte */
  flex-shrink: 0;
}
.numbered-block__title {
  font-family: var(--font-sans);
  font-size: 1.0625rem; /* 17px — Inter 600 section title */
  font-weight: 600;
  color: inherit; /* inherits band text color */
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
.numbered-block__body {
  font-size: 1.0625rem; /* 17px body */
  font-weight: 400;
  line-height: 1.65;
  color: inherit;
  margin-bottom: 0.5rem;
}
.numbered-block__example {
  font-style: italic;
  font-size: 0.9375rem; /* 15px — Beispiel-Text per Designbeschreibung §6 */
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-muted-light); /* muted on light band per D-03 */
  margin-bottom: 0;
}
