/* ══════════════════════════════════════════════════════════════════
   Wartungsseite ELKIZ Mannheim. Eigene Datei statt <style>, damit die
   Seite unter der strengen CSP (style-src 'self') laeuft.
   Farben aus dem Logo: Rot und Weiss. Signatur-Element: drei Flaggen
   (deutsche, franzoesische, englische Gruppe) kommen zusammen.
   ══════════════════════════════════════════════════════════════════ */

/* Gabarito, selbst gehostet (DSGVO). Fehlt die Datei, greift Segoe UI. */
@font-face {
  font-family: 'Gabarito';
  src: url('/fonts/text.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

/* ── MARKE ─────────────────────────────────────────────────────── */
:root {
  --rot: #e3001b;           /* Logo */
  --rot-text: #c10016;      /* Rot als Schrift, 5,9:1 auf Weiss */
  --tinte: #1c1917;
  --leise: #57534e;         /* Nebentext, 7,4:1 auf Weiss */
  --flaeche: #ff7f01;       /* Grafikseite, Orange der alten Kopfzeile */
  --linie: #ece6e4;
  --weiss: #ffffff;
  --font: 'Gabarito', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ── Grundregeln ───────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
body {
  font-family: var(--font);
  color: var(--tinte);
  background: var(--weiss);
  line-height: 1.6;
  overflow-x: clip;
}
a {
  color: var(--rot-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible {
  outline: 3px solid var(--rot-text);
  outline-offset: 3px;
  border-radius: 2px;
}
.unsichtbar {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ── Aufbau: Grafik oben (Handy) bzw. rechts (Desktop) ─────────── */
.buehne {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.bild {
  background: var(--flaeche);
  display: grid;
  place-items: center;
  padding: 3rem 1.5rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.inhalt {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.25rem 1.25rem;
}

/* ── Signatur-Element: drei Flaggen kommen zusammen ────────────── */
.trio {
  position: relative;
  width: min(100%, 19rem);
  aspect-ratio: 1;
}
.kreis {
  position: absolute;
  width: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--weiss);
  box-shadow: 0 10px 24px -10px rgb(28 25 23 / 0.35);
  animation: ankommen 1.1s cubic-bezier(0.22, 1.3, 0.36, 1) both;
}
.kreis svg {
  width: 100%;
  height: 100%;
}
.kreis--de { left: 25%; top: 4%;  --von: translate(0, -90%) rotate(-25deg); animation-delay: 0.1s; z-index: 3; }
.kreis--fr { left: 4%;  top: 42%; --von: translate(-110%, 30%) rotate(20deg); animation-delay: 0.3s; z-index: 1; }
.kreis--en { left: 46%; top: 42%; --von: translate(110%, 30%) rotate(-20deg); animation-delay: 0.5s; z-index: 2; }

@keyframes ankommen {
  from {
    opacity: 0;
    transform: var(--von) scale(0.6);
  }
}

/* Sprechblasen erscheinen, wenn die Flaggen angekommen sind */
.blase {
  position: absolute;
  z-index: 4;
  font-weight: 700;
  font-size: clamp(0.95rem, 4vw, 1.1rem);
  line-height: 1;
  color: var(--tinte);
  background: var(--weiss);
  padding: 0.55rem 0.8rem;
  border-radius: 0.9rem;
  box-shadow: 0 6px 16px -8px rgb(28 25 23 / 0.4);
  white-space: nowrap;
  animation: blase 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both, wippen 4s ease-in-out infinite;
}
.blase::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: inherit;
  bottom: -5px;
  transform: rotate(45deg);
  border-radius: 2px;
}
.blase--de { right: -4%; top: 0;   animation-delay: 1.3s, 2s; }
.blase--de::after { left: 14px; }
.blase--fr { left: -6%; bottom: 0; animation-delay: 1.6s, 2.4s; }
.blase--fr::after { top: -5px; bottom: auto; right: 18px; }
.blase--en { right: -4%; bottom: 2%; animation-delay: 1.9s, 2.8s; }
.blase--en::after { top: -5px; bottom: auto; left: 16px; }
/* Rot auf Orange flimmert, deshalb die erste Blase dunkel */
.blase--de { color: var(--weiss); background: var(--tinte); }

@keyframes blase {
  from {
    opacity: 0;
    transform: scale(0.4) translateY(10px);
  }
}
@keyframes wippen {
  50% { translate: 0 -5px; }
}

/* ── Text ──────────────────────────────────────────────────────── */
.logo {
  width: 5.5rem;
  margin-bottom: 1.25rem;
}
h1 {
  font-weight: 800;
  font-size: clamp(2rem, 8.5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 1.75rem;
  hyphens: manual;
}
.sprachen {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.1rem;
  margin-bottom: 2rem;
}
.sprachen li {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 0.9rem;
  align-items: start;
}
.sprachen li[lang='de'] p {
  font-size: 1.1875rem;
  color: var(--tinte);
  font-weight: 500;
}
.sprachen p {
  color: var(--leise);
  font-size: 1rem;
}
.mini {
  width: 1.75rem;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  margin-top: 0.15rem;
  box-shadow: 0 0 0 1px var(--linie);
}
.mini svg {
  width: 100%;
  height: 100%;
}

.kontakt {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 1rem;
  row-gap: 0.25rem;
  border-top: 2px solid var(--tinte);
  padding-top: 1rem;
  margin-bottom: 2.5rem;
}
.kontakt__art {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--leise);
}
.kontakt a {
  font-size: clamp(1.05rem, 4.6vw, 1.3rem);
  font-weight: 700;
  white-space: nowrap;
}

/* ── Fuss mit kleinem Menue ────────────────────────────────────── */
.fuss {
  margin-top: auto;
  font-size: 0.8125rem;
  color: var(--leise);
  display: grid;
  gap: 0.5rem;
  border-top: 1px solid var(--linie);
  padding-top: 1rem;
}
.menue {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
}
.menue a {
  color: var(--tinte);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  padding: 0.6rem 0;
}
.menue a:hover,
.menue a[aria-current='page'] {
  color: var(--rot-text);
  text-decoration: underline;
}
.signatur {
  margin-inline-start: auto;
}
.signatur a {
  color: inherit;
  font-weight: 400;
}

/* ── Unterseiten: Impressum, Datenschutz ───────────────────────── */
.recht {
  max-width: 48rem;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem 1.25rem;
}
.recht__kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--linie);
}
.recht__kopf .logo {
  width: 4.5rem;
  margin: 0;
}
.recht__kopf a {
  font-weight: 600;
}
.recht h1 {
  font-size: clamp(2rem, 7vw, 3rem);
  margin-bottom: 0.5rem;
}
.recht h2 {
  font-size: 1.125rem;
  margin: 1.75rem 0 0.4rem;
}
.recht main p {
  color: var(--leise);
  margin-bottom: 0.75rem;
}
.recht main {
  margin-bottom: 3rem;
}

/* ── Ab hier Media Queries (hinter den Grundregeln) ───────────── */
@media (min-width: 56rem) {
  .buehne {
    flex-direction: row-reverse;
  }
  .bild {
    flex: 0 0 46%;
    padding: 3rem;
  }
  .trio {
    width: min(100%, 27rem);
  }
  .inhalt {
    flex: 1;
    padding: 3.5rem clamp(2.5rem, 6vw, 6rem) 1.5rem;
    justify-content: center;
  }
  .fuss {
    margin-top: 3rem;
  }
  .logo {
    width: 6.5rem;
    margin-bottom: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kreis,
  .blase {
    animation: none;
  }
}
