/* ============================================================
   COMPONENTS · me.independent.mom
   Erfordert tokens.css + colors_and_type.css
   ============================================================ */

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 44px;          /* WCAG Touch-Target */
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: var(--fw-semibold);
  line-height: 1;
  letter-spacing: 0.2px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--dur-base) var(--ease),
    border-color var(--dur-base) var(--ease),
    color var(--dur-base) var(--ease),
    transform var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* Primary — Marineblau-Text auf Senfgelb (laut Brand Manual: CTA-Paarung) */
.btn-primary {
  background: var(--acc-gold);
  color: var(--acc-navy);
  border-color: var(--acc-gold);
}
.btn-primary:hover { background: #E59712; border-color: #E59712; }
.btn-primary:focus-visible { box-shadow: var(--focus-ring); }

/* Secondary — Marineblau-Outline */
.btn-secondary {
  background: transparent;
  color: var(--acc-navy);
  border-color: var(--acc-navy);
}
.btn-secondary:hover { background: var(--acc-navy); color: var(--text-on-dark); }

/* Solid Navy — für Soft-Teal-Hintergründe */
.btn-navy {
  background: var(--acc-navy);
  color: var(--text-on-dark);
  border-color: var(--acc-navy);
}
.btn-navy:hover { background: #062f3f; border-color: #062f3f; }
.btn-navy:focus-visible { box-shadow: var(--focus-ring-warm); }

/* Ghost — minimal, für Inline-Aktionen */
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: transparent;
}
.btn-ghost:hover { background: rgba(0,0,0,0.06); }

/* Disabled */
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-lg { min-height: 52px; padding: 16px 32px; font-size: 16px; }
.btn-sm { min-height: 36px; padding: 8px 16px; font-size: 14px; }

/* ============ CARDS ============ */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: var(--fw-display);
  text-transform: uppercase;
  letter-spacing: 0.2px;
  margin: 0 0 var(--sp-3);
  line-height: var(--lh-snug);
}
.card-body { color: var(--text-secondary); font-size: 15px; line-height: var(--lh-normal); margin: 0; }

/* Top-Border-Akzent (4 Varianten) */
.card-accent { padding-top: 36px; }
.card-accent::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
}
.card-accent-coral::before { background: var(--acc-coral); }
.card-accent-gold::before  { background: var(--acc-gold); }
.card-accent-teal::before  { background: var(--acc-teal); }
.card-accent-navy::before  { background: var(--acc-navy); }

/* Hervorgehoben — Lift-Schatten */
.card-feature { box-shadow: var(--shadow-lift); }

/* ============ BLOCK-AKZENT-KACHEL (Stat-Tile) ============ */
.block-tile {
  border-radius: var(--radius-lg);
  padding: 36px 28px 32px;
  text-align: center;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-2);
  position: relative;
}
.block-tile .tile-number {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  letter-spacing: -1px;
  margin: 0;
}
.block-tile .tile-title {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: var(--fw-semibold);
  margin: var(--sp-3) 0 var(--sp-2);
}
.block-tile .tile-sub {
  font-size: 14px;
  line-height: var(--lh-normal);
  opacity: 0.85;
  margin: 0;
}

.tile-teal  { background: var(--acc-teal);  color: var(--acc-navy); }
.tile-coral { background: var(--acc-coral); color: var(--text-on-dark); }
.tile-gold  { background: var(--acc-gold);  color: var(--acc-navy); }
.tile-navy  { background: var(--acc-navy);  color: var(--text-on-dark); }
.tile-coral .tile-sub,
.tile-navy .tile-sub { color: rgba(255,255,255,0.85); }

/* ============ STAT-DISPLAY (ohne Hintergrund) ============ */
.stat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.stat-number {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--text-primary);
}
.stat-label {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-emphasis);
  font-weight: var(--fw-semibold);
}
.stat-source {
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--text-muted);
  margin-top: var(--sp-2);
}

/* ============ PULL-QUOTE-BLOCK ============ */
.pq {
  border-left: 4px solid var(--acc-navy);
  padding: var(--sp-2) var(--sp-6);
  margin: var(--sp-8) 0;
  font-family: var(--font-body);
  font-size: var(--fs-pull);
  font-weight: var(--fw-semibold);
  line-height: 1.35;
  color: var(--text-emphasis);
  max-width: 65ch;
}
.pq-attribution {
  display: block;
  margin-top: var(--sp-3);
  font-size: 13px;
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

/* ============ FORMS ============ */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}
.field-label {
  font-size: 14px;
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}
.field-help {
  font-size: 13px;
  color: var(--text-muted);
}
.field-error {
  font-size: 13px;
  color: var(--acc-coral);
  font-weight: var(--fw-semibold);
}

.input, .textarea, .select {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-default);
  background: var(--bg-white);
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-body);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--text-muted); }
.input:hover, .textarea:hover, .select:hover { border-color: #B6B5B5; }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--acc-navy);
  box-shadow: var(--focus-ring);
}
.textarea { min-height: 120px; resize: vertical; line-height: var(--lh-normal); }
.select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%230A4054' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1l5 5 5-5'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; appearance: none; padding-right: 40px; }

.input--error, .textarea--error, .select--error {
  border-color: var(--acc-coral);
}
.input--error:focus, .textarea--error:focus, .select--error:focus {
  box-shadow: 0 0 0 3px rgba(242, 73, 76, 0.30);
}

/* Checkbox / Radio */
.check, .radio {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  cursor: pointer;
  padding: var(--sp-2) 0;
  line-height: 1.4;
}
.check input, .radio input {
  width: 20px; height: 20px;
  margin: 2px 0 0;
  accent-color: var(--acc-navy);
  cursor: pointer;
  flex-shrink: 0;
}
.check span, .radio span { font-size: 15px; color: var(--text-primary); }

/* ============ NAVIGATION ============ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--border-subtle);
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-brand img { height: 36px; width: auto; }
.nav-brand .brand-mark { width: 36px; height: 36px; flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  font-size: 15px;
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  text-decoration: none;
  position: relative;
  padding: var(--sp-2) 0;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease);
}
.nav-link:hover { color: var(--text-emphasis); }
.nav-link[aria-current="page"]::after,
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  background: var(--acc-coral);
}

.nav-cta { margin-left: auto; }

/* Mobile-Toggle */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1.5px solid var(--text-primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; stroke: currentColor; }

@media (max-width: 1100px) {
  .nav-brand span { display: none; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
}

/* ============ FOOTER ============ */
.footer {
  background: var(--acc-navy);
  color: var(--text-on-dark);
  padding: var(--sp-16) 0 var(--sp-10);
  margin-top: var(--sp-20);
}
.footer,
.footer p,
.footer strong,
.footer span,
.footer .footer-brand { color: var(--text-on-dark); }
.footer a { color: var(--acc-gold); }
.footer a:hover { color: var(--acc-peach); }
.footer-brand {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.3px;
  color: var(--text-on-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--sp-10);
}
.footer h4 {
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--acc-peach);
  margin: 0 0 var(--sp-4);
  font-weight: var(--fw-bold);
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: var(--sp-2); font-size: 14px; }
.footer-bottom {
  margin-top: var(--sp-12);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: 13px;
  opacity: 0.75;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============ BADGES / TAGS / PILLS ============ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.4;
}
.badge-teal  { background: var(--acc-teal);  color: var(--acc-navy); }
.badge-gold  { background: var(--acc-gold);  color: var(--acc-navy); }
.badge-coral { background: var(--acc-coral); color: var(--text-on-dark); }
.badge-navy  { background: var(--acc-navy);  color: var(--text-on-dark); }
.badge-outline {
  background: transparent;
  border: 1.5px solid var(--text-primary);
  color: var(--text-primary);
}
.pill { border-radius: var(--radius-full); padding: 6px 14px; }

/* ============ MODAL / DIALOG ============ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(10, 64, 84, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  z-index: 1000;
}
.modal {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: var(--sp-10) var(--sp-8) var(--sp-8);
  box-shadow: var(--shadow-lift);
  position: relative;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  text-transform: uppercase;
  margin: 0 0 var(--sp-4);
  line-height: var(--lh-snug);
}
.modal-close {
  position: absolute;
  top: var(--sp-4); right: var(--sp-4);
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: rgba(0,0,0,0.06); }
.modal-actions {
  display: flex;
  gap: var(--sp-3);
  justify-content: flex-end;
  margin-top: var(--sp-6);
}

/* ============ SECTION-HEADER PATTERN ============ */
.section-header { margin-bottom: var(--sp-10); }
.section-num {
  color: var(--acc-coral);
  font-weight: var(--fw-bold);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0 0 var(--sp-3);
}

/* ============ LISTEN-STYLES ============ */
ul.list-checks { list-style: none; padding-left: 0; }
ul.list-checks li {
  position: relative;
  padding-left: 32px;
  margin-bottom: var(--sp-3);
}
ul.list-checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  background: var(--acc-teal);
  border-radius: var(--radius-sm);
}
ul.list-checks li::after {
  content: "";
  position: absolute;
  left: 4px; top: 8px;
  width: 10px; height: 5px;
  border-left: 2px solid var(--acc-navy);
  border-bottom: 2px solid var(--acc-navy);
  transform: rotate(-45deg);
}

/* ============ STUFENMODELL (Folie 15) ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  align-items: end;
}
.step {
  border-radius: var(--radius-md);
  padding: var(--sp-5) var(--sp-4);
  text-align: center;
  position: relative;
  color: var(--acc-navy);
}
.step-number {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: var(--fw-bold);
  color: var(--text-primary);
}
.step-title {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: var(--fw-bold);
  margin: 0 0 var(--sp-1);
}
.step-sub { font-size: 13px; opacity: 0.85; margin: 0; }
.step-1 { background: var(--acc-coral-pink); height: 130px; padding-top: var(--sp-8); }
.step-2 { background: var(--acc-gold);       height: 170px; padding-top: var(--sp-8); }
.step-3 { background: var(--acc-teal);       height: 210px; padding-top: var(--sp-10); }
.step-4 { background: var(--acc-navy);       height: 250px; color: var(--text-on-dark); padding-top: var(--sp-12); }
.step-4 .step-number { color: var(--text-primary); }

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr 1fr; gap: var(--sp-10) var(--sp-3); }
}

/* ============ HERO PATTERN ============ */
.hero {
  background: var(--bg-soft-teal);
  padding: var(--sp-24) 0 var(--sp-20);
  position: relative;
  overflow: hidden;
}
.hero-illustration {
  position: absolute;
  left: -20px; bottom: 0; top: 0;
  width: clamp(240px, 28%, 380px);
  pointer-events: none;
}
.hero-illustration svg,
.hero-illustration img { width: 100%; height: 100%; object-fit: cover; object-position: bottom right; }
.hero-content {
  position: relative;
  z-index: 1;
  margin-left: clamp(260px, 30%, 380px);
  padding-left: var(--sp-8);
  max-width: 760px;
}
@media (max-width: 1100px) {
  .hero-illustration { display: none; }
  .hero-content { margin-left: 0; padding-left: 0; max-width: 760px; }
  .hero { padding: var(--sp-16) 0 var(--sp-12); }
}

/* ============ COLOR-AKZENT-PAARUNGEN (Util) ============ */
.bg-peach-cream { background: var(--bg-peach-cream); }
.bg-soft-teal   { background: var(--bg-soft-teal); }
.bg-soft-pink   { background: var(--bg-soft-pink); }
.bg-warm-sand   { background: var(--bg-warm-sand); }
.bg-white       { background: var(--bg-white); }
