:root {
  --navy: #1e293b;
  --text: #334155;
  --muted: #64748b;
  --red: #d92f2f;
  --red-dark: #b92323;
  --pale: #f0f5fa;
  --rose: #fff4f1;
  --rose-line: #f0d8d5;
  --line: #e2e8f0;
  --white: #fff;
  --content: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; background: #172235; }
body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
h1, h2, h3 { color: var(--navy); line-height: 1.22; }
h1 { margin: 0 0 20px; font-size: clamp(2.2rem, 5vw, 4.5rem); }
h2 { margin: 0 0 22px; font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { margin: 0 0 12px; font-size: 1.35rem; }
p { margin: 0 0 20px; }
.wrap { width: min(var(--content), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 14px; background: #fff; }
.skip-link:focus { top: 16px; }

.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 5px 18px rgba(15,23,42,.08);
  transition: box-shadow .22s ease;
}
.nav-shell { min-height: 124px; display: flex; align-items: center; justify-content: space-between; gap: 36px; transition: min-height .22s ease; }
.brand img { width: 320px; height: auto; transition: width .22s ease; }
.site-header.is-compact { box-shadow: 0 8px 24px rgba(15,23,42,.13); }
.site-header.is-compact .nav-shell { min-height: 84px; }
.site-header.is-compact .brand img { width: 250px; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { color: var(--navy); text-decoration: none; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--red); }
.menu-group { position: relative; }
.menu-group > button { border: 0; padding: 12px 0; color: var(--navy); background: transparent; font: inherit; cursor: pointer; }
.menu-group > button.current { color: var(--red); }
.submenu { position: absolute; left: -18px; top: calc(100% - 3px); min-width: 285px; padding: 10px; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(15,23,42,.12); opacity: 0; visibility: hidden; transform: translateY(7px); transition: .18s ease; }
.submenu a { display: block; padding: 9px 10px; }
.menu-group:hover .submenu, .menu-group:focus-within .submenu, .menu-group.is-open .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.menu-button { display: none; border: 1px solid var(--line); padding: 9px 13px; border-radius: 4px; background: #fff; color: var(--navy); font: inherit; }

.hero { height: 500px; min-height: 500px; display: grid; place-items: center; color: #fff; text-align: center; background: linear-gradient(rgba(12,18,26,.54),rgba(12,18,26,.54)), url("assets/hero-mit-ruediger.jpg") center top/cover no-repeat; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4vw, 3.2rem); }
.hero p { max-width: 850px; margin: 0 auto 28px; font-size: clamp(1.25rem, 2.5vw, 2rem); }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 28px; color: #fff; background: var(--red); border: 2px solid var(--red); border-radius: 7px; font-weight: 600; text-decoration: none; transition: .18s ease; }
.button:hover { color: #fff; background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); }
.button.secondary { color: var(--navy); background: #fff; border-color: #cbd5e1; }
.button.secondary:hover { color: var(--red-dark); border-color: var(--red); }
.button[href^="https://wa.me/"] {
  color: #fff;
  background: #25d366;
  border-color: #25d366;
}
.button[href^="https://wa.me/"]:hover,
.button[href^="https://wa.me/"]:focus-visible {
  color: #fff;
  background: #128c7e;
  border-color: #128c7e;
}

.section { padding: 78px 0; }
.section.alt { background: var(--pale); }
.section-title { max-width: 760px; margin: 0 auto 28px; text-align: center; }
#ueber-mich { background: linear-gradient(180deg, #fff 0%, #fff8f7 100%); }
.about-grid {
  display: grid;
  grid-template-columns: 240px 1fr 240px;
  gap: 54px;
  align-items: start;
  padding: 34px;
  background: rgba(255,255,255,.82);
  border: 1px solid #f0d8d5;
  border-radius: 14px;
  box-shadow: 0 16px 42px rgba(30,41,59,.07);
}
.about-grid figure { margin: 0; }
#ueber-mich .about-grid figure figcaption {
  display: block;
  width: 100%;
  text-align: center;
}
.about-grid img {
  width: 100%;
  height: 360px;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center top;
  border-radius: 7px;
}
figcaption { margin-top: 10px; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.about-copy { padding-top: 54px; }
.about-copy h2 { text-align: center; }
.about-copy .button-row { margin-top: 70px; }
.text-link { font-weight: 600; }

.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.socials a {
  min-width: 118px;
  padding: 11px 18px;
  color: #fff;
  background: var(--red);
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: 0 7px 18px rgba(30,41,59,.12);
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.socials a:hover,
.socials a:focus-visible {
  color: inherit;
  filter: brightness(.92) saturate(1.08);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(30,41,59,.18);
}
.socials a[href*="youtube.com"] { background: #c5221f; }
.socials a[href*="instagram.com"] { background: linear-gradient(135deg, #7b2cbf, #d62976 48%, #f28c28); }
.socials a[href*="facebook.com"] { background: #1877f2; }
.socials a[href*="tiktok.com"] {
  color: var(--navy);
  background: linear-gradient(135deg, #25f4ee, #fff 48%, #fe2c55);
  border-color: rgba(30,41,59,.12);
}
.socials a[href*="spotify.com"] { color: #10251a; background: #1ed760; }

.course-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.course-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: 11px;
  box-shadow: 0 11px 30px rgba(30,41,59,.075);
  transition: transform .18s ease, box-shadow .18s ease;
}
.course-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(30,41,59,.12); }
.course-card .day { align-self: flex-start; margin-bottom: 10px; padding: 4px 10px; color: var(--red-dark); background: #fde9e6; border-radius: 999px; font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.course-card h3 { font-size: 1.48rem; }
.course-card ul, .check-list { margin: 18px 0 24px; padding-left: 21px; }
.course-card li, .check-list li { margin-bottom: 7px; }
.course-card .button-row { margin-top: auto; padding-top: 10px; }
#kurse .section-title > p:first-child { margin-bottom: 8px; color: var(--red); font-size: .84rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.unterricht-details > h2 { text-align: center; }
.unterricht-details > .check-list {
  width: fit-content;
  max-width: 100%;
  margin: 18px auto 24px;
  text-align: left;
}
.contact-strip { text-align: center; }
#kontakt { background: linear-gradient(135deg, #fff4f1 0%, #f0f5fa 100%); border-top: 1px solid #f0d8d5; }
#kontakt .content-narrow { padding: 38px 34px; background: rgba(255,255,255,.76); border: 1px solid rgba(217,47,47,.16); border-radius: 14px; box-shadow: 0 14px 38px rgba(30,41,59,.07); }
.contact-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 28px 0; }
.contact-options a { min-width: 210px; }
.small-note { color: var(--muted); font-size: .93rem; }

.page-hero {
  padding: 84px 0;
  background: linear-gradient(135deg, var(--rose) 0%, #f7f9fc 52%, var(--pale) 100%);
  border-bottom: 1px solid var(--rose-line);
  text-align: center;
}
.page-hero h1 { letter-spacing: -.025em; }
.page-hero.has-image { position: relative; height: 500px; min-height: 500px; display: grid; place-items: center; color: #fff; background-position: center; background-size: cover; border-bottom: 5px solid var(--red); }
.page-hero.has-image::before { content: ""; position: absolute; inset: 0; background: rgba(15,23,42,.53); }
.page-hero.has-image .wrap { position: relative; z-index: 1; }
.page-hero.has-image h1, .page-hero.has-image p { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.32); }
.page-hero p { max-width: 800px; margin-inline: auto; font-size: 1.15rem; }
.content-narrow { max-width: 850px; margin-inline: auto; }
.content-narrow h2 { margin-top: 44px; }
.content-narrow h2:first-child { margin-top: 0; }
.subpage:not(.legal-page) .section { background: linear-gradient(180deg, #fff 0%, #fdfefe 100%); }
.subpage:not(.legal-page) .section .content-narrow:not(.cta-box) {
  max-width: 930px;
  padding: 48px 54px;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 42px rgba(30,41,59,.075);
}
.subpage:not(.legal-page) .content-narrow:not(.cta-box) > h2:not(:first-child) {
  padding-left: 16px;
  border-left: 4px solid var(--red);
}
.subpage .section > .wrap > h2,
.subpage .section > .wrap > .content-narrow > h2 { letter-spacing: -.018em; }
.legal-page .content-narrow { max-width: 920px; }
.legal-page .content-narrow h2 { padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.columns-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.columns-3 + .content-narrow { margin-top: 48px; }
.info-box {
  padding: 30px 28px;
  background: linear-gradient(155deg, #fff 0%, var(--pale) 100%);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: 11px;
  box-shadow: 0 11px 28px rgba(30,41,59,.07);
}
.info-box h2 {
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  overflow-wrap: break-word;
  hyphens: auto;
}
.info-box ul { margin: 0; padding-left: 20px; }
.cta-box {
  margin-top: 50px;
  padding: 40px;
  text-align: center;
  background: linear-gradient(135deg, var(--rose) 0%, var(--pale) 100%);
  border: 1px solid var(--rose-line);
  border-top: 4px solid var(--red);
  border-radius: 12px;
  box-shadow: 0 13px 32px rgba(30,41,59,.07);
}
.cta-box h2 { margin-top: 0 !important; border: 0 !important; padding-left: 0 !important; }
.feature-image { width: 100%; max-height: 520px; object-fit: cover; }

.site-footer { padding: 38px 0; color: #cbd5e1; background: linear-gradient(135deg, #172235 0%, var(--navy) 60%, #27354b 100%); border-top: 4px solid var(--red); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: center; }
.site-footer a { color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a { text-decoration: none; }
.footer-meta { margin-top: 12px; color: #94a3b8; font-size: .88rem; }

@media (max-width: 980px) {
  html { scroll-padding-top: 106px; }
  .nav-shell { min-height: 92px; }
  .brand img { width: 240px; }
  .site-header.is-compact .nav-shell { min-height: 78px; }
  .site-header.is-compact .brand img { width: 210px; }
  .menu-button { display: block; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; padding: 18px 24px 24px; flex-direction: column; align-items: stretch; gap: 4px; background: #fff; border-bottom: 1px solid var(--line); }
  .main-nav.is-open { display: flex; }
  .main-nav > a, .menu-group > button { display: block; width: 100%; padding: 10px 0; text-align: left; }
  .submenu { position: static; display: none; padding: 0 0 0 16px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .menu-group.is-open .submenu { display: block; }
  .about-grid { grid-template-columns: minmax(180px, 280px) 1fr; gap: 36px; }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-copy { padding-top: 34px; }
  .about-grid figure:last-child { display: none; }
}

@media (max-width: 720px) {
  .wrap { width: min(100% - 32px, var(--content)); }
  .brand img { width: 205px; }
  .hero { height: 430px; min-height: 430px; }
  .section { padding: 54px 0; }
  .page-hero { padding: 58px 0; }
  .page-hero.has-image { height: 430px; min-height: 430px; }
  .subpage:not(.legal-page) .section .content-narrow:not(.cta-box) { padding: 32px 24px; border-radius: 11px; }
  .info-box, .cta-box { padding: 28px 22px; }
  .about-grid, .course-grid, .columns-3, .footer-grid { grid-template-columns: 1fr; }
  .about-grid { padding: 22px; border-radius: 11px; }
  .about-grid figure { max-width: 310px; margin-inline: auto; }
  .about-copy { padding-top: 0; }
  .footer-nav { gap: 12px 18px; }
  #kontakt .content-narrow { padding: 28px 20px; }
}

/* Mutigere, redaktionelle Gestaltungsrunde */
body {
  background:
    radial-gradient(circle at 8% 22%, rgba(217,47,47,.055), transparent 24rem),
    radial-gradient(circle at 92% 66%, rgba(74,144,184,.07), transparent 28rem),
    #fff;
}


.main-nav > a,
.menu-group > button { position: relative; font-weight: 650; }
.main-nav > a::after,
.menu-group > button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 5px;
  height: 3px;
  background: var(--red);
  transition: right .2s ease;
}
.main-nav > a:hover::after,
.main-nav > a[aria-current="page"]::after,
.menu-group > button:hover::after,
.menu-group > button.current::after { right: 0; }

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 7px solid var(--red);
  box-shadow: inset 0 -90px 120px rgba(15,23,42,.28);
  background:
    linear-gradient(90deg, rgba(13,28,48,.94) 0%, rgba(13,28,48,.84) 48%, rgba(13,28,48,.5) 61%, rgba(13,28,48,.16) 76%, rgba(13,28,48,.07) 100%),
    url("assets/hero-mit-ruediger.jpg") center top/cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  right: -5vw;
  bottom: -100px;
  width: 360px;
  height: 220px;
  background: linear-gradient(135deg, rgba(217,47,47,.9), rgba(255,126,99,.62));
  border-radius: 55% 0 0 0;
  transform: rotate(-8deg);
  mix-blend-mode: screen;
  opacity: .42;
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100% - 48px));
  margin-left: max(24px, calc((100vw - var(--content)) / 2));
  margin-right: auto;
  padding: 30px 38px;
  background: linear-gradient(90deg, rgba(14,29,48,.58) 0%, rgba(14,29,48,.48) 38%, rgba(14,29,48,.32) 58%, rgba(14,29,48,.17) 74%, rgba(14,29,48,.07) 88%, rgba(14,29,48,0) 100%);
  border-left: 7px solid var(--red);
  text-align: left;
}
.hero h1 {
  max-width: 660px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 5.4vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.035em;
  text-shadow: 0 4px 24px rgba(0,0,0,.4);
}
.hero p { max-width: 610px; margin: 0 0 30px; line-height: 1.45; }
.hero .button-row { justify-content: flex-start; }

.section-title h2,
.contact-strip h2 {
  display: inline-block;
  position: relative;
  padding-bottom: 13px;
  letter-spacing: -.025em;
}
.section-title h2::after,
.contact-strip h2::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--red), #ff9a78);
  border-radius: 999px;
}

#ueber-mich { background: linear-gradient(150deg, #fff 0 54%, #fff0ec 54% 100%); }
.about-grid {
  border: 0;
  box-shadow: none;
}
.about-grid figure:first-child img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 68% center;
  border-radius: 52% 52% 10px 10px;
}
.about-grid figure:first-child img.portrait-ocbd {
  border-radius: 0;
  object-position: 68% 20%;
}
.about-grid figure:last-child img { object-position: center 56%; }
.about-copy h2 { font-size: clamp(2rem, 3.1vw, 3rem); }

#social-media {
  background:
    linear-gradient(115deg, rgba(255,255,255,.72), rgba(255,255,255,.18)),
    linear-gradient(135deg, #f7deda, #e8f4f8 52%, #e8eef8);
}
#social-media .socials { margin-top: 8px; }

.course-grid { gap: 22px; }
.course-card { overflow: hidden; border-top-width: 7px; }
.course-card { position: relative; isolation: isolate; }
.course-card::after {
  position: absolute;
  z-index: -1;
  right: 10px;
  bottom: -26px;
  color: rgba(30,41,59,.045);
  font-size: 7.8rem;
  font-weight: 850;
  line-height: 1;
}
.course-card:nth-child(1)::after { content: "01"; }
.course-card:nth-child(2)::after { content: "02"; }
.course-card:nth-child(3)::after { content: "03"; }
.course-card:nth-child(4)::after { content: "04"; }
.course-card:nth-child(2) { border-top-color: #e2843f; background: linear-gradient(180deg, #fffaf2 0%, #fff 100%); }
.course-card:nth-child(3) { border-top-color: #2f8590; background: linear-gradient(180deg, #f2fbfb 0%, #fff 100%); }
.course-card:nth-child(4) { border-top-color: #635b9b; background: linear-gradient(180deg, #f7f5ff 0%, #fff 100%); }
.course-card:nth-child(2) .day { color: #8d4718; background: #ffead5; }
.course-card:nth-child(3) .day { color: #175c64; background: #dff3f3; }
.course-card:nth-child(4) .day { color: #4b447c; background: #ebe7ff; }

#kurse + .section.alt.contact-strip {
  position: relative;
  overflow: hidden;
  background: linear-gradient(125deg, #d92f2f 0%, #e95245 52%, #f07c62 100%);
  color: #fff;
}
#kurse + .section.alt.contact-strip::before {
  content: "";
  position: absolute;
  inset: -100px auto auto -80px;
  width: 340px;
  height: 340px;
  border: 55px solid rgba(255,255,255,.11);
  border-radius: 50%;
}
#kurse + .section.alt.contact-strip .wrap { position: relative; }
#kurse + .section.alt.contact-strip h2,
#kurse + .section.alt.contact-strip p { color: #fff; }
#kurse + .section.alt.contact-strip h2::after { background: rgba(255,255,255,.72); }
#kurse + .section.alt.contact-strip .button { color: var(--red-dark); background: #fff; border-color: #fff; }
#kurse + .section.alt.contact-strip .button:hover { color: #fff; background: var(--navy); border-color: var(--navy); }

.page-hero:not(.has-image) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(120deg, #ffeae5 0 47%, #edf5fa 47% 100%);
}
.page-hero:not(.has-image)::before,
.page-hero:not(.has-image)::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
}
.page-hero:not(.has-image)::before { width: 310px; height: 310px; left: -105px; top: -165px; border: 50px solid rgba(217,47,47,.11); }
.page-hero:not(.has-image)::after { width: 240px; height: 240px; right: -70px; bottom: -145px; background: rgba(64,139,168,.1); }
.page-hero h1 { font-size: clamp(2.65rem, 5.6vw, 5.1rem); }
.page-hero.has-image::before { background: linear-gradient(90deg, rgba(15,23,42,.76), rgba(15,23,42,.46) 55%, rgba(149,36,36,.38)); }
.page-hero.has-image .wrap {
  padding: 32px 40px;
  background: linear-gradient(90deg, rgba(18,31,49,.76), rgba(18,31,49,.28));
  border-left: 7px solid var(--red);
  backdrop-filter: blur(2px);
  text-align: left;
}
.page-hero.has-image .wrap h1,
.page-hero.has-image .wrap p { max-width: 880px; margin-left: 0; }

.subpage:not(.legal-page) .section .content-narrow:not(.cta-box) {
  border: 0;
  border-left: 7px solid var(--red);
  box-shadow: 18px 18px 0 #e6f0f5, 0 18px 42px rgba(30,41,59,.11);
}
.subpage:not(.legal-page) .content-narrow:not(.cta-box) > h2:not(:first-child) {
  border-left: 0;
  padding: 13px 18px;
  background: linear-gradient(90deg, #ffebe7, rgba(255,235,231,0));
}
.columns-3 .info-box { transition: transform .2s ease, box-shadow .2s ease; }
.columns-3 .info-box:hover { transform: translateY(-5px) rotate(-.35deg); box-shadow: 0 18px 38px rgba(30,41,59,.13); }
.columns-3 .info-box:nth-child(2) { border-top-color: #2f8590; background: linear-gradient(155deg, #f3fbfb, #e8f4f7); }
.columns-3 .info-box:nth-child(3) { border-top-color: #e2843f; background: linear-gradient(155deg, #fffaf2, #fff0df); }

.subpage .cta-box {
  position: relative;
  overflow: hidden;
  background: linear-gradient(125deg, #d92f2f 0%, #e95848 58%, #f17d61 100%);
  border: 0;
  color: #fff;
  box-shadow: 12px 12px 0 #e7eef4, 0 18px 38px rgba(30,41,59,.13);
}
.subpage .cta-box::after {
  content: "";
  position: absolute;
  right: -68px;
  bottom: -98px;
  width: 210px;
  height: 210px;
  border: 38px solid rgba(255,255,255,.11);
  border-radius: 50%;
}
.subpage .cta-box > * { position: relative; z-index: 1; }
.subpage .cta-box h2,
.subpage .cta-box p { color: #fff; }
.subpage .cta-box .button { color: var(--red-dark); background: #fff; border-color: #fff; }
.subpage .cta-box .button:hover { color: #fff; background: var(--navy); border-color: var(--navy); }
.subpage .cta-box .button.secondary { color: var(--navy); background: rgba(255,255,255,.9); }

.site-footer { position: relative; overflow: hidden; }
.site-footer::after {
  content: "RB";
  position: absolute;
  right: 4vw;
  bottom: -42px;
  color: rgba(255,255,255,.045);
  font-size: 9rem;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .page-hero .wrap,
  .hero .wrap { animation: rise-in .65s ease both; }
  .course-card,
  .info-box { animation: rise-in .55s ease both; }
  .course-card:nth-child(2), .info-box:nth-child(2) { animation-delay: .06s; }
  .course-card:nth-child(3), .info-box:nth-child(3) { animation-delay: .12s; }
  .course-card:nth-child(4) { animation-delay: .18s; }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .main-nav > a::after,
  .menu-group > button::after { display: none; }
  .about-grid { box-shadow: 10px 10px 0 #dcecf2, 0 18px 42px rgba(30,41,59,.1); }
}

@media (max-width: 720px) {
  .hero {
    background:
      linear-gradient(rgba(13,28,48,.62), rgba(13,28,48,.54)),
      url("assets/hero-mit-ruediger.jpg") 62% top/cover no-repeat;
  }
  .hero .wrap { text-align: center; }
  .hero .wrap {
    width: calc(100% - 32px);
    margin-inline: auto;
    padding: 25px 22px;
    border-left-width: 5px;
  }
  .hero h1 { font-size: clamp(2.75rem, 13vw, 4rem); line-height: 1.03; }
  .hero p { margin-inline: auto; }
  .hero .button-row { justify-content: center; }
  .hero::after { width: 230px; height: 150px; bottom: -75px; }
  .page-hero h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
    overflow-wrap: anywhere;
  }
  .subpage:not(.legal-page) .section .content-narrow:not(.cta-box) {
    border-left-width: 5px;
    box-shadow: 8px 8px 0 #e6f0f5, 0 14px 30px rgba(30,41,59,.09);
  }
  .subpage .cta-box { box-shadow: 7px 7px 0 #e7eef4, 0 14px 30px rgba(30,41,59,.1); }
  .site-footer::after { font-size: 6rem; right: -10px; }
  .page-hero.has-image .wrap { width: calc(100% - 32px); padding: 25px 22px; border-left-width: 5px; text-align: center; }
}

/* Eigene Bild- und Farbstimmung für die Unterseiten */
.subpage {
  --page-accent: var(--red);
  --page-accent-2: #f17d61;
  --page-soft: #ffebe7;
  --page-shadow: #e6f0f5;
}
.offer-page { --page-accent: #2f8590; --page-accent-2: #58aeb4; --page-soft: #e8f6f7; --page-shadow: #f7ded7; }
.unterricht-page { --page-accent: #6656a3; --page-accent-2: #9689ca; --page-soft: #efecfb; --page-shadow: #f5dfda; }
.nandlstadt-page { --page-accent: #c86432; --page-accent-2: #ea9a59; --page-soft: #fff0df; --page-shadow: #e4f0f4; }
.tango-page { --page-accent: #a52648; --page-accent-2: #db5d78; --page-soft: #f9e5eb; --page-shadow: #eadfe9; }
.private-page { --page-accent: #b87525; --page-accent-2: #e0a450; --page-soft: #fff2d9; --page-shadow: #e4eef2; }
.contact-page { --page-accent: #2f7f83; --page-accent-2: #55a9a5; --page-soft: #e5f5f3; --page-shadow: #f4dfd9; }

.subpage .page-hero { border-bottom-color: var(--page-accent); }
.subpage .page-hero.has-image .wrap { border-left-color: var(--page-accent); }
.subpage:not(.legal-page) .section .content-narrow:not(.cta-box) {
  border-left-color: var(--page-accent);
  box-shadow: 18px 18px 0 var(--page-shadow), 0 18px 42px rgba(30,41,59,.11);
}
.subpage:not(.legal-page) .content-narrow:not(.cta-box) > h2:not(:first-child) {
  background: linear-gradient(90deg, var(--page-soft), rgba(255,255,255,0));
}
.subpage .cta-box {
  background: linear-gradient(125deg, var(--page-accent) 0%, var(--page-accent-2) 100%);
  box-shadow: 12px 12px 0 var(--page-shadow), 0 18px 38px rgba(30,41,59,.13);
}
.subpage .columns-3 .info-box:first-child { border-top-color: var(--page-accent); }
.contact-page .page-hero.has-image {
  background-position: center top !important;
}
.erding-page .page-hero.has-image,
.tango-page .page-hero.has-image {
  background-position: center top !important;
}
.contact-page .page-hero.has-image::before {
  background: linear-gradient(90deg, rgba(24,48,55,.83) 0%, rgba(24,48,55,.56) 48%, rgba(24,48,55,.12) 78%);
}
.contact-page .page-hero.has-image .wrap { max-width: 680px; margin-left: max(24px, calc((100vw - var(--content)) / 2)); margin-right: auto; }

@media (max-width: 720px) {
  .subpage:not(.legal-page) .section .content-narrow:not(.cta-box) {
    box-shadow: 8px 8px 0 var(--page-shadow), 0 14px 30px rgba(30,41,59,.09);
  }
  .subpage .cta-box { box-shadow: 7px 7px 0 var(--page-shadow), 0 14px 30px rgba(30,41,59,.1); }
  .contact-page .page-hero.has-image { background-position: 66% center !important; }
  .contact-page .page-hero.has-image .wrap { width: calc(100% - 32px); margin-inline: auto; }
}

/* Abschließender Feinschliff: kompakter, ruhiger und mobil sicher */
h2 { font-size: clamp(1.7rem, 2.75vw, 2.25rem); }

.nav-shell { min-height: 108px; }
.brand img { width: 286px; }
.site-header.is-compact .nav-shell { min-height: 74px; }
.site-header.is-compact .brand img { width: 226px; }

.section { padding: 66px 0; }
.section-title { margin-bottom: 24px; }

.hero .wrap,
.page-hero.has-image .wrap {
  width: min(800px, calc(100% - 48px));
  margin-left: max(24px, calc((100vw - var(--content)) / 2));
  margin-right: auto;
  padding: 28px 34px;
  background: linear-gradient(90deg, rgba(14,29,48,.68) 0%, rgba(14,29,48,.52) 42%, rgba(14,29,48,.27) 70%, rgba(14,29,48,0) 100%);
}
.hero h1 { max-width: 620px; font-size: clamp(2.85rem, 4.8vw, 4.7rem); }
.hero p { font-size: clamp(1.15rem, 2vw, 1.65rem); }
.page-hero h1 { font-size: clamp(2.5rem, 4.7vw, 4.25rem); }
.page-hero.has-image .wrap h1,
.page-hero.has-image .wrap p { max-width: 760px; }

.about-grid { padding: 30px; gap: 46px; }
.about-copy { padding-top: 40px; }
.about-copy .button-row { margin-top: 50px; }

.course-card { padding: 23px 22px 22px; }
.course-card h3 { font-size: 1.38rem; }

.columns-3 { gap: 20px; }
.info-box {
  position: relative;
  overflow: hidden;
  padding: 27px 25px;
}
.info-box::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 18px;
  opacity: .42;
  background:
    radial-gradient(circle at 5px 13px, currentColor 0 3px, transparent 3.5px),
    radial-gradient(circle at 21px 7px, currentColor 0 3px, transparent 3.5px),
    radial-gradient(circle at 37px 13px, currentColor 0 3px, transparent 3.5px);
}
.info-box h2 { max-width: calc(100% - 38px); font-size: clamp(1.4rem, 1.8vw, 1.72rem); }
.columns-3 .info-box:nth-child(1)::before { color: var(--page-accent); }
.columns-3 .info-box:nth-child(2)::before { color: #2f8590; }
.columns-3 .info-box:nth-child(3)::before { color: #e2843f; }

.subpage:not(.legal-page) .section .content-narrow:not(.cta-box) { padding: 42px 48px; }
.content-narrow h2 { margin-top: 36px; }
.columns-3 + .content-narrow { margin-top: 38px; }
.cta-box { margin-top: 40px; padding: 34px; }

@media (max-width: 980px) {
  .nav-shell { min-height: 84px; }
  .brand img { width: 218px; }
  .site-header.is-compact .nav-shell { min-height: 70px; }
  .site-header.is-compact .brand img { width: 190px; }
}

@media (max-width: 720px) {
  html { overflow-x: clip; scroll-padding-top: 82px; }
  body { overflow-x: clip; }
  .site-header { position: -webkit-sticky; position: sticky; top: 0; }
  .nav-shell { min-height: 80px; gap: 14px; }
  .brand img { width: min(188px, 56vw); }
  .site-header.is-compact .nav-shell { min-height: 68px; }
  .site-header.is-compact .brand img { width: min(168px, 50vw); }
  .menu-button { flex: 0 0 auto; padding: 8px 11px; }

  .section { padding: 46px 0; }
  .section-title { margin-bottom: 20px; }

  .hero .wrap,
  .page-hero.has-image .wrap {
    width: calc(100% - 32px);
    margin-inline: auto;
    padding: 23px 18px;
    background: linear-gradient(90deg, rgba(14,29,48,.72), rgba(14,29,48,.48));
  }
  .hero h1 {
    max-width: 100%;
    margin-inline: auto;
    font-size: clamp(2.25rem, 10.8vw, 3rem);
    line-height: 1.04;
    letter-spacing: -.04em;
    overflow-wrap: normal;
  }
  .hero p { max-width: 100%; font-size: 1.08rem; line-height: 1.45; }
  .hero p br { display: none; }
  .hero .button-row { gap: 10px; }
  .hero .button { padding-inline: 20px; }

  .page-hero h1 { font-size: clamp(2rem, 8.6vw, 2.7rem); }
  .page-hero.has-image p { font-size: 1rem; }

  .about-grid { padding: 20px; gap: 28px; }
  .about-copy .button-row { margin-top: 34px; }
  .course-card { padding: 22px 20px; }
  .columns-3 { gap: 16px; }
  .info-box { padding: 25px 22px; }
  .subpage:not(.legal-page) .section .content-narrow:not(.cta-box) { padding: 29px 22px; }
  .content-narrow h2 { margin-top: 30px; }
  .columns-3 + .content-narrow { margin-top: 30px; }
  .cta-box { margin-top: 32px; padding: 28px 21px; }
}

/* Einheitlicher heller Footer – September 2026. */
.site-footer{background:#fff;color:#243044;border-top:4px solid var(--red);padding:36px 0 24px}
.site-footer::after{display:none}
.site-footer .footer-grid{grid-template-columns:minmax(0,1fr) auto;gap:28px;align-items:center}
.site-footer .footer-brand{display:inline-block;width:286px;max-width:100%}
.site-footer .footer-brand img{display:block;width:100%;height:auto}
.site-footer a{color:#243044}
.site-footer .footer-nav{gap:16px 24px}
.site-footer .footer-nav a{padding:8px 0;text-decoration:none;text-underline-offset:5px;transition:color .15s ease}
.site-footer .footer-nav a:hover,.site-footer .footer-nav a:focus-visible{color:var(--red);text-decoration:underline}
.site-footer .footer-nav a[aria-current="page"]{color:var(--red);font-weight:700}
.site-footer a:focus-visible{outline:2px solid var(--red);outline-offset:5px}
.site-footer .footer-bottom{text-align:center;margin-top:24px}
.site-footer .footer-privacy{font-size:14px;line-height:1.6;color:#576476;margin:0 0 8px}
.site-footer .footer-meta{font-size:14px;color:#576476;margin:0}
@media(max-width:760px){.site-footer .footer-grid{grid-template-columns:1fr;justify-items:center;gap:18px}.site-footer .footer-brand{width:260px}.site-footer .footer-nav{justify-content:center;gap:8px 18px}.site-footer .footer-bottom{margin-top:20px}}

/* Mobiles Menü: drei Linien mit lesbarer Beschriftung darunter. */
@media(max-width:980px){
 .menu-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:56px;min-height:54px;padding:7px 10px;cursor:pointer}
 .hamburger-icon{display:flex;flex-direction:column;gap:4px;width:24px}
 .hamburger-icon span{display:block;width:24px;height:2px;background:var(--red);border-radius:2px;transition:transform .18s ease,opacity .18s ease}
 .menu-label{font-size:13px;line-height:1.2;font-weight:600}
 .menu-button[aria-expanded="true"] .hamburger-icon span:nth-child(1){transform:translateY(6px) rotate(45deg)}
 .menu-button[aria-expanded="true"] .hamburger-icon span:nth-child(2){opacity:0}
 .menu-button[aria-expanded="true"] .hamburger-icon span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
}
