/* ==========================================================================
   eduCARtion GmbH – OnePager
   Stylesheet, keine externen Ressourcen
   ========================================================================== */

:root {
  --bg:            #101214;
  --bg-alt:        #16191c;
  --surface:       #1c2024;
  --surface-2:     #22272b;
  --line:          #2c3237;
  --text:          #e9ecef;
  --text-muted:    #a7b0b8;
  --accent:        #a21c26;   /* Logo-Rot */
  --accent-bright: #ef5f69;   /* interaktiv, kontraststark auf dunkel */
  --accent-soft:   rgba(162, 28, 38, .16);
  --white:         #ffffff;

  --wrap:      1180px;
  --wrap-narrow: 760px;
  --radius:    14px;
  --radius-sm: 8px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;

  --shadow: 0 18px 48px rgba(0, 0, 0, .45);
  --ease: cubic-bezier(.2, .7, .3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(1rem, .96rem + .18vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a { color: var(--accent-bright); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--white); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 1.4rem + 4.6vw, 4.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 1rem + .45vw, 1.32rem); }
p  { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.25em; }

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

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section--alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-block;
  margin: 0 0 .9rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.section-lead {
  max-width: 58ch;
  color: var(--text-muted);
  font-size: 1.05em;
}

.grid-2 {
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 62rem) {
  .grid-2 { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; }
}

.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--white); }

/* ---------- Skip-Link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: .75rem 1.1rem;
  background: var(--white);
  color: #000;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 1rem; color: #000; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 18, 20, .9);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
}

.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: clamp(148px, 20vw, 210px); height: auto; }

.site-nav ul {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2.2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-block;
  padding: .35rem 0;
  color: var(--text);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.site-nav a:hover { color: var(--white); border-bottom-color: var(--accent-bright); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .55rem;
  padding: .5rem .8rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after  { position: absolute; top: 6px; }

@media (max-width: 52rem) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    display: none;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
  }
  .site-nav[data-open="true"] { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: .5rem clamp(1.1rem, 4vw, 2.5rem) 1.1rem;
  }
  .site-nav li + li { border-top: 1px solid var(--line); }
  .site-nav a { padding: .85rem 0; border-bottom: none; font-size: 1.05rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(88svh, 780px);
  overflow: hidden;
  isolation: isolate;
}
.hero__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
}
@media (max-width: 52rem) {
  /* Auf schmalen Displays den Bildausschnitt auf das Fahrzeug legen */
  .hero__img { object-position: 42% 72%; }
  .hero { min-height: min(82svh, 700px); }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(16,18,20,.62) 0%, rgba(16,18,20,.28) 32%, rgba(16,18,20,.94) 88%),
    linear-gradient(95deg, rgba(16,18,20,.72) 0%, rgba(16,18,20,.08) 62%);
}
.hero__content { padding-block: clamp(3rem, 9vw, 6.5rem); }
.hero__eyebrow {
  margin: 0 0 .8rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.hero h1 { margin-bottom: .5em; text-shadow: 0 2px 24px rgba(0,0,0,.55); }
.hero__lead {
  max-width: 46ch;
  font-size: clamp(1.05rem, 1rem + .5vw, 1.35rem);
  color: #dfe4e8;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 2rem 0 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .98rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease), color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: #bb2030; color: var(--white); }
.btn--ghost {
  border-color: rgba(255,255,255,.4);
  color: var(--white);
  background: rgba(255,255,255,.04);
}
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.12); color: var(--white); }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: 1fr;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 44rem) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card {
  position: relative;
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
  content: "";
}
.card h3 { margin-bottom: .55em; }
.card p { margin: 0; color: var(--text-muted); font-size: .97em; }

/* ---------- Facts ---------- */
.facts {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: 1fr;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 52rem) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.facts li { padding-top: 1.2rem; border-top: 2px solid var(--accent); }
.facts p { margin: 0; color: var(--text-muted); }

/* ---------- Galerie ---------- */
.gallery {
  display: grid;
  gap: clamp(.7rem, 1.4vw, 1.1rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 265px), 1fr));
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}
.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  color: inherit;
  text-decoration: none;
}
.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .5s var(--ease), opacity .3s var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); opacity: .85; }
.gallery__caption {
  display: block;
  padding: .8rem .95rem 1rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-muted);
}
.gallery__item:hover .gallery__caption { color: var(--white); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(96vw, 1180px);
  max-width: none;
  max-height: 94svh;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--text);
  overflow: visible;
}
.lightbox::backdrop { background: rgba(8, 9, 10, .97); }

/* Der Seitenkopf nutzt backdrop-filter und wuerde sonst in manchen Browsern
   ueber dem Lightbox-Hintergrund liegen. */
html.lb-open .site-header { visibility: hidden; }
.lightbox__figure { margin: 0; }
.lightbox__figure img {
  width: 100%;
  max-height: 82svh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.lightbox__figure figcaption {
  padding: .9rem .2rem 0;
  text-align: center;
  font-size: .95rem;
  color: var(--text-muted);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: rgba(28, 32, 36, .9);
  color: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close { top: 10px; right: 10px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 1.9rem; }
.lightbox__nav--prev { left: 10px; }
.lightbox__nav--next { right: 10px; }
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: 1fr;
  margin-top: 2.5rem;
}
@media (min-width: 50rem) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.contact-card {
  padding: clamp(1.4rem, 2.4vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-card--address { background: var(--surface-2); }
.contact-card__role {
  margin: 0 0 .35rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.contact-card h3 { margin-bottom: .8rem; }
.contact-card__lines { margin-bottom: 1rem; color: var(--text-muted); line-height: 1.9; }
.contact-card__lines a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--accent-bright); }
.contact-card__lines a:hover { color: var(--white); border-bottom-color: var(--white); }
.contact-card p:last-child { margin-bottom: 0; }

.link-arrow { font-size: .93rem; font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Rechtstexte ---------- */
.section--legal h2 { margin-bottom: 1.6rem; }
.section--legal h3 {
  margin: 2.2rem 0 .5rem;
  font-size: 1.05rem;
  letter-spacing: 0;
  color: var(--white);
}
.section--legal p,
.section--legal li { color: var(--text-muted); font-size: .97em; }
.section--legal strong { color: var(--text); }
.section--legal li { margin-bottom: .3em; }

.callout {
  margin: .8rem 0 0;
  padding: clamp(1.1rem, 2.2vw, 1.6rem);
  background: var(--surface);
  border: 1px solid var(--accent);
  border-left-width: 4px;
  border-radius: var(--radius-sm);
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--white); }

mark.todo {
  padding: .1em .45em;
  background: var(--accent-soft);
  color: #ffb3b9;
  border: 1px dashed var(--accent-bright);
  border-radius: 4px;
  font-size: .93em;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  background: #0b0d0e;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: grid;
  gap: 1.8rem;
  align-items: center;
}
@media (min-width: 62rem) {
  .footer-inner { grid-template-columns: auto 1fr; grid-template-areas: "brand nav" "meta meta"; }
  .footer-brand { grid-area: brand; }
  .footer-nav   { grid-area: nav; justify-self: end; }
  .footer-meta  { grid-area: meta; }
}
.footer-brand img { width: 190px; }
.footer-brand p {
  margin: .8rem 0 0;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-nav a { color: var(--text); font-size: .93rem; font-weight: 600; text-decoration: none; }
.footer-nav a:hover { color: var(--accent-bright); text-decoration: underline; }
.footer-meta {
  margin: 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: .86rem;
  color: var(--text-muted);
}

/* ---------- Motion & Print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .btn:hover, .gallery__item:hover img { transform: none; }
}

@media print {
  .site-header, .hero, .gallery, .footer-nav, .nav-toggle, .lightbox { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; }
  .section { padding: 1rem 0; }
  .section--alt, .site-footer { background: #fff; }
  .section--legal h3, .prose strong { color: #000; }
  .section--legal p, .section--legal li, .footer-meta { color: #222; }
}

/* ---------- Fehlerseite (404.html) ---------- */
.errorpage {
  display: grid;
  place-items: center;
  min-height: 78svh;
  text-align: center;
}
.errorpage .wrap { max-width: var(--wrap-narrow); }
.errorpage__logo { width: 220px; margin: 0 auto 2.5rem; }
.errorpage h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); }
.errorpage .section-lead { margin-inline: auto; }
.errorpage__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 2rem; }
.errorpage__legal { margin-top: 3rem; font-size: .9rem; color: var(--text-muted); }

/* ---------- Hinweisblock (Statusmitteilung) ---------- */
.notice {
  margin-top: 1.6rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: var(--surface);
  border: 1px solid var(--accent);
  border-left-width: 4px;
  border-radius: var(--radius);
}
.notice p { color: var(--text-muted); }
.notice strong { color: var(--white); }
.notice__actions { margin: 1.6rem 0 0; }
.notice__meta {
  margin: 1.6rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: .88rem;
  line-height: 1.7;
}
.notice__meta a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--accent-bright); }
.notice__meta a:hover { color: var(--white); border-bottom-color: var(--white); }
