/* ============================================================
   Pialini – Elternberatung
   ============================================================ */

/* Lokal gehostete Schriften (DSGVO-konform, keine Verbindung zu Google) */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/fraunces-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/nunito-latin.woff2") format("woff2");
}

:root {
  --bg: #faf6f0;
  --bg-soft: #f3ece2;
  --card: #ffffff;
  --ink: #31403a;
  --ink-soft: #5c6b64;
  --primary: #3e7c6b;
  --primary-dark: #2e6052;
  --primary-soft: #e3efea;
  --accent: #e2956b;
  --accent-soft: #fbeadd;
  --border: #e8e0d4;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(49, 64, 58, 0.08);
  --maxw: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Nunito", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .5rem; }
h3 { font-size: 1.2rem; }

p { color: var(--ink-soft); }

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

img, svg { display: block; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 4.5rem 0; }

.section-intro {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.kicker {
  display: inline-block;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: .3rem .8rem;
  border-radius: 99px;
  margin-bottom: .9rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 240, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .8rem;
  padding-bottom: .8rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
}

.logo svg { width: 38px; height: 38px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: .95rem;
}

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

.main-nav a.btn-primary,
.main-nav a.btn-primary:hover { color: #fff; }

.nav-toggle { display: none; }

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

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  border-radius: 99px;
  padding: .8rem 1.6rem;
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(62, 124, 107, .35);
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-ghost {
  border: 2px solid var(--primary);
  color: var(--primary-dark);
}

.btn-nav { padding: .55rem 1.2rem; font-size: .95rem; }

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

.hero {
  padding: 4.5rem 0 4rem;
  background:
    radial-gradient(circle at 85% 15%, var(--accent-soft) 0, transparent 40%),
    radial-gradient(circle at 10% 90%, var(--primary-soft) 0, transparent 45%);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 3rem;
  align-items: center;
}

.hero p.lead {
  font-size: 1.15rem;
  margin: 1.2rem 0 1.8rem;
  max-width: 560px;
}

.hero-ctas { display: flex; gap: .9rem; flex-wrap: wrap; }

.hero-note {
  margin-top: 1rem;
  font-size: .95rem;
  color: var(--ink-soft);
}

.hero-art {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.hero-art ul { list-style: none; display: grid; gap: 1rem; }

.hero-art li {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  font-weight: 700;
  color: var(--ink);
}

.hero-art li svg { flex: 0 0 26px; width: 26px; height: 26px; margin-top: 2px; }

.hero-art li span small {
  display: block;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ---------- Trust bar ---------- */

.trustbar {
  background: var(--primary);
  color: #fff;
  padding: 1.1rem 0;
}

.trustbar .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .8rem 2rem;
  font-weight: 700;
  font-size: .98rem;
}

.trustbar span { display: flex; align-items: center; gap: .5rem; }

/* ---------- Kennen Sie das? (Pain Points) ---------- */

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.pain {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
}

.pain blockquote {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.08rem;
  font-style: italic;
  color: var(--ink);
  margin-bottom: .5rem;
}

.pain p { font-size: .95rem; }

.pain p a { font-weight: 700; }

/* ---------- Cards (Angebote) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem 1.6rem;
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}

.card .icon svg { width: 28px; height: 28px; }

.card h3 { margin-bottom: .5rem; }

.card p { font-size: .98rem; }

.card .tag {
  display: inline-block;
  margin-top: .9rem;
  font-size: .8rem;
  font-weight: 800;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 99px;
  padding: .2rem .7rem;
}

/* ---------- Themen ---------- */

.themen { background: var(--bg-soft); }

.themen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.thema {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
}

.thema svg { flex: 0 0 30px; width: 30px; height: 30px; margin-top: 3px; }

.thema strong { display: block; font-size: 1.05rem; }

.thema p { font-size: .95rem; }

/* ---------- Ablauf ---------- */

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

.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.6rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -1.1rem;
  left: 1.4rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.1rem;
}

.step h3 { margin-bottom: .4rem; }
.step p { font-size: .96rem; }

/* ---------- Über mich ---------- */

.about { background: var(--bg-soft); }

.about .wrap {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.about-photo {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-photo figcaption {
  font-size: .85rem;
  color: var(--ink-soft);
  padding: .6rem;
  text-align: center;
}

.about-text p { margin-bottom: 1rem; }

.badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }

.badges span {
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: .85rem;
  font-weight: 800;
  border-radius: 99px;
  padding: .35rem .9rem;
}

/* ---------- Elterntreff ---------- */

.treff-box {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.treff-box h2, .treff-box p { color: #fff; }

.treff-box p { opacity: .92; margin-top: .6rem; }

.treff-box .btn-ghost { border-color: #fff; color: #fff; }

.treff-meta {
  background: rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: 1.4rem;
  display: grid;
  gap: .7rem;
  font-weight: 700;
}

/* ---------- Preise ---------- */

.price-table-wrap { overflow-x: auto; }

table.prices {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

table.prices caption {
  caption-side: bottom;
  text-align: left;
  font-size: .9rem;
  color: var(--ink-soft);
  padding: .9rem .2rem 0;
}

table.prices th, table.prices td {
  text-align: left;
  padding: 1.05rem 1.3rem;
  border-bottom: 1px solid var(--border);
}

table.prices thead th {
  background: var(--primary);
  color: #fff;
  font-size: .92rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

table.prices tbody tr:last-child td { border-bottom: none; }

table.prices td.preis {
  font-weight: 800;
  color: var(--primary-dark);
  white-space: nowrap;
}

table.prices tr.highlight td { background: var(--accent-soft); }

table.prices td small { color: var(--ink-soft); display: block; }

/* ---------- FAQ ---------- */

.faq { background: var(--bg-soft); }

.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.4rem;
  margin-bottom: .8rem;
}

.faq summary {
  font-weight: 800;
  cursor: pointer;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 600;
  flex: 0 0 auto;
}

.faq details[open] summary::after { content: "–"; }

.faq details p { margin-top: .7rem; }

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

.kontakt .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.kontakt-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  display: grid;
  gap: 1.1rem;
}

.kontakt-card a.big {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--primary-dark);
}

.kontakt-card .row {
  display: flex;
  gap: .8rem;
  align-items: center;
}

.kontakt-card .row svg { flex: 0 0 24px; width: 24px; height: 24px; }

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

.site-footer {
  background: var(--ink);
  color: #cfd8d3;
  padding: 2.5rem 0;
  font-size: .95rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer a { color: #fff; }

/* ---------- Legal pages ---------- */

.legal { padding: 3.5rem 0; max-width: 760px; }
.legal h1 { margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.3rem; margin: 2rem 0 .5rem; }
.legal p { margin-bottom: .8rem; }
.placeholder {
  background: var(--accent-soft);
  border-radius: 8px;
  padding: .1rem .4rem;
  font-weight: 700;
}

/* ---------- Formular (Anmeldung) ---------- */

.download-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  max-width: 820px;
  margin-bottom: 2rem;
}

.download-box p { margin: 0; color: var(--ink); }

.download-box p strong { display: block; font-size: 1.05rem; }

.download-box .btn { white-space: nowrap; }

.form-page { padding: 3.5rem 0 4.5rem; }

.form-page .section-intro { margin-bottom: 2rem; }

.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.2rem clamp(1.2rem, 4vw, 2.5rem);
  max-width: 820px;
}

fieldset {
  border: none;
  border-top: 2px solid var(--primary-soft);
  padding: 1.6rem 0 .6rem;
  margin-bottom: 1.2rem;
}

legend {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-dark);
  padding-right: 1rem;
}

.field { margin-bottom: 1.2rem; }

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.2rem;
}

label {
  display: block;
  font-weight: 800;
  font-size: .95rem;
  margin-bottom: .35rem;
  color: var(--ink);
}

label .optional {
  font-weight: 600;
  color: var(--ink-soft);
  font-size: .85rem;
}

.hint {
  font-size: .88rem;
  color: var(--ink-soft);
  margin: -.15rem 0 .4rem;
}

input[type="text"],
input[type="date"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: .7rem .9rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

textarea { min-height: 110px; resize: vertical; }

.radio-row { display: flex; flex-wrap: wrap; gap: .6rem; }

.radio-row label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  padding: .55rem 1.1rem;
  cursor: pointer;
  margin-bottom: 0;
}

.radio-row label:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.radio-row input { accent-color: var(--primary); }

.consent {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  background: var(--primary-soft);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.4rem;
}

.consent input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: .2rem;
  flex: 0 0 auto;
  accent-color: var(--primary);
}

.consent label { font-weight: 600; font-size: .92rem; margin: 0; }

/* Honeypot: für Menschen unsichtbar, Bots füllen es aus */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-top: 1.2rem;
  font-weight: 700;
}

.form-status.success { display: block; background: var(--primary-soft); color: var(--primary-dark); }
.form-status.error { display: block; background: #fdeaea; color: #a33a3a; }

.privacy-note {
  font-size: .88rem;
  color: var(--ink-soft);
  margin-top: 1.2rem;
}

.form-success-panel {
  max-width: 820px;
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 5px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 3rem 2rem;
  text-align: center;
}

.form-success-panel .success-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  font-weight: 800;
}

.form-success-panel h2 { margin-bottom: .6rem; }

.form-success-panel p {
  max-width: 520px;
  margin: 0 auto .4rem;
  font-size: 1.05rem;
}

.form-success-panel .btn { margin-top: 1.4rem; }

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

@media (max-width: 880px) {
  section { padding: 3.2rem 0; }

  .hero .wrap,
  .about .wrap,
  .kontakt .wrap,
  .treff-box { grid-template-columns: 1fr; }

  .card-grid, .steps, .field-grid { grid-template-columns: 1fr; }
  .steps { gap: 2rem; }
  .themen-grid, .pain-grid { grid-template-columns: 1fr; }

  .about-photo { max-width: 340px; }

  .nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: .4rem;
  }

  .nav-toggle svg { width: 28px; height: 28px; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 1.25rem 1.5rem;
    gap: 1rem;
  }

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