/* Arbeitgeber-Alarm — Stil im apple.com-Muster.
   Kein JavaScript, keine fremde Ressource. Systemschrift statt Webfont:
   auf Apple-Geräten ist das SF Pro, überall sonst die jeweilige Systemschrift. */

:root {
  /* Grundflächen — Weiß, sehr helles Grau, tiefes Anthrazit */
  --grund: #ffffff;
  --flaeche: #ffffff;
  --flaeche-still: #f5f5f7;
  --flaeche-hoch: #fbfbfd;
  --rand: #d2d2d7;
  --rand-fein: #e8e8ed;
  --rand-stark: #86868b;

  /* Text */
  --text: #1d1d1f;
  --text-leise: #6e6e73;
  --text-still: #86868b;

  /* Akzent — nur für Links und die erste Schaltfläche */
  --akzent: #0066cc;
  --akzent-tief: #0077ed;
  --akzent-hauch: #f0f6fd;

  /* Semantische Marken für Meldungsarten */
  --rot: #b3261e;
  --gelb: #8a5a00;
  --blau: #0066cc;
  --gruen: #2d8c3c;

  --schatten: 0 2px 8px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
  --schatten-hoch: 0 4px 12px rgba(0, 0, 0, .06), 0 12px 32px rgba(0, 0, 0, .10);

  --radius: 18px;
  --radius-klein: 12px;
  --radius-knopf: 980px;

  --breite: 980px;
  --schmal: 692px;

  --luft: clamp(4rem, 8vw, 7.5rem);   /* Abstand zwischen Abschnitten: 64–120 px */
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund: #000000;
    --flaeche: #1d1d1f;
    --flaeche-still: #1d1d1f;
    --flaeche-hoch: #26262a;
    --rand: #3a3a3c;
    --rand-fein: #2c2c2e;
    --rand-stark: #6e6e73;

    --text: #f5f5f7;
    --text-leise: #a1a1a6;
    --text-still: #86868b;

    --akzent: #2997ff;
    --akzent-tief: #5ac8fa;
    --akzent-hauch: #16202c;

    --rot: #ff6b60;
    --gelb: #e0b153;
    --blau: #2997ff;
    --gruen: #30d158;

    --schatten: 0 2px 8px rgba(0, 0, 0, .5), 0 8px 24px rgba(0, 0, 0, .4);
    --schatten-hoch: 0 4px 12px rgba(0, 0, 0, .6), 0 12px 32px rgba(0, 0, 0, .5);
  }
}

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

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

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
               "Helvetica Neue", Helvetica, system-ui, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.53;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typografie — große, eng gesetzte Überschriften, ruhiger Fließtext */
h1, h2, h3, h4 { margin: 0 0 .4em; font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; }
h1 {
  font-size: clamp(2.6rem, 1.6rem + 3.4vw, 4.4rem);   /* 42 → 70 px */
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
h2 { font-size: clamp(1.8rem, 1.35rem + 1.7vw, 2.6rem); letter-spacing: -0.02em; }
h3 { font-size: 1.3rem; letter-spacing: -0.012em; }
h4 { font-size: 1.05rem; }

p, ul, ol { margin: 0 0 1.15em; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .45em; }
strong, b { font-weight: 600; }
small { font-size: .8125rem; line-height: 1.5; }

a { color: var(--akzent); text-decoration: none; }
a:hover { color: var(--akzent-tief); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
main a:not(.knopf):not(.karte-link) { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: from-font; }

.bahn { width: 100%; max-width: var(--breite); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 2.5rem); }
/* Schmale Textspalte: einheitliche Breite, im Band zentriert — wie auf apple.com. */
.bahn.schmal > * { max-width: var(--schmal); margin-inline: auto; }
.abschnitt { padding-block: var(--luft); }
.abschnitt-still { background: var(--flaeche-still); }
.leise { color: var(--text-leise); }
.gross { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); line-height: 1.4; letter-spacing: -0.01em; color: var(--text-leise); }
.mittig { text-align: center; }
.vorlauf { font-size: .8125rem; letter-spacing: .01em; font-weight: 600; color: var(--text-still); margin-bottom: .9em; }

/* Kopf — schmale, ruhige Leiste wie die apple.com-Navigation */
.kopf { background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--rand-fein); position: sticky; top: 0; z-index: 30; }
@media (prefers-color-scheme: dark) { .kopf { background: rgba(0, 0, 0, .8); } }
.kopf-innen { display: flex; align-items: center; gap: 1.5rem; min-height: 3rem; }
.marke { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .9375rem; letter-spacing: -0.01em; color: var(--text); text-decoration: none; white-space: nowrap; }
.marke:hover { color: var(--text); text-decoration: none; }
.marke::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--akzent); flex: none; }
.menue { margin-left: auto; }
.menue ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.menue li { margin: 0; }
.menue a { color: var(--text); opacity: .85; text-decoration: none; font-size: .8125rem; letter-spacing: -0.01em; }
.menue a:hover { opacity: 1; text-decoration: none; }
.menue a[aria-current="page"] { opacity: 1; font-weight: 600; }
.menue a.knopf, .menue a.knopf:hover { color: #fff; opacity: 1; text-decoration: none; }
.klapp { display: none; }

@media (max-width: 60rem) {
  .menue { display: none; }
  .klapp { display: block; margin-left: auto; }
  .klapp summary { list-style: none; cursor: pointer; padding: .3rem .8rem; border: 1px solid var(--rand); border-radius: var(--radius-knopf); font-size: .8125rem; }
  .klapp summary::-webkit-details-marker { display: none; }
  .klapp ul { position: absolute; right: clamp(1.25rem, 5vw, 2.5rem); left: clamp(1.25rem, 5vw, 2.5rem); margin-top: .6rem; background: var(--flaeche); border: 1px solid var(--rand-fein); border-radius: var(--radius-klein); box-shadow: var(--schatten-hoch); list-style: none; padding: .5rem; z-index: 40; }
  .klapp li { margin: 0; }
  .klapp a { display: block; padding: .7rem .8rem; color: var(--text); text-decoration: none; border-radius: 8px; font-size: .95rem; }
  .klapp a:hover { background: var(--flaeche-still); text-decoration: none; }
}

/* Schaltflächen — Pillenform, gefüllt in Akzentblau */
.knopf {
  display: inline-block; padding: .75rem 1.4rem; border-radius: var(--radius-knopf);
  font-weight: 400; font-size: 1.0625rem; line-height: 1.2; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; background: var(--akzent); color: #fff;
  font-family: inherit;
}
.knopf:hover { background: var(--akzent-tief); color: #fff; text-decoration: none; }
.knopf.zweit { background: transparent; color: var(--akzent); border-color: var(--akzent); }
.knopf.zweit:hover { background: var(--akzent); color: #fff; }
.knopf.klein { padding: .3rem .95rem; font-size: .8125rem; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 1.4rem; margin: 2rem 0 1rem; align-items: center; }

/* Aufmacher */
.aufmacher { padding-block: clamp(4rem, 9vw, 8rem) clamp(2.5rem, 5vw, 4rem); text-align: center; }
.aufmacher .bahn > * { margin-inline: auto; }
.aufmacher h1 { max-width: 16ch; }
.aufmacher .gross { max-width: 40ch; }
.aufmacher .knopfreihe { justify-content: center; }
.fuer-wen { display: inline-flex; align-items: center; gap: .5rem; font-size: .8125rem; color: var(--text-leise); border: 1px solid var(--rand); border-radius: var(--radius-knopf); padding: .3rem 1rem; margin-bottom: 1.6rem; }
.fuer-wen b { font-weight: 600; color: var(--text); }

/* Aufmacher mit Foto — Text links, Bild rechts; auf schmalen Geräten Bild unter dem Text */
.aufmacher-bild { text-align: left; padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(2.5rem, 5vw, 4rem); }
.aufmacher-bild .bahn > * { margin-inline: 0; }
.aufmacher-bild h1 { max-width: 100%; font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.4rem); }
.aufmacher-bild .gross { max-width: 100%; font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); }
.aufmacher-bild .knopfreihe { gap: 1rem; margin-top: 1.6rem; }
.aufmacher-bild .knopfreihe { justify-content: flex-start; }
.bild-raster { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.bild-figur { margin: 0; }
.bild-figur img { display: block; width: 100%; height: auto; border-radius: var(--radius); object-fit: cover; }

@media (min-width: 60rem) {
  .bild-raster { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .bild-figur img { aspect-ratio: 4 / 5; }
}
@media (max-width: 59.999rem) {
  .bild-figur { order: -1; }
  .bild-figur img { aspect-ratio: 16 / 10; object-position: 50% 30%; }
}

/* Raster und Karten */
.raster { display: grid; gap: 1.25rem; }
.raster.drei { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.raster.zwei { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }

.karte { background: var(--flaeche-still); border: 0; border-radius: var(--radius); padding: 2rem; }
.abschnitt-still .karte { background: var(--flaeche); box-shadow: var(--schatten); }
.karte h3 { margin-bottom: .4em; }
.karte p:last-child { margin-bottom: 0; }
.karte-link { text-decoration: none; color: inherit; display: block; transition: box-shadow .2s ease, transform .2s ease; }
.karte-link:hover { box-shadow: var(--schatten-hoch); transform: translateY(-2px); text-decoration: none; color: inherit; }
.karte-link h3 { color: var(--text); }
.karte-link:hover h3 { color: var(--akzent); }

.zahl { font-size: 3rem; font-weight: 600; letter-spacing: -0.03em; display: block; line-height: 1.05; margin-bottom: .2rem; }

/* Trichter */
.stufen { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.stufe { background: var(--flaeche); border-radius: var(--radius); padding: 1.4rem 1.6rem; margin: 0; box-shadow: var(--schatten); }
.abschnitt-still .stufe { background: var(--flaeche); }
.stufe.zwei { margin-inline: clamp(0rem, 4vw, 3rem); }
.stufe.drei { margin-inline: clamp(0rem, 8vw, 6rem); background: var(--text); color: var(--grund); }
.stufe.drei span { color: var(--grund); opacity: .75; }
.stufe b { display: block; font-weight: 600; }
.stufe span { color: var(--text-leise); font-size: .9375rem; }
.pfeil { text-align: center; color: var(--text-still); font-size: 1rem; line-height: 1; margin: 0; }

/* Schritte */
.schritte { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.schritte li { counter-increment: s; margin: 0; padding-top: 3rem; position: relative; }
.schritte li::before {
  content: counter(s); position: absolute; top: 0; left: 0;
  width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--akzent); color: #fff; font-size: .9375rem; font-weight: 600;
}
.schritte h3 { margin-bottom: .35em; }
.schritte p { margin-bottom: 0; color: var(--text-leise); }

/* Alarm-Karte */
.alarm { background: var(--flaeche); border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten-hoch); }
.alarm-kopf { padding: 1rem 1.6rem; border-bottom: 1px solid var(--rand-fein); background: var(--flaeche-hoch); display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: baseline; }
.alarm-kopf .status { font-size: .75rem; font-weight: 600; color: var(--akzent); }
.alarm-kopf .datum { font-size: .8125rem; color: var(--text-still); margin-left: auto; }
.alarm-leib { padding: 2rem clamp(1.4rem, 3vw, 2.2rem) 2.2rem; }
.alarm-leib > h3:first-child { font-size: 1.5rem; line-height: 1.15; margin-bottom: 1.2rem; }
.alarm-block { margin-bottom: 1.6rem; }
.alarm-block:last-child { margin-bottom: 0; }
.alarm-block > .titel { font-size: .75rem; font-weight: 600; color: var(--text-still); margin-bottom: .4em; }
.alarm-block p:last-child, .alarm-block ul:last-child { margin-bottom: 0; }
.alarm-schluss { border-top: 1px solid var(--rand-fein); padding-top: 1.3rem; margin-top: 1.8rem; font-size: .875rem; color: var(--text-leise); }
.alarm-schluss b { color: var(--text); }

/* Aktionszeile unter einer Meldung */
.alarm-aktion { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; margin-top: 1.6rem; padding-top: 1.3rem; border-top: 1px solid var(--rand-fein); }

/* Vorbereitete E-Mail — Kopf wie ein Mailprogramm */
.mail .mail-kopf { padding: 1rem 1.6rem; border-bottom: 1px solid var(--rand-fein); background: var(--flaeche-hoch); }
.mail .mail-kopf .zeile { display: flex; gap: .9rem; font-size: .9375rem; padding: .15rem 0; }
.mail .mail-kopf .feld { color: var(--text-still); min-width: 4.2rem; flex: none; }
.mail .alarm-leib > p:first-child { margin-top: 0; }

.wochenbericht { border-left: 2px solid var(--gruen); padding: .2rem 0 .2rem 1.3rem; }
.wochenbericht .zeile { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--rand-fein); padding: .55rem 0; }
.wochenbericht .zeile:last-child { border-bottom: 0; font-weight: 600; }

/* Marken für Meldungsarten */
.art { display: inline-block; font-size: .75rem; font-weight: 600; padding: .2rem .7rem; border-radius: var(--radius-knopf); border: 1px solid; }
.art.handlung { color: var(--rot); border-color: var(--rot); }
.art.beobachten { color: var(--gelb); border-color: var(--gelb); }
.art.gericht { color: var(--blau); border-color: var(--blau); }
.art.schwelle { color: var(--text-leise); border-color: var(--rand-stark); }

/* Tabelle */
.tabelle-huelle { overflow-x: auto; margin-bottom: 1.2rem; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; }
th, td { text-align: left; padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--rand-fein); vertical-align: top; }
th { font-weight: 600; font-size: .8125rem; color: var(--text-still); }
tbody tr:last-child td { border-bottom: 0; }

/* Vergleichstabelle — erste Spalte und erste Wertespalte hervorgehoben */
.vergleich { font-size: .9375rem; min-width: 54rem; }
.vergleich th, .vergleich td { padding: .8rem .9rem; text-align: left; vertical-align: top; }
.vergleich thead th { font-size: .8125rem; font-weight: 600; line-height: 1.25; }
.vergleich thead th:nth-child(2) { color: var(--akzent); }
.vergleich tbody th { font-weight: 400; }
.vergleich td:first-of-type { background: var(--akzent-hauch); }
.vergleich tbody tr:last-child td:first-of-type { border-bottom-left-radius: var(--radius-klein); border-bottom-right-radius: var(--radius-klein); }

/* Fragen */
.frage { border-bottom: 1px solid var(--rand-fein); padding: 1.6rem 0; }
.frage:last-of-type { border-bottom: 0; }
.frage h3 { margin-bottom: .35em; }
.frage p:last-child { margin-bottom: 0; color: var(--text-leise); }

/* Prüfbogen */
.bogen { display: grid; gap: 1rem; }
.feld { background: var(--flaeche-still); border: 0; border-radius: var(--radius-klein); padding: 1.4rem 1.6rem; }
.feld legend, .feld .beschriftung { font-weight: 600; padding: 0; margin-bottom: .8rem; display: block; }
.feld .nummer { color: var(--text-still); font-weight: 400; margin-right: .5rem; }
.wahlreihe { display: flex; flex-wrap: wrap; gap: .6rem; }
.wahl { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--rand); border-radius: var(--radius-knopf); padding: .45rem 1rem; font-size: .9375rem; background: var(--flaeche); }
.feld select, .feld input[type="text"] { width: 100%; max-width: 26rem; font: inherit; font-size: 1.0625rem; padding: .7rem .9rem; border: 1px solid var(--rand); border-radius: 10px; background: var(--flaeche); color: var(--text); }

/* Preis */
.preisblock { background: var(--flaeche-still); border: 0; border-radius: var(--radius); padding: clamp(2rem, 5vw, 3rem); }
.abschnitt-still .preisblock { background: var(--flaeche); box-shadow: var(--schatten); }
.preis { font-size: clamp(3rem, 2.2rem + 3vw, 4.4rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.preis span { font-size: 1.0625rem; font-weight: 400; color: var(--text-leise); letter-spacing: 0; }
.liste-haken { list-style: none; padding: 0; }
.liste-haken li { padding-left: 1.7rem; position: relative; margin-bottom: .6em; }
.liste-haken li::before { content: "—"; position: absolute; left: 0; color: var(--akzent); }

mark { background: #ffe89a; color: #3a2c00; padding: .1em .4em; border-radius: 4px; font-weight: 600; }

/* Rechtstext — Impressum und Datenschutz: viele Zwischenüberschriften, kleinerer Grad */
.rechtstext h2 { font-size: 1.35rem; letter-spacing: -0.012em; margin-top: 2.4rem; margin-bottom: .5em; }
.rechtstext h2:first-child { margin-top: 0; }

/* Hinweis */
.hinweis { background: var(--flaeche-still); border: 0; border-radius: var(--radius-klein); padding: 1.4rem 1.6rem; font-size: .9375rem; color: var(--text-leise); }
.abschnitt-still .hinweis { background: var(--flaeche); }
.hinweis b { color: var(--text); }
.hinweis p:last-child { margin-bottom: 0; }

/* Fuß */
.fuss { border-top: 1px solid var(--rand-fein); background: var(--flaeche-still); padding-block: 3rem 2.5rem; font-size: .75rem; color: var(--text-leise); }
.fuss-raster { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); margin-bottom: 2.5rem; }
.fuss h4 { font-size: .75rem; font-weight: 600; color: var(--text); margin-bottom: .9em; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: .6em; }
.fuss a { color: var(--text-leise); text-decoration: none; }
.fuss a:hover { color: var(--text); text-decoration: underline; }
.fuss-schluss { border-top: 1px solid var(--rand); padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* Sprungmarke */
.sprung { position: absolute; left: -9999px; }
.sprung:focus { position: static; display: inline-block; padding: .5rem 1rem; background: var(--akzent); color: #fff; }

@media print {
  .kopf, .fuss, .knopfreihe { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .karte, .alarm, .preisblock, .stufe { border: 1px solid #999; box-shadow: none; background: #fff; }
  a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
