/* ============================================================
   Autismustherapie Stuttgart — Autismuszentrum Toma
   Design-System: aufgefrischte Version der Pforzheim-Seite
   Farben: Koralle / Indigo / Gelb (Markenfarben des Originals)
   Typo:   Lora (Headlines, Serif) + Nunito Sans (Body)
   ============================================================ */

:root {
  --coral: #E94F58;
  --coral-dark: #D13A44;
  --indigo: #4F4E9E;
  --indigo-dark: #3E3D85;
  --yellow: #F2C424;
  --blue: #3D6FB4;

  --accent: var(--coral);
  --accent-dark: var(--coral-dark);

  --ink: #2B2733;
  --ink-soft: #5A5564;
  --bg: #FBFAF8;
  --bg-alt: #F4F1EB;
  --card: #FFFFFF;
  --line: #E8E4DC;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(43, 39, 51, 0.08);
  --shadow-soft: 0 4px 14px rgba(43, 39, 51, 0.06);

  --font-head: "Lora", Georgia, serif;
  --font-body: "Nunito Sans", "Segoe UI", sans-serif;

  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em 0;
  text-wrap: pretty;
}

h1 { font-size: clamp(34px, 4.5vw, 54px); }
h2 { font-size: clamp(26px, 3vw, 36px); }
h3 { font-size: 21px; }

p { margin: 0 0 1em 0; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name strong {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-name span {
  font-size: 12.5px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 15.5px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.main-nav a:hover { color: var(--ink); }

.main-nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: 999px;
  border-bottom: none !important;
  transition: background 0.15s ease;
}

.nav-cta:hover { background: var(--accent-dark); color: #fff !important; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  padding: 13px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn-ghost:hover { background: var(--bg-alt); color: var(--ink); }

.btn-light {
  background: #fff;
  color: var(--ink);
}

.btn-light:hover { background: var(--bg-alt); }

/* ---------- Sections ---------- */

.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ---------- Info-Karten (Koralle / Indigo / Gelb) ---------- */

.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.info-card {
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  color: #fff;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-card h3 { color: #fff; margin-bottom: 4px; }
.info-card p { font-size: 15.5px; }
.info-card a { color: #fff; font-weight: 700; }

.info-card .card-link {
  margin-top: auto;
  padding-top: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
}

.info-card .card-link:hover { text-decoration: underline; }

.info-card-coral { background: var(--coral); }
.info-card-indigo { background: var(--indigo); }
.info-card-yellow { background: var(--yellow); color: #4A3B00; }
.info-card-yellow h3 { color: #4A3B00; }
.info-card-yellow a { color: #4A3B00; }

/* ---------- Split-Layout (Text + Bild) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split.reverse > :first-child { order: 2; }

/* ---------- Therapie-Karten ---------- */

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.t-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.t-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.t-card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 8px; }
.t-card-body h3 { margin-bottom: 2px; }
.t-card-body p { font-size: 15.5px; color: var(--ink-soft); }

.t-tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--ink-soft);
}

/* ---------- Schritte (Ihr Weg zu uns) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 18px;
}

.step:nth-child(1) .step-num { background: var(--coral); }
.step:nth-child(2) .step-num { background: var(--indigo); }
.step:nth-child(3) .step-num { background: var(--yellow); color: #4A3B00; }

.step h3 { margin-bottom: 6px; }
.step p { font-size: 15.5px; color: var(--ink-soft); }

/* ---------- Listen ---------- */

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  font-size: 16px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="4 13 9 18 20 6"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="4 13 9 18 20 6"/></svg>') center / contain no-repeat;
}

/* ---------- Kontakt / Formular ---------- */

.form {
  display: grid;
  gap: 14px;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  transition: border-color 0.15s ease;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form textarea { min-height: 130px; resize: vertical; }

.form .consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.form .consent input { margin-top: 3px; accent-color: var(--accent); }

.contact-rows { display: grid; gap: 14px; margin: 24px 0; }

.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
}

.contact-row a { font-weight: 700; text-decoration: none; }
.contact-row a:hover { text-decoration: underline; }

.contact-ico {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-alt);
  font-size: 17px;
}

/* ---------- Platzhalter (Karte etc.) ---------- */

.ph {
  border-radius: var(--radius);
  background: repeating-linear-gradient(
    -45deg,
    #EFECE5 0px, #EFECE5 14px,
    #E6E2D8 14px, #E6E2D8 28px
  );
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  text-align: center;
  padding: 16px;
}

/* ---------- Footer ---------- */

.color-stripe {
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--blue) 0 25%,
    var(--indigo) 25% 50%,
    var(--yellow) 50% 75%,
    var(--coral) 75% 100%
  );
}

.site-footer {
  background: #FFFFFF;
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.site-footer h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink); text-decoration: none; font-size: 15.5px; }
.site-footer a:hover { color: var(--accent); }
.site-footer p { font-size: 15.5px; color: var(--ink-soft); }

.footer-bottom {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* ---------- Unterseiten-Hero ---------- */

.page-hero {
  background: var(--indigo);
  color: #fff;
  padding: 72px 0 64px;
}

.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { max-width: 620px; font-size: 18px; color: rgba(255, 255, 255, 0.85); }

/* ---------- Mobile Nav Toggle ---------- */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  font-size: 22px;
  color: var(--ink);
  line-height: 1;
  margin-left: auto;
}

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .info-cards, .cards-3, .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse > :first-child { order: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }

  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(251, 250, 248, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
    z-index: 99;
  }

  .main-nav.open { display: flex; }

  .main-nav a {
    padding: 12px 28px;
    border-bottom: none;
    font-size: 16px;
  }

  .nav-cta {
    margin: 12px 28px 0 !important;
    padding: 12px 20px !important;
    text-align: center;
    border-radius: 999px !important;
  }

  .site-header .container { position: relative; }
}
