/* IMER-AMIER – Übergangsseite
   Mobile First, keine externen Ressourcen, Systemschriften */

:root {
  --rot: #c4000f;
  --rot-dunkel: #9c000c;
  --rot-hell: #fdf1f1;
  --text: #1f1f1f;
  --text-leise: #555555;
  --linie: #e6e1e1;
  --weiss: #ffffff;
  --zart: #faf8f7;

  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
             "Noto Sans Georgian", "BPG Arial", Sylfaen, sans-serif;
  --radius: 14px;
  --breite: 68rem;
  --rand: 1.25rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--weiss);
  overflow-wrap: break-word;
}

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

h1, h2, h3 { line-height: 1.15; margin: 0 0 1rem; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 8vw, 4.25rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 5.5vw, 2.75rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 5vw, 1.6rem); font-weight: 750; hyphens: auto; }
p { margin: 0 0 1rem; }

a { color: var(--rot); text-underline-offset: 0.2em; }
a:hover { color: var(--rot-dunkel); }

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

.container {
  width: 100%;
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: var(--rand);
}
.schmal { max-width: 46rem; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--rot);
  color: var(--weiss);
  font-weight: 700;
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: var(--weiss); }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--weiss);
  border-bottom: 1px solid var(--linie);
}
.site-header .container { padding-block: 0.35rem; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo { display: inline-block; min-width: 0; }
.logo { line-height: 0; }
.logo img { width: 10.75rem; height: auto; }

.social-icons {
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-shrink: 0;
}
.social-icons a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px solid var(--linie);
  border-radius: 50%;
  color: var(--rot);
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.social-icons a:hover {
  background: var(--rot);
  border-color: var(--rot);
  color: var(--weiss);
}

/* --- Titelbereich --- */
.hero { position: relative; background: var(--text); }
.hero-bild {
  width: 100%;
  height: 42vh;
  min-height: 14rem;
  max-height: 26rem;
  object-fit: cover;
  object-position: 60% 30%;
}
.hero-text {
  padding-block: 1.75rem 2rem;
  background: var(--text);
  color: var(--weiss);
}
.hero-text h1 {
  max-width: 18ch;
  margin-bottom: 0.6rem;
  color: var(--weiss);
  font-size: clamp(2rem, 7.5vw, 3.75rem);
  line-height: 1.1;
}
.hero-unterzeile {
  max-width: 30rem;
  margin-bottom: 1.4rem;
  line-height: 1.5;
  font-size: clamp(1.05rem, 3.5vw, 1.25rem);
  color: #e8e8e8;
}
.hero-kurse {
  display: inline-block;
  margin: 0;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  background: var(--rot);
  color: var(--weiss);
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  font-weight: 800;
  line-height: 1.35;
}

/* --- Buttons --- */
.button {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.3;
  transition: background-color 0.15s, color 0.15s;
}
.button-hell { background: var(--weiss); color: var(--rot); }
.button-hell:hover { background: var(--rot-hell); color: var(--rot-dunkel); }
.button-gross {
  background: var(--rot);
  color: var(--weiss);
  font-size: clamp(1.15rem, 5vw, 1.5rem);
  padding: 1.1rem 2rem;
}
.button-gross:hover { background: var(--rot-dunkel); color: var(--weiss); }

/* --- Angebote --- */
.angebote {
  padding-block: 2.5rem;
  background: var(--rot);
  color: var(--weiss);
}
.angebote h2 { color: var(--weiss); margin-bottom: 1.25rem; }

.karten {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}
.karte {
  display: flex;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--weiss);
  color: var(--text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.karte-motiv {
  display: grid;
  place-items: center;
  flex: 0 0 5.25rem;
  background: var(--rot-hell);
  border-right: 4px solid var(--rot);
}
.karte-motiv span {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--rot);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.karte-text { padding: 1rem 1.1rem; }
.karte-text h3 { margin-bottom: 0.3rem; font-size: clamp(1.15rem, 4.5vw, 1.35rem); hyphens: manual; }
.karte-text p { margin: 0; }
.karte-tag {
  display: inline-block;
  margin-bottom: 0.3rem !important;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: var(--rot);
  color: var(--weiss);
  font-weight: 800;
  font-size: 0.875rem;
  white-space: nowrap;
}
.karte-zielgruppe { font-size: 1rem; color: var(--text-leise); }
.angebote-aktion { margin: 0; }

/* --- Kontakt --- */
.kontakt {
  padding-block: 2.75rem;
  text-align: center;
}
.kontakt h2 { margin-bottom: 0.5rem; }
.kontakt p { color: var(--text-leise); }
.kontakt .button-gross { margin-top: 0.25rem; }

/* --- Footer --- */
.site-footer {
  background: var(--weiss);
  border-top: 1px solid var(--linie);
}
.footer-inhalt {
  display: grid;
  gap: 0.9rem;
  justify-items: center;
  padding-block: 1.75rem;
  text-align: center;
}
.footer-logo { width: min(14rem, 70vw); }
.footer-links {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a { color: var(--text); }
.footer-links a:hover { color: var(--rot); }
.copyright { margin: 0; font-size: 0.9rem; color: var(--text-leise); }

/* --- Unterseiten (Impressum, Datenschutz) --- */
.rechtstext { padding-block: 3rem 4rem; }
.rechtstext h1 { font-size: clamp(1.6rem, 7vw, 3rem); hyphens: auto; }
.rechtstext h2 { font-size: clamp(1.3rem, 4vw, 1.6rem); margin-top: 2.25rem; }
.rechtstext h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.rechtstext address { font-style: normal; margin-bottom: 1rem; }
.zurueck { font-weight: 700; }

@media (min-width: 24em) {
  .logo img { width: 12rem; }
}

/* --- ab Tablet --- */
@media (min-width: 40em) {
  .logo img { width: 14rem; }
  :root { --rand: 2rem; }
  .karte-motiv { flex-basis: 7rem; }
  .karte-motiv span { font-size: 1.6rem; }
}

/* --- ab Desktop: Foto als Hintergrund, weiße Schrift auf Verlauf --- */
@media (min-width: 60em) {
  .site-header .container { padding-block: 0.45rem; }
  .logo img { width: 16.5rem; }
  .social-icons a { width: 3rem; height: 3rem; }

  .hero {
    display: grid;
    min-height: 32rem;
    overflow: hidden;
  }
  .hero-bild,
  .hero-text { grid-area: 1 / 1; }
  .hero-bild {
    height: 100%;
    min-height: 32rem;
    max-height: 40rem;
    object-position: 60% 45%;
  }
  .hero-text {
    display: flex;
    align-items: center;
    padding-block: 3rem;
    background: linear-gradient(90deg,
      rgba(15, 10, 10, 0.8) 0%,
      rgba(15, 10, 10, 0.55) 40%,
      rgba(15, 10, 10, 0) 72%);
  }
  .hero-text h1 { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); }
  .hero-unterzeile { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }

  .angebote { padding-block: 3.25rem; }
  .karten { grid-template-columns: 1fr 1fr; }
  .karte-motiv { flex-basis: 8rem; }
  .karte-motiv span { font-size: 2rem; }
  .karte-text { padding: 1.25rem 1.5rem; align-self: center; }
  .kontakt { padding-block: 3.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
