/* angebote.css — „Von der Anfrage zum Auftrag.“ Eigenes Aussehen „Stufen“: heller Grund, sattes Violett und
   Pink-Koralle, fette Überschriften, Stufenbild über die ganze Breite, ungleichmäßiges Kartenraster, Kennzahlen als Pillen.
   Die Seite ist bewusst nur hell angelegt (color-scheme: light), damit die Hausfarben überall gleich wirken. */

@font-face { font-family: "Archivo"; src: url("../../schrift/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../../schrift/hanken-grotesk-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* Farben gelten in jedem Modus gleich: dieselbe Liste dreimal, damit sie die dunklen Werte der gemeinsamen Datei ersetzt */
:root, :root[data-theme="dark"] {
  color-scheme: light;
  --flaeche-0: #f6f2ec; --flaeche-1: #ffffff; --flaeche-2: #ece6f7;
  --linie: #d9d0ea; --raster: #ebe5f3;
  --text-1: #1b1233; --text-2: #4d4466; --text-3: #6f6789;
  --akzent: #5b2be0; --akzent-text: #4a1fc4;
  --tinte: #1b1233; --violett: #5b2be0; --flieder: #a68cff; --koralle: #f4455e; --petrol: #0b8f86; --grau: #8d86a3; --bernstein: #e9a514;
  --s1: #1b1233; --s2: #5b2be0; --s3: #f4455e; --s4: #0b8f86; --s5: #8d86a3; --s6: #e9a514; --s7: #a68cff; --s8: #b0357a;
  --gut: #0b8f86; --gut-text: #06645d; --kritisch-text: #b3213a;
  --q1: #efe9ff; --q2: #d9ccff; --q3: #bda8ff; --q4: #9c7dfb; --q5: #7a52ee; --q6: #5b2be0; --q7: #3a15a3;
  --schatten: 0 1px 2px rgb(27 18 51 / .05), 0 10px 26px -16px rgb(27 18 51 / .25);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: light;
    --flaeche-0: #f6f2ec; --flaeche-1: #ffffff; --flaeche-2: #ece6f7;
    --linie: #d9d0ea; --raster: #ebe5f3;
    --text-1: #1b1233; --text-2: #4d4466; --text-3: #6f6789;
    --akzent: #5b2be0; --akzent-text: #4a1fc4;
    --s1: #1b1233; --s2: #5b2be0; --s3: #f4455e; --s4: #0b8f86; --s5: #8d86a3; --s6: #e9a514; --s7: #a68cff; --s8: #b0357a;
    --gut-text: #06645d; --kritisch-text: #b3213a;
    --q1: #efe9ff; --q2: #d9ccff; --q3: #bda8ff; --q4: #9c7dfb; --q5: #7a52ee; --q6: #5b2be0; --q7: #3a15a3;
    --mitte: #f0efec;
    --schatten: 0 1px 2px rgb(27 18 51 / .05), 0 10px 26px -16px rgb(27 18 51 / .25);
  }
}

html, body { overflow-x: clip; }
html { overflow-x: clip; }
body { font-family: "Hanken Grotesk", system-ui, sans-serif; font-size: 16px; }

/* Tastatur: sichtbarer Rahmen */
:focus-visible { outline: 3px solid var(--violett); outline-offset: 3px; border-radius: 8px; }
a:focus-visible, button:focus-visible, .knopf:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid var(--violett); outline-offset: 3px; }
.knopf:has(input:focus-visible) { outline: 3px solid var(--violett); outline-offset: 3px; }

/* ---------- Kopf ---------- */
.a-kopf { background: var(--flaeche-0); border-bottom: 0; }
.a-kopf .a-name { font-family: "Archivo", sans-serif; font-weight: 800; font-stretch: 100%; }
.a-titel { padding: 40px 0 28px; }
.a-titel h1 {
  font-family: "Archivo", sans-serif; font-weight: 900; font-stretch: 112%;
  font-size: clamp(40px, 7.4vw, 108px); line-height: .94; letter-spacing: -.035em; max-width: 13ch; margin-bottom: 22px; text-wrap: balance;
}
.a-titel p { font-size: clamp(17px, 1.5vw, 21px); max-width: 58ch; color: var(--text-2); }
.a-schild { background: var(--tinte); color: #fff; padding: 6px 14px; font-weight: 600; }
.a-schild i { background: var(--bernstein); }
.a-schild.eigen i { background: #4fe0c8; }

.knopf { border-radius: 999px; padding: 0 22px; font-weight: 700; white-space: nowrap; }
.knopf.leise { background: var(--flaeche-1); border-color: var(--tinte); border-width: 1.5px; }
.knopf:hover { filter: none; background: var(--tinte); color: #fff; }
.knopf:active, .tabelle-knopf:active, .wahl button:active { transform: translateY(1px); }

.wahl { border-radius: 999px; padding: 4px; background: var(--flaeche-2); }
.wahl button { border-radius: 999px; min-height: 40px; padding: 0 18px; font-weight: 700; }
.wahl button[aria-pressed="true"] { background: var(--tinte); color: #fff; box-shadow: none; }
select.feld { border-radius: 999px; min-height: 44px; border: 1.5px solid var(--linie); font-weight: 600; }

/* ---------- Stufenbild ---------- */
.g-stufen { margin: 4px 0 20px; }
.g-stufen .karte-kopf { flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.g-stufen .karte-kopf > div:first-child { flex: 1 1 260px; }
.g-stufen .karte-kopf h2 { font-family: "Archivo", sans-serif; font-size: clamp(22px, 2.4vw, 30px); font-weight: 850; font-stretch: 105%; letter-spacing: -.02em; }
.g-stufen .karte-kopf p { font-size: 15px; max-width: 80ch; }
.g-stufen .karte-kopf .tabelle-knopf { margin-left: 0; }
.g-stufen .einsicht { border-top: 0; padding-top: 4px; font-size: 16px; max-width: 100ch; }

.stufen { display: grid; gap: 10px; }
.stufe { position: relative; display: flex; align-items: stretch; min-height: 118px; }
.stufe::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--vor, 0%); background: var(--flaeche-2); border-radius: 30px; }
.st-feld {
  position: relative; flex: none; width: var(--w); min-width: 250px; container-type: inline-size;
  border-radius: 30px; padding: 16px 26px 18px; background: var(--farbe); color: var(--schrift);
  display: flex; flex-direction: column; justify-content: center;
}
.st-name { font-size: 14px; font-weight: 700; letter-spacing: .01em; }
.st-zahl { font-family: "Archivo", sans-serif; font-weight: 900; font-stretch: 108%; font-size: clamp(38px, 13cqi, 92px); line-height: .98; letter-spacing: -.03em; white-space: nowrap; }
.st-neben { font-size: 14px; font-weight: 550; opacity: .92; }
.st-verlust { position: relative; flex: 1 1 0; min-width: 0; align-self: center; padding: 0 0 0 22px; color: var(--text-2); font-size: 14px; line-height: 1.35; }
.st-verlust b { display: block; font-family: "Archivo", sans-serif; font-weight: 850; font-size: 28px; line-height: 1.05; letter-spacing: -.02em; color: var(--text-1); }
.stufe.eng { flex-wrap: wrap; }
.stufe.eng .st-verlust { flex-basis: 100%; padding: 8px 0 6px 26px; }
.stufe.eng .st-verlust b { display: inline; font-size: 18px; margin-right: 8px; }
.stufe.eng::before { bottom: auto; height: 118px; }
.stufe.ohne { min-height: 0; }
.stufe.ohne::before { display: none; }
.stufe.ohne .st-feld { width: 100%; background: transparent; color: var(--text-1); border: 2px dashed var(--linie); padding: 12px 26px; flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 6px 14px; flex-wrap: wrap; animation: none; }
.stufe.ohne .st-zahl { font-size: 26px; }
.stufe.ohne .st-neben { color: var(--text-2); }
@keyframes g-auf { from { transform: scaleX(.02); opacity: .3; } to { transform: none; opacity: 1; } }

@media (max-width: 760px) {
  .stufen { gap: 18px; }
  .stufe, .stufe.eng { display: block; min-height: 0; }
  .stufe::before { display: none; }
  .st-feld { width: 100%; min-width: 0; background: transparent; color: var(--text-1); padding: 0; border-radius: 0; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 12px; animation: none; }
  .st-name { grid-column: 1 / -1; }
  .st-zahl { font-size: clamp(34px, 11vw, 46px); }
  .st-neben { text-align: right; max-width: 44vw; padding-bottom: 4px; color: var(--text-2); opacity: 1; }
  .st-feld::after { content: ""; grid-column: 1 / -1; height: 26px; margin-top: 8px; width: var(--w); min-width: 8px; background: var(--farbe); border-radius: 13px; transform-origin: 0 50%; animation: g-auf .9s cubic-bezier(.2,.7,.2,1) both; }
  .st-verlust, .stufe.eng .st-verlust { padding: 6px 0 0; }
  .st-verlust b, .stufe.eng .st-verlust b { display: inline; font-size: 17px; margin-right: 6px; }
  .stufe.ohne .st-feld { display: block; padding: 10px 14px; border-radius: 16px; }
  .stufe.ohne .st-feld::after { display: none; }
  .stufe.ohne .st-neben { display: block; text-align: left; max-width: none; }
}

/* ---------- Kennzahlen als Pillen ---------- */
.g-pillen { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 12px; }
.pille { display: inline-flex; align-items: center; gap: 14px; padding: 10px 26px 10px 12px; border-radius: 999px; background: var(--flaeche-1); border: 1.5px solid var(--tinte); min-height: 68px; }
.pille b { font-family: "Archivo", sans-serif; font-weight: 900; font-stretch: 105%; font-size: clamp(22px, 2vw, 28px); letter-spacing: -.02em; line-height: 1; padding: 13px 18px; border-radius: 999px; background: var(--flaeche-2); white-space: nowrap; }
.pille span { display: grid; font-size: 14px; font-weight: 700; line-height: 1.25; }
.pille small { font-size: 13px; font-weight: 450; color: var(--text-2); }
.pille.eins b { background: var(--koralle); color: var(--tinte); }
.pille.zwei b { background: var(--violett); color: #fff; }
.g-erklaer { margin: 0 0 30px; max-width: 96ch; color: var(--text-2); font-size: 16px; }
.g-erklaer b { color: var(--text-1); }
@media (max-width: 560px) {
  .pille { width: 100%; border-radius: 26px; padding: 8px 14px 8px 8px; min-height: 60px; }
  .pille b { min-width: 118px; text-align: center; padding: 12px 10px; font-size: 21px; border-radius: 20px; }
}

/* ---------- Ablage und Filter ---------- */
.ablage { border-radius: 28px; border: 2px dashed var(--violett); padding: 20px 24px; }
.ablage svg { color: var(--violett); width: 38px; height: 38px; }
.ablage b { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 18px; }
.g-hinweis { margin: -14px 0 24px; font-size: 14px; color: var(--text-2); max-width: 100ch; }
.g-wahl { display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; }
.g-wahl select { max-width: min(100%, 280px); }
.g-filterinfo { font-size: 14px; color: var(--text-2); }

/* ---------- Abschnitte und ungleichmäßiges Raster ---------- */
.abschnitt { margin-top: 56px; }
.abschnitt > h2 { font-family: "Archivo", sans-serif; font-weight: 900; font-stretch: 108%; font-size: clamp(28px, 3.6vw, 48px); line-height: 1; letter-spacing: -.03em; margin-bottom: 10px; text-wrap: balance; }
.abschnitt > p.unter { font-size: 16px; margin-bottom: 20px; }

.g-block { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.g-block > .g-breit { grid-column: span 8; }
.g-stapel { grid-column: span 4; display: grid; gap: 16px; align-content: stretch; min-width: 0; }
.g-block:not(:has(> .g-breit:not([hidden]))) > .g-stapel { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g-block:not(:has(> .g-stapel > .karte:not([hidden]))) > .g-breit { grid-column: 1 / -1; }
.g-block:not(:has(> .g-stapel > .karte:not([hidden]))) > .g-stapel { display: none; }
.g-voll { margin-top: 16px; }
@media (max-width: 1020px) { .g-block > .g-breit, .g-block > .g-stapel { grid-column: 1 / -1; } }

.karte { grid-column: auto; border: 0; border-radius: 28px; padding: 24px 24px 20px; box-shadow: var(--schatten); }
.karte-kopf { margin-bottom: 16px; }
.karte-kopf h2 { font-family: "Archivo", sans-serif; font-size: 19px; font-weight: 800; font-stretch: 102%; letter-spacing: -.01em; }
.karte-kopf p { font-size: 14px; }
.karte-kopf .tabelle-knopf { border-radius: 999px; min-height: 36px; padding: 0 14px; border: 1.5px solid var(--linie); font-size: 13px; font-weight: 600; white-space: nowrap; }
.karte-kopf .tabelle-knopf:hover { border-color: var(--tinte); }
.g-breit .karte-kopf h2 { font-size: clamp(20px, 1.9vw, 26px); }
.einsicht { font-size: 15px; }
.g-merk { background: var(--violett); color: #fff; box-shadow: none; display: flex; flex-direction: column; justify-content: center; }
.g-merk h2 { font-family: "Archivo", sans-serif; font-weight: 900; font-stretch: 108%; font-size: clamp(22px, 2vw, 28px); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 12px; }
.g-merk p { margin: 0 0 10px; font-size: 15px; color: #f1ebff; }
.g-merk p:last-child { margin-bottom: 0; }
@media (max-width: 560px) { .karte { padding: 20px 16px 16px; border-radius: 22px; } .karte-kopf { flex-wrap: wrap; } }

/* ---------- Balkenliste ---------- */
.g-liste { display: grid; }
.g-zeile { display: grid; grid-template-columns: minmax(0, var(--nb, 150px)) minmax(40px, 1fr) minmax(74px, auto); gap: 2px 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--raster); }
.g-zeile:first-child { border-top: 0; }
.g-name { font-size: 14px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.g-name small { display: block; font-size: 12.5px; font-weight: 450; color: var(--text-3); }
.g-spur { min-width: 0; height: 18px; border-radius: 9px; background: var(--flaeche-2); overflow: hidden; }
.g-spur.frei { background: transparent; }
.g-spur i { display: block; height: 100%; min-width: 3px; border-radius: 9px; transform-origin: 0 50%; animation: g-wachsen .8s cubic-bezier(.2,.7,.2,1) both; }
.g-wert { font-size: 15px; font-weight: 750; text-align: right; white-space: nowrap; }
.g-wert small { display: block; font-size: 12.5px; font-weight: 450; color: var(--text-3); }
.g-zeile.blass .g-wert { font-size: 13px; font-weight: 500; color: var(--text-3); white-space: normal; }
.g-leer { margin: 6px 0; font-size: 14px; color: var(--text-3); }
@keyframes g-wachsen { from { transform: scaleX(0); } to { transform: none; } }
@media (max-width: 520px) { .g-zeile { grid-template-columns: minmax(0, 1fr) auto; } .g-name { grid-column: 1 / -1; } }

/* ---------- Mehrere Maße nebeneinander: jede Spalte mit eigenem Maßstab ---------- */
.g-mf { display: grid; grid-template-columns: minmax(110px, 1.1fr) repeat(var(--n), minmax(0, 1fr)); column-gap: 20px; }
.mf-kopf, .mf-zeile { display: contents; }
.mf-kopf > span { font-size: 12.5px; font-weight: 700; color: var(--text-2); padding: 0 0 8px; border-bottom: 2px solid var(--tinte); line-height: 1.25; align-self: end; }
.mf-zeile > * { padding: 11px 0; border-bottom: 1px solid var(--raster); min-width: 0; }
.mf-zeile:last-child > * { border-bottom: 0; }
.mf-name { font-size: 15px; font-weight: 700; line-height: 1.25; display: flex; flex-direction: column; justify-content: center; overflow-wrap: anywhere; }
.mf-name small { display: block; font-size: 12.5px; font-weight: 450; color: var(--text-3); }
.mf-zelle em { display: none; font-style: normal; font-size: 13px; color: var(--text-2); }
.mf-zelle .mf-spur { display: block; height: 12px; border-radius: 6px; background: var(--flaeche-2); overflow: hidden; margin-bottom: 5px; }
.mf-zelle .mf-spur i { display: block; height: 100%; min-width: 3px; border-radius: 6px; transform-origin: 0 50%; animation: g-wachsen .8s cubic-bezier(.2,.7,.2,1) both; }
.mf-zelle b { font-size: 15px; font-weight: 750; white-space: nowrap; }
.mf-zelle small { font-size: 12.5px; color: var(--text-3); margin-left: 6px; white-space: nowrap; }
.mf-zelle.blass b { font-size: 13px; font-weight: 500; color: var(--text-3); white-space: normal; }
.mf-summe > * { border-top: 2px solid var(--tinte); border-bottom: 0; }
@media (max-width: 700px) {
  .g-mf { display: block; }
  .mf-kopf { display: none; }
  .mf-zeile { display: block; padding: 12px 0; border-bottom: 1px solid var(--raster); }
  .mf-zeile:last-child { border-bottom: 0; }
  .mf-zeile > * { padding: 0; border: 0; }
  .mf-name { margin-bottom: 6px; }
  .mf-zelle { display: grid; grid-template-columns: minmax(0, 104px) minmax(30px, 1fr) auto; gap: 2px 10px; align-items: center; padding: 3px 0; }
  .mf-zelle em { display: block; line-height: 1.2; }
  .mf-zelle .mf-spur { margin: 0; }
  .mf-zelle small { display: none; }
  .mf-zelle.blass { grid-template-columns: minmax(0, 104px) 1fr; }
  .mf-zelle.blass .mf-spur { display: none; }
  .mf-zelle.leer { display: none; }
}

/* ---------- Säulen mit Fallzahl (Tage bis zum Angebot) ---------- */
.g-saeulen { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 0 clamp(6px, 1.6vw, 22px); align-items: end; position: relative; padding-top: 8px; }
.sa { display: grid; grid-template-rows: 230px auto; min-width: 0; }
.sa-raum { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; border-bottom: 2px solid var(--tinte); }
.sa-wert { font-family: "Archivo", sans-serif; font-weight: 900; font-size: clamp(18px, 2.2vw, 30px); letter-spacing: -.02em; text-align: center; line-height: 1.1; padding-bottom: 6px; white-space: nowrap; }
.sa-balken { border-radius: 16px 16px 0 0; min-height: 3px; transform-origin: 50% 100%; animation: g-hoch .9s cubic-bezier(.2,.7,.2,1) both; }
.sa.blass .sa-wert { font-family: inherit; font-size: 12.5px; font-weight: 500; color: var(--text-3); white-space: normal; letter-spacing: 0; }
.sa.blass .sa-balken { background: var(--flaeche-2) !important; height: 3px !important; }
.sa-fuss { text-align: center; padding-top: 8px; font-size: 14px; font-weight: 700; line-height: 1.25; }
.sa-fuss small { display: block; font-size: 12.5px; font-weight: 450; color: var(--text-3); }
.sa.nach-marke { border-left: 2px dashed var(--grau); padding-left: clamp(6px, 1.6vw, 22px); }
.g-marke { margin: 12px 0 0; font-size: 13px; color: var(--text-2); }
@keyframes g-hoch { from { transform: scaleY(0); } to { transform: none; } }
@media (max-width: 520px) { .sa { grid-template-rows: 180px auto; } .sa-fuss { font-size: 12.5px; } .sa-fuss small { font-size: 11.5px; } }

@media (prefers-reduced-motion: reduce) { .st-feld, .st-feld::after, .g-spur i, .mf-zelle .mf-spur i, .sa-balken { animation: none; } }

/* ---------- Tabellen ---------- */
.tabelle-huelle { border-radius: 18px; border-color: var(--linie); }
table.daten { font-size: 14px; }
table.daten th { background: var(--tinte); color: #fff; }
table.daten th, table.daten td { padding: 9px 14px; }
.g-tabelle, .als-tabelle { max-width: 100%; min-width: 0; }
.g-tabelle .tabelle-huelle { max-height: none; }
.g-wisch { display: none; margin: 0 0 6px; font-size: 13px; color: var(--text-3); }
@media (max-width: 900px) { .g-wisch { display: block; } }
.status.offen { color: #8a5a00; }
.status.verloren { color: #5d5674; }
.status.gewonnen { color: #b3213a; }

.tipp { border-radius: 16px; border: 1.5px solid var(--tinte); padding: 10px 14px; }
.dia .achse text, .dia text.achse { font-size: 12px; }
.legende { font-size: 14px; gap: 6px 18px; }
.legende i { border-radius: 50%; }
.legende i.strich { height: 4px; border-radius: 2px; width: 18px; }

.a-fuss { border-top: 2px solid var(--tinte); }
button:disabled, input:disabled, select:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Excel-Vorlage: dritter Knopf im Ablagefeld und neben dem CSV-Knopf ---------- */
@media (min-width: 721px) and (max-width: 1100px) { .ablage .knoepfe { max-width: 330px; } }
#vorlage, #vorlage ~ a.knopf { margin-block: 4px; }

/* Verweis auf „Datei erkennen lassen“ */
.erkennen-satz { display: block; margin-top: 6px; font-size: 14px; color: var(--text-2); }
.erkennen-satz a { color: var(--akzent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
