/* ==========================================================================
   Vorbestellseite Gerald Bartke direkt
   Farben, Schriftgroessen, Abstaende und Radien exakt aus dem Styleguide
   "Bartke Styleguide.dc.html". Abschnitt 07 und 08 ueberschreiben aeltere Werte.
   ========================================================================== */

:root {
  /* Klammer — Marke und UI */
  --graublau: #424F5C;
  --hellblau: #5389B9;
  --preisblau: #3F6491;
  --preisblau-dunkel: #33527A;

  /* Gruppenfarben */
  --wein: #D7432C;
  --bordeaux: #A93148;

  /* Akzent */
  --salbei: #7C8B6F;
  --salbei-dunkel: #5C6B51;
  --salbei-haken: #4F5C45;
  --ocker: #87621F;

  /* Flaechen, hell nach zurueckgesetzt */
  --sand: #F4EEE2;
  --karte: #FBF8F1;
  --bild-sand: #F1E8D8;
  --well: #E9E2D2;

  /* Text und Kanten */
  --text: #5a5246;
  --text-sek: #6F6349;
  --kante: #E2D5B8;
  --linie: #EBE2CC;
  --weiss: #FBFBF7;

  --schatten-karte: 0 2px 9px -3px rgba(40, 34, 24, .16), 0 1px 2px rgba(40, 34, 24, .05);
  --radius: 6px;
  --breite: 1360px;
}

/* Die Bartke-Seiten sind einfarbig hell und haben keinen Dunkelmodus. */
:root { color-scheme: only light; }

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

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

body {
  margin: 0;
  background: var(--sand);
  color: var(--text);
  font: 400 15px/1.6 'Source Sans 3', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: Bitter, Georgia, serif;
  color: var(--graublau);
  margin: 0;
}

h1 { font: 800 34px/1.05 Bitter, Georgia, serif; letter-spacing: -.01em; color: var(--graublau); }
h2 { font: 700 26px/1.1 Bitter, Georgia, serif; color: var(--graublau); }
h3 { font: 700 18px/1.2 Bitter, Georgia, serif; color: var(--graublau); }

p { margin: 0; }

a { color: var(--preisblau); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--preisblau-dunkel); }

s { color: var(--text-sek); }

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

/*
 * Der Icon-Vorrat (<svg> mit <defs>) steht ganz oben im body. Ein <svg> ist
 * von Haus aus "inline" — auch mit Breite und Hoehe 0 belegt es damit eine
 * Textzeile und schiebt einen sandfarbenen Streifen ueber das Utility-Band.
 * Aus dem Fluss nehmen statt display:none, weil aeltere Browser sonst die
 * <use>-Verweise nicht mehr aufloesen.
 */
.icon-satz {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sprungmarke {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 50;
  background: var(--preisblau);
  color: var(--karte);
  padding: 11px 18px;
  font-weight: 600;
  text-decoration: none;
}
.sprungmarke:focus { left: 8px; top: 8px; color: var(--karte); }

.mitte { max-width: var(--breite); margin: 0 auto; padding: 0 24px; }
.mitte.schmal { max-width: 860px; }

/*
 * Sektions-Eyebrows tragen die Gruppenfarbe — der Styleguide macht die
 * Gruppenfarbe im Layout verbindlich, und diese Seite ist durchgehend Wein.
 * Weinrot #D7432C erreicht auf Sand nur 3,84:1 und trägt damit keine
 * Kleinschrift; Bordeaux #A93148 kommt auf 5,64:1. Deshalb Bordeaux für
 * Schrift, Weinrot bleibt den Flächen vorbehalten.
 * Die kleinen Marken innerhalb der Karten bleiben in Ocker, sonst kippt die
 * Seite ins Rote und die Hierarchie geht verloren.
 */
.eyebrow {
  font: 600 10px/1 'Source Sans 3', sans-serif;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bordeaux);
}

.klein { font: 400 12.5px/1.55 'Source Sans 3', sans-serif; color: var(--text-sek); }
.nowrap { white-space: nowrap; }
.rechts { text-align: right; }
.stark { font-weight: 600; color: var(--graublau); }

/* ---------- Utility-Band, Kopf, kbA-Band, Fuss ---------- */

/*
 * Abweichung vom Styleguide, bewusst: Dort ist das Utility-Band in #E4EAEF
 * beschrieben. Das blasse Blau wirkte über der warmen Sandfläche wie ein
 * Fremdkörper. Stattdessen das Graublau der Marke als schmales Band — der
 * Styleguide lässt dunkle Markenflächen als schmale Bänder ausdrücklich zu
 * und begründet Graublau selbst als die technisch-neutrale Farbe für genau
 * diese Aussage: Arbeitsunterlage, keine Werbefläche.
 */
.utility-band {
  background: var(--graublau);
  padding: 8px 12px;
  text-align: center;
  font: 400 12px/1.4 'Source Sans 3', sans-serif;
  color: #B4C4D3;
}
.utility-band strong { color: var(--karte); font-weight: 600; }

.kopf { background: var(--karte); border-bottom: 1px solid var(--linie); }
.kopf-innen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 15px;
  padding-bottom: 15px;
}
.kopf-logo { display: block; line-height: 0; }
.kopf-logo img { width: 196px; height: auto; display: block; }
.kopf-kontakt {
  text-align: right;
  font: 500 13px/1.4 'Source Sans 3', sans-serif;
  color: var(--graublau);
}
.kopf-kontakt-frage { display: block; font-weight: 400; font-size: 12px; color: var(--text-sek); }
.kopf-kontakt a { font-weight: 600; text-decoration: none; }

.kba-band {
  background: var(--salbei-dunkel);
  padding: 11px 24px;
  text-align: center;
  font: 600 12px/1.4 'Source Sans 3', sans-serif;
  color: var(--sand);
  letter-spacing: .03em;
}

.fuss { background: var(--graublau); color: #B4C4D3; }
.fuss-innen {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 26px;
  padding-bottom: 30px;
}
.fuss-marke { font: 700 16px/1.2 Bitter, Georgia, serif; color: var(--karte); }
.fuss-zeile { font: 400 12.5px/1.7 'Source Sans 3', sans-serif; color: #B4C4D3; }
.fuss a { color: #DCE6F0; }
.fuss-recht { display: flex; gap: 18px; }

/* ---------- Sektionen ---------- */

.abschnitt { padding: 52px 0; }
.abschnitt-hell {
  background: var(--karte);
  border-top: 1px solid var(--linie);
  border-bottom: 1px solid var(--linie);
}

.abschnitt-kopf { margin-bottom: 30px; max-width: 720px; }
.abschnitt-kopf h2 { margin-top: 6px; }
.abschnitt-lead { margin-top: 10px; font-size: 15px; color: var(--text); }

/* ---------- Kopfband ---------- */

/*
 * Das Gruppenfoto über die Satzbreite, Text in der freien Fläche rechts.
 * Das Bild liegt im Format 2:1 vor, das Band läuft mit 2,3:1 etwas flacher —
 * dabei fallen oben und unten je 6,5 % weg. Die Flaschen stehen zwischen 15 %
 * und 89 % der Höhe und bleiben damit unangetastet.
 */
.kopfband { padding: 34px 0 0; }
/* Rahmen und Text getrennt: overflow:hidden gehört an das Bild, sonst
   verschluckt es auf dem Handy die Überschrift, sobald sie darunter rutscht. */
.band { position: relative; }
.band-bild {
  position: relative;
  aspect-ratio: 2.3 / 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--kante);
  box-shadow: var(--schatten-karte);
}
.band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
}
/*
 * Schleier nach rechts. Ohne ihn stünde die Schrift auf dem blanken Foto:
 * Die Wandfläche misst dort im Median #DBCDC0, an der dunkelsten Stelle aber
 * #B09D85 — Graublau käme auf 3,20 : 1 und risse Abschnitt 08. Mit 90 %
 * Deckung sind es 7,3 : 1, auch über der dunkelsten Stelle.
 */
.band-bild::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Nachgemessen am Bild vom 03.08.2026: Die Flaschengruppe endet bei 46,6 %
     der Bildbreite. Genau dort setzt der Schleier an — davor bleibt er
     vollständig durchsichtig, damit der Novello unberührt bleibt. */
  background: linear-gradient(
    90deg,
    rgba(251, 248, 241, 0) 47%,
    rgba(251, 248, 241, .42) 52%,
    rgba(251, 248, 241, .84) 57%,
    rgba(251, 248, 241, .94) 62%,
    rgba(251, 248, 241, .95) 100%
  );
}
.band-text {
  position: absolute;
  z-index: 2;
  right: 4.5%;
  top: 50%;
  transform: translateY(-50%);
  /* Beginnt bei rund 62 % der Bandbreite, also weit hinter dem Schleier,
     der schon ab 47 % zu decken beginnt. */
  width: min(34%, 440px);
}
/*
 * Mitwachsend statt fest: Seit nur noch zwei Weine im Titel stehen, wirkte
 * die feste Groesse auf breiten Schirmen verloren. Untergrenze so gewaehlt,
 * dass "Primeur und Novello" auch bei 1024 px noch auf eine Zeile passt.
 */
.band-text h1 { margin-top: 12px; font-size: clamp(30px, 2.9vw, 42px); }
.band-text .lead { margin-top: 14px; font-size: 16px; }

/* ---------- Vorteile und Charge unter dem Band ---------- */

.hero { padding: 32px 0 4px; }
.hero-innen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: stretch;
}
.lead { margin-top: 16px; font-size: 17px; line-height: 1.6; max-width: 56ch; }

/* Aktionsband — greift die Kopfleiste der gedruckten Aktionsflyer auf. */
.aktionsband {
  display: inline-flex;
  align-items: stretch;
  border-radius: 4px;
  overflow: hidden;
  font: 700 11px/1 'Source Sans 3', sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.aktionsband-marke {
  background: var(--bordeaux);
  color: var(--weiss);
  padding: 9px 13px;
}
.aktionsband-text {
  background: var(--graublau);
  color: #DCE6F0;
  padding: 9px 13px;
  letter-spacing: .1em;
}

/*
 * Icons wie im Styleguide, Abschnitt 06 "Produkt-Meta": 22–24 px, Farbe über
 * currentColor in der Gruppenfarbe. Ohne Kachel darunter.
 * Weinrot #D7432C trägt als Grafikelement mit 3,84 : 1 — für Schrift wäre das
 * zu wenig, für ein Icon reicht es (gefordert sind 3 : 1).
 */
/*
 * Eingerückt wie der Inhalt der Karte gegenüber: beide Spalten setzen ihren
 * Inhalt um dieselben 22 px vom Spaltenrand ab und beginnen auf derselben
 * Höhe. Vorher klebte die Liste an der Seitenkante, während die Karte daneben
 * ihr Innenmaß hatte — dadurch lasen sich die zwei Spalten wie zwei Raster.
 */
.vorteile {
  list-style: none;
  margin: 0;
  padding: 18px 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.vorteile li { display: flex; align-items: flex-start; gap: 11px; }
.vorteile strong { display: block; font: 600 15.5px/1.35 'Source Sans 3', sans-serif; color: var(--graublau); }
.vorteile span { display: block; margin-top: 2px; font: 400 13.5px/1.5 'Source Sans 3', sans-serif; color: var(--text-sek); }

/* Ein Ton für alle Icons — dasselbe Bordeaux wie das Ersparnis-Siegel. */
.icon {
  flex-shrink: 0;
  display: block;
  margin-top: 1px;
  color: var(--bordeaux);
}


/* ---------- Produktkarten ---------- */

/*
 * Drei Artikel, also entweder drei Spalten oder eine. Ein automatisches Raster
 * legt bei mittleren Breiten zwei Karten nebeneinander und die dritte allein
 * darunter — die steht dann in einer eigenen Rasterzeile und ihre Preistafeln
 * liegen sichtbar tiefer als die der beiden darüber. Das sah nach Fehler aus.
 */
.karten {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: stretch;
  max-width: 560px;
}

@media (min-width: 940px) {
  .karten { grid-template-columns: repeat(3, 1fr); max-width: none; }
  /* Weniger Artikel sollen die Karten nicht breiter machen: die Maximalbreite
     haelt sie auf derselben Spaltenbreite wie im Dreisatz (rund 438 px). */
  .karten-2 { grid-template-columns: repeat(2, 1fr); max-width: 900px; }
  .karten-1 { grid-template-columns: 1fr; max-width: 440px; }
}

.produkt {
  background: var(--karte);
  border: 1px solid var(--kante);
  border-radius: var(--radius);
  box-shadow: var(--schatten-karte);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.produkt.hat-menge { box-shadow: 0 3px 16px -4px rgba(63, 100, 145, .38); }
.produkt.hat-menge .mengenwahl { background: #E7EDF3; }
.produkt-zu { opacity: .72; }

/*
 * Gleiche Höhen über die Kartenreihe hinweg. Ohne Subgrid richten sich nur die
 * Kartenränder aus, die Blöcke darin nicht: Bei unterschiedlich langen
 * Beschreibungen rutschen Preise, Termine und Mengenfeld gegeneinander.
 * Die sieben Zeilen — Bild, Text, Datenzeile, Hinweis, Preise, Termine,
 * Menge — teilen sich deshalb das Raster der ganzen Reihe. Datenzeile und
 * Hinweis stehen bewusst als eigene Zeilen und nicht im Textblock: Sonst
 * wandern sie mit der Länge der Beschreibung und stehen bei den drei Weinen
 * auf verschiedenen Höhen.
 */
@supports (grid-template-rows: subgrid) {
  .karten { grid-template-rows: repeat(7, auto); }
  .produkt {
    display: grid;
    grid-row: span 7;
    grid-template-rows: subgrid;
  }
}

/*
 * Bildfläche: das Sandbühnen-Foto füllt sie randlos.
 * Die drei Fotos sind vorher durch tools/bilder-aufbereiten.py gelaufen —
 * gleicher Sandton, gleiche Flaschenhöhe, gemeinsame Standlinie, weicher
 * Schatten nach links unten. Deshalb genügt hier object-fit: cover.
 * Damit das Bildfeld nicht mit der Karte verschwimmt, trennt es eine
 * Haarlinie und die Karte selbst ist heller als der Sandton im Foto.
 */
.produkt-buehne {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bild-sand);
  border-bottom: 1px solid var(--kante);
}
.produkt-buehne img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Badges links, Ersparnis-Siegel rechts — sonst überlagern sie sich. */
.badge-bio, .badge-verband {
  position: absolute;
  left: 14px;
  z-index: 2;
  font: 700 10px/1 'Source Sans 3', sans-serif;
  letter-spacing: .08em;
  border-radius: 3px;
  padding: 5px 9px;
}
.badge-bio { top: 14px; color: var(--sand); background: var(--salbei-dunkel); }
.badge-verband {
  top: 42px;
  color: var(--salbei-dunkel);
  background: var(--karte);
  box-shadow: inset 0 0 0 1.4px var(--salbei-dunkel);
}

.produkt-text { padding: 15px 22px 0; align-self: start; }
/* start, nicht end: Sonst richtet sich der Block unten aus und die
   Preistreppen der drei Karten beginnen auf verschiedenen Höhen, weil der
   Satz darunter mal ein- und mal zweizeilig läuft. */
.produkt-preise { padding: 0 22px; align-self: start; }
.produkt-meta { font: 500 12px/1.3 'Source Sans 3', sans-serif; color: var(--text-sek); letter-spacing: .02em; }
.produkt-meta b { color: var(--bordeaux); font-weight: 600; }
.produkt-text h3 { margin-top: 5px; }
.produkt-erzeuger { font: 600 13.5px/1.3 'Source Sans 3', sans-serif; color: var(--salbei-dunkel); margin-top: 3px; }
.produkt-beschreibung { margin-top: 9px; font-size: 14px; line-height: 1.5; }
.produkt-daten {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 10px 22px 0;
  align-self: start;
}
.produkt-daten span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 500 13px/1.3 'Source Sans 3', sans-serif;
  color: var(--text);
}

.produkt-hinweis {
  margin: 8px 22px 0;
  font: 400 12.5px/1.5 'Source Sans 3', sans-serif;
  color: var(--text-sek);
  border-left: 2px solid var(--kante);
  padding-left: 10px;
  align-self: start;
}
.produkt-hinweis:empty { border: 0; padding: 0; margin: 0; }

/*
 * Ersparnis als runde Marke auf dem Bild. Der Styleguide führt den runden
 * Punkt in Abschnitt 06 als Herkunftssiegel — dieselbe Bauform, hier in
 * Bordeaux. Prozent statt Cent: 0,29 € je Flasche klingt nach nichts,
 * dieselbe Zahl als "bis 10 %" liest sich als Vorteil. Immer abgerundet,
 * damit die Marke nie mehr verspricht als die Rechnung hergibt.
 */
.ersparnis-siegel {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--bordeaux);
  color: var(--weiss);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  box-shadow: 0 2px 8px -2px rgba(40, 34, 24, .3);
}
.ersparnis-siegel .marke {
  font: 600 8.5px/1 'Source Sans 3', sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ersparnis-siegel .wert {
  font: 800 20px/1 Bitter, Georgia, serif;
}

/* Preistreppe */
.treppe { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; max-width: 440px; }
.treppe-stufe {
  /* min-width sorgt dafür, dass die Tafeln umbrechen statt sich zu quetschen:
     "Vorbestellpreis" braucht mit Sperrung rund 120 px, darunter würde die
     Beschriftung an den Rand gedrückt. */
  flex: 1 1 148px;
  min-width: 148px;
  border: 1px solid var(--kante);
  border-radius: 5px;
  padding: 8px 11px 9px;
  background: var(--sand);
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.treppe-stufe.aktiv {
  background: var(--preisblau);
  border-color: var(--preisblau);
}
.treppe-name {
  display: block;
  font: 600 10px/1.25 'Source Sans 3', sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ocker);
  overflow-wrap: anywhere;
}
.treppe-stufe.aktiv .treppe-name { color: #DCE6F0; }
.treppe-preis {
  display: block;
  margin-top: 4px;
  font: 800 24px/1 Bitter, Georgia, serif;
  color: var(--preisblau);
}
.treppe-euro { font: 600 13px/1 'Source Sans 3', sans-serif; }
.treppe-stufe.aktiv .treppe-preis { color: var(--karte); }
.treppe-hinweis {
  display: block;
  margin-top: 3px;
  font: 400 11.5px/1.3 'Source Sans 3', sans-serif;
  color: var(--text-sek);
}
.treppe-stufe.aktiv .treppe-hinweis { color: #C9D8E6; }

.treppe-regulaer { margin-top: 8px; font: 400 12.5px/1.5 'Source Sans 3', sans-serif; color: var(--text-sek); }

/* Termine und Restlaufzeit in einer Zeile — vorher stand die Pille darunter
   und kostete jede Karte rund 37 px, ohne mehr zu sagen. */
.termine {
  margin: 13px 22px 0;
  padding: 11px 0 13px;
  border-top: 1px solid var(--linie);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 22px;
  align-content: start;
}
.termine div { min-width: 0; }
.termine dt {
  font: 600 10px/1.2 'Source Sans 3', sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ocker);
}
.termine dd { margin: 3px 0 0; font: 600 13.5px/1.3 'Source Sans 3', sans-serif; color: var(--graublau); }
.termin-eng { color: var(--bordeaux); }

/* Restlaufzeit — eine ruhige Zahl statt einer tickenden Uhr. */
.restzeit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px 5px 7px;
  border-radius: 30px;
  background: rgba(215, 67, 44, .1);
  box-shadow: inset 0 0 0 1px rgba(169, 49, 72, .22);
  font: 600 12.5px/1 'Source Sans 3', sans-serif;
  color: var(--bordeaux);
}
.restzeit svg { flex-shrink: 0; }
.restzeit-ruhig {
  background: rgba(66, 79, 92, .08);
  box-shadow: inset 0 0 0 1px rgba(66, 79, 92, .16);
  color: var(--graublau);
}
.termine { position: relative; }
.termine-zeit { margin-left: auto; }

/* Mengenwahl */
.mengenwahl {
  padding: 14px 22px 16px;
  background: var(--well);
  border-top: 1px solid var(--kante);
  transition: background .15s ease;
}
.mengenwahl-zu { font-size: 13.5px; line-height: 1.55; color: var(--text-sek); }

.mengen-label {
  display: block;
  font: 600 10px/1 'Source Sans 3', sans-serif;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ocker);
  margin-bottom: 7px;
}

.stepper { display: flex; align-items: center; gap: 7px; }
.stepper-taste {
  width: 40px; height: 43px;
  flex-shrink: 0;
  border: 1px solid var(--preisblau);
  background: var(--karte);
  color: var(--preisblau);
  border-radius: 4px;
  font: 600 21px/1 'Source Sans 3', sans-serif;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.stepper-taste:hover { background: var(--preisblau); color: var(--karte); }
.stepper-taste:active { transform: translateY(1px); }
.stepper-taste[disabled] { opacity: .38; cursor: default; }
.stepper-taste[disabled]:hover { background: var(--karte); color: var(--preisblau); }

.stepper input {
  width: 80px;
  height: 43px;
  text-align: center;
  border: 1px solid var(--kante);
  border-radius: 4px;
  background: var(--karte);
  font: 700 20px/1 Bitter, Georgia, serif;
  color: var(--graublau);
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { border-color: var(--preisblau); }

.stepper-einheit {
  font: 600 13px/1.25 'Source Sans 3', sans-serif;
  color: var(--graublau);
}
.stepper-einheit small { display: block; font: 500 12px/1.3 'Source Sans 3', sans-serif; color: var(--text-sek); white-space: nowrap; }



/* ---------- Weg zum Staffelpreis ---------- */

.staffel {
  margin-top: 13px;
  padding: 10px 13px 11px;
  background: var(--karte);
  border: 1px solid var(--kante);
  border-radius: 5px;
}
.staffel.leer { opacity: .75; }

.staffel-kopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}
.staffel-ziel {
  font: 600 12.5px/1.35 'Source Sans 3', sans-serif;
  color: var(--preisblau);
}
.staffel.erreicht .staffel-ziel { color: var(--salbei-dunkel); }
.staffel-stand {
  font: 600 12px/1 'Source Sans 3', sans-serif;
  color: var(--text-sek);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.staffel-balken {
  height: 8px;
  border-radius: 4px;
  background: rgba(66, 79, 92, .12);
  overflow: hidden;
}
/*
 * Blau, nicht Rot. Der Weg zum Staffelpreis ist eine Preisfrage, keine
 * Warnung — Preis-Blau ist im System ohnehin die Farbe der Preise. Rot bleibt
 * damit der Restlaufzeit vorbehalten, wo es wirklich um eine Frist geht.
 * Erreicht wird der Balken salbeigrün, wie alle Vorteile im Styleguide.
 */
.staffel-balken span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: var(--preisblau);
  transition: width .22s ease, background-color .22s ease;
}
.staffel.erreicht .staffel-balken span { background: var(--salbei-dunkel); }

.staffel-lohnt {
  margin-top: 7px;
  font: 400 12.5px/1.5 'Source Sans 3', sans-serif;
  color: var(--text);
}
.staffel.erreicht .staffel-lohnt { color: var(--salbei-haken); font-weight: 500; }

.zeilensumme {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--kante);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.zeilensumme-marke { font: 600 10px/1 'Source Sans 3', sans-serif; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ocker); }
.zeilensumme-wert { font: 800 20px/1 Bitter, Georgia, serif; color: var(--graublau); white-space: nowrap; }

/* ---------- Formular ---------- */

.formular {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px 22px;
  max-width: 900px;
}
.feld { display: flex; flex-direction: column; }
.feld-breit { grid-column: 1 / -1; }
.feld-schmal { max-width: 160px; }

.feld label {
  font: 600 13px/1.3 'Source Sans 3', sans-serif;
  color: var(--graublau);
  margin-bottom: 6px;
}
.pflicht { color: var(--bordeaux); }
.feld-optional { font-weight: 400; color: var(--text-sek); }

.feld select {
  font: 400 15px/1.4 'Source Sans 3', sans-serif;
  color: var(--text);
  background: var(--sand);
  border: 1px solid var(--kante);
  border-radius: 4px;
  padding: 11px 13px;
  width: 100%;
  height: 44px;
}
.feld select:focus { border-color: var(--preisblau); background: var(--karte); }

.feld input, .feld textarea {
  font: 400 15px/1.4 'Source Sans 3', sans-serif;
  color: var(--text);
  background: var(--sand);
  border: 1px solid var(--kante);
  border-radius: 4px;
  padding: 11px 13px;
  width: 100%;
}
.abschnitt-hell .feld input, .abschnitt-hell .feld textarea { background: var(--sand); }
.feld input:focus, .feld textarea:focus { border-color: var(--preisblau); background: var(--karte); }
.feld textarea { resize: vertical; min-height: 88px; }
.feld input::placeholder, .feld textarea::placeholder { color: #9a8f7d; }

.feld-fehler input, .feld-fehler textarea { border-color: var(--bordeaux); background: #FDF4F5; }
.feld-hinweis { margin-top: 6px; font: 400 12.5px/1.5 'Source Sans 3', sans-serif; color: var(--text-sek); }
.feld-meldung { margin-top: 6px; font: 600 12.5px/1.5 'Source Sans 3', sans-serif; color: var(--bordeaux); }
.feld-meldung-gross { font-size: 14px; margin-top: 12px; }

.honigtopf { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Abschluss ---------- */

.abschluss {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.zusammenfassung {
  background: var(--karte);
  border: 1px solid var(--kante);
  border-radius: 8px;
  box-shadow: var(--schatten-karte);
  padding: 22px 24px 20px;
}
.zusammenfassung h3 { margin-bottom: 14px; }

.summentabelle { width: 100%; border-collapse: collapse; }
.summentabelle td { padding: 9px 0; border-bottom: 1px solid var(--linie); font-size: 14.5px; vertical-align: top; }
.summentabelle td:last-child { text-align: right; font-weight: 600; color: var(--graublau); white-space: nowrap; }
.summentabelle .summe-leer td { color: var(--text-sek); text-align: left; border-bottom: none; }
.summentabelle .zeile-menge { text-align: right; color: var(--text-sek); font-weight: 400; white-space: nowrap; }
.summentabelle .zeile-titel strong { color: var(--graublau); font-weight: 600; }
.summentabelle .zeile-titel span { display: block; font-size: 12.5px; color: var(--text-sek); }

/* Ein Preisvorteil ist eine gute Nachricht — dieselbe Farbe wie sonst fuer
   "erledigt/positiv" (z. B. .stand-fertig), nicht Bordeaux: das liest sich
   sonst wie eine Fehlermeldung. */
.gesamt-vorteil {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--salbei) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--salbei-dunkel) 30%, transparent);
  font: 700 14px/1.4 'Source Sans 3', sans-serif;
  color: var(--salbei-haken);
}

/*
 * "Eine Lese, eine Charge" — sitzt in der Hero-Spalte unter den drei Schritten.
 * Die Traube steht oben rechts statt links: So beginnt der Text an derselben
 * Kante wie die nummerierten Schritte darüber, und das Motiv bekommt Platz,
 * um auch als Bild zu wirken.
 */
/*
 * Notiz und Vorteilsliste stehen beide auf der Seitenfläche, getrennt nur
 * durch eine senkrechte Haarlinie in der Spaltenrinne. Vorher war die Notiz
 * eine Karte — das hob sie stärker heraus als die drei Argumente daneben,
 * obwohl die das eigentliche Verkaufsargument tragen. Die Linie trennt, ohne
 * zu gewichten, und die Seite kommt mit einer Kartenfläche weniger aus.
 */
/* Nur der Erzaehltext, nicht die Kopfzeile darueber: Er lief mit rund
   78 Zeichen je Zeile deutlich ueber das, was sich angenehm liest. */
.charge > div p { max-width: 58ch; }

.charge {
  border-left: 1px solid var(--kante);
  padding: 18px 0 0 40px;
}
.charge-kopf { margin-bottom: 9px; }
.charge strong {
  font: 700 16px/1.25 Bitter, Georgia, serif;
  color: var(--graublau);
}
.charge p { font: 400 13.5px/1.6 'Source Sans 3', sans-serif; color: var(--text); max-width: 62ch; }

.gesamt {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.gesamt-links { display: flex; flex-direction: column; gap: 3px; font: 600 14px/1.3 'Source Sans 3', sans-serif; color: var(--graublau); }
.gesamt-netto { font-weight: 400; font-size: 12.5px; color: var(--text-sek); }
.preisbox {
  background: var(--preisblau);
  border-radius: 4px;
  padding: 10px 17px;
  font: 800 28px/1 Bitter, Georgia, serif;
  color: var(--karte);
  white-space: nowrap;
}

.absenden {
  background: var(--karte);
  border: 1px solid var(--kante);
  border-radius: 8px;
  box-shadow: var(--schatten-karte);
  padding: 22px 24px;
}
.zustimmung { display: flex; gap: 11px; align-items: flex-start; }
.zustimmung input {
  width: 21px; height: 21px;
  margin: 1px 0 0;
  flex-shrink: 0;
  accent-color: var(--preisblau);
}
.zustimmung label { font-size: 14px; line-height: 1.5; color: var(--text); }

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 600 14px/1 'Source Sans 3', sans-serif;
  color: var(--karte);
  background: var(--preisblau);
  border: 1.5px solid var(--preisblau);
  border-radius: 4px;
  padding: 13px 22px;
  text-decoration: none;
  cursor: pointer;
  transition: background .12s ease;
}
.knopf:hover { background: var(--preisblau-dunkel); border-color: var(--preisblau-dunkel); color: var(--karte); }
.knopf[disabled] { opacity: .5; cursor: default; }
.knopf-gross { width: 100%; margin-top: 18px; padding: 16px 24px; font-size: 15.5px; }
.knopf-klein { padding: 10px 16px; font-size: 13px; }
.knopf-rand { background: transparent; color: var(--preisblau); }
.knopf-rand:hover { background: var(--preisblau); color: var(--karte); }

.absenden-fuss { margin-top: 14px; font: 400 12.5px/1.55 'Source Sans 3', sans-serif; color: var(--text-sek); }

/* ---------- Hinweisboxen ---------- */

.hinweisbox {
  border-radius: 6px;
  padding: 17px 20px;
  margin-bottom: 22px;
  border: 1px solid var(--kante);
  background: var(--karte);
}
.hinweisbox h2 { font: 700 17px/1.25 Bitter, Georgia, serif; margin-bottom: 6px; }
.hinweisbox p, .hinweisbox li { font-size: 14px; line-height: 1.6; }
.hinweisbox ul { margin: 6px 0 0; padding-left: 20px; }

.hinweisbox-gut { background: #EEF3E9; border-color: #D8E4CD; }
.hinweisbox-neutral { background: #E7EDF3; border-color: #D8E1EA; }
.hinweisbox-warnung { background: #FBF1E4; border-color: #E9D3AE; }
.hinweisbox-wichtig { background: #FBEEF0; border-color: #EBC9CF; }
.hinweisbox-wichtig h2 { color: var(--bordeaux); }

/* ---------- Sticky Summenleiste ---------- */

.summenleiste {
  position: sticky;
  bottom: 0;
  z-index: 20;
  background: var(--graublau);
  box-shadow: 0 -4px 16px -8px rgba(40, 49, 64, .5);
}
.summenleiste-innen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 11px;
  padding-bottom: 11px;
}
.summenleiste-menge { font: 600 14px/1.3 'Source Sans 3', sans-serif; color: var(--karte); display: block; }
.summenleiste-netto { font: 400 12px/1.3 'Source Sans 3', sans-serif; color: #B4C4D3; }
.summenleiste-rechts { display: flex; align-items: center; gap: 16px; }
.summenleiste-summe { font: 800 22px/1 Bitter, Georgia, serif; color: var(--karte); white-space: nowrap; }
.summenleiste .knopf { background: var(--karte); color: var(--graublau); border-color: var(--karte); }
.summenleiste .knopf:hover { background: #FFFFFF; color: var(--graublau); border-color: #FFFFFF; }

/* ---------- Quittung ---------- */

.quittung {
  background: var(--karte);
  border: 1px solid var(--kante);
  border-radius: 8px;
  box-shadow: var(--schatten-karte);
  padding: 34px 34px 30px;
}
.quittung-kopf { margin-bottom: 22px; }
.quittung-kopf h1 { margin-top: 7px; }
.quittung-kopf .lead { margin-top: 8px; font-size: 15px; color: var(--text-sek); }

.quittung-tabelle { width: 100%; border-collapse: collapse; margin-top: 6px; }
.quittung-tabelle th {
  text-align: left;
  font: 600 10px/1.2 'Source Sans 3', sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ocker);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--linie);
}
.quittung-tabelle th.rechts { text-align: right; }
.quittung-tabelle td { padding: 12px 0; border-bottom: 1px solid var(--linie); font-size: 14.5px; vertical-align: top; }
.quittung-tabelle td + td { padding-left: 16px; }
.tabelle-meta { display: block; font-size: 12.5px; color: var(--text-sek); font-weight: 400; }

.quittung-spalten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--linie);
}
.quittung-spalten h3 { font: 700 16px/1.2 Bitter, Georgia, serif; margin-bottom: 10px; }
.liste { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.7; }
.angaben { margin: 0; display: flex; flex-direction: column; gap: 7px; }
.angaben dt { font: 600 10px/1.2 'Source Sans 3', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--ocker); }
.angaben dd { margin: 2px 0 0; font-size: 14px; color: var(--graublau); font-weight: 500; }
.bemerkung { margin-top: 12px; font-size: 13.5px; line-height: 1.6; border-left: 3px solid var(--kante); padding-left: 12px; }

.quittung-fuss {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--linie);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.quittung-fuss .klein { flex-basis: 100%; }

/* ---------- Interne Auswertung ---------- */

.intern-kopf {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 26px;
}
.intern-aktionen { display: flex; gap: 10px; flex-wrap: wrap; }

.kennzahlen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.kennzahl {
  background: var(--karte);
  border: 1px solid var(--kante);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.kennzahl-wert { font: 800 28px/1 Bitter, Georgia, serif; color: var(--preisblau); }
.kennzahl-name { font: 600 10px/1.2 'Source Sans 3', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--ocker); margin-bottom: 7px; }
.kennzahl-fuss { font: 400 12.5px/1.4 'Source Sans 3', sans-serif; color: var(--text-sek); margin-top: 5px; }

.intern-abschnitt { margin-top: 38px; }
.intern-abschnitt h2 { margin-bottom: 16px; }

.tabellenrahmen {
  background: var(--karte);
  border: 1px solid var(--kante);
  border-radius: var(--radius);
  overflow-x: auto;
}
.datentabelle { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 760px; }
.datentabelle th {
  position: sticky;
  top: 0;
  background: var(--karte);
  text-align: left;
  font: 600 10px/1.2 'Source Sans 3', sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ocker);
  padding: 13px 14px;
  border-bottom: 1px solid var(--kante);
  white-space: nowrap;
}
/* Artikelnamen in der Kopfzeile nicht versalisieren: der Browser macht aus
   "Federweißer" sonst "FEDERWEISSER". */
.datentabelle th.th-artikel { text-transform: none; letter-spacing: 0; font-size: 13px; }
.datentabelle .th-zusatz {
  display: block;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-sek);
}

.datentabelle td { padding: 11px 14px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.datentabelle tr:last-child td { border-bottom: none; }
.datentabelle .rechts { text-align: right; }
.datentabelle .zahl { font-variant-numeric: tabular-nums; white-space: nowrap; }
.datentabelle .leer { color: var(--text-sek); }

.status { display: inline-block; font: 600 10.5px/1 'Source Sans 3', sans-serif; letter-spacing: .06em; text-transform: uppercase; border-radius: 3px; padding: 5px 8px; }
.status-versendet { background: rgba(124, 139, 111, .2); color: var(--salbei-haken); }
.status-offen { background: rgba(238, 168, 66, .22); color: #7A5310; }
.status-fehler { background: rgba(169, 49, 72, .14); color: var(--bordeaux); }

/* ---------- Umbrueche ---------- */

@media (max-width: 900px) {
  /* Auf dem Handy steht der Text unter dem Bild, nicht darauf: In der
     schmalen Fassung gibt es keine freie Fläche mehr. */
  /* Das Seitenverhältnis gehört an den Bildrahmen, nicht an den Wrapper.
     Am Wrapper hätte es das Band quadratisch gemacht, während der Rahmen
     weiter auf 2,3 : 1 stand — das quadratische Foto wurde dann oben und
     unten beschnitten und die Flaschen verloren ihre Füße. */
  .band-bild { aspect-ratio: 1 / 1; border-radius: 8px; }
  .band-bild::after { display: none; }
  .band-text {
    position: static;
    transform: none;
    width: auto;
    margin-top: 22px;
  }
  /* Einspaltig steht die Ueberschrift ueber der ganzen Breite. */
  .band-text h1 { margin-top: 10px; font-size: clamp(29px, 4.6vw, 44px); }
}

@media (max-width: 1000px) {
  .hero-innen { grid-template-columns: 1fr; gap: 28px; }
  /* Einspaltig gibt es keine Spalte daneben, auf die sich Einzug und Linie
     beziehen. Die Trennung übernimmt dann eine waagerechte Haarlinie. */
  .vorteile { padding: 4px 0 0; }
  /* Nur der Erzaehltext, nicht die Kopfzeile darueber: Er lief mit rund
   78 Zeichen je Zeile deutlich ueber das, was sich angenehm liest. */
.charge > div p { max-width: 58ch; }

.charge {
    border-left: 0;
    border-top: 1px solid var(--kante);
    padding: 20px 0 0;
  }
  .abschluss { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
}

@media (max-width: 640px) {
  .mitte { padding: 0 16px; }
  .abschnitt { padding: 42px 0; }
  .hero { padding: 34px 0 4px; }
  h1 { font-size: 27px; }
  h2 { font-size: 22px; }
  .lead { font-size: 16px; }
  .karten { grid-template-columns: 1fr; }
  .produkt-buehne { height: 210px; }
  .quittung { padding: 24px 20px; }
  .kopf-innen { gap: 12px; }
  .kopf-logo img { width: 152px; }
  .kopf-kontakt { font-size: 12px; }
  .formular { grid-template-columns: 1fr; }
  .feld-schmal { max-width: none; }
  .treppe { flex-wrap: wrap; }
  .treppe-stufe { min-width: 128px; }
  .summenleiste-innen { padding-top: 9px; padding-bottom: 9px; }
  .summenleiste-summe { font-size: 19px; }
  .summenleiste-netto { display: none; }
}

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

/* ---------- Druck ---------- */

@media print {
  .utility-band, .kba-band, .summenleiste, .quittung-fuss, .sprungmarke, .kopf-kontakt { display: none; }
  body { background: #FFFFFF; font-size: 11pt; }
  /* Auf Papier ist die Sandflaeche hinter dem Logo ein Fremdkoerper — der Rest
     des Blatts ist weiss. Eine Trennlinie war es aber auch nicht: Ohne Flaeche
     dahinter steht sie fuer sich und wirkt wie versehentlich. Die Trennung
     uebernimmt jetzt Luft, wie auf Briefpapier. */
  .kopf { background: none; border-bottom: none; }
  .kopf-innen { padding: 0 0 26px; }
  .kopf-logo img { width: 150px; }
  .abschnitt { padding: 0; }
  /* Wie beim Kopf: Auf weissem Papier ist die Sandflaeche ein Fremdkoerper. */
  .quittung { background: none; border: none; box-shadow: none; padding: 0; }
  .hinweisbox { background: none; border: 1px solid #C9C0AC; }
  .fuss { background: none; border-top: 1px solid #C9C0AC; }
  /* Volles Schwarz gibt es im Corporate Design nicht — auch auf Papier bleibt
     die Summe im Graublau der Marke. */
  .preisbox { background: none; color: #424F5C; border: 1px solid #424F5C; }
  a { text-decoration: none; color: #424F5C; }
  .fuss { color: #424F5C; }
  .fuss-marke, .fuss-zeile, .fuss a { color: #424F5C; }
}

/* ---------- Rechtsseiten ---------- */

.rechtstext { margin-top: 26px; max-width: 68ch; }
.rechtstext h2 {
  font: 700 19px/1.25 Bitter, Georgia, serif;
  color: var(--graublau);
  margin: 30px 0 10px;
}
.rechtstext h2:first-child { margin-top: 0; }
.rechtstext p { margin-bottom: 12px; line-height: 1.65; }
.rechtstext ul { margin: 0 0 14px; padding-left: 20px; line-height: 1.65; }
.rechtstext li { margin-bottom: 6px; }
.rechtstext code {
  font: 400 13px/1.4 ui-monospace, Menlo, Consolas, monospace;
  background: var(--well);
  border-radius: 3px;
  padding: 1px 5px;
}

.angaben-lang { margin: 0; display: grid; gap: 9px; }
.angaben-lang > div { display: grid; grid-template-columns: minmax(0, 230px) 1fr; gap: 6px 18px; }
.angaben-lang dt {
  font: 600 10px/1.5 'Source Sans 3', sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ocker);
}
.angaben-lang dd { margin: 0; font-size: 14.5px; color: var(--graublau); }
.angaben-lang .offen { color: var(--bordeaux); font-style: italic; }

.zurueck { margin-top: 34px; font-size: 14px; }

@media (max-width: 640px) {
  .angaben-lang > div { grid-template-columns: 1fr; gap: 2px; }
}
.rechtstext + .zurueck, .abschnitt h1 + .hinweisbox { margin-top: 16px; }

/* ---------- Lieferwunsch je Wein ---------- */

/*
 * Steht im Mengenblock der Karte, weil "wie viel" und "wie geliefert" dieselbe
 * Entscheidung sind. Primeur und Novello gehen zwei Wochen auseinander raus —
 * eine gemeinsame Angabe fuer die ganze Bestellung waere irrefuehrend.
 */
.lieferwunsch {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(66, 79, 92, .14);
  display: grid;
  gap: 6px;
}
.lieferwunsch-label {
  font: 600 10px/1.2 'Source Sans 3', sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ocker);
}
.lieferwunsch select,
.lieferwunsch input {
  width: 100%;
  font: 400 14.5px/1.3 'Source Sans 3', sans-serif;
  color: var(--graublau);
  background: var(--weiss);
  border: 1px solid var(--kante);
  border-radius: 4px;
  padding: 9px 10px;
}
.lieferwunsch input::placeholder { color: #9A9080; }
.lieferwunsch select:focus-visible,
.lieferwunsch input:focus-visible {
  outline: 2px solid var(--preisblau);
  outline-offset: 1px;
}

/* Der gewaehlte Liefertermin auf der Bestaetigung. */
.liefer-wunsch {
  display: block;
  font-size: 13px;
  color: var(--text-sek);
}

/* ---------- Löschen in der Auswertung ---------- */

/* Unauffaellig: Loeschen ist die Ausnahme, nicht der Normalfall. */
.loeschlink {
  font: 400 12.5px/1 'Source Sans 3', sans-serif;
  color: var(--text-sek);
  text-decoration: none;
  border-bottom: 1px solid var(--linie);
  white-space: nowrap;
}
.loeschlink:hover,
.loeschlink:focus-visible { color: var(--bordeaux); border-bottom-color: var(--bordeaux); }

/* Nur fuer Vorlesegeraete — die Spalte braucht eine Ueberschrift, aber keine
   sichtbare. */
.nur-vorleser {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.loeschkarte {
  margin: 22px 0 26px;
  background: var(--karte);
  border: 1px solid var(--kante);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.loeschkarte .angaben-lang { margin-bottom: 16px; }
.loeschkarte .liste { margin-bottom: 0; }
.loeschkarte .liste .klein { display: block; }

.loeschwahl { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.knopf-warnung {
  background: var(--bordeaux);
  border-color: var(--bordeaux);
  color: var(--weiss);
}
.knopf-warnung:hover { filter: brightness(1.08); }

/* ---------- Lieferliste je Wein ---------- */

.listenkopf {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 26px;
}
.listen-aktionen { display: flex; gap: 10px; }

.knopf-klein {
  font-size: 12.5px;
  padding: 7px 11px;
}
.artikel-aktionen { white-space: nowrap; }
.artikel-aktionen .knopf + .knopf { margin-left: 6px; }

/* Feste Breiten. Der Kundenspalte gehoert der Rest: dort steht neben Firma und
   Ansprechpartner auch der Lieferwunsch, und der braucht Zeilen, keine Saeule. */
.lieferliste { table-layout: fixed; }
/* Anteile statt Pixel: auf A4 ist die Tabelle nur gut 700 px breit, feste
   Pixelbreiten liessen fuer den Kunden dann kaum etwas uebrig. */
.lieferliste col.sp-kdnr { width: 8%; }
.lieferliste col.sp-kunde { width: 36%; }
.lieferliste col.sp-zahl { width: 8%; }
.lieferliste col.sp-preis { width: 7%; }
.lieferliste col.sp-charge { width: 9%; }
.lieferliste col.sp-offen { width: 6%; }
/* break-word statt anywhere: sonst trennt der Browser mitten im Firmennamen. */
.lieferliste td, .lieferliste th { overflow-wrap: break-word; }

/* In der Lieferliste tragen Ansprechpartner und Lieferwunsch die Zeile nur
   mit — sie sollen sie nicht auseinanderziehen. */
.lieferliste .tabelle-meta { font-size: 11.5px; line-height: 1.45; }

/* Die drei leeren Felder zum Eintragen — sie sollen wie Kästchen auf einem
   Formular aussehen, auch auf Papier. */
.lieferliste th.kasten {
  text-align: center;
}
.lieferliste td.kasten {
  border-left: 1px solid var(--linie);
  background: #FCFAF4;
}
.lieferliste td.kasten-offen { background: var(--well); }
.lieferliste tfoot td {
  border-top: 2px solid var(--kante);
  border-bottom: none;
  padding-top: 12px;
}

.listenfuss {
  margin-top: 18px;
  max-width: 74ch;
  font: 400 13px/1.6 'Source Sans 3', sans-serif;
  color: var(--text-sek);
}

.unterschrift {
  display: flex;
  gap: 48px;
  margin-top: 46px;
  max-width: 640px;
}
.unterschrift > div { flex: 1; border-top: 1px solid var(--graublau); padding-top: 6px; }
.unterschrift span {
  font: 600 10px/1.4 'Source Sans 3', sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ocker);
}

@media print {
  /* Auf Papier zählt die Tabelle, sonst nichts. */
  .listen-aktionen, .kennzahlen, .artikel-aktionen { display: none; }
  /* Ohne diesen Abstand sitzt "Lieferliste" direkt unter dem Logo. */
  .listenkopf { margin-top: 12px; margin-bottom: 20px; }
  .lieferliste { font-size: 9.5pt; }
  .lieferliste .tabelle-meta { font-size: 8.5pt; }
  /* Auf A4 ist die Tabelle nur gut 700 px breit. Die gesperrten Versalien der
     Spaltenkoepfe waren dort breiter als ihre Spalte und wurden abgeschnitten. */
  .lieferliste th { font-size: 7.5pt; letter-spacing: .04em; }
  .lieferliste td, .lieferliste th { padding-left: 6px; padding-right: 6px; }
  .tabellenrahmen { border: none; box-shadow: none; overflow: visible; }
  .datentabelle { min-width: 0; font-size: 10pt; }
  .lieferliste td.kasten { background: none; border-left: 1px solid #999999; height: 34px; }
  .lieferliste td.kasten-offen { background: none; }
  .lieferliste tfoot td { border-top: 2px solid #000000; }
  thead { display: table-header-group; }
  tr { break-inside: avoid; }
}

/* ---------- Chargen erfassen ---------- */

.lieferliste td.kasten { padding: 8px 8px; vertical-align: top; }
.charge-menge,
.charge-datum {
  width: 100%;
  font: 400 13px/1.2 'Source Sans 3', sans-serif;
  color: var(--graublau);
  background: var(--weiss);
  border: 1px solid var(--kante);
  border-radius: 3px;
  padding: 6px 7px;
}
.charge-menge {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  margin-bottom: 4px;
}
.charge-datum { font-size: 11.5px; color: var(--text-sek); }
.charge-menge:focus-visible,
.charge-datum:focus-visible { outline: 2px solid var(--preisblau); outline-offset: 1px; }

/* Wie weit die Position ist — an der Zahl "offen" ablesbar. */
.stand {
  display: inline-block;
  min-width: 34px;
  border-radius: 3px;
  padding: 4px 7px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.stand-offen { color: var(--text-sek); }
.stand-teilweise { color: var(--ocker); background: color-mix(in srgb, var(--ocker) 14%, transparent); }
.stand-fertig { color: var(--salbei-haken); background: color-mix(in srgb, var(--salbei) 22%, transparent); }

.listen-speichern {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
  margin-top: 18px;
}

@media print {
  /* Auf Papier sind die Felder wieder Kaestchen zum Eintragen mit dem Stift.
     Steht schon etwas drin, wird es mitgedruckt. */
  .listen-speichern { display: none; }
  .charge-menge, .charge-datum {
    border: none;
    background: none;
    padding: 2px 0;
    color: #000000;
  }
  /* Auf Papier bleibt von den Feldern nur die Linie zum Schreiben. */
  .charge-datum { border-top: 1px solid #DDDDDD; }
  .charge-menge::placeholder, .charge-datum::placeholder { color: transparent; }
  .stand-teilweise, .stand-fertig { background: none; color: #000000; }
}
