@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap");

/* =========================
   01. Design tokens
   ========================= */
:root {
  --ink: #12103a;
  --ink-soft: #2b2856;
  --paper: #f5f3ed;
  --surface: #ffffff;
  --red: #e8002d;
  --red-hover: #ff1744;
  --gold: #ffc700;
  --mut: #5d5a7a;
  --line: rgba(18, 16, 58, 0.12);
  --line-strong: rgba(18, 16, 58, 0.22);

  --r-xs: 8px;
  --r-sm: 14px;
  --r: 22px;
  --r-lg: 28px;
  --r-pill: 999px;

  --border: 2.5px solid var(--ink);
  --border-thin: 1px solid var(--line);

  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);
  --shadow-soft: 0 12px 35px rgba(18, 16, 58, 0.08);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 74px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
}

/* =========================
   02. Reset & base
   ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family:
    "DM Sans",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.85;
  overflow-x: hidden;
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  max-width: 100%;
  display: block;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

section[id],
main[id] {
  scroll-margin-top: calc(var(--header-h) + 22px);
}

/* =========================
   03. Layout
   ========================= */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 28px);
}

/* =========================
   04. Header & navigation
   ========================= */
.flag {
  height: 6px;
  background: linear-gradient(
    90deg,
    #000 0 33.33%,
    #d00 33.33% 66.66%,
    #ffce00 66.66% 100%
  );
}

header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 1000;
  background: rgba(245, 243, 237, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: clamp(1.3rem, 2.5vw, 1.55rem);
  direction: ltr;
  letter-spacing: -0.5px;
  transition: transform 0.25s var(--ease);
}

.logo:hover {
  transform: scale(1.03);
}

.logo b {
  color: var(--red);
}

.logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav nav a:not(.btn) {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.95rem;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}

.nav nav a:not(.btn):hover,
.nav nav a[aria-current="page"] {
  background: var(--ink);
  color: #fff;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  background: var(--surface);
  border: var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.15s;
}

.burger:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

/* =========================
   05. Buttons
   ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 26px;
  border: var(--border);
  border-radius: var(--r-pill);
  background: var(--red);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background 0.2s;
}

.btn:hover {
  background: var(--red-hover);
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn.line {
  background: var(--surface);
  color: var(--ink);
}

.btn.line:hover {
  background: var(--gold);
}

.hero .btn.line {
  background: transparent;
  color: #fff;
  border-color: #fff;
  box-shadow: 5px 5px 0 var(--gold);
}

.hero .btn.line:hover {
  background: rgba(255, 255, 255, 0.12);
}

.wortdaf-content .btn svg {
  transition: transform 0.2s;
}

.wortdaf-content .btn:hover svg {
  transform: translate(3px, -3px);
}

/* =========================
   06. Hero & typography
   ========================= */
.hero {
  position: relative;
  padding: clamp(56px, 8vw, 96px) 0 clamp(80px, 10vw, 120px);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}

.grid2 {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.5px;
  animation: fadeUp 0.8s var(--ease) both;
}

h2 {
  font-size: clamp(1.65rem, 3.8vw, 2.6rem);
  font-weight: 900;
  line-height: 1.4;
  margin: 40px 0 0;
}

.lead {
  max-width: 540px;
  margin: 18px 0 32px;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  opacity: 0.9;
}

.ph {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin-inline: auto;
  animation: fadeUp 1s 0.15s var(--ease) both;
}

.ph img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s ease;
}

.bdg {
  position: absolute;
  inset-inline-start: -24px;
  bottom: -16px;
  padding: 12px 18px;
  background: #fff;
  color: var(--ink);
  border-radius: 2px;
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.3;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: rotate(-6deg) translate3d(0, 20px, 0);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.bdg.is-visible {
  opacity: 1;
  transform: rotate(-6deg) translate3d(0, 0, 0);
}

.bdg small {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--mut);
}

.ph2 {
  padding: clamp(48px, 6vw, 72px) 20px;
  background: var(--ink);
  color: #fff;
  text-align: center;
}

.ph2 p {
  max-width: 560px;
  margin: 12px auto 0;
  opacity: 0.85;
}

.wortdaf-content h2 {
  margin-bottom: 22px;
}

.about-content h2 {
  max-width: 650px;
  margin: 18px 0 24px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.3;
}

.about-content h2 span {
  color: var(--red);
}

/* =========================
   07. Language strip
   ========================= */
.mq {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 14px 0;
  direction: ltr;
  background: var(--red);
  color: #fff;
  border-block: 3px solid var(--ink);
  font-weight: 900;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  white-space: nowrap;
}

.mq div {
  display: flex;
  width: max-content;
  gap: 32px;
  animation: mq 28s linear infinite;
}

.mq span:nth-child(4n + 1) {
  color: var(--gold);
}

.mq:hover div,
.mq:focus-within div {
  animation-play-state: paused;
}

/* =========================
   08. Sections & cards
   ========================= */
.sec {
  padding: clamp(56px, 8vw, 92px) 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
  margin-top: 36px;
}

.card {
  padding: clamp(22px, 3vw, 30px);
  background: var(--surface);
  border: var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 9px 9px 0 var(--red);
}

.card i {
  display: inline-block;
  margin-bottom: 6px;
  font-style: normal;
  font-size: 2.3rem;
}

.card h3 {
  margin: 6px 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
}

.card p {
  color: var(--mut);
  font-size: 0.98rem;
}

/* =========================
   09. Stats band
   ========================= */
.band {
  padding: 42px 0;
  background: #f4f2eb;
  color: var(--ink);
  border-block: var(--border-thin);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stats > div {
  position: relative;
  padding: 8px 16px;
}

.stats > div:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-end: -12px;
  top: 15%;
  width: 1px;
  height: 70%;
  background: var(--line);
}

.stats b {
  display: block;
  color: var(--red);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
}

.stats small {
  display: block;
  margin-top: 9px;
  color: var(--mut);
  font-size: 0.85rem;
  font-weight: 500;
}

/* =========================
   10. Timeline
   ========================= */
.tl {
  margin-inline-end: 8px;
  padding-inline-end: 28px;
  border-inline-end: 3px solid var(--ink);
}

.tl div {
  position: relative;
  margin-bottom: 24px;
}

.tl div::before {
  content: "";
  position: absolute;
  inset-inline-end: -38px;
  top: 7px;
  width: 18px;
  height: 18px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--gold);
}

.tl b {
  color: var(--red);
  font-weight: 800;
}

.q small {
  display: block;
  margin-top: 10px;
  color: var(--mut);
}

/* =========================
   11. CTA
   ========================= */
.cta {
  margin-inline: clamp(16px, 4vw, 28px);
  padding: clamp(44px, 6vw, 72px) 24px;
  background: var(--ink);
  color: #fff;
  text-align: center;
  border: 3px solid var(--ink);
  border-radius: clamp(24px, 4vw, 38px);
  box-shadow: var(--shadow-lg);
}

/* =========================
   12. Tables & exams
   ========================= */
.tw {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

th {
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

th,
td {
  padding: 15px 16px;
  text-align: center;
}

tbody tr {
  border-bottom: 1px solid var(--line);
}

tbody tr:last-child {
  border-bottom: 0;
}

tbody tr:hover td {
  background: rgba(255, 199, 0, 0.12);
}

tr:nth-child(even) td {
  background: var(--paper);
}

td:first-child {
  direction: ltr;
  color: var(--red);
  font-size: 1.25rem;
  font-weight: 900;
}

.note {
  margin-top: 12px;
  color: var(--mut);
  font-size: 0.9rem;
}

.table-scroll-indicator {
  display: none;
}

.faq-intro {
  max-width: 650px;
  margin: 12px 0 30px;
  color: var(--mut);
}

.exam-logo {
  display: flex;
  align-items: center;
  margin-bottom: 22px;
  height: 55px;
}

.exam-logo img {
  width: auto;
  max-width: 120px;
  max-height: 48px;
  object-fit: contain;
}

.goethe-logo img {
  max-width: 180px;
  max-height: 58px;
}

.exam-logo.testdaf-logo {
  height: 70px;
}

.testdaf-logo img {
  max-width: 270px;
  max-height: 70px;
  width: auto;
  height: auto;
}

.course-intro {
  max-width: 850px;
  margin: 12px 0 28px;
  color: var(--mut);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* =========================
   13. FAQ
   ========================= */
details {
  margin-bottom: 14px;
  padding: 16px 20px;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

details[open] {
  border-color: var(--red);
  box-shadow: 4px 4px 0 var(--red);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

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

summary::after {
  content: "+";
  color: var(--red);
  font-size: 1.4rem;
  font-weight: 900;
}

details[open] summary::after {
  content: "−";
}

details p {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
  color: var(--mut);
}

.faq-list {
  max-width: 900px;
  margin-top: 28px;
}

.faq-list details {
  margin-bottom: 16px;
  padding: 20px 24px;
}

.faq-list summary {
  font-size: 1.05rem;
}

.faq-list details p {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  line-height: 1.9;
}

.faq-link {
  color: var(--red);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.faq-link:hover,
.faq-link:focus-visible {
  color: var(--ink);
}

/* =========================
   14. Forms & certificates
   ========================= */
form,
.box {
  padding: clamp(22px, 4vw, 34px);
  background: var(--surface);
  border: var(--border);
  border-radius: var(--r);
  box-shadow: 6px 6px 0 var(--gold);
}

form {
  display: grid;
  gap: var(--space-3);
}

label {
  font-size: 0.95rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  padding: 13px 16px;
  border: var(--border);
  border-radius: var(--r-sm);
  background: var(--paper);
  transition:
    background 0.2s,
    box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  background: var(--surface);
  box-shadow: 4px 4px 0 var(--ink);
}

.res {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--r-sm);
}

.res:empty {
  display: none;
}

.ok {
  background: #e3f7e8;
  border: 2.5px solid #1a9a3c;
}

.bad {
  background: #fde6e9;
  border: 2.5px solid var(--red);
}

dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  margin-top: 10px;
}

dt {
  color: var(--mut);
}

dd {
  font-weight: 700;
}

#qr {
  margin-top: 14px;
}

#cf {
  min-width: 0;
  width: 100%;
}

/* =========================
   15. Footer
   ========================= */
footer {
  margin-top: clamp(56px, 8vw, 90px);
  padding: clamp(48px, 7vw, 72px) 0 24px;
  background: var(--ink);
  color: #fff;
}

.fgrid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(24px, 4vw, 40px);
}

footer h4 {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 1.1rem;
}

footer a {
  display: inline-block;
  margin: 4px 0;
  opacity: 0.82;
  transition:
    opacity 0.2s,
    color 0.2s,
    transform 0.2s;
}

footer a:hover,
footer a:focus-visible {
  opacity: 1;
  color: var(--gold);
  transform: translateX(-4px);
}

.copy {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  text-align: center;
}

.footer-links a {
  display: block;
  width: fit-content;
  margin: 9px 0;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--gold);
  transform: translateX(4px);
}

.footer-about p {
  max-width: 360px;
}

/* =========================
   16. Floating action button
   ========================= */
.fab {
  position: fixed;
  inset-inline-end: 22px;
  bottom: 22px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  background: #25d366;
  color: #fff;
  border: var(--border);
  border-radius: 50%;
  font-size: 1.65rem;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.fab:hover,
.fab:focus-visible {
  transform: translate(-2px, -3px) scale(1.05);
  box-shadow: 7px 7px 0 var(--ink);
}

.fab svg {
  display: block;
}

/* =========================
   17. WORTDAF
   ========================= */
.wortdaf-section {
  overflow: hidden;
  background: #efede6;
}

.wortdaf-grid,
.digidaf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(45px, 7vw, 90px);
  align-items: center;
}

.wortdaf-content,
.digidaf-content {
  max-width: 520px;
}

.wortdaf-content h2,
.digidaf-content h2 {
  max-width: 520px;
  margin: 0 0 20px;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.wortdaf-content p,
.digidaf-content p {
  max-width: 480px;
  margin-bottom: 28px;
  color: var(--mut);
  font-size: 1rem;
  line-height: 1.95;
}

.wortdaf-visual {
  position: relative;
  overflow: hidden;
  padding: 38px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-sm);
}

.wortdaf-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  direction: ltr;
  font-size: 1.8rem;
  font-weight: 800;
}

.wortdaf-brand b {
  color: var(--gold);
}

.wortdaf-symbol {
  display: flex;
  color: var(--gold);
}

.word-card {
  margin-bottom: 14px;
  padding: 22px;
  background: #fff;
  color: var(--ink);
  border-radius: var(--r-xs);
}

.word-level {
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.word-card h3 {
  margin: 9px 0 4px;
  font-size: 1.35rem;
}

.word-card p {
  color: var(--mut);
  font-size: 0.9rem;
}

.word-example {
  display: block;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e8e8e8;
  font-size: 0.88rem;
}

.wortdaf-footer {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.wortdaf-image,
.digidaf-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.wortdaf-image img,
.digidaf-image img {
  width: 100%;
  max-width: 560px;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
}

/* =========================
   18. DIGIDAF
   ========================= */
.digidaf-section {
  overflow: hidden;
  background: #f8f7f2;
}

.digidaf-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.digidaf-logo {
  margin-top: 24px;
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -3px;
}

.digidaf-logo span {
  color: var(--gold);
}

.digidaf-divider {
  width: 55px;
  height: 3px;
  margin: 24px 0;
  background: var(--gold);
}

.digidaf-description {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 2px;
}

.digidaf-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 25px;
}

.digidaf-skills span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.digidaf-footer {
  margin-top: 32px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
}

/* =========================
   19. About
   ========================= */
.about-section {
  padding: clamp(70px, 9vw, 110px) 0 32px;
}

.about-section + .sec {
  padding-top: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(50px, 8vw, 110px);
  align-items: center;
}

.about-lead {
  max-width: 620px;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.9;
}

.about-description {
  max-width: 620px;
  margin-top: 18px;
  color: var(--mut);
  line-height: 2;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--red);
  color: var(--red);
  font-weight: 800;
  transition: gap 0.2s ease;
}

.about-link:hover,
.about-link:focus-visible {
  gap: 18px;
}

.about-link span {
  font-size: 1.2rem;
}

.about-journey {
  padding: clamp(24px, 4vw, 38px);
  background: var(--surface);
  border: var(--border-thin);
  border-radius: 4px;
  box-shadow: var(--shadow-soft);
}

.journey-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e8e5de;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.journey-heading span:last-child {
  color: var(--mut);
}

.journey-item {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding-bottom: 38px;
}

.journey-item:last-child {
  padding-bottom: 0;
}

.journey-item:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-start: 21px;
  top: 44px;
  bottom: 0;
  width: 1px;
  background: #dedbe0;
}

.journey-marker {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: #fff;
  border: 1px solid #d8d5ce;
  border-radius: 50%;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.journey-item:last-child .journey-marker {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.journey-date {
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 1px;
}

.journey-info h3 {
  margin: 6px 0 8px;
  font-size: 1.3rem;
  font-weight: 900;
}

.journey-info p {
  color: var(--mut);
  font-size: 1.05rem;
  line-height: 1.9;
}

/* =========================
   20. Reveal system
   ========================= */
.reveal,
.reveal-title {
  opacity: 0;
  transform: translate3d(0, 42px, 0);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}

.reveal-title {
  transform: translate3d(0, 28px, 0);
}

.reveal.is-visible,
.reveal-title.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Inhalte bleiben auch ohne JavaScript sichtbar. */
.no-js .reveal,
.no-js .reveal-title,
.no-js .bdg {
  opacity: 1 !important;
  transform: none !important;
}

.cards .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.cards .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.cards .reveal:nth-child(4) {
  transition-delay: 0.24s;
}

/* =========================
   21. Animations
   ========================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mq {
  to {
    transform: translateX(-50%);
  }
}

/* =========================
   22. Responsive
   ========================= */
@media (max-width: 860px) {
  .grid2 {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .lead {
    margin-inline: auto;
  }

  .ph {
    max-width: 310px;
    margin-top: 16px;
  }

  .burger {
    display: grid;
  }

  .nav nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px 20px 22px;
    background: var(--paper);
    border-bottom: 3px solid var(--ink);
    box-shadow: 0 12px 24px rgba(18, 16, 58, 0.15);
  }

  .nav nav.open {
    display: flex;
    animation: fadeUp 0.25s var(--ease) both;
  }

  .nav nav a {
    text-align: center;
  }

  .fgrid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-about p {
    margin-inline: auto;
  }

  footer a {
    display: block;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .about-content {
    max-width: 700px;
  }

  .about-journey {
    width: 100%;
  }
}

@media (max-width: 800px) {
  .wortdaf-grid,
  .digidaf-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .wortdaf-content,
  .digidaf-content {
    max-width: 100%;
  }

  .wortdaf-visual {
    padding: 26px;
  }
}

@media (max-width: 768px) {
  .table-scroll-indicator {
    display: block;
    width: 100%;
    height: 4px;
    margin-top: 12px;
    background: #d5d5d5;
    border-radius: 10px;
  }
}

@media (max-width: 600px) {
  .faq-list details {
    padding: 16px;
  }

  .faq-list summary {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .bdg {
    inset-inline-start: 0;
    bottom: -10px;
    padding: 8px 14px;
  }

  .fab {
    inset-inline-end: 16px;
    bottom: 16px;
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }

  .about-journey {
    padding: 22px 18px;
  }

  .journey-item {
    gap: 14px;
  }

  .journey-info h3 {
    font-size: 1.05rem;
  }
}

/* =========================
   23. Large screens
   ========================= */
@media (min-width: 1600px) {
  :root {
    --header-h: 86px;
  }

  .wrap {
    max-width: 1450px;
  }

  body {
    font-size: 18px;
  }

  h1 {
    font-size: clamp(3rem, 4vw, 4.5rem);
  }

  h2 {
    font-size: clamp(2.2rem, 3vw, 3.2rem);
  }

  .card {
    padding: 36px;
  }

  .cards {
    gap: 30px;
  }

  .sec {
    padding-block: 110px;
  }

  .logo img {
    height: 50px;
  }
}

@media (min-width: 2200px) {
  .wrap {
    max-width: 1750px;
  }

  body {
    font-size: 20px;
  }

  h1 {
    font-size: 5rem;
  }

  h2 {
    font-size: 3.5rem;
  }

  .card h3 {
    font-size: 1.5rem;
  }

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

  .sec {
    padding-block: 130px;
  }

  .cards {
    gap: 36px;
  }
}

/* =========================
   24. Touch behavior
   ========================= */
@media (hover: none) and (pointer: coarse) {
  .card:hover,
  .btn:hover,
  .logo:hover,
  .fab:hover,
  .about-link:hover,
  footer a:hover {
    transform: none;
    box-shadow: var(--shadow);
  }

  .card:hover {
    box-shadow: var(--shadow);
  }

  .about-journey,
  .about-journey:hover,
  .about-journey:active,
  .about-journey:focus,
  .about-journey:focus-visible {
    transform: none !important;
    box-shadow: var(--shadow-soft) !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
  }
}

/* =========================
   25. Reduced motion
   ========================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal,
  .reveal-title,
  .bdg,
  .journey-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero::before,
  .hero::after,
  .wortdaf-section::before,
  .digidaf-section::before,
  .ph img,
  .wortdaf-image img,
  .digidaf-image img {
    transform: none !important;
  }
}

/* Lernpläne */
.plan-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.plan-tab {
  padding: 12px 24px;
  background: var(--surface);
  color: var(--ink);
  border: var(--border);
  border-radius: var(--r-pill);
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}

.plan-tab:hover,
.plan-tab:focus-visible {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--red);
}

.plan-tab.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.plan-content {
  display: none;
}

.plan-content.active {
  display: block;
  margin-top: 36px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--surface);
  border: var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.plan-intro {
  max-width: 760px;
  margin-bottom: 24px;
  color: var(--mut);
  font-size: 1.05rem;
  line-height: 1.9;
}

.plan-content h3 {
  margin: 0 0 22px;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 900;
}

.plan-day {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.plan-day h3,
.plan-day h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.plan-day p {
  margin: 0;
  color: var(--mut);
  line-height: 1.7;
}

.plan-day.off {
  opacity: 0.55;
}

.b2-schedule + .b2-schedule {
  margin-top: 48px;
}

.exam-tag {
  display: inline-block;
  margin-inline-start: 10px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  vertical-align: middle;
}

.exam-tag.goethe {
  background: #e4f3e9;
  color: #247443;
}

.exam-tag.osd {
  background: #e5effb;
  color: #2864a5;
}

.exam-tag.goethe-osd-b1 {
  background: linear-gradient(110deg, #dcecff 0%, #d9f2e7 100%);
  color: #087e75;
}

@media (max-width: 600px) {
  .plan-tabs {
    gap: 8px;
  }

  .plan-tab {
    padding: 10px 20px;
  }

  .plan-day {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .b2-schedule + .b2-schedule {
    margin-top: 36px;
  }
}
/* =========================
   Form & contact layout
   ========================= */
.form-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.form-layout form {
  margin: 0;
}

.form-layout .box {
  margin: 0;
}

.form-layout h2 {
  margin: 0 0 18px;
}

.form-layout h3 {
  margin: 0 0 12px;
}

/* Kontaktseite */
.contact-channels {
  display: grid;
  gap: 24px;
}

.contact-channels .card {
  display: block;
  margin: 0;
}

.contact-channels .card h3 {
  margin: 0 0 8px;
}

.contact-channels .card p {
  margin: 0;
}

/* Formularschaltflächen behalten ihre natürliche Breite. */
form .btn {
  justify-self: start;
}

/* Zertifikatsseite */
.certificate-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.certificate-layout form {
  margin: 0;
}

.certificate-layout .box {
  margin: 0;
}

.certificate-layout h2 {
  margin: 0 0 18px;
}

.certificate-layout h3 {
  margin: 0 0 12px;
}

@media (max-width: 860px) {
  .form-layout,
  .certificate-layout {
    grid-template-columns: 1fr;
  }

  .contact-channels {
    order: 2;
  }
}
/* =========================
   Form layout
   ========================= */
.form-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.form-layout form {
  margin: 0;
}

.form-layout .box {
  margin: 0;
}

.form-layout h2 {
  margin: 0 0 18px;
}

.form-layout h3 {
  margin: 0 0 12px;
}

/* =========================
   Contact channels
   ========================= */
.contact-channels {
  display: grid;
  gap: 28px;
}

.contact-channels .card {
  display: block;
  margin: 0;
}

.contact-channels .card h3 {
  margin: 0 0 8px;
}

.contact-channels .card p {
  margin: 0;
}

/* =========================
   Form button
   ========================= */
form .btn {
  justify-self: start;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 860px) {
  .form-layout {
    grid-template-columns: 1fr;
  }

  .contact-channels {
    order: 2;
  }
}
/* =========================
   Modern UI override
   ========================= */
:root {
  --border: 1px solid var(--line);
  --border-strong: 1px solid var(--line-strong);

  --shadow-sm: 0 2px 8px rgba(18, 16, 58, 0.06);
  --shadow: 0 8px 24px rgba(18, 16, 58, 0.08);
  --shadow-lg: 0 18px 45px rgba(18, 16, 58, 0.12);
  --shadow-soft: 0 12px 35px rgba(18, 16, 58, 0.08);

  --shadow-red: 0 10px 28px rgba(232, 0, 45, 0.18);
  --shadow-gold: 0 10px 28px rgba(255, 199, 0, 0.22);
}

/* Kopfbereich */
header {
  border-bottom: var(--border);
  box-shadow: var(--shadow-sm);
}

/* Navigation */
.nav nav a:not(.btn) {
  border: 1px solid transparent;
}

.nav nav a:not(.btn):hover,
.nav nav a[aria-current="page"] {
  background: rgba(18, 16, 58, 0.06);
  color: var(--ink);
  border-color: var(--line);
  transform: translateY(-1px);
}

.nav nav a[aria-current="page"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* Mobiles Menü */
.burger {
  border: var(--border);
  box-shadow: var(--shadow-sm);
}

.burger:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.burger:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Schaltflächen */
.btn {
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--red), #ff2f52);
  box-shadow: var(--shadow-red);
}

.btn:hover {
  background: linear-gradient(135deg, var(--red-hover), #ff4d68);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(232, 0, 45, 0.24);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(232, 0, 45, 0.18);
}

.btn.line {
  background: var(--surface);
  color: var(--ink);
  border: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn.line:hover {
  background: #fff8d9;
  border-color: rgba(255, 199, 0, 0.6);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.hero .btn.line {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
  backdrop-filter: blur(6px);
}

.hero .btn.line:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

/* Karten */
.card {
  border: var(--border);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(232, 0, 45, 0.25);
}

/* Häufige Fragen */
details {
  border: var(--border);
  box-shadow: var(--shadow-sm);
}

details[open] {
  border-color: rgba(232, 0, 45, 0.3);
  box-shadow: var(--shadow);
}

/* Formulare */
form,
.box {
  border: var(--border);
  box-shadow: var(--shadow);
}

input,
select,
textarea {
  border: var(--border);
  box-shadow: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(232, 0, 45, 0.45);
  box-shadow: 0 0 0 4px rgba(232, 0, 45, 0.1);
}

/* Lernplan-Navigation */
.plan-tab {
  border: var(--border);
  box-shadow: var(--shadow-sm);
}

.plan-tab:hover,
.plan-tab:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(232, 0, 45, 0.25);
}

.plan-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 10px 24px rgba(18, 16, 58, 0.18);
}

/* Lernplan-Inhalte */
.plan-content.active {
  border: var(--border);
  box-shadow: var(--shadow);
}

/* Handlungsaufforderung */
.cta {
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg);
}

/* WhatsApp-Schaltfläche */
.fab {
  border: none;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.32);
}

.fab:hover,
.fab:focus-visible {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 36px rgba(37, 211, 102, 0.4);
}
/* Oberflächen */
.card,
form,
.box,
.plan-content.active {
  background: #fff;
  border-radius: 18px;
}

.card {
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

/* Dezenter Farbverlauf */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(232, 0, 45, 0.04), transparent 45%);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

/* Tastaturfokus */
:focus-visible {
  outline: 3px solid rgba(232, 0, 45, 0.55);
  outline-offset: 3px;
}
.card {
  position: relative;
  overflow: hidden;
}
.btn,
.plan-tab,
.burger,
.fab {
  box-shadow: none;
}

.btn {
  background: linear-gradient(135deg, var(--red), #ff2f52);
  border: none;
  box-shadow: 0 8px 22px rgba(232, 0, 45, 0.2);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(232, 0, 45, 0.26);
}

.plan-tab {
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(18, 16, 58, 0.06);
}

.plan-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 8px 20px rgba(18, 16, 58, 0.16);
}

.fab {
  border: none;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.32);
}
/* =========================================
   Final fixes: form overflow & stable hover
   ========================================= */

.form-layout,
.certificate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.form-layout > *,
.certificate-layout > *,
.contact-channels > * {
  min-width: 0;
}

#cf,
#vf,
.form-layout .box,
.certificate-layout .box,
.contact-channels {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

#cf input,
#cf select,
#cf textarea,
#vf input,
#vf select,
#vf textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

#cf textarea,
#vf textarea {
  resize: vertical;
  min-height: 160px;
  max-height: 420px;
  overflow: auto;
}

#cf,
#vf {
  gap: 12px;
}

#cf h2,
#vf h2 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.4;
}

#cf label,
#vf label {
  display: block;
  margin: 0;
}

#cf .btn,
#vf .btn {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

#word-count {
  color: var(--mut);
  font-size: 0.85rem;
}

.contact-channels .card,
#res,
#res dd {
  overflow-wrap: anywhere;
}

#res dl {
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
}

#res dd {
  min-width: 0;
}

.contact-channels {
  display: grid;
  gap: 28px;
}

.contact-channels .card {
  display: block;
  margin: 0;
}

.btn,
.plan-tab,
.burger,
.fab,
.logo,
.about-link,
.nav nav a,
footer a {
  transform: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.btn:hover,
.btn:active,
.btn:focus-visible,
.btn.line:hover,
.hero .btn.line:hover,
.plan-tab:hover,
.plan-tab:active,
.plan-tab:focus-visible,
.burger:hover,
.burger:active,
.fab:hover,
.fab:active,
.fab:focus-visible,
.logo:hover,
.about-link:hover,
.about-link:focus-visible,
.nav nav a:not(.btn):hover,
.nav nav a[aria-current="page"],
footer a:hover,
footer a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  transform: none;
}

.about-link,
.about-link:hover,
.about-link:focus-visible {
  gap: 12px;
}

.wortdaf-content .btn:hover svg {
  transform: none;
}

/* 6. کارت‌ها هنگام hover تکان نخورند.
   حالت اولیه reveal را دست نمی‌زنیم. */
.card {
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease),
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.card:not(.reveal):not(.reveal-title),
.card:not(.reveal):not(.reveal-title):hover,
.card.is-visible,
.card.is-visible:hover,
.card.is-visible:active {
  transform: none;
}

.card.reveal:not(.is-visible):hover {
  transform: translate3d(0, 42px, 0);
}

.card.reveal-title:not(.is-visible):hover {
  transform: translate3d(0, 28px, 0);
}

.card {
  border: 1px solid var(--line);
  box-shadow: 0 3px 14px rgba(18, 16, 58, 0.05);
}

.card:hover {
  border-color: rgba(18, 16, 58, 0.22);
  box-shadow: 0 8px 24px rgba(18, 16, 58, 0.09);
}

.btn,
.btn:hover,
.btn:active {
  border: 1px solid transparent;
  background: var(--red);
  box-shadow: 0 3px 12px rgba(18, 16, 58, 0.08);
}

.btn:hover {
  background: #cf0028;
  box-shadow: 0 6px 18px rgba(18, 16, 58, 0.12);
}

.btn:active {
  background: #b90024;
  box-shadow: none;
}

.btn.line,
.btn.line:hover {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn.line:hover {
  background: #eeedf4;
  border-color: var(--line-strong);
}

.hero .btn.line,
.hero .btn.line:hover {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.hero .btn.line:hover {
  background: rgba(255, 255, 255, 0.16);
}

.plan-tab,
.plan-tab:hover,
.burger,
.burger:hover,
.burger:active {
  box-shadow: none;
}

.plan-tab:hover,
.burger:hover {
  border-color: var(--line-strong);
}

.plan-tab.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: none;
}

.fab,
.fab:hover,
.fab:active,
.fab:focus-visible {
  box-shadow: 0 5px 18px rgba(18, 16, 58, 0.15);
}

.fab:hover {
  background: #20bd5a;
}

/* Der Einblendeffekt wird über die Klasse .on aktiviert. */
.nav nav a.on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* فوکوس کیبورد همچنان واضح باقی بماند */
.btn:focus-visible,
.plan-tab:focus-visible,
.burger:focus-visible,
.fab:focus-visible,
.contact-channels .card:focus-visible {
  outline: 3px solid rgba(232, 0, 45, 0.55);
  outline-offset: 4px;
}

@media (max-width: 860px) {
  .form-layout,
  .certificate-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 480px) {
  #cf .btn,
  #vf .btn {
    width: 100%;
    justify-self: stretch;
  }

  #res dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  #res dd {
    margin-bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .btn,
  .plan-tab,
  .burger,
  .fab,
  .logo,
  .about-link {
    transition: none !important;
  }

  .card.reveal,
  .card.reveal-title,
  .card.reveal:hover,
  .card.reveal-title:hover {
    opacity: 1 !important;
    transform: none !important;
  }
}
/* =========================================
   Responsive header — all public pages
   ========================================= */

:root {
  --header-total-h: calc(var(--header-h) + 7px);
}

/* Höhe des Navigationsbereichs inklusive Abstand */
body {
  padding-top: var(--header-total-h);
}

section[id],
main[id] {
  scroll-margin-top: calc(var(--header-total-h) + 20px);
}

#hdr header {
  border-bottom: 1px solid var(--line);
}

#hdr .nav {
  min-height: var(--header-h);
}

#hdr .logo {
  flex-shrink: 0;
}

#hdr .logo img {
  display: block;
  max-width: 180px;
  object-fit: contain;
}

#hdr .nav nav a {
  white-space: nowrap;
}

/* Navigation auf Tablet und Smartphone */
@media (max-width: 1100px) {
  #hdr .burger {
    display: grid;
    flex-shrink: 0;
  }

  #hdr .nav nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;

    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;

    max-height: calc(100dvh - var(--header-total-h));
    overflow-y: auto;

    padding: 18px clamp(16px, 4vw, 32px) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(18, 16, 58, 0.08);
  }

  #hdr .nav nav.open {
    display: flex;
    animation: none;
  }

  #hdr .nav nav a {
    text-align: center;
  }

  #hdr .nav nav .btn {
    align-self: center;
    margin-top: 8px;
  }
}

/* =========================================
   Homepage — base layout
   ========================================= */

.home-page .wrap {
  width: 100%;
  padding-inline: clamp(20px, 4vw, 32px);
}

.home-page .grid2,
.home-page .about-grid,
.home-page .wortdaf-grid,
.home-page .digidaf-grid {
  min-width: 0;
}

.home-page .grid2 > *,
.home-page .about-grid > *,
.home-page .wortdaf-grid > *,
.home-page .digidaf-grid > *,
.home-page .cards > *,
.home-page .stats > * {
  min-width: 0;
}

.home-page h1,
.home-page h2,
.home-page h3,
.home-page p {
  overflow-wrap: break-word;
}

/* Einstiegsbereich */
.home-page .hero {
  padding-block: clamp(48px, 7vw, 96px);
}

.home-page .hero .grid2 {
  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.home-page .hero h1 {
  font-size: clamp(2.5rem, 4.8vw, 4.5rem);
  line-height: 1.15;
}

.home-page .hero .lead {
  max-width: 36rem;
}

.home-page .eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.06em;
}

.home-page .hero .eyebrow {
  margin-bottom: 18px;
}

.home-page .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.home-page .hero-actions .btn {
  max-width: 100%;
  min-height: 48px;
  white-space: normal;
  text-align: center;
}

.home-page .ph {
  width: 100%;
  max-width: 380px;
  margin-inline: auto;
  margin-top: 0;
  margin-bottom: 24px;
}

.home-page .ph img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.home-page .bdg {
  inset-inline-start: 12px;
  bottom: -18px;
  max-width: calc(100% - 24px);
}

/* Statistiken */
.home-page .stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.home-page .stats > div {
  padding: 12px;
}

.home-page .stats > div > span,
.home-page .stats > div > small {
  display: block;
  margin-top: 10px;
  color: var(--mut);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Über uns */
.home-page .about-grid {
  grid-template-columns:
    minmax(0, 1.1fr)
    minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
}

.home-page .about-journey {
  width: 100%;
}

.home-page .journey-item {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
}

/* Vorteile */
.home-page .cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.home-page .card {
  padding: clamp(22px, 2.5vw, 32px);
}

.home-page .card h3 {
  font-size: clamp(1.1rem, 1.3vw, 1.3rem);
  line-height: 1.5;
}

/* Digitale Angebote */
.home-page .wortdaf-grid,
.home-page .digidaf-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px);
}

.home-page .wortdaf-content,
.home-page .digidaf-content {
  max-width: 100%;
}

.home-page .wortdaf-grid > a,
.home-page .digidaf-grid > a {
  display: block;
  min-width: 0;
  width: 100%;
}

.home-page .wortdaf-image img,
.home-page .digidaf-image img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin-inline: auto;
}

/* Handlungsaufforderung */
.home-page .cta {
  width: calc(100% - 40px);
  max-width: 1180px;
  margin-inline: auto;
  margin-top: 60px;
  padding: clamp(32px, 5vw, 64px) clamp(20px, 4vw, 48px);
}

.home-page .cta h2 {
  max-width: 850px;
  margin: 16px auto;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1.4;
}

.home-page .cta p {
  max-width: 650px;
  margin: 0 auto 24px;
}

.home-page .cta .btn {
  max-width: 100%;
  white-space: normal;
}

/* Fußbereich */
.home-page .fgrid {
  grid-template-columns:
    minmax(0, 1.5fr)
    minmax(0, 1fr)
    minmax(0, 1fr);
}

.home-page footer a {
  overflow-wrap: anywhere;
}

/* =========================================
   Tablet
   ========================================= */

@media (max-width: 1100px) {
  .home-page .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .home-page .about-content,
  .home-page .about-journey {
    max-width: 760px;
    margin-inline: auto;
  }
}

/* Schmale Bildschirme */
@media (max-width: 900px) {
  .home-page .hero .grid2 {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    text-align: center;
  }

  .home-page .hero-content {
    width: 100%;
    max-width: 680px;
    margin-inline: auto;
  }

  .home-page .hero .lead {
    margin-inline: auto;
  }

  .home-page .hero-actions {
    justify-content: center;
  }

  .home-page .ph {
    max-width: 320px;
  }

  .home-page .wortdaf-grid,
  .home-page .digidaf-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .home-page .wortdaf-content,
  .home-page .digidaf-content {
    width: 100%;
    max-width: 680px;
    margin-inline: auto;
  }

  .home-page .wortdaf-image,
  .home-page .digidaf-image {
    max-width: 520px;
    margin-inline: auto;
  }

  .home-page .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }

  .home-page .stats > div::after {
    display: none;
  }

  .home-page .fgrid {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .home-page .footer-about p,
  .home-page .footer-links a {
    margin-inline: auto;
  }
}

/* =========================================
   Mobile
   ========================================= */

@media (max-width: 600px) {
  .home-page .sec {
    padding-block: 48px;
  }

  .home-page .about-section {
    padding-top: 56px;
    padding-bottom: 32px;
  }

  .home-page .about-section + .sec {
    padding-top: 24px;
  }

  .home-page .hero {
    padding-top: 40px;
    padding-bottom: 52px;
  }

  .home-page .hero h1 {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .home-page .hero .lead {
    font-size: 1rem;
    line-height: 1.85;
    margin-top: 20px;
    margin-bottom: 28px;
  }

  .home-page .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 340px;
    margin-inline: auto;
    gap: 14px;
  }

  .home-page .hero-actions .btn {
    width: 100%;
  }

  .home-page .ph {
    max-width: 280px;
  }

  .home-page .band {
    padding-block: 28px;
  }

  .home-page .stats b {
    font-size: clamp(1.6rem, 7vw, 2.1rem);
  }

  .home-page .stats > div {
    padding: 8px 4px;
  }

  .home-page .stats > div > span {
    font-size: 0.8rem;
  }

  .home-page .cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 28px;
  }

  .home-page .about-content h2,
  .home-page .wortdaf-content h2,
  .home-page .digidaf-content h2 {
    font-size: clamp(1.75rem, 7vw, 2.2rem);
  }

  .home-page .about-lead {
    font-size: 1rem;
  }

  .home-page .about-journey {
    padding: 24px 20px;
  }

  .home-page .journey-item {
    gap: 14px;
  }

  .home-page .journey-info h3 {
    font-size: 1.1rem;
  }

  .home-page .journey-info p {
    font-size: 0.95rem;
  }

  .home-page .cta .btn {
    width: 100%;
  }
}
.exam-section {
  padding-top: 24px;
}

/* Materials Teaser – Courses Page */

.materials-teaser {
  padding-top: 0;
}

.materials-teaser-box {
  padding: 42px;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.materials-teaser-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  background: var(--gold);
}

.materials-teaser-content {
  max-width: 720px;
}

.materials-teaser-content h2 {
  margin: 14px 0;
}

.materials-teaser-content p {
  max-width: 650px;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .materials-teaser-box {
    padding: 30px 24px;
  }
}
.footer-project-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-project-links a {
  display: inline-block;
  width: fit-content;
  margin: 9px 0;
}
/* Prüfungsvorbereitung: Karten als Links */
.exam-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.exam-card-link .exam-card-cta {
  display: inline-block;
  margin-top: 12px;
  color: var(--red);
  font-weight: 700;
}
.exam-card-link:hover .exam-card-cta,
.exam-card-link:focus-visible .exam-card-cta {
  text-decoration: underline;
}
.exam-card-link:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
/* Compact exam preparation cards */

.exam-card-link {
  padding: 22px !important;
  min-height: 0;
}

.exam-card-link .exam-logo {
  height: 55px;
  margin-bottom: 16px;
}

.exam-card-link .exam-logo img {
  max-height: 48px;
  max-width: 150px;
  object-fit: contain;
}

.exam-card-link .exam-logo.testdaf-logo img {
  max-width: 240px;
  max-height: 70px;
  width: auto;
  height: auto;
}

.exam-card-link h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.exam-card-link p {
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 12px;
}

.exam-card-link .exam-card-cta {
  margin-top: 4px;
  font-size: 0.9rem;
}

/* =========================================
   Courses page – exam preparation cards
   ========================================= */

.course-overview {
  padding-bottom: 28px;
}

.exam-section {
  padding-top: 24px;
}

.exam-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 0;
}

.exam-card-link {
  min-width: 0;
  height: 100%;
}

@media (max-width: 1000px) {
  .exam-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .course-overview {
    padding-bottom: 16px;
  }

  .exam-section {
    padding-top: 16px;
  }

  .exam-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}
/* CTA unter den FAQ */

.course-cta {
  margin-top: 36px;
  padding-inline: 0;
}
/* Footer brand – no hover color change */
footer .footer-brand,
footer .footer-brand:hover,
footer .footer-brand:focus,
footer .footer-brand:focus-visible {
  color: #fff !important;
  opacity: 1 !important;
  transform: none !important;
  text-decoration: none !important;
}

footer .footer-brand b {
  color: inherit !important;
}
