:root {
  --ink: #132d2a;
  --ink-soft: #3a4d4a;
  --muted: #667572;
  --cream: #f9f8f3;
  --cream-soft: #f3f0e8;
  --forest: #132d2a;
  --forest-mid: #1a3935;
  --coral: #d9725b;
  --coral-deep: #c05a4d;
  --line: rgba(19, 45, 42, 0.12);
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 28px rgba(19, 45, 42, 0.07);
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --max: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

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

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

.container {
  width: min(100% - 2.4rem, var(--max));
  margin-inline: auto;
  max-width: 100%;
}

.eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

p {
  margin: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 1rem 0;
  background: rgba(15, 36, 33, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(15, 36, 33, 0.98);
  box-shadow: 0 10px 28px rgba(10, 22, 20, 0.22);
}

.site-header.is-light .logo {
  color: var(--ink);
}

.site-header.is-light .nav-links a {
  color: var(--coral);
}

.site-header.is-light .nav-toggle {
  color: var(--ink);
  border-color: rgba(19, 45, 42, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
}

.logo img {
  width: 26px;
  height: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  display: inline-flex;
  align-items: center;
}

.nav-links li:not(:last-child)::after {
  content: "·";
  margin: 0 0.65rem;
  color: var(--coral);
  opacity: 0.7;
  font-weight: 700;
}

.nav-links a {
  color: var(--coral);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(88vh - 4rem);
  display: grid;
  align-items: center;
  padding: 3.5rem 0 3.25rem;
  color: var(--white);
  background: linear-gradient(165deg, #0f2421 0%, var(--forest) 48%, #1a3833 100%);
}

.hero-copy {
  max-width: 40rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4.8vw, 3.55rem);
  margin-bottom: 1.15rem;
}

.hero h1 em {
  display: block;
  font-style: italic;
  font-weight: 560;
  color: var(--coral);
}

.hero-lead {
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
}

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

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: var(--white);
}

.btn-dark {
  background: var(--forest);
  color: var(--white);
}

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

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.trust-pill {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.48rem 0.9rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Sections */
.section {
  padding: 4.75rem 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.1rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.1vw, 2.45rem);
}

.section-head p {
  margin-top: 0.95rem;
  color: var(--muted);
  font-size: 1.02rem;
}

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

.problem-card,
.why-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.45rem 1.3rem 1.55rem;
  box-shadow: var(--shadow);
}

.problem-card h3,
.why-card h3 {
  font-size: 1.28rem;
  margin-bottom: 0.55rem;
}

.problem-card p,
.why-card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.steps {
  display: grid;
}

.step {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0.85rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step-num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--coral);
  line-height: 1;
  font-weight: 650;
}

.step h3 {
  font-size: 1.18rem;
  margin-bottom: 0.28rem;
}

.step p {
  color: var(--muted);
}

.unterricht {
  background: var(--cream-soft);
}

.unterricht-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.4rem;
  align-items: start;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.check-list li {
  display: grid;
  grid-template-columns: 1.45rem 1fr;
  gap: 0.8rem;
  align-items: start;
}

.check {
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.12rem;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
}

.check-list strong {
  display: block;
  margin-bottom: 0.1rem;
}

.check-list span {
  color: var(--muted);
  font-size: 0.94rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.05rem;
  width: 100%;
  max-width: 100%;
}

.video-card {
  min-width: 0;
  max-width: 100%;
}

.video-card figure {
  margin: 0 0 0.85rem;
  border-radius: 18px;
  overflow: hidden;
  background: #dde4e0;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 100%;
}

.video-card img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 195 / 340;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.video-card h3 {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 0.28rem;
  letter-spacing: 0;
}

.video-card p {
  color: var(--muted);
  font-size: 0.88rem;
}

.video-card-link {
  display: block;
  color: inherit;
  transition: transform 0.2s ease;
}

.video-card-link:hover {
  transform: translateY(-3px);
}

.section-cta {
  margin-top: 1.75rem;
  text-align: center;
}

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

.book-copy p {
  color: var(--muted);
  margin: 0.95rem 0 1.15rem;
  max-width: 29rem;
}

.book-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.book-list li strong {
  display: inline;
  margin-right: 0.25rem;
}

.book-list li span {
  color: var(--muted);
}

.book-covers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.book-card {
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  color: inherit;
}

.book-card img {
  width: 100%;
  border-radius: 14px;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.book-card .btn {
  width: 100%;
}

.book-card:hover img {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 36px rgba(19, 45, 42, 0.16);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.cta-band {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.cta-panel {
  background: var(--forest);
  color: var(--white);
  border-radius: 22px;
  padding: clamp(1.9rem, 3.5vw, 2.75rem);
}

.cta-panel .eyebrow {
  color: var(--coral);
}

.cta-panel h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  margin-bottom: 0.8rem;
}

.cta-panel > p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 36rem;
  margin-bottom: 1.35rem;
}

.cta-meta {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
  display: grid;
  gap: 0.25rem;
}

.cta-meta .name {
  color: var(--coral);
  font-weight: 700;
}

.cta-meta a:hover {
  color: var(--coral);
}

.site-footer {
  padding: 0 0 2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

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

/* Inner pages */
.page-hero {
  background: linear-gradient(165deg, #0f2421 0%, var(--forest) 55%, #1a3833 100%);
  color: var(--white);
  padding: 3.5rem 0 3.5rem;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
  width: 2.85rem;
  height: 2.85rem;
  border: 0;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(19, 45, 42, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--coral-deep);
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  margin-bottom: 0.8rem;
}

.page-hero p {
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.02rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  align-items: start;
}

.contact-info,
.contact-form,
.drive-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.contact-info h2,
.contact-form h2,
.drive-panel h2 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.contact-info p,
.contact-info li,
.drive-panel p {
  color: var(--muted);
}

.contact-info ul {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.contact-info li strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.12rem;
}

.form-grid {
  display: grid;
  gap: 0.95rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form-row.two {
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem;
}

label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-soft);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: #fcfbf8;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(217, 114, 91, 0.3);
  border-color: var(--coral);
}

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

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-note {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.alert {
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.alert-success {
  background: #e8f5ef;
  color: #1d5c40;
}

.alert-error {
  background: #fdeceb;
  color: #8d2f22;
}

.drive-frame {
  margin-top: 1.2rem;
  border: 1px dashed rgba(19, 45, 42, 0.22);
  border-radius: 14px;
  min-height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem 1.25rem;
  background: var(--cream-soft);
  color: var(--muted);
}

.drive-frame strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

@media (max-width: 960px) {
  .problem-grid,
  .why-grid,
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .unterricht-grid,
  .books-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1.2rem;
    left: 1.2rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.85rem 1rem;
    background: rgba(15, 36, 33, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
  }

  .nav-links li:not(:last-child)::after {
    display: none;
  }

  .nav-links a {
    display: block;
    padding: 0.55rem 0.2rem;
  }

  .nav-links.is-open {
    display: flex;
  }

  .problem-grid,
  .why-grid,
  .book-covers,
  .form-row.two {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .video-card h3 {
    font-size: 0.9rem;
  }

  .video-card p {
    font-size: 0.8rem;
  }

  .section {
    padding: 3.5rem 0;
  }
}

/* Videos page grid + modal */
.videos-play-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.05rem;
  width: 100%;
  max-width: 100%;
}

.video-tile {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  min-width: 0;
  max-width: 100%;
}

.video-thumb {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #d7e0dc;
  box-shadow: var(--shadow);
  aspect-ratio: 9 / 14;
  width: 100%;
  max-width: 100%;
}

.video-thumb video,
.video-thumb img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  background: #cfd9d5;
}

.play-badge {
  position: absolute;
  inset: auto auto 0.85rem 0.85rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: rgba(217, 114, 91, 0.95);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  box-shadow: 0 8px 18px rgba(19, 45, 42, 0.25);
}

.video-tile:hover .play-badge {
  background: var(--coral-deep);
}

.video-meta {
  display: grid;
  gap: 0.25rem;
}

.video-meta strong {
  font-size: 0.98rem;
  color: var(--ink);
}

.video-meta span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(10, 22, 20, 0.72);
  backdrop-filter: blur(4px);
}

.video-modal.is-open {
  display: flex;
}

.video-modal-dialog {
  width: min(920px, 100%);
  background: #0f2421;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.video-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
}

.video-modal-head h2 {
  color: #fff;
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 700;
}

.video-modal-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.45rem;
}

.video-modal video {
  width: 100%;
  max-height: min(70vh, 560px);
  background: #000;
  display: block;
}

@media (max-width: 960px) {
  .videos-play-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .back-to-top {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .videos-play-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .video-meta strong {
    font-size: 0.9rem;
  }

  .video-meta span {
    font-size: 0.8rem;
  }

  .container {
    width: min(100% - 1.6rem, var(--max));
  }

  .page-hero h1,
  .hero h1 {
    overflow-wrap: anywhere;
  }

  .back-to-top {
    right: 0.85rem;
    bottom: 0.85rem;
  }
}

/* Scroll reveal animations */
.has-anim .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.has-anim .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.has-anim .reveal.delay-1 {
  transition-delay: 0.08s;
}

.has-anim .reveal.delay-2 {
  transition-delay: 0.16s;
}

.has-anim .reveal.delay-3 {
  transition-delay: 0.24s;
}

.has-anim .hero-copy.reveal {
  transform: translateY(18px);
}

.has-anim .step.reveal {
  transform: translateX(-18px);
}

.has-anim .step.reveal.is-visible {
  transform: translateX(0);
}

.has-anim .cta-panel.reveal {
  transform: translateY(36px) scale(0.985);
}

.has-anim .cta-panel.reveal.is-visible {
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .has-anim .reveal,
  .book-card img,
  .video-card-link {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
