/* ============================================================
   DESIGN SYSTEM – Trageberatung Carina Illek
   Single source of truth for all shared styles.
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --accent:       #f4a261;
  --accent-dark:  #e89450;
  --peach:        #fef5ed;
  --peach-light:  #fffaf7;
  --border:       #ffe4d1;
  --text:         #2d3748;
  --muted:        #718096;
  --white:        #ffffff;
  --shadow-sm:    0 2px 8px rgba(244,162,97,.12);
  --shadow-md:    0 4px 20px rgba(244,162,97,.15);
  --shadow-lg:    0 10px 40px rgba(244,162,97,.20);
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  line-height: 1.75;
  font-size: 1.05rem;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ── Typography hierarchy ───────────────────────────────────── */
h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}
h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}
h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
p { color: var(--muted); line-height: 1.8; }
a { color: var(--accent); }
.hl { color: var(--accent); }

/* ── Layout utilities ───────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section {
  padding: 5rem 2rem;
}
.section--peach { background: var(--peach); }
.section--light { background: var(--peach-light); }
.section--white { background: var(--white); }
.section--dark  { background: linear-gradient(135deg, #1a202c, #2d3748); color: var(--white); }
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(244,162,97,.1);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.section-title {
  margin-bottom: 0.75rem;
}
.section-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}
.centered { text-align: center; }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card--accent-top {
  border-top: 3px solid var(--accent);
}
.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.95rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--white); }

/* ── Header / Nav ───────────────────────────────────────────── */
header {
  background: var(--white);
  box-shadow: 0 2px 15px rgba(244,162,97,.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--peach);
}
nav {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo { display:flex; align-items:center; gap:1rem; text-decoration:none; }
.logo-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--accent), #f8c291);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.logo-icon svg { width:26px; height:26px; fill:var(--white); }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-size:1.4rem; font-weight:700; color:var(--text); letter-spacing:-.02em; line-height:1.2; }
.logo-tagline { font-size:.8rem; font-weight:500; color:var(--accent); margin-top:.1rem; }
.nav-links { display:flex; gap:2rem; list-style:none; align-items:center; }
.nav-links a { color:var(--text); text-decoration:none; font-weight:500; font-size:.95rem; transition:color .2s; }
.nav-links a:hover { color:var(--accent); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display:flex; align-items:center; gap:.35rem; cursor:pointer; }
.nav-arrow {
  font-size:.7rem;
  transition: transform .25s;
  display: inline-block;
  color: var(--accent);
}
.nav-dropdown:hover .nav-arrow { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + .75rem);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(254,245,237,.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(244,162,97,.18);
  padding: .5rem;
  min-width: 220px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity .22s, visibility .22s, transform .22s;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu li a {
  display: block;
  padding: .6rem 1rem;
  border-radius: 9px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  transition: background .18s, color .18s;
  white-space: nowrap;
}
.nav-dropdown-menu li a:hover {
  background: rgba(244,162,97,.15);
  color: var(--accent);
}
.cta-btn, .cta-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  padding: .8rem 1.75rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  transition: all .3s;
  box-shadow: var(--shadow-sm);
}
.cta-btn:hover, .cta-button:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: linear-gradient(135deg, #1a202c, #2d3748);
  color: var(--white);
  padding: 3.5rem 2rem 1.5rem;
  border-top: 4px solid var(--accent);
}
.footer-content {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  text-align: center;
}
.footer-section h3 { color:var(--accent); margin-bottom:1.1rem; font-weight:600; font-size:1rem; }
.footer-section p { margin:.35rem 0; opacity:.85; font-size:.875rem; line-height:1.6; color: var(--white); }
.footer-section a { color:var(--white); text-decoration:none; display:block; margin:.45rem 0; opacity:.85; font-size:.875rem; transition:all .25s; }
.footer-section a:hover { opacity:1; color:var(--accent); transform:translateY(-2px); }
.footer-bottom {
  max-width: 1600px;
  margin: 0 auto;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(244,162,97,.2);
  opacity: .75;
  font-size: .875rem;
  color: var(--white);
}
.footer-bottom a { color:var(--accent); text-decoration:none; }
.footer-credits {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(244,162,97,.15);
  font-size: .875rem;
  opacity: .85;
}
.footer-credits a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.credits-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(244,162,97,.1);
  padding: .5rem 1rem;
  border-radius: 20px;
  margin-top: .75rem;
  transition: all .3s;
  color: var(--white);
  text-decoration: none;
}
.credits-badge:hover { background: rgba(244,162,97,.2); transform: translateY(-2px); }
.credits-badge svg { width:16px; height:16px; fill:var(--accent); }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: .75rem 2rem;
  font-size: .85rem;
  color: var(--muted);
}
.breadcrumb a { color:var(--accent); text-decoration:none; }
.breadcrumb a:hover { text-decoration:underline; }
.breadcrumb span { margin:0 .5rem; opacity:.5; }

/* ── Stats strip ────────────────────────────────────────────── */
.stats-strip {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  padding: 2.5rem 2rem;
}
.stats-inner, .stats-strip-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.stat, .stat-item { text-align: center; color: var(--white); }
.stat-num, .stat-number { font-size:2rem; font-weight:700; color:var(--white); line-height:1; }
.stat-label { font-size:.85rem; opacity:.85; margin-top:.35rem; color: var(--white); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-content { grid-template-columns: repeat(2, 1fr); }
}
/* ── Hamburger ──────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .section { padding: 3rem 1.5rem; }
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr 1fr; }

  /* Header */
  header { position: sticky; top: 0; z-index: 1000; }
  nav { position: relative; padding: 1rem 1.5rem; }
  .cta-btn, .cta-button { display: none; }
  .hamburger { display: flex; }

  /* Mobile nav */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 3px solid var(--accent);
    box-shadow: 0 8px 32px rgba(0,0,0,.1);
    padding: 1rem 1.5rem 1.5rem;
    gap: 0;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; border-bottom: 1px solid var(--border); }
  .nav-links > li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: .85rem 0; font-size: 1rem; color: var(--text); }

  /* Mobile dropdown */
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: var(--peach);
    box-shadow: none;
    border-radius: 10px;
    margin: 0 0 .5rem;
    padding: .25rem .5rem;
    min-width: unset;
  }
  .nav-dropdown:hover .nav-dropdown-menu { transform: none; }
  .nav-dropdown-menu li a { padding: .6rem .75rem; }
}
@media (max-width: 480px) {
  .footer-content { grid-template-columns: 1fr; }
}
