/* =========================================================
   KIDS IN THE LOOP – Hauptstildatei
   ========================================================= */

/* --- Lokale Schriften (keine Datenübertragung an Google) --- */

/* Poppins */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/poppins-800.woff2') format('woff2');
}

/* Inter (variable font, unterstützt wght 100–900) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/inter-variable.woff2') format('woff2');
}

/* Caveat (variable font, unterstützt wght 400–700) */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/caveat-variable.woff2') format('woff2');
}

/* --- Design-Variablen (Markenfarben) --- */
:root {
  --primary: #2C3E50;
  --primary-light: rgba(44, 62, 80, 0.8);
  --primary-foreground: #ffffff;

  --secondary: #27ae60;
  --secondary-hover: #229954;
  --secondary-foreground: #ffffff;

  --accent: #c2185b;
  --accent-hover: #a91650;
  --accent-foreground: #ffffff;

  --muted-gray: #bcc0cd;
  --background: #ffffff;
  --foreground: #2C3E50;
  --muted-foreground: #5A6775;
  --border: #e5e7eb;

  /* Pastelltöne für Printables */
  --pastel-green: #e8f5ee;
  --pastel-pink: #fbeaf1;
  --pastel-blue: #e8edf3;

  --card: #ffffff;

  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 3rem;

  --max-width: 80rem;
  --header-height: 5rem;
}

/* --- Reset & Grundlagen --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.625;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex-grow: 1;
  padding-top: var(--header-height);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--primary);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  max-width: 65ch;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
}

.btn-white {
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--primary);
  backdrop-filter: blur(6px);
  width: 100%;
}

.btn-white:hover {
  background-color: #ffffff;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: var(--primary);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}

.header-logo:hover {
  opacity: 0.8;
}

.header-logo img {
  height: 5rem;
  width: auto;
}

@media (max-width: 768px) {
  .header-logo img { height: 4rem; }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
}

.nav-link {
  padding: 0.5rem 1rem;
  color: var(--primary-foreground);
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.nav-link:hover {
  color: var(--secondary);
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  color: var(--secondary);
  background-color: rgba(255, 255, 255, 0.05);
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--primary-foreground);
  border-radius: 0.5rem;
  transition: background-color 0.2s;
}

.menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .menu-toggle { display: none; }
}

.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--primary);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 1rem;
}

.nav-mobile.open {
  display: block;
}

.nav-mobile a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--primary-foreground);
  font-weight: 500;
  border-radius: 0.5rem;
  margin-bottom: 0.25rem;
  transition: all 0.2s;
}

.nav-mobile a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* --- Sections --- */
section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  margin-bottom: 1.5rem;
}

.section-header p {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 48rem;
  margin: 0 auto;
  line-height: 1.75;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 5rem 0;
  background: linear-gradient(to bottom right, var(--background), var(--background), rgba(229, 231, 235, 0.2));
}

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

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero-image-wrap {
  display: flex;
  justify-content: center;
  order: 2;
}

@media (min-width: 1024px) {
  .hero-image-wrap { order: 1; }
}

.hero-image {
  width: 100%;
  max-width: 28rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  object-fit: cover;
}

.hero-text {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .hero-text { order: 2; }
}

.hero-text h1 {
  color: var(--primary);
  font-size: clamp(2.75rem, 6vw, 5rem);
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: var(--muted-foreground);
  line-height: 1.75;
}

.hero-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -2.5rem;
  right: -2.5rem;
  width: 8rem;
  height: 8rem;
  background-color: var(--pastel-pink);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
}

.hero-card h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.hero-card-greeting {
  font-family: 'Caveat', cursive;
  font-size: 3.75rem;
  font-weight: 600;
  line-height: 1;
  color: var(--primary);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.hero-card p {
  color: var(--foreground);
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

/* --- Flagship (Schul-Check Teaser) --- */
.flagship {
  background: linear-gradient(to bottom right, rgba(232, 237, 243, 0.4), var(--background), rgba(232, 245, 238, 0.3));
}

.flagship-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .flagship-grid { grid-template-columns: 1fr 1fr; }
}

.flagship-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flagship-card-outer {
  width: 100%;
  max-width: 28rem;
  aspect-ratio: 1 / 1;
  background: linear-gradient(to bottom right, rgba(39, 174, 96, 0.2), rgba(194, 24, 91, 0.2), rgba(44, 62, 80, 0.2));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  transform: rotate(3deg);
  transition: transform 0.5s ease;
}

.flagship-card-outer:hover {
  transform: rotate(0deg);
}

.flagship-card-inner {
  width: calc(100% - 3rem);
  height: calc(100% - 3rem);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.flagship-icon {
  width: 6rem;
  height: 6rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.flagship-card-inner p {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.flagship-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.flagship-content p {
  font-size: 1.125rem;
  line-height: 1.75;
}

.flagship-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.5rem;
}

.flagship-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.flagship-feature-dot {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background-color: rgba(39, 174, 96, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.flagship-feature-dot::after {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--secondary);
}

.flagship-feature span {
  font-weight: 500;
}

/* --- Offerings --- */
.offerings {
  background-color: var(--background);
}

.offerings-category {
  margin-bottom: 6rem;
}

.offerings-category:last-child {
  margin-bottom: 0;
}

.offerings-category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.offerings-category-header::before,
.offerings-category-header::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background-color: var(--border);
}

.offerings-category-header h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  padding: 0 1rem;
  text-align: center;
}

.offerings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .offerings-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .offerings-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Eltern-Block: nur zwei Karten, daher zentriert und auf max. zwei Spalten
   begrenzt, damit rechts keine leere dritte Spalte entsteht. */
@media (min-width: 1024px) {
  .offerings-grid--parents {
    grid-template-columns: repeat(2, minmax(0, 22rem));
    justify-content: center;
  }
}

/* Kategorie-2 Wrapper (Eltern) */
.offerings-parents-wrap {
  position: relative;
  background: rgba(232, 237, 243, 0.3);
  border: 1px solid var(--pastel-blue);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .offerings-parents-wrap { padding: 3rem; }
}

@media (min-width: 1024px) {
  .offerings-parents-wrap { padding: 4rem; }
}

.offerings-parents-label {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--background);
  border: 1px solid var(--pastel-blue);
  border-radius: 9999px;
  padding: 0.5rem 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
}

.offerings-parents-label h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin: 0;
}

/* --- Service Card --- */
.service-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
}

.service-card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-card-icon.primary {
  background-color: rgba(44, 62, 80, 0.1);
  color: var(--primary);
}

.service-card-icon.secondary {
  background-color: rgba(39, 174, 96, 0.1);
  color: var(--secondary);
}

.service-card-icon.accent {
  background-color: rgba(194, 24, 91, 0.1);
  color: var(--accent);
}

.service-card-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.service-card p {
  color: var(--muted-foreground);
  line-height: 1.75;
  flex-grow: 1;
}

/* --- Karten-Meta-Zeile (Zielgruppe / Format) --- */
.service-card-meta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

/* --- Button-Reihe innerhalb einer Karte --- */
.service-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-card {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.625rem 1.125rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1;
}

.btn-card svg { width: 1rem; height: 1rem; flex-shrink: 0; }

.btn-card-primary {
  background-color: var(--accent);
  color: var(--accent-foreground);
}
.btn-card-primary:hover { background-color: var(--accent-hover); }

.btn-card-ghost {
  background-color: rgba(44, 62, 80, 0.06);
  color: var(--primary);
}
.btn-card-ghost:hover { background-color: rgba(44, 62, 80, 0.12); }

/* --- Block B: "Auch im Programm" – optisch zurückgenommen --- */
.offerings-secondary {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.offerings-secondary-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.offerings-secondary-header h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.offerings-secondary-header p {
  color: var(--muted-foreground);
  max-width: 38rem;
  margin: 0 auto;
  font-size: 0.9375rem;
}

.offerings-secondary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .offerings-secondary-grid { grid-template-columns: repeat(2, 1fr); }
}

.mini-card {
  background-color: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.mini-card:hover {
  border-color: var(--pastel-blue);
  background-color: rgba(232, 237, 243, 0.25);
}

.mini-card h4 {
  font-size: 1.1875rem;
  color: var(--primary);
  margin-bottom: 0.375rem;
}

.mini-card-meta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.mini-card p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.mini-card-tagline {
  font-style: italic;
  color: var(--primary-light);
}

/* --- Block C: Status-Badge für Onlinekurse --- */
.service-card.is-upcoming { border-style: dashed; }

.status-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background-color: rgba(39, 174, 96, 0.12);
  color: var(--secondary);
  margin-bottom: 1rem;
  align-self: flex-start;
}

.service-card-hint {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-top: 1rem;
  margin-bottom: 0;
  flex-grow: 0;
}

/* --- Printables --- */
.printables {
  background: linear-gradient(to bottom right, rgba(232, 237, 243, 0.2), var(--background), rgba(232, 245, 238, 0.3));
}

.printables-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .printables-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .printables-grid { grid-template-columns: repeat(3, 1fr); }
}

.printable-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.printable-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
}

.printable-card::before {
  content: '';
  position: absolute;
  top: -2rem;
  right: -2rem;
  width: 10rem;
  height: 10rem;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.printable-card.green { background-color: var(--pastel-green); }
.printable-card.pink { background-color: var(--pastel-pink); }
.printable-card.blue { background-color: var(--pastel-blue); }

.printable-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.printable-icon svg {
  width: 2rem;
  height: 2rem;
}

.printable-icon.green svg { color: var(--secondary); }
.printable-icon.pink svg { color: var(--accent); }
.printable-icon.blue svg { color: var(--primary); }

.printable-card h3 {
  font-size: 1.5rem;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--primary);
  position: relative;
  z-index: 1;
}

.printable-card p {
  color: var(--primary-light);
  line-height: 1.75;
  margin-bottom: 2rem;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

.printable-download {
  position: relative;
  z-index: 1;
  margin-top: auto;
}

/* --- Podcast Promo --- */
.podcast-promo {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius-xl);
  margin: 0 0.5rem 6rem;
  padding: 6rem 0;
}

@media (min-width: 640px) {
  .podcast-promo { margin: 0 1rem 6rem; }
}

@media (min-width: 1024px) {
  .podcast-promo { margin: 0 2rem 6rem; }
}

.podcast-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 1024px) {
  .podcast-grid { grid-template-columns: 1fr 1fr; }
}

.podcast-grid h2 {
  color: var(--primary-foreground);
  margin-bottom: 1.5rem;
}

.podcast-grid p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.podcast-visual {
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.podcast-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(39, 174, 96, 0.2), rgba(194, 24, 91, 0.2));
  mix-blend-mode: overlay;
}

.podcast-visual svg {
  width: 8rem;
  height: 8rem;
  color: rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
}

/* --- Contact --- */
.contact {
  background-color: var(--background);
}

.contact-form {
  max-width: 42rem;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
}

.form-field {
  margin-bottom: 1.5rem;
}

.form-field label {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.form-field .required {
  color: var(--accent);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--foreground);
  transition: border-color 0.2s;
}

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

.form-field textarea {
  resize: vertical;
  min-height: 10rem;
}

.form-submit {
  padding: 0.75rem 2rem;
  background-color: var(--accent);
  color: var(--accent-foreground);
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.2s;
  width: 100%;
}

@media (min-width: 768px) {
  .form-submit { width: auto; }
}

.form-submit:hover {
  background-color: var(--accent-hover);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-message {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-align: center;
  display: none;
}

.form-message.success,
.form-message--success {
  background-color: rgba(39, 174, 96, 0.1);
  color: var(--secondary);
  border: 1px solid rgba(39, 174, 96, 0.3);
  display: block;
}

.form-message.error,
.form-message--error {
  background-color: rgba(194, 24, 91, 0.1);
  color: var(--accent);
  border: 1px solid rgba(194, 24, 91, 0.3);
  display: block;
}

/* --- Footer --- */
.footer {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 4rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-logo {
  height: 3rem;
  width: auto;
  margin-bottom: 1.5rem;
}

.footer p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.75;
}

.footer h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-foreground);
}

.footer nav a {
  display: block;
  padding: 0.25rem 0;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s;
}

.footer nav a:hover {
  color: var(--primary-foreground);
}

.footer-separator {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
  margin-bottom: 2rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; }
}

.footer-copy {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--primary-foreground);
}

.social-links svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* --- Scroll to top --- */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background-color: var(--accent);
  color: var(--accent-foreground);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 40;
  cursor: pointer;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.scroll-top svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* --- Fade-in-on-scroll animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Prose (for legal pages) --- */
.prose {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.prose h1 {
  margin-bottom: 3rem;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.prose p {
  margin-bottom: 1rem;
  max-width: none;
  line-height: 1.75;
}

.prose a {
  color: var(--secondary);
}

.prose a:hover {
  text-decoration: underline;
}

/* Kompaktere Abstände für Rechtsseiten (Impressum, Datenschutz) */
.prose-legal h1 {
  margin-bottom: 1.25rem;
}

.prose-legal h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose-legal section {
  padding: 0;
  margin-bottom: 0.5rem;
}

.prose-legal p {
  margin-bottom: 0.5rem;
}

.prose-legal ul {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.prose-legal li {
  margin-bottom: 0.35rem;
  line-height: 1.65;
}

/* --- Utility: visually hidden --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   MISSION & WERDEGANG (Startseite, zwischen Hero und Schul-Check)
   ========================================================= */

.mission {
  padding: 6rem 0 5rem;
  background-color: #fbfbfd;
  border-top: 1px solid var(--border);
}

.mission .container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 56rem;
}

.mission-label,
.bio-card-label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.bio-card-label {
  color: var(--accent);
}

.mission-main h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 2rem;
  max-width: 28ch;
}

.mission-main p {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--foreground);
  margin-bottom: 1.25rem;
  max-width: 62ch;
}

.mission-pivot {
  font-family: 'Poppins', sans-serif;
  font-size: 1.375rem !important;
  font-weight: 600;
  color: var(--primary) !important;
  margin: 2rem 0 1.5rem !important;
  padding-left: 1rem;
  border-left: 3px solid var(--secondary);
}

.mission-pivot em {
  font-style: italic;
  color: var(--secondary);
}

.mission-closing {
  font-size: 1.125rem !important;
  color: var(--primary) !important;
  font-weight: 500;
  margin-top: 0 !important;
  padding: 1.5rem;
  background-color: var(--pastel-green);
  border-radius: var(--radius);
  flex: 1;
}

.mission-closing-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.mission-closing-logo {
  width: 5.5rem !important;
  max-width: 5.5rem !important;
  min-width: 5.5rem !important;
  height: 5.5rem !important;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .mission-closing-row {
    flex-direction: column;
    gap: 1rem;
  }

  .mission-closing-logo {
    width: 4rem !important;
    max-width: 4rem !important;
    min-width: 4rem !important;
    height: 4rem !important;
  }

  .hero-card-greeting {
    font-size: 3rem;
  }
}

.mission-closing em {
  font-style: normal;
  font-weight: 700;
  color: var(--secondary);
}

.mission-main strong {
  color: var(--primary);
  font-weight: 600;
}

/* --- Bio-Karte: kompakter, abgesetzter Block --- */
.bio-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  position: relative;
}

@media (min-width: 768px) {
  .bio-card { padding: 3rem; }
}

.bio-card h3 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  margin-bottom: 1.5rem;
  max-width: 26ch;
}

.bio-card p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  margin-bottom: 1.25rem;
  max-width: 60ch;
}

.bio-card-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 1.75rem;
}

.bio-card-pillars .pillar {
  display: inline-block;
  padding: 0.4rem 1rem;
  background-color: var(--pastel-blue);
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.01em;
}

/* =========================================================
   SCHUL-CHECK-UNTERSEITE: drei Leistungs-Kästen
   ========================================================= */

.sc-deliverables {
  max-width: 64rem;
  margin: 4rem auto 0;
  padding: 0 1rem;
}

.sc-deliverables-intro {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3rem;
}

.sc-deliverables-intro h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  margin-bottom: 1rem;
}

.sc-deliverables-intro p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.75;
}

.sc-deliverables-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .sc-deliverables-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.sc-deliverable {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.sc-deliverable:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.1);
}

.sc-deliverable-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sc-deliverable-icon svg { width: 1.5rem; height: 1.5rem; }

.sc-deliverable-icon.primary { background: rgba(44, 62, 80, 0.1); }
.sc-deliverable-icon.primary svg { color: var(--primary); }
.sc-deliverable-icon.secondary { background: rgba(39, 174, 96, 0.1); }
.sc-deliverable-icon.secondary svg { color: var(--secondary); }
.sc-deliverable-icon.accent { background: rgba(194, 24, 91, 0.1); }
.sc-deliverable-icon.accent svg { color: var(--accent); }

.sc-deliverable-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.sc-deliverable h3 {
  font-size: 1.375rem;
  margin-bottom: 0;
}

.sc-deliverable p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted-foreground);
  margin: 0;
}

/* --- Generelle Textsektion auf der Schul-Check-Unterseite --- */
.sc-text-section {
  max-width: 56rem;
  margin: 4rem auto 0;
  padding: 0 1rem;
}

.sc-text-section h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  margin-bottom: 1.5rem;
}

.sc-text-section p {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--foreground);
  margin-bottom: 1.25rem;
  max-width: 62ch;
}

/* --- Abschluss-CTA-Sektion auf der Schul-Check-Unterseite --- */
.sc-cta {
  max-width: 56rem;
  margin: 5rem auto 0;
  padding: 3rem 2rem;
  background-color: var(--pastel-blue);
  border-radius: var(--radius-lg);
  text-align: center;
}

@media (min-width: 768px) {
  .sc-cta { padding: 4rem 3rem; }
}

.sc-cta h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  margin-bottom: 1rem;
}

.sc-cta p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 48ch;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.sc-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* --- Schulcheck Bild --- */
.flagship-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
}

/* --- Printable Untertitel --- */
.printable-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-top: -0.75rem;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}
