/* =====================================================
   Schulerfahrung.com - Design-System "Schulheft"
   Tinte / Koenigsblau / Textmarker-Gelb auf Karopapier
   ===================================================== */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/bricolage-grotesque-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal; font-weight: 800; font-display: swap;
  src: url('../fonts/bricolage-grotesque-latin-800-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/figtree-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/figtree-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/figtree-latin-700-normal.woff2') format('woff2');
}

:root {
  --ink: #1b2a4a;
  --ink-soft: #3a4a6b;
  --text: #25314d;
  --muted: #5d6b8a;
  --blau: #2f5cb8;
  --blau-dunkel: #24499a;
  --blau-hell: #eaf0fb;
  --gelb: #ffd23f;
  --papier: #fbfcfe;
  --karo: #e4eaf4;
  --linie: #dfe4ee;
  --rot-rand: #e8a6ae;
  --weiss: #ffffff;
  --radius: 10px;
  --font-display: 'Bricolage Grotesque', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Figtree', -apple-system, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--weiss);
}
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(23px, 3.4vw, 30px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--blau); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--gelb); outline-offset: 2px;
}
img, svg { vertical-align: middle; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* --- Textmarker (Signatur-Element) --- */
.marker {
  background: linear-gradient(100deg,
    rgba(255,210,63,0) 1.5%, rgba(255,210,63,0.9) 4%,
    rgba(255,210,63,0.9) 96%, rgba(255,210,63,0) 98.5%);
  padding: 0.05em 0.18em;
  margin: 0 -0.05em;
  border-radius: 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* --- Header --- */
.site-header {
  border-bottom: 1px solid var(--linie);
  background: var(--weiss);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 16px 0;
}
.logo {
  font-family: var(--font-display); font-weight: 800; font-size: 24px;
  text-decoration: none; color: var(--ink); white-space: nowrap;
}
.logo em { font-style: normal; color: var(--blau); position: relative; }
.logo em::after {
  content: ''; position: absolute; left: 2%; right: -2%; bottom: 1px;
  height: 7px; background: rgba(255,210,63,0.85);
  z-index: -1; transform: skewX(-12deg);
}
.main-nav { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.main-nav a {
  text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 15.5px;
}
.main-nav a:hover { color: var(--blau); }
.main-nav a.nav-cta {
  background: var(--blau); color: #fff; padding: 9px 18px; border-radius: var(--radius);
}
.main-nav a.nav-cta:hover { background: var(--blau-dunkel); }

/* --- Hero (ruhige Flaeche) --- */
.hero {
  position: relative;
  background: linear-gradient(180deg, #e7eefb 0%, #f4f8fe 100%);
  border-bottom: 1px solid var(--linie);
}
.hero-inner { padding: 64px 0 58px; max-width: 720px; }
.hero .eyebrow {
  font-weight: 700; font-size: 14px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--blau); margin-bottom: 10px;
}
.hero p.lead { font-size: 19px; color: var(--ink-soft); max-width: 560px; }

/* --- Suchfeld --- */
.search-form { display: flex; max-width: 560px; margin-top: 26px; }
.search-form input {
  flex: 1; min-width: 0; padding: 15px 18px; font-size: 17px; font-family: var(--font-body);
  border: 2px solid var(--ink); border-right: none;
  border-radius: var(--radius) 0 0 var(--radius); background: var(--weiss);
}
.search-form button {
  padding: 15px 26px; font-size: 17px; font-weight: 700; font-family: var(--font-body);
  border: 2px solid var(--ink); background: var(--blau); color: #fff;
  border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer;
}
.search-form button:hover { background: var(--blau-dunkel); }
.hero .hint { font-size: 14.5px; color: var(--muted); margin-top: 10px; }

/* --- Zahlenzeile --- */
.stats { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 34px; }
.stats .stat b {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 26px; color: var(--ink);
}
.stats .stat span { font-size: 14.5px; color: var(--muted); }

/* --- Abschnitte --- */
.section { padding: 64px 0; }
.section.alt { background: var(--papier); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.section-head { max-width: 620px; margin-bottom: 30px; }
.section-head p { color: var(--muted); }

/* --- Schritte (So funktioniert's) --- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { border: 1.5px solid var(--linie); border-radius: var(--radius); padding: 22px; background: var(--weiss); }
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--gelb);
  font-family: var(--font-display); font-weight: 800; font-size: 17px;
  margin-bottom: 12px;
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; font-size: 15.5px; color: var(--muted); }

/* --- Schultypen --- */
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.type-card {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  border: 1.5px solid var(--linie); border-radius: var(--radius);
  padding: 14px 16px; text-decoration: none; background: var(--weiss);
}
.type-card:hover { border-color: var(--blau); }
.type-card b { color: var(--ink); font-size: 16px; }
.type-card span { color: var(--muted); font-size: 14px; white-space: nowrap; }

/* --- Sterne (eigene Form, Tinten-Kontur) --- */
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 19px; height: 19px; }
.stars .fill { fill: var(--gelb); }
.stars .empty { fill: #edeff5; }
.stars path { stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }

/* --- Verifiziert-Badge (Stempel-Optik) --- */
.badge-verified {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--blau); color: var(--blau-dunkel);
  border-radius: 6px; padding: 3px 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--blau-hell);
}

/* --- Suchergebnisse --- */
.result-list { display: grid; gap: 14px; max-width: 760px; }
.result {
  border: 1.5px solid var(--linie); border-radius: var(--radius);
  padding: 18px 20px; background: var(--weiss);
  display: flex; justify-content: space-between; gap: 18px; align-items: center;
}
.result:hover { border-color: var(--blau); }
.result .meta { font-size: 14.5px; color: var(--muted); }
.result .no-rating { font-size: 14px; color: var(--muted); font-style: italic; }
.result .rating-line { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 14.5px; }
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  background: var(--blau); color: #fff; font-weight: 700; font-size: 15.5px;
  padding: 11px 20px; border-radius: var(--radius); border: none; cursor: pointer;
  font-family: var(--font-body); white-space: nowrap;
}
.btn:hover { background: var(--blau-dunkel); }
.btn.ghost { background: transparent; color: var(--blau); border: 2px solid var(--blau); }
.btn.ghost:hover { background: var(--blau-hell); }
.btn.sm { padding: 8px 16px; font-size: 14px; }
.btn.gelb { background: var(--gelb); color: var(--ink); }
.btn.gelb:hover { background: #f0c02e; }

.notice {
  border: 1.5px solid var(--linie); border-left: 5px solid var(--gelb);
  background: var(--papier); border-radius: 8px; padding: 14px 18px;
  font-size: 15.5px; max-width: 760px;
}

/* --- Footer --- */
.site-footer { background: var(--ink); color: #c4cde0; margin-top: 64px; }
.site-footer .cols {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 36px 0 24px;
}
.site-footer .brand { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: #fff; }
.site-footer a { color: #c4cde0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .legal {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding: 16px 0 22px; font-size: 13.5px; color: #8d99b5;
}


.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* --- Formulare (Bewertung) --- */
.form-card {
  border: 1.5px solid var(--linie); border-radius: var(--radius);
  background: var(--weiss); padding: 28px; max-width: 760px;
}
.form-row { margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
.form-label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 7px; font-size: 15.5px; }
.req { color: var(--blau); }
.form-card input[type=text], .form-card input[type=email],
.form-card select, .form-card textarea {
  width: 100%; padding: 12px 14px; font-size: 16px; font-family: var(--font-body);
  border: 1.5px solid #c6cede; border-radius: 8px; background: var(--weiss); color: var(--text);
}
.form-card textarea { resize: vertical; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
  border-color: var(--blau); outline: 3px solid rgba(47,92,184,0.18); outline-offset: 0;
}
.check-row label { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; display: block; }
.check-row input { margin-right: 6px; }
.notice.error { border-left-color: #d24b4b; margin-bottom: 22px; }

/* Sterne-Eingabe (CSS-only, Reihenfolge umgekehrt fuer Hover-Logik) */
.rate { display: inline-flex; flex-direction: row-reverse; gap: 3px; }
.rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate label { cursor: pointer; }
.rate label svg { width: 30px; height: 30px; }
.rate label svg path {
  fill: #edeff5; stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round;
  transition: fill 0.12s ease;
}
.rate label:hover svg path,
.rate label:hover ~ label svg path,
.rate input:checked ~ label svg path { fill: var(--gelb); }
.rate input:focus-visible + label svg { outline: 3px solid var(--gelb); border-radius: 4px; }

/* --- Schulseite --- */
.school-grid { display: grid; grid-template-columns: 1fr 330px; gap: 48px; align-items: start; }
.school-grid h2 { margin-bottom: 22px; }
.review-card { border: 1.5px solid var(--linie); border-radius: var(--radius); background: var(--weiss);
               padding: 18px 20px; margin-bottom: 14px; }
.review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review-head .role { color: var(--blau-dunkel); font-size: 13.5px; font-weight: 700;
                     background: var(--blau-hell); border-radius: 12px; padding: 2px 10px; }
.review-head .date { color: var(--muted); font-size: 13.5px; }
.review-details { color: var(--muted); font-size: 13.5px; margin: 10px 0 0; }
.facts { border: 1.5px solid var(--linie); border-radius: var(--radius); background: var(--weiss); padding: 20px 22px; }
.facts h3 { margin-bottom: 12px; }
.facts-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.facts-table th { text-align: left; vertical-align: top; width: 118px; font-weight: 700;
                  color: var(--ink); padding: 9px 12px 9px 0; }
.facts-table td { padding: 9px 0; color: var(--text); }
.facts-table tr + tr th, .facts-table tr + tr td { border-top: 1px solid var(--linie); }
.detail-row { display: flex; justify-content: space-between; align-items: center; gap: 12px;
              padding: 7px 0; border-bottom: 1px solid var(--linie); font-size: 15px; }
.detail-row:last-child { border-bottom: none; }
.detail-row .detail-val { display: flex; align-items: center; gap: 8px; }
.detail-row .stars svg { width: 16px; height: 16px; }

/* --- Schul-Hero mit Screenshot --- */
.school-hero { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 30px 36px; padding: 48px 0 44px; }
.school-hero-info { max-width: 640px; }
.school-shot { display: block; width: 300px; max-width: 300px; flex-shrink: 0; text-decoration: none;
               border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden;
               background: var(--weiss); box-shadow: 4px 4px 0 rgba(27,42,74,0.12); }
.school-shot img { width: 100%; height: auto; display: block; }
.school-shot span { display: block; text-align: center; font-size: 13px; font-weight: 700;
                    color: var(--ink-soft); padding: 8px 10px; border-top: 1.5px solid var(--linie); }
.school-shot:hover { border-color: var(--blau); }

/* --- Weitere Schulen (interne Verlinkung) --- */
.nearby { margin-top: 40px; padding-top: 28px; border-top: 1.5px solid var(--linie); }
.nearby h2 { margin-bottom: 16px; }
.nearby ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.nearby li { font-size: 15.5px; }
.nearby .muted { color: var(--muted); font-size: 13.5px; }

/* --- Ratgeber --- */
.article-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.article-card { display: flex; flex-direction: column; gap: 8px; border: 1.5px solid var(--linie);
                border-radius: var(--radius); background: var(--weiss); padding: 22px; text-decoration: none; }
.article-card:hover { border-color: var(--blau); }
.article-card .cat { font-size: 12.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--blau); }
.article-card h2 { font-size: 20px; margin: 0; }
.article-card p { color: var(--muted); font-size: 14.5px; margin: 0; flex: 1; }
.article-card .more { color: var(--blau); font-weight: 700; font-size: 14.5px; }
.article-body { max-width: 760px; }
.article-body h1 { margin-bottom: 18px; }
.article-body h2 { margin-top: 36px; }
.article-body h3 { margin-top: 26px; }
.article-body p, .article-body li { font-size: 17px; line-height: 1.75; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius); }
.article-cta { margin-top: 44px; border: 1.5px solid var(--linie); border-left: 5px solid var(--gelb);
               border-radius: var(--radius); background: var(--papier); padding: 24px 26px; }
.article-cta h3 { margin-bottom: 6px; }
.article-cta p { margin-bottom: 14px; color: var(--ink-soft); }

/* --- Ratgeber-Kategorien --- */
.cat-nav { margin-top: 26px; padding-top: 18px; border-top: 1.5px solid var(--linie); }
.cat-nav-label { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em;
                 text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.cat-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.cat-nav li { padding: 0 16px 0 0; margin: 0 16px 6px 0; border-right: 1px solid var(--linie); line-height: 1.2; }
.cat-nav li:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.cat-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.cat-nav a:hover { color: var(--blau); text-decoration: underline; text-underline-offset: 3px; }
.cat-block { margin-bottom: 52px; }
.cat-block:last-child { margin-bottom: 0; }
.cat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 18px;
            padding-bottom: 12px; border-bottom: 1.5px solid var(--linie); }
.cat-head h2 { margin: 0 0 4px; }
.cat-head h2 a { color: var(--ink); text-decoration: none; }
.cat-head h2 a:hover { color: var(--blau); }
.cat-head p { margin: 0; color: var(--muted); font-size: 15px; max-width: 560px; }
.article-card h3 { font-size: 19px; margin: 0; }

/* --- Responsiv --- */
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .hero-inner { padding: 44px 0 42px; }
  .result { flex-direction: column; align-items: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .school-grid { grid-template-columns: 1fr; }
  .school-hero { flex-direction: column; align-items: flex-start; }
  .cat-head { flex-direction: column; align-items: flex-start; }
  .nearby ul { grid-template-columns: 1fr; }
  .school-shot { width: 100%; max-width: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
