/*
 * IsoTeam Suljejmani GmbH, Webseite
 * Farben und Schriften nach dem Markenhandbuch IsoTeam (Vault, AM/IsoPilot/Marke).
 * Rot #D0342A steht nur in der rechten Ringhälfte des Logos, nie als Fläche oder Text.
 * Auf Tiefblau nur die ganz weisse Fassung von Wortmarke und Signet.
 */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("schriften/archivo-800-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("schriften/barlow-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("schriften/barlow-500-latin.woff2") format("woff2");
}

:root {
  --tiefblau: #0a4a7c;
  --blau: #0f6fb8;
  --anthrazit: #131c24;
  --papier: #f5f6f7;
  --weiss: #ffffff;
  --grau: #5d6b78;
  --linie: #dce0e4;
  --tiefblau-hell: #dbe7f1;

  --breite: 72rem;
  --rand: 1.25rem;
  --titel: "Archivo", "Arial Black", Arial, sans-serif;
  --text: "Barlow", Arial, sans-serif;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--weiss);
  color: var(--anthrazit);
  font-family: var(--text);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.55;
}

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

h1, h2, h3 {
  font-family: var(--titel);
  font-weight: 800;
  color: var(--tiefblau);
  line-height: 1.12;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 7vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4.6vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }
strong, b { font-weight: 500; }

a { color: var(--blau); text-underline-offset: 0.18em; }
a:hover { color: var(--tiefblau); }

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

.huelle { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }

.springen {
  position: absolute; left: -9999px; top: 0;
  background: var(--weiss); color: var(--tiefblau); padding: 0.75rem 1rem; z-index: 10;
}
.springen:focus { left: 0.5rem; top: 0.5rem; }

/* Kopf */

.kopf { background: var(--weiss); border-bottom: 1px solid var(--linie); }
.kopf .huelle {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 1.5rem; padding-top: 1rem; padding-bottom: 1rem;
}
/* Wortmarke mindestens 90 px breit, hier 28 px hoch und damit 185 px */
.kopf .marke img { height: 28px; width: auto; }
.kopf .marke { display: block; padding: 4px 0; }

.menue { width: 100%; }
.menue ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem;
}
.menue a {
  display: inline-block; padding: 0.5rem 0; min-height: 44px; line-height: 28px;
  color: var(--anthrazit); text-decoration: none; font-weight: 500;
  border-bottom: 3px solid transparent;
}
.menue a:hover { color: var(--tiefblau); border-bottom-color: var(--linie); }
.menue a[aria-current="page"] { color: var(--tiefblau); border-bottom-color: var(--tiefblau); }

@media (min-width: 760px) {
  .menue { width: auto; }
  .kopf .marke img { height: 32px; }
}

/* Knöpfe */

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.25rem;
  font-family: var(--text); font-weight: 500; font-size: 1.05rem;
  text-decoration: none; border-radius: 6px; border: 2px solid transparent;
  background: var(--blau); color: var(--weiss);
}
.knopf:hover { background: var(--tiefblau); color: var(--weiss); }
.knopf.zweit { background: transparent; color: var(--tiefblau); border-color: var(--tiefblau); }
.knopf.zweit:hover { background: var(--tiefblau-hell); color: var(--tiefblau); }

.auf-blau .knopf { background: var(--weiss); color: var(--tiefblau); }
.auf-blau .knopf:hover { background: var(--tiefblau-hell); }
.auf-blau .knopf.zweit { background: transparent; color: var(--weiss); border-color: var(--weiss); }
.auf-blau .knopf.zweit:hover { background: rgba(255, 255, 255, 0.12); }
.auf-blau :focus-visible { outline-color: var(--weiss); }

.knoepfe { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
@media (max-width: 479px) {
  .knoepfe .knopf { width: 100%; }
}

/* Flächen in Tiefblau, wie das Band am Fahrzeug */

.auf-blau { background: var(--tiefblau); color: var(--weiss); }
.auf-blau h1, .auf-blau h2, .auf-blau h3 { color: var(--weiss); }
.auf-blau a:not(.knopf) { color: var(--weiss); }

.buehne { position: relative; overflow: hidden; }
.buehne .huelle { position: relative; z-index: 1; padding-top: 3rem; padding-bottom: 3.25rem; }
.buehne .vorzeile {
  font-weight: 500; font-size: 0.9rem; letter-spacing: 0.14em; text-transform: uppercase;
  margin: 0 0 1rem; opacity: 0.92;
}
.buehne .einleitung { font-size: 1.2rem; max-width: 36rem; }
.buehne h1 { max-width: 16em; }

/*
 * Der Ring gross und angeschnitten: nur auf Tiefblau, nur ganz weiss,
 * nur von der rechten Kante geschnitten, mehr als die Hälfte und die Fuge sichtbar.
 * Am Handy ohne Ring, dort fehlt der Platz neben dem Text.
 */
.buehne .ring { display: none; }
@media (min-width: 900px) {
  .buehne .huelle { padding-top: 5rem; padding-bottom: 5.5rem; }
  .buehne .ring {
    display: block; position: absolute; z-index: 0;
    width: 34rem; height: 34rem; top: 50%; right: -12rem; transform: translateY(-50%);
  }
  .buehne .text { max-width: 58%; }
}

/* Abschnitte */

.abschnitt { padding: 3rem 0; }
.abschnitt.papier { background: var(--papier); }
@media (min-width: 760px) { .abschnitt { padding: 4.5rem 0; } }

.vorspann { max-width: 42rem; font-size: 1.2rem; color: var(--anthrazit); }
.klein { font-size: 0.95rem; color: var(--grau); }
.abstand-oben { margin-top: 2rem; }

/* Leistungen als Kacheln */

.kacheln { display: grid; gap: 1rem; margin-top: 2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .kacheln { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .kacheln.vier { grid-template-columns: repeat(4, 1fr); } }

.kachel {
  background: var(--weiss); border: 1px solid var(--linie); border-radius: 8px;
  padding: 1.5rem; display: flex; flex-direction: column;
}
.kachel h3 { margin-bottom: 0.4em; }
.kachel p { flex: 1; }
.kachel .mehr { font-weight: 500; text-decoration: none; }
.kachel .mehr:hover { text-decoration: underline; }
.kachel .nummer {
  font-family: var(--titel); font-weight: 800; color: var(--blau);
  font-size: 0.95rem; letter-spacing: 0.08em; margin-bottom: 0.75rem;
}

/* Arbeitsweise */

.schritte { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.75rem; }
@media (min-width: 760px) { .schritte { grid-template-columns: 1fr 1fr; gap: 2rem 3rem; } }
.schritte li { border-top: 3px solid var(--tiefblau); padding-top: 1rem; }
.schritte h3 { font-size: 1.2rem; }
.schritte p { margin: 0; }

/* Leistung im Einzelnen */

.leistung { display: grid; gap: 1.5rem; padding: 3rem 0; border-top: 1px solid var(--linie); }
.leistung:first-of-type { border-top: 0; }
@media (min-width: 860px) {
  .leistung { grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: start; padding: 4rem 0; }
}
.leistung ul { margin: 0 0 1em; padding-left: 1.2em; }
.leistung li { margin-bottom: 0.35em; }
.leistung li::marker { color: var(--blau); }
.leistung h2 { scroll-margin-top: 1rem; }
@media (min-width: 860px) {
  .leistung > h2 { grid-column: 1 / -1; }
  .leistung { row-gap: 1.25rem; }
  .nebeneinander { display: grid; grid-template-columns: 1fr 1fr; column-gap: 4rem; }
  .nebeneinander > .leistung { display: block; border-top: 0; }
  .leistung > ul { margin: 0; }
}
.leistung > h2 { margin-bottom: 0; }
.leistung > p { margin: 0; max-width: 40rem; }

/* Platzhalter für Fotos, bis Armend sie liefert */

.platzhalter {
  aspect-ratio: 4 / 3; border-radius: 8px;
  border: 2px dashed #b7c3ce;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(10, 74, 124, 0.05) 14px 28px),
    var(--papier);
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 1.5rem; color: var(--grau); font-size: 0.95rem;
}
.platzhalter span { max-width: 18rem; }

/* Kontakt */

.kontaktliste { display: grid; gap: 1.5rem; margin: 2rem 0 0; }
@media (min-width: 760px) { .kontaktliste { grid-template-columns: repeat(3, 1fr); } }
.kontaktliste dt {
  font-weight: 500; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--grau); margin-bottom: 0.35rem;
}
.auf-blau .kontaktliste dt { color: var(--weiss); opacity: 0.85; }
.kontaktliste dd { margin: 0; font-size: 1.2rem; }
.kontaktliste dd a { display: inline-block; min-height: 44px; line-height: 44px; font-weight: 500; }
.kontaktliste dd a[href^="mailto:"] { overflow-wrap: anywhere; line-height: 1.4; padding: 0.6rem 0; min-height: 44px; }
.kontaktliste .zeile { display: block; margin-top: 0.4rem; }
.kontaktliste .zeile { line-height: 1.5; }

.band .huelle { padding-top: 3rem; padding-bottom: 3rem; }
.band h2 { margin-bottom: 0.3em; }

/* Rechtstexte */

.rechtstext { max-width: 46rem; }
.rechtstext h2 { font-size: 1.35rem; margin-top: 2.25rem; }
.rechtstext h2:first-of-type { margin-top: 1rem; }
.rechtstext ul { padding-left: 1.2em; }
.rechtstext address { font-style: normal; margin-bottom: 1em; }

/* Offene Punkte, sichtbar bis zur Prüfung, vor dem Veröffentlichen entfernen */
.pruefen {
  display: inline; font-size: 0.85em; font-weight: 500;
  color: #7a4b00; background: #fff4d6; border: 1px solid #f0d58a;
  padding: 0.05em 0.4em; border-radius: 4px; white-space: normal;
}
.hinweis-entwurf {
  border-left: 4px solid #f0d58a; background: #fffbef; padding: 0.9rem 1rem; margin: 0 0 2rem;
  font-size: 0.98rem;
}

/* Fuss */

.fuss { background: var(--tiefblau); color: var(--weiss); border-top: 1px solid rgba(255, 255, 255, 0.22); }
.fuss .huelle { padding-top: 2.5rem; padding-bottom: 1.5rem; }
.fuss .marke img { height: 26px; width: auto; }
.fuss .leistungszeile {
  margin: 1rem 0 2rem; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.92;
}
.fuss .spalten { display: grid; gap: 1.25rem; font-size: 1rem; }
@media (min-width: 760px) { .fuss .spalten { grid-template-columns: repeat(3, 1fr); } }
.fuss address { font-style: normal; }
.fuss a { color: var(--weiss); }
.fuss .unten {
  margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.25);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.95rem;
}
.fuss .unten a { display: inline-block; min-height: 44px; line-height: 44px; }
.fuss .unten span { line-height: 44px; opacity: 0.85; }

@media print {
  .menue, .knoepfe, .springen { display: none; }
  .auf-blau, .fuss { background: none; color: var(--anthrazit); }
}

/* ─────────────────────────────────────────────────────────────
 * Bewegung, seit 07.11.2026 ("Webseite dynamischer").
 * Nur CSS, kein Skript (die CSP verbietet Skripte). Alles nur mit
 * prefers-reduced-motion: no-preference; ohne Bewegung steht alles still da.
 * Der Ring wird nie gedreht oder verzerrt, er gleitet nur von rechts herein.
 * ───────────────────────────────────────────────────────────── */

.kachel { position: relative; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.kachel::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px;
  background: var(--tiefblau); border-radius: 8px 8px 0 0;
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
/* Die ganze Kachel ist der Verweis */
.kachel .mehr::after { content: ""; position: absolute; inset: 0; border-radius: 8px; }
.kachel .mehr { transition: color 0.2s ease; }
.kachel:hover, .kachel:focus-within {
  border-color: #b9cddf; box-shadow: 0 10px 28px rgba(10, 74, 124, 0.12); transform: translateY(-4px);
}
.kachel:hover::before, .kachel:focus-within::before { transform: scaleX(1); }
.kachel:hover .mehr { color: var(--tiefblau); text-decoration: underline; }

.knopf { transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.knopf:active { transform: translateY(1px); }
.menue a { transition: color 0.2s ease, border-color 0.2s ease; }

.schritte li { transition: border-color 0.3s ease; }
.schritte li:hover { border-top-color: var(--blau); }

/* Sprungmarken auf der Seite Leistungen, bleiben beim Scrollen oben */
.sprungmarken {
  position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--linie);
}
.sprungmarken ul {
  list-style: none; margin: 0 auto; padding: 0.6rem var(--rand); max-width: var(--breite);
  display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none;
}
.sprungmarken ul::-webkit-scrollbar { display: none; }
.sprungmarken a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; white-space: nowrap;
  border: 1px solid var(--linie); border-radius: 999px; text-decoration: none;
  color: var(--anthrazit); font-weight: 500; font-size: 1rem; background: var(--weiss);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.sprungmarken a:hover { border-color: var(--tiefblau); color: var(--tiefblau); }
.leistung h2 { scroll-margin-top: 5rem; }

/* Am Desktop bleibt der Kopf oben */
@media (min-width: 760px) {
  .kopf { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  .sprungmarken { top: 65px; }
  .leistung h2 { scroll-margin-top: 9rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Einstieg auf der Startseite */
  @keyframes hochgleiten { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes ringHerein {
    from { opacity: 0; transform: translateY(-50%) translateX(8rem); }
    to { opacity: 1; transform: translateY(-50%) translateX(0); }
  }
  .buehne .text > * { animation: hochgleiten 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .buehne .text > :nth-child(2) { animation-delay: 0.08s; }
  .buehne .text > :nth-child(3) { animation-delay: 0.18s; }
  .buehne .text > :nth-child(4) { animation-delay: 0.28s; }
  .buehne .ring { animation: ringHerein 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; }

  /* Beim Scrollen einblenden, wo der Browser Scroll-Zeitachsen kennt; sonst steht alles da */
  @supports (animation-timeline: view()) {
    @keyframes auftauchen { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
    .kacheln > *, .schritte > li, .leistung > p, .leistung > ul, .leistung > div, .kontaktliste > div, .meldung-zeile {
      animation: auftauchen linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}

/* Aktuell */
.meldung { max-width: 46rem; padding: 3rem 0 3.5rem; }
.meldung h2 { margin-bottom: 0.5em; }
.meldung h3 { margin-top: 2rem; font-size: 1.2rem; }
.meldung ul { padding-left: 1.2em; }
.meldung li { margin-bottom: 0.6em; }
.meldung li::marker { color: var(--blau); }
.datum {
  display: block; font-weight: 500; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--grau); margin: 0 0 0.6rem;
}
.meldung-kachel {
  position: relative; display: block; max-width: 46rem; margin-top: 1.5rem; padding: 1.5rem;
  background: var(--weiss); border: 1px solid var(--linie); border-radius: 8px;
  text-decoration: none; color: var(--anthrazit);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.meldung-kachel::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px;
  background: var(--tiefblau); border-radius: 8px 8px 0 0;
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.meldung-kachel:hover, .meldung-kachel:focus-visible {
  color: var(--anthrazit); border-color: #b9cddf; box-shadow: 0 10px 28px rgba(10, 74, 124, 0.12); transform: translateY(-4px);
}
.meldung-kachel:hover::before, .meldung-kachel:focus-visible::before { transform: scaleX(1); }
.meldung-titel { display: block; font-family: var(--titel); font-weight: 800; color: var(--tiefblau); font-size: 1.35rem; line-height: 1.2; margin-bottom: 0.5rem; }
.meldung-text { display: block; margin-bottom: 1rem; }
.meldung-kachel .mehr { color: var(--blau); font-weight: 500; }
.meldung-kachel:hover .mehr { text-decoration: underline; color: var(--tiefblau); }

/* Aktuell als schmale Zeile auf der Startseite */
.aktuell-zeile { background: var(--papier); padding: 1.25rem 0; border-top: 1px solid var(--linie); }
.meldung-zeile {
  display: flex; flex-direction: column; gap: 0.25rem; padding: 0.9rem 1rem; margin: 0 -1rem;
  border-radius: 8px; text-decoration: none; color: var(--anthrazit); transition: background-color 0.2s ease;
}
.meldung-zeile .datum { margin: 0; }
.meldung-zeile .meldung-titel { font-size: 1.15rem; margin: 0; }
.meldung-zeile .mehr { color: var(--blau); font-weight: 500; }
.meldung-zeile:hover { background: var(--weiss); color: var(--anthrazit); }
.meldung-zeile:hover .mehr { text-decoration: underline; color: var(--tiefblau); }
@media (min-width: 900px) {
  .meldung-zeile { flex-direction: row; align-items: baseline; gap: 1.5rem; }
  .meldung-zeile .mehr { margin-left: auto; white-space: nowrap; }
}

/* Anfrage je Leistung */
.anfrage { margin: 0; }
.anfrage a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
@media (min-width: 860px) { .leistung > .anfrage { grid-column: 1 / -1; } }

/* Kontaktleiste unten am Handy, bleibt beim Scrollen stehen, ohne Skript */
.schnellkontakt { display: none; }
@media (max-width: 759px) {
  .schnellkontakt {
    display: flex; gap: 0.5rem; position: sticky; bottom: 0; z-index: 20;
    padding: 0.6rem var(--rand) calc(0.6rem + env(safe-area-inset-bottom));
    background: var(--tiefblau); box-shadow: 0 -6px 18px rgba(19, 28, 36, 0.18);
  }
  .schnellkontakt .knopf { flex: 1; min-height: 48px; padding: 0.5rem; }
}
