/* =====================================================================
   AulaVerba – Designsystem
   Abgeleitet aus Logo & Banner: Deep Navy · Coral · Cream
   ===================================================================== */

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-wght.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Markenfarben */
  --navy: #132948;          /* Logo-Hintergrund */
  --navy-900: #0c1c33;
  --navy-700: #1d3a63;
  --navy-100: #e7ecf3;
  --coral: #e96447;         /* Akzent (Flächen, Deko) */
  --coral-deep: #b8432a;    /* Akzent für Text & Buttons (AA-Kontrast) */
  --coral-soft: #f4a58f;    /* Coral auf Navy */
  --coral-50: #fdeee8;
  --cream: #fbf3e8;         /* Logo-Innenfläche */
  --cream-200: #f3e6d3;
  --yellow: #f2c14e;        /* warmes Gelb */
  --yellow-50: #fdf5dc;
  --teal: #1f6f6a;          /* sekundärer Akzent */
  --teal-50: #e3f0ee;
  --white: #ffffff;

  /* Semantik */
  --bg: var(--cream);
  --surface: var(--white);
  --text: #16223a;
  --muted: #5b6475;
  --border: #e6dccd;
  --focus: #1f6f6a;

  /* Typografie */
  --font-serif: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  /* Maße */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(19, 41, 72, .06), 0 2px 8px rgba(19, 41, 72, .05);
  --shadow: 0 2px 4px rgba(19, 41, 72, .05), 0 12px 32px -8px rgba(19, 41, 72, .16);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--coral-deep); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
  text-wrap: balance;
  overflow-wrap: break-word; /* Phase 1: Sicherheitsnetz gegen Überlauf langer Wörter bei 320 px */
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: var(--white); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: #dfe5ee; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; }
.section-head--row > div { max-width: 680px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--coral-deep); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--coral); }
.section--navy .eyebrow { color: var(--coral-soft); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 22px;
  font: 600 1rem/1.2 var(--font-sans);
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1.05rem; }
.btn-primary { background: var(--coral-deep); color: var(--white); box-shadow: 0 6px 18px -8px rgba(184, 67, 42, .7); }
.btn-primary:hover { background: #9d3620; color: var(--white); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.btn-light { background: var(--cream); color: var(--navy); }
.btn-light:hover { background: var(--white); color: var(--navy); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { background: var(--white); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn[aria-disabled="true"] { opacity: .6; pointer-events: none; }

.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--coral-deep); }
.text-link svg { width: 18px; height: 18px; transition: transform .2s; }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 243, 232, .92);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand img { width: 44px; height: 44px; border-radius: 50%; box-shadow: var(--shadow-sm); }
.brand-name { font-family: var(--font-serif); font-size: 1.55rem; font-weight: 600; letter-spacing: -.01em; line-height: 1; }
.brand-name span { color: var(--coral-deep); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav ul a {
  display: block; padding: 8px 12px; border-radius: 999px;
  color: var(--navy); font-weight: 500; font-size: .98rem; text-decoration: none;
}
.site-nav ul a:hover { background: var(--cream-200); color: var(--navy); }
.site-nav ul a[aria-current="page"] { background: var(--navy); color: var(--white); }
.site-nav .btn { min-height: 42px; padding: 9px 18px; font-size: .95rem; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--white); color: var(--navy); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-open { display: none; }
.nav-open .nav-toggle .i-close { display: block; }

@media (max-width: 959.98px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: fixed; inset: var(--header-h) 0 auto 0;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px var(--gutter) 28px; background: var(--cream);
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .nav-open .site-nav { display: flex; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav ul a { padding: 14px 12px; font-size: 1.1rem; border-radius: var(--radius-sm); }
  .site-nav .btn { min-height: 50px; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(48px, 7vw, 96px); overflow: hidden; }
.hero__grid { display: grid; gap: 28px; }
.hero h1 { margin-bottom: .35em; max-width: 14ch; }
.hero h1 em { font-style: italic; color: var(--coral-deep); }
.hero .lead { max-width: 60ch; }
.hero__visual {
  margin-top: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(19, 41, 72, .55);
  background: var(--navy);
}
.hero__visual img { width: 100%; height: auto; aspect-ratio: 1520 / 555; object-fit: cover; }
.hero__facts { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .95rem; }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts svg { width: 18px; height: 18px; color: var(--teal); }

.page-hero { padding-block: clamp(40px, 6vw, 72px) clamp(32px, 4vw, 48px); }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { max-width: 64ch; }
.page-hero--navy { background: var(--navy); color: #d7deea; }
.page-hero--navy h1 { color: var(--white); }
.page-hero--navy .lead { color: #c9d1de; }
.page-hero--navy .eyebrow { color: var(--coral-soft); }
.page-hero--navy .breadcrumb a, .page-hero--navy .breadcrumb li { color: #c9d1de; }
.page-hero--navy .breadcrumb [aria-current] { color: var(--white); }

/* ---------- Breadcrumb ---------- */
.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 4px; font-size: .9rem; color: var(--muted); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 4px; }
.breadcrumb li + li::before { content: "/"; opacity: .5; margin-right: 2px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--coral-deep); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--navy); font-weight: 600; }

/* ---------- Vorteile ---------- */
.features { display: grid; gap: 20px; grid-template-columns: 1fr; }
.feature { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.feature__icon {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--coral-50); color: var(--coral-deep); margin-bottom: 18px;
}
.feature:nth-child(2) .feature__icon { background: var(--yellow-50); color: #8a6508; }
.feature:nth-child(3) .feature__icon { background: var(--teal-50); color: var(--teal); }
.feature:nth-child(4) .feature__icon { background: var(--navy-100); color: var(--navy); }
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { margin-bottom: .35em; }
.feature p { margin: 0; color: var(--muted); font-size: 1rem; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.grid--2 { grid-template-columns: 1fr; }
.empty { grid-column: 1 / -1; padding: 32px; background: var(--white); border: 1px dashed var(--border); border-radius: var(--radius); text-align: center; color: var(--muted); }

/* ---------- Produktkarte ---------- */
.card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d9cab4; }
.card:focus-within { box-shadow: 0 0 0 3px var(--focus), var(--shadow); }
.card__media { position: relative; aspect-ratio: 16 / 9; background: var(--navy); overflow: hidden; }
.card__media > .cover, .pd-hero__cover > .cover { position: absolute; inset: 0; }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.card__eyebrow { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.card__title { font-size: 1.28rem; margin: 2px 0 0; line-height: 1.22; }
.card__title a { color: var(--navy); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__title a:focus-visible { outline: none; }
.card__text {
  margin: 0; color: var(--muted); font-size: .97rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card__meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 22px; margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--border); }
.card__meta dt { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card__meta dd { margin: 0; font-weight: 600; color: var(--navy); font-size: .98rem; }
.price { color: var(--coral-deep) !important; font-weight: 700; }
.card__cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--coral-deep); margin-top: 6px; }
.card__cta svg { width: 18px; height: 18px; transition: transform .2s; }
.card:hover .card__cta svg { transform: translateX(4px); }

.tag {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  font-size: .76rem; font-weight: 700; letter-spacing: .04em; line-height: 1.5;
}
.tag--spanisch { background: var(--coral-50); color: #9d3620; }
.tag--englisch { background: var(--teal-50); color: #17524e; }
.tag--plain { background: var(--navy-100); color: var(--navy); }

/* ---------- Produktstatus ---------- */
.status {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: .76rem; font-weight: 700; letter-spacing: .02em; line-height: 1.5; border: 1px solid transparent;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--online { background: var(--teal-50); color: #17524e; border-color: #b9dbd6; }
.status--review { background: var(--yellow-50); color: #6b4e05; border-color: #efdca6; }
.status--draft  { background: #eef0f4; color: #4a5263; border-color: #d9dde5; }
.status-cta {
  display: inline-flex; align-items: center; gap: 10px; margin: 0; min-height: 54px; padding: 12px 22px;
  border-radius: 999px; font-weight: 600; border: 2px dashed currentColor;
}
.status-cta svg { width: 20px; height: 20px; flex: none; }
.status-cta--review { color: #6b4e05; background: var(--yellow-50); }
.status-cta--draft, .status-cta--online { color: #4a5263; background: #eef0f4; }
.cta-band .status-cta { background: rgba(255,255,255,.08); color: var(--white); }
.price-tbd { color: var(--muted) !important; font-weight: 600; }
.meta-grid__status { flex-basis: 100% !important; }

/* ---------- Cover ---------- */
.cover { position: relative; width: 100%; height: 100%; overflow: hidden; }
.cover--image { background: var(--navy); }
/* Produktcover werden vollständig gezeigt (keine Verzerrung, kein Abschneiden von Titeln).
   Für formatfüllende Darstellung: object-fit: cover; */
.cover--image img { width: 100%; height: 100%; object-fit: contain; }
.cover--type {
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  padding: clamp(16px, 5%, 28px);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(233, 100, 71, .32) 0, transparent 55%),
    linear-gradient(160deg, var(--navy-700) 0%, var(--navy) 55%, var(--navy-900) 100%);
  color: var(--cream);
}
.cover--englisch.cover--type {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(31, 111, 106, .45) 0, transparent 55%),
    linear-gradient(160deg, var(--navy-700) 0%, var(--navy) 55%, var(--navy-900) 100%);
}
.cover--type::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--coral) 0 60%, var(--yellow) 60% 80%, var(--cream) 80%);
}
.cover--englisch.cover--type::after { background: linear-gradient(90deg, var(--teal) 0 60%, var(--coral) 60% 80%, var(--cream) 80%); }
.cover__top { display: flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-soft); }
.cover--englisch .cover__top { color: #9fd6cf; }
.cover__icon { width: 26px; height: 26px; color: var(--cream); opacity: .9; }
.cover__icon svg { width: 100%; height: 100%; }
.cover__title { font-family: var(--font-serif); font-size: clamp(1.35rem, 2.1vw, 1.7rem); line-height: 1.15; font-weight: 600; color: var(--white); text-wrap: balance; }
.cover__bottom { display: flex; justify-content: space-between; gap: 8px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: #c9d1de; padding-bottom: 6px; }

/* ---------- Themenwelten ---------- */
.worlds { display: grid; gap: 28px; }
.world-group h3 { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; }
.world-group h3 .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--coral); }
.world-group--en h3 .dot { background: var(--teal); }
.world-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.world-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--border);
  text-decoration: none; color: var(--navy); transition: border-color .2s, transform .2s, box-shadow .2s;
}
.world-list a:hover { border-color: var(--coral); transform: translateX(3px); box-shadow: var(--shadow-sm); }
.world-group--en .world-list a:hover { border-color: var(--teal); }
.world-list strong { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; display: block; }
.world-list span.desc { display: block; color: var(--muted); font-size: .93rem; }
.world-list svg { width: 20px; height: 20px; flex: none; color: var(--coral-deep); }
.world-group--en .world-list svg { color: var(--teal); }

/* ---------- Warum ---------- */
.why { display: grid; gap: 36px; align-items: center; }
.why__quote { font-family: var(--font-serif); font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.4; color: var(--white); margin: 0 0 24px; }
.why__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.why__list li { display: flex; gap: 12px; align-items: flex-start; color: #dfe5ee; }
.why__list svg { width: 22px; height: 22px; flex: none; color: var(--coral-soft); margin-top: 2px; }
.why__logo { justify-self: center; width: min(320px, 70vw); border-radius: 50%; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }

/* ---------- Free Resources ---------- */
.resource {
  display: grid; gap: 18px; align-content: start;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.resource::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--teal); }
.resource--es::before { background: var(--coral); }
.resource h3 { font-size: 1.5rem; margin: 0; }
.resource p { margin: 0; color: var(--muted); }
.resource .tag { justify-self: start; }
.resource ul { margin: 0; color: var(--text); }
.resource .btn { justify-self: start; }
.badge-free { display: inline-flex; padding: 3px 10px; border-radius: 999px; background: var(--yellow); color: var(--navy); font-weight: 700; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Produktseite ---------- */
.pd-wrap { padding-block: clamp(24px, 4vw, 48px) clamp(56px, 8vw, 96px); }
.pd-hero { display: grid; gap: clamp(24px, 4vw, 56px); align-items: start; margin-bottom: clamp(40px, 6vw, 72px); }
.pd-hero__cover { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--navy); }
.pd-hero__cover .cover__title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.pd-hero__cover .cover--type { padding: clamp(22px, 6%, 44px); }
.pd-hero__info h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin: 14px 0 .35em; }
.meta-grid { display: flex; flex-wrap: wrap; gap: 1px; margin: 24px 0; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.meta-grid > div { flex: 1 1 100px; background: var(--white); padding: 12px 16px; }
.meta-grid dt { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.meta-grid dd { white-space: nowrap; margin: 2px 0 0; font-weight: 700; color: var(--navy); }
.pd-body { display: grid; gap: clamp(36px, 5vw, 60px); }
.pd-section h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.pd-section > p { max-width: 70ch; }
.pd-split { display: grid; gap: clamp(24px, 3vw, 36px); }
.panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); }
.chips { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--border); font-size: .93rem; font-weight: 500; color: var(--navy); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--coral-50); color: var(--coral-deep); margin-top: 2px; }
.checklist--teal svg { background: var(--teal-50); color: var(--teal); }
.bullets { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.bullets li::marker { color: var(--coral); }
.data-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; font-size: .98rem; }
.data-table th, .data-table td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: 0; }
.data-table th { width: 42%; font-weight: 600; color: var(--muted); }
.notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 22px 26px; border-radius: var(--radius); background: var(--yellow-50); border: 1px solid #efdca6; }
.notice p { margin: 0; max-width: 60ch; }
.gallery { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--white); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg);
  background: var(--navy); color: #c9d1de;
  background-image: radial-gradient(90% 140% at 100% 0%, rgba(233,100,71,.35), transparent 60%);
}
.cta-band h2 { color: var(--white); margin-bottom: .25em; }
.cta-band p { margin: 0; }
.cta-band .price { color: var(--coral-soft) !important; }

/* ---------- Filter ---------- */
.filter { display: grid; gap: 14px; grid-template-columns: 1fr; padding: 20px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.filter label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.filter select {
  width: 100%; min-height: 46px; padding: 10px 40px 10px 14px; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--cream) url("../img/ui/select-arrow.svg") no-repeat right 12px center / 18px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); appearance: none; -webkit-appearance: none;
}
.filter__actions { display: flex; align-items: end; }
.filter__actions .btn { width: 100%; }
.result-count { font-weight: 600; color: var(--muted); margin: 0 0 20px; }

/* ---------- Prosa / Rechtstexte ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.55rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.placeholder { background: var(--yellow-50); border: 1px dashed #d9b64e; padding: 1px 6px; border-radius: 4px; font-weight: 600; color: #6b4e05; }
.info-box { padding: 20px 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--border); border-left: 5px solid var(--coral); margin: 24px 0; }
.contact-card { display: grid; gap: 16px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.contact-card h2 { margin: 0; font-size: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b9c3d3; padding-block: 64px 28px; font-size: .97rem; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
.footer-brand .brand { color: var(--white); margin-bottom: 14px; }
.footer-brand .brand-name span { color: var(--coral-soft); }
.footer-brand p { max-width: 36ch; }
.site-footer h2 { font-family: var(--font-sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-soft); margin-bottom: 14px; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #e3e8f0; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .88rem; color: #9eabbf; }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .filter { grid-template-columns: repeat(3, 1fr); }
  .filter__actions { grid-column: 1 / -1; justify-content: flex-end; }
  .filter__actions .btn { width: auto; }
}
@media (min-width: 900px) {
  .worlds { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .why { grid-template-columns: 1.4fr 1fr; gap: 64px; }
  .pd-hero { grid-template-columns: 1.05fr 1fr; }
  .pd-split { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); }
  .filter { grid-template-columns: repeat(3, 1fr) auto; }
  .filter__actions { grid-column: auto; }
}
@media (min-width: 1080px) {
  .features { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .btn, .cta-band { display: none !important; }
  body { background: #fff; }
}

/* ---------- Phase 3: ehemalige Inline-Styles ----------
   Diese Klassen ersetzen 1:1 die früheren style="…"-Attribute, damit die
   Content-Security-Policy ohne 'unsafe-inline' auskommt. Sie stehen bewusst
   am Ende der Datei, damit sie – wie vorher die Inline-Styles – Vorrang vor
   den allgemeinen Regeln (auch in Media Queries) haben. */
.section--flush-top { padding-top: 0; }
.worlds--single { grid-template-columns: 1fr; }
.btn-row--spaced { margin-top: 28px; }
.why--top { align-items: start; }
.lead--strong { color: var(--text); }
.note--spaced { margin-top: 12px; }
.note--package { margin: 16px 0 0; }
.panel__title { font-size: 1.4rem; }
.resource__title { font-size: 1.6rem; margin: 0; }
.contact-email { font-weight: 700; font-size: 1.15rem; }

/* ---------- Phase 4: erweiterter Katalog ----------
   Produktart-Kennzeichnung (Paket / Kostenlos) und Suchfeld im Materialfilter.
   Nutzt ausschließlich vorhandene Farben und Formen des Designsystems. */
.tag--paket { background: var(--navy); color: var(--cream); }
.tag--free { background: var(--yellow); color: var(--navy); }
.filter input[type="search"] {
  width: 100%; min-height: 46px; padding: 10px 14px; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.filter__suche { grid-column: 1 / -1; }
@media (min-width: 640px) {
  .filter--erweitert { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .filter--erweitert { grid-template-columns: repeat(4, 1fr); }
  .filter--erweitert .filter__actions { grid-column: 1 / -1; justify-content: flex-end; }
}
/* Phase 4: Technische Daten auf sehr schmalen Bildschirmen (< 360 px) – längere Werte wie
   „Einzelmaterial“/„Materialpaket“ passen sonst nicht neben „Unterrichtssprache“ */
@media (max-width: 359px) {
  .data-table { font-size: .92rem; }
  .data-table th, .data-table td { padding: 10px 10px; }
}
