/*
 * Mittagessen: Bestellstrecke und Mensakonto.
 *
 * Lag bis Version 1.60 als <style>-Block im Bestelltemplate. Seit die
 * Verwaltung unter „Mein Mensakonto" eine eigene Ansicht hat, brauchen beide
 * dieselben Regeln - als Datei gibt es sie einmal statt zweimal, und der
 * Browser kann sie zwischenspeichern.
 *
 * Alle Farben laufen über die Template-Variablen (--ars-*), damit heller und
 * dunkler Modus ohne zweiten Regelsatz stimmen. Eine fest eingetragene Farbe
 * wandert im Dunkelmodus nicht mit und macht die Schrift unlesbar.
 */

>
/* Knöpfe und Hinweiskästen kommen aus den gemeinsamen Bausteinen
   (media/com_pixelhobel/css/button.css und list.css). Hier steht nur die
   Bestellstrecke selbst: der Tag zum Blättern, die Gerichtkarten, die
   Tagesleiste und der Zahlungshinweis.

   Alle Farben laufen über die Template-Variablen (--ars-*), damit heller und
   dunkler Modus ohne zweiten Regelsatz stimmen. Eine fest eingetragene Farbe
   (früher stand hier #fff als Kartengrund) wandert im Dunkelmodus nicht mit
   und macht die Schrift unlesbar. */

.ars-order__period { margin-bottom: 1.25rem; }

.ars-order__eltern {
  margin: 0 0 1.25rem; padding: .9rem 1.1rem;
  border: 1px solid var(--ars-border, #d9dedf); border-left: 5px solid var(--ars-tuerkis, #018186);
  border-radius: 8px; background: var(--ars-bg-soft, #f1f6f5);
}
.ars-order__elternkopf { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 0; }
.ars-order__zurueck { margin-left: auto; font-weight: 600; }
.ars-order__fuer { margin: .6rem 0 0; }
.ars-order__eltern .phx-chips { margin: .7rem 0 0; }

.ars-order__zugang { margin: .9rem 0 0; color: var(--ars-text-soft, #5b6670); }
.ars-order__zweckhinweis { margin: .5rem 0 0; font-size: .9rem; color: var(--ars-text-soft, #5b6670); }

/* Bildung und Teilhabe stand früher als eigener grüner Kasten auf der Seite.
   Seit es ein Aufklapper wie die anderen ist, lag der alte Kasten darüber:
   eigener Rahmen, eigener Hintergrund, zusätzliche Polsterung - der Block
   sprang aus der Reihe, obwohl er dieselbe Sorte Inhalt trägt. Die Regeln
   zum Kasten sind deshalb weg; eigen bleibt die Symbolfarbe. */
.ars-order__but > summary i { color: var(--ars-gruen, #2e7d32); }
.ars-order__but p { margin: 0 0 .7rem; }
.ars-order__butform { margin: .3rem 0 0; }
/* Der Baustein setzt am Absendeknopf bewusst keinen Abstand - er weiss
   nicht, was darueber steht. Hier steht das Feldraster, und das braucht
   Luft nach unten. */
.ars-order__butform .phx-form__submit { margin-top: 1.5rem; }
.ars-order__butwann { margin: 0; font-size: .9rem; color: var(--ars-text-soft, #5b6670); }

/* Mensaausweis: wie die anderen Aufklapper. Kasten und Chevron stellt
   .phx-klapp, eigen bleibt die Symbolfarbe. Der frühere Rahmen stammte aus
   der Zeit vor den Aufklappern und lag seitdem als zweiter darüber. */
.ars-order__ausweis > summary i { color: var(--ars-bordeaux, #94132f); }
.ars-order__ausweis p { margin: 0 0 .7rem; }
.ars-order__ausweisform { margin: 0 0 .7rem; }
.ars-order__ausweiswann { margin: 0; font-size: .9rem; color: var(--ars-text-soft, #5b6670); }

.ars-order__guthaben {
  margin: 0 0 .8rem; padding: .5rem .75rem; border-radius: 6px;
  background: color-mix(in srgb, var(--ars-gruen, #2e7d32) 10%, var(--ars-bg, #fff));
}
.ars-order__guthaben i { color: var(--ars-gruen, #2e7d32); margin-right: .3rem; }
.ars-order__heute {
  margin-left: .4rem; padding: .05rem .45rem; border-radius: 999px; font-size: .8rem; font-weight: 700;
  background: color-mix(in srgb, var(--ars-gruen, #2e7d32) 14%, var(--ars-bg, #fff)); color: var(--ars-gruen, #2e7d32);
}
/* 24 px in jede Richtung - mit dem Finger sicher zu treffen. */
.ars-order__stornoaktion { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: .9rem; }
.ars-order__stornozahl { font-size: .9rem; color: var(--ars-text-soft, #5b6670); }
.ars-order__rechnung { margin: 0 0 .35rem; color: var(--ars-text-soft, #5b6670); font-variant-numeric: tabular-nums; }
.ars-order__stornogrund { margin-left: auto; font-size: .9rem; color: var(--ars-text-soft, #5b6670); }
.ars-order__stornohinweis { margin: .8rem 0 0; font-size: .9rem; color: var(--ars-text-soft, #5b6670); }
@media (max-width: 34rem) {
}
/* Die Einladung der Schulküche: derselbe Kasten wie der Übergangshinweis,
   nur in Türkis - er sagt »hier ist etwas für dich geöffnet«, nicht »Achtung«. */
.ars-order__nachtrag {
  margin: 0 0 1.5rem; padding: 1rem 1.25rem; border-radius: 8px;
  border: 1px solid var(--ars-border, #d9dedf);
  border-left: 5px solid var(--ars-tuerkis, #018186);
  background: var(--ars-bg-soft, #f1f6f5);
}
.ars-order__nachtrag h2 { margin: 0 0 .5rem; font-size: 1.15rem; }
.ars-order__nachtrag h2 i { color: var(--ars-tuerkis, #018186); }
.ars-order__nachtrag p { margin: 0 0 .5rem; }
.ars-order__nachtrag p:last-child { margin-bottom: 0; }
/* Die Zahlungsfrist: abgesetzt vom übrigen Text, aber kein Alarm - sie betrifft
   jede Bestellung, nicht nur die knappen. */
.ars-order__geldfrist {
  margin: .75rem 0 0; padding: .6rem .8rem; border-radius: 6px;
  border-left: 4px solid var(--ars-orange, #b75c00);
  background: color-mix(in srgb, var(--ars-orange, #b75c00) 8%, var(--ars-bg, #fff));
  font-size: .95rem; line-height: 1.5;
}
.ars-order__geldfrist i { color: var(--ars-orange, #b75c00); margin-right: .3rem; }

/* Der Einleitungstext steht wie auf jeder Infoseite frei im Satzspiegel -
   kein Rahmen, kein Hintergrund, keine Überschrift. */

/* Der Hinweis zu den erzeugten Bildern: dezent, aber über der Tagesleiste -
   dort, wo der Blick von den Karten weitergeht. */
.ars-order__nichtsgewaehlt {
  margin: 0; font-size: .9rem; color: var(--ars-text-soft, #5b6670);
}
.ars-order__kihinweis {
  margin: .4rem 0 .9rem; font-size: .85rem; line-height: 1.5;
  color: var(--ars-text-soft, #5b6670); text-align: center;
}
.ars-order__kihinweis i { margin-right: .3rem; color: var(--ars-teal, #2e7d78); }

.ars-order__card {
  border: 1px solid var(--ars-border, #d9dedf);
  border-radius: .75rem;
  padding: 1.25rem 1.5rem;
  background: var(--ars-bg-soft, #f1f6f5);
}

.ars-order__day-nav {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-bottom: 1.25rem; flex: 0 0 auto;
}

.ars-order__day-title { margin: 0; width: 14rem; flex: 0 0 auto; text-align: center; font-size: 1.15rem; }
.ars-order__day-date { color: var(--ars-text-soft, #5b6670); font-weight: 400; }
.ars-order__hinweis,
.ars-order__krank { max-width: 46rem; margin: 0 0 1rem; padding: .7rem .9rem; border-radius: 8px; background: var(--ars-bg-soft, #f1f4f4); color: var(--ars-text, #1f2933); font-size: max(0.9375rem, .9em); line-height: 1.5; }
.ars-order__hinweis i,
.ars-order__krank i { margin-right: .4rem; color: var(--ars-tuerkis-dark, #1d6a6a); }

/* Hinweiszeile mit Symbol: Symbol links, Text daneben - und der Text als ein
 * Stueck. Hier stand bis 16.11.2026 ein Flex-Container in Spaltenrichtung
 * (Rest eines Kastens, den es nicht mehr gibt). Der machte aus jedem
 * Inline-Element ein eigenes Flex-Element: Symbol, Satzanfang, <strong> und
 * Satzende standen untereinander. Deshalb liegt der Text jetzt in einem
 * eigenen <span> - innerhalb davon fließt er wieder normal.
 */
.ars-order__hinweis,
.ars-order__krank { display: flex; align-items: flex-start; gap: .5rem; }
.ars-order__hinweis > i,
.ars-order__krank > i { flex: 0 0 auto; margin: .2rem 0 0; }
.ars-order__hinweis > span,
.ars-order__krank > span { min-width: 0; }
/* --- „Du hast schon bestellt" -----------------------------------------
 * Grüner Streifen, nicht roter Kasten: Das ist eine Bestätigung, keine
 * Warnung. Er steht über dem Speiseplan, damit niemand erst nach dem
 * Abschicken merkt, dass er eine bestehende Bestellung verändert hat.
 */
.ars-order__bestand {
  max-width: 46rem; margin: 0 0 1rem; padding: .8rem 1rem;
  border: 1px solid var(--ars-border, #d9dedf);
  border-left: 4px solid var(--ars-gruen, #2e7d32);
  border-radius: 8px;
  background: var(--ars-bg-soft, #f1f4f4);
  font-size: max(0.9375rem, .9em); line-height: 1.5;
}
.ars-order__bestand p { margin: 0 0 .45rem; }
.ars-order__bestand p:last-child { margin-bottom: 0; }
.ars-order__bestand-kopf { font-weight: 600; }
.ars-order__bestand-kopf i { margin-right: .4rem; color: var(--ars-gruen, #2e7d32); }
.ars-order__bestand-zahl { font-variant-numeric: tabular-nums; }
.ars-order__bestand-liste {
  margin: 0 0 .45rem; padding-left: 1.2rem;
  font-variant-numeric: tabular-nums;
}
.ars-order__bestand-frist,
.ars-order__bestand-krank { color: var(--ars-text-soft, #5b6670); }

.ars-order__locked { display: block; font-weight: 400; font-size: max(0.875rem, .8em); color: var(--ars-text-soft, #5b6670); margin-top: .2rem; }

.ars-order__nav-btn {
  flex: 0 0 auto; width: 2.75rem; height: 2.75rem; padding: 0; border: 0;
  background: transparent; color: var(--ars-bordeaux, #94132f);
  font-size: 2.25rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.ars-order__nav-btn:disabled { opacity: .3; cursor: default; }
.ars-order__nav-btn:not(:disabled):hover { color: var(--ars-bordeaux-dark, #701025); }
.ars-order__nav-btn:focus-visible { outline: 3px solid var(--ars-orange, #e2892f); outline-offset: 2px; border-radius: 999px; }

/* Die von Joomla ausgelieferte joomla-fontawesome.min.css wird ohne UTF-8-
   Charset-Header übertragen, wodurch die "--fa"-Glyph-Werte der Icons
   verstümmelt ankommen (bereits bekanntes Problem, siehe
   media/com_arsbilder/css/gallery.css) - deshalb hier wie dort der Inhalt
   direkt über den Unicode-Codepoint gesetzt statt über die FA-eigene
   content-Deklaration. */
.ars-order__nav-btn .fa-arrow-circle-left::before,
.ars-order__nav-btn .fa-arrow-circle-right::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}
.ars-order__nav-btn .fa-arrow-circle-left::before { content: "\f0a8"; }
.ars-order__nav-btn .fa-arrow-circle-right::before { content: "\f0a9"; }

.ars-order__day { min-height: 26rem; display: flex; flex-direction: column; }
.ars-order__day[hidden] { display: none; }
.ars-order__dishes, .ars-order__no-service { flex: 1 1 auto; }

.ars-order__no-service {
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--ars-text-soft, #5b6670); margin: 0;
}

.ars-order__dishes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem; border: 0; padding: 0; margin: 0;
}
.ars-order__dishes[disabled] { opacity: .6; }

.ars-order__dish {
  display: flex; flex-direction: column; gap: .4rem; padding: .85rem;
  border: 2px solid var(--ars-border, #d9dedf); border-radius: .5rem;
  background: var(--ars-bg, #fff); cursor: pointer; position: relative;
}
.ars-order__dish:has(.ars-order__dish-input:checked) {
  border-color: var(--ars-tuerkis, #018186); box-shadow: 0 0 0 1px var(--ars-tuerkis, #018186);
}
/* Die Tastaturmarke sitzt am Kasten, nicht am unsichtbaren Auswahlknopf -
   sonst sieht man beim Durchtabben nicht, wo man ist. */
.ars-order__dish:has(.ars-order__dish-input:focus-visible) {
  outline: 3px solid var(--ars-orange, #e2892f); outline-offset: 2px;
}

.ars-order__dish-input {
  position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none;
}

.ars-order__dish-media {
  position: relative; aspect-ratio: 4 / 3; border-radius: .375rem; overflow: hidden;
  background: var(--ars-bg-soft, #f1f6f5);
}
.ars-order__dish-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ars-order__dish-badges {
  position: absolute; left: .4rem; bottom: .4rem; display: flex; gap: .3rem; flex-wrap: wrap;
}

/* Die Plaketten liegen auf dem Bild - deshalb hier eine deckende Fläche mit
   weißer Schrift statt der getönten Plakette aus dem Listen-Baustein. */
.ars-order__badge {
  font-size: 0.875rem; font-weight: 700; padding: .15rem .45rem; border-radius: 999px;
  color: #fff; text-transform: uppercase; letter-spacing: .02em;
  text-shadow: 0 1px 2px rgb(0 0 0 / 35%);
}
.ars-order__badge--vegan { background: var(--ars-tuerkis, #018186); }
.ars-order__badge--veg { background: var(--ars-tuerkis-dark, #006f74); }
.ars-order__badge--halal { background: var(--ars-orange, #b75c00); }

.ars-order__dish-title { font-weight: 700; }
.ars-order__dish-price { color: var(--ars-text-soft, #5b6670); font-size: .9rem; }
.ars-order__dish-allergens { font-size: 0.875rem; color: var(--ars-text-soft, #5b6670); }

.ars-order__strip { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0; }

.ars-order__strip-day {
  width: 2.75rem; height: 2.75rem; border-radius: 999px;
  border: 1px solid var(--ars-bordeaux, #94132f);
  font: inherit; font-weight: 700; color: #fff; background: var(--ars-bordeaux, #94132f); cursor: pointer;
}
.ars-order__strip-day.has-selection {
  border-color: var(--ars-tuerkis, #018186); background: var(--ars-tuerkis, #018186);
}
/* Tage ohne Angebot: leerer Kasten statt grauer Fläche - grau auf grau war
   nicht zu lesen. */
.ars-order__strip-day[disabled] {
  background: transparent; border-color: var(--ars-border, #d9dedf);
  color: var(--ars-text-soft, #5b6670); cursor: default;
}
.ars-order__strip-day[aria-current="true"] { box-shadow: 0 0 0 3px var(--ars-orange, #e2892f); }
.ars-order__strip-day:focus-visible { outline: 3px solid var(--ars-orange, #e2892f); outline-offset: 2px; }

.ars-order__total { font-size: 1.2rem; font-weight: 700; text-align: center; }
.ars-order__total-rest { margin: .1rem 0 0; text-align: center; font-size: 1.05rem; }

/* --- Guthaben, bevor jemand rechnet ------------------------------------
 * Gleicher Bau wie der grüne »Du hast schon bestellt«-Streifen, nur in
 * Türkis: Auch das hier ist eine gute Nachricht und keine Warnung.
 */
.ars-order__guthaben {
  max-width: 46rem; margin: 0 0 1rem; padding: .8rem 1rem;
  border: 1px solid var(--ars-border, #d9dedf);
  border-left: 4px solid var(--ars-tuerkis-dark, #1d6a6a);
  border-radius: 8px;
  background: var(--ars-bg-soft, #f1f4f4);
  color: var(--ars-text, #1f2933);
  font-size: max(0.9375rem, .9em); line-height: 1.5;
}
.ars-order__guthaben-kopf { margin: 0; font-weight: 600; }
.ars-order__guthaben-kopf i { margin-right: .4rem; color: var(--ars-tuerkis-dark, #1d6a6a); }
.ars-order__guthaben-liste { margin: .4rem 0 0; padding-left: 1.2rem; }
.ars-order__guthaben-text { margin: .35rem 0 0; }

/* Zahlungshinweis: Kasten mit farbiger Kante wie die Aufklapper der
   Arbeitsbereiche. Vorher war die ganze Fläche orange mit weißer Schrift -
   im Dunkelmodus ist die Markenfarbe aufgehellt, da trägt Weiß zu wenig. */
.ars-order__payment {
  margin: 1rem 0 1.5rem; padding: 1rem 1.25rem;
  border: 1px solid var(--ars-border, #d9dedf); border-left: 4px solid var(--ars-orange, #b75c00);
  border-radius: 8px; background: var(--ars-bg-soft, #f1f6f5);
}
.ars-order__payment h2 {
  margin: 0 0 .5rem; font-size: 1.05rem; color: var(--ars-orange, #b75c00);
  display: flex; align-items: center; gap: .5rem;
}
.ars-order__payment p { margin: 0 0 .75rem; }
.ars-order__payment-details {
  display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: 0;
}
.ars-order__payment-details dt { font-weight: 700; }
.ars-order__payment-details dd { margin: 0; font-variant-numeric: tabular-nums; }

/* Knopf und Hinweis untereinander, nicht nebeneinander: Der Satz gehört zum
   gesperrten Knopf und erklärt ihn - seitlich daneben stand er wie ein
   abgeschnittener Rest, oben ausgerichtet und ohne Bezug. */
.ars-order__aktionen {
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  margin: 1.5rem 0 0; text-align: center;
}

@media (max-width: 30rem) {
  .ars-order__card { padding: 1rem; }
  .ars-order__day-title { width: auto; flex: 1 1 auto; font-size: 1rem; }
  .ars-order__payment-details { grid-template-columns: 1fr; }
  .ars-order__payment-details dd { margin-bottom: .4rem; }
}

/* Der Hinweis-Schalter steht zwischen Ausweis und Abbestellen: alles drei
   sind Dinge, die man einmal einstellt und dann vergisst. Bewusst ruhig
   gehalten - die Bestellung ist der Zweck der Seite, nicht dieser Kasten. */
/* Rahmen, Polster und Chevron kommen aus .phx-klapp - hier bleibt nur die
   Symbolfarbe und der Abstand nach aussen. */
/* Kein eigener Abstand: Den setzt der Aufklapper-Baustein fuer alle gleich
   (.phx-klapp, 0 0 .8rem). Mit 1,5 rem oben und unten stand genau diese eine
   Klappe weiter von ihren Nachbarn entfernt als alle anderen. */
.ars-order__melden > summary i { color: var(--ars-gruen, #2e7d32); }
.ars-order__melden p { margin: 0 0 .8rem; }
.ars-order__melden form { margin: 0; }

/* --- Ansicht für Besucher ohne Anmeldung ---------------------------------
   Sie erklärt den Ablauf, bevor sie zum Elternbereich führt. Die Schritte
   sind eine nummerierte Liste: Die Reihenfolge ist Teil der Aussage, und
   mit Zählern bleibt sie auch ohne die Gestaltung erhalten. */

.ars-order__info-lead {
  font-size: 1.05rem; line-height: 1.6; margin: 0 0 1.6rem;
}

.ars-order__schritte {
  list-style: none; counter-reset: schritt; margin: 0 0 2rem; padding: 0;
}
.ars-order__schritte > li {
  counter-increment: schritt; position: relative;
  padding: 0 0 1.1rem 3.2rem; margin: 0;
}
.ars-order__schritte > li::before {
  content: counter(schritt);
  position: absolute; left: 0; top: 0;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ars-tuerkis, #018186); color: #fff;
  font-weight: 700; font-size: .95rem;
}
/* Die Linie verbindet die Schritte optisch; beim letzten wäre sie ein
   Strich ins Leere. */
.ars-order__schritte > li:not(:last-child)::after {
  content: ""; position: absolute; left: 1.1rem; top: 2.5rem; bottom: .2rem;
  width: 2px; background: var(--ars-border, #d9dedf);
}
.ars-order__schritte :is(h2, h3) {
  margin: .25rem 0 .35rem; font-size: 1.02rem;
}
.ars-order__schritte p { margin: 0; line-height: 1.55; }

.ars-order__info-wege {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: 1.5rem;
}
.ars-order__info-weg {
  border: 1px solid var(--ars-border, #d9dedf); border-radius: 8px;
  padding: 1rem 1.1rem; background: var(--ars-bg-soft, #f1f6f5);
  display: flex; flex-direction: column;
}
.ars-order__info-weg :is(h2, h3) { margin: 0 0 .4rem; font-size: 1rem; }
.ars-order__info-weg p {
  margin: 0 0 .9rem; font-size: .93rem; line-height: 1.5;
  color: var(--ars-text-soft, #5b6670); flex: 1;
}
.ars-order__info-weg .phx-button { align-self: flex-start; }

/* --- Reiter zwischen Bestellung und Mensakonto -------------------------- */

.ars-reiter { margin: 0 0 1.5rem; border-bottom: 2px solid var(--ars-border, #d9dedf); }
.ars-reiter ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .25rem;
}
.ars-reiter a,
.ars-reiter__aktiv {
  display: block; padding: .6rem 1.1rem;
  border-radius: 8px 8px 0 0; text-decoration: none;
  font-weight: 600; line-height: 1.3;
  border: 2px solid transparent; border-bottom: 0;
  margin-bottom: -2px;
}
.ars-reiter a { color: var(--ars-text-soft, #5b6670); }
.ars-reiter a:hover,
.ars-reiter a:focus-visible {
  background: var(--ars-bg-soft, #f1f6f5);
  color: var(--ars-tuerkis, #018186);
}
.ars-reiter__aktiv {
  background: var(--ars-bg, #fff);
  border-color: var(--ars-border, #d9dedf);
  color: var(--ars-tuerkis, #018186);
}

/* --- Kindwahl auf der Kontoseite ---------------------------------------- */

.ars-konto__kindwahl {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem;
  margin: 0 0 1.25rem;
}
.ars-konto__kindwahl-text { font-weight: 600; }
.ars-konto__kindwahl .phx-chips { margin: 0; }

/* --- Kontostand ---------------------------------------------------------
   Die einzige Angabe, für die man die Seite im Vorbeigehen öffnet - deshalb
   als Kachel und nicht als Textzeile. */

.ars-konto__stand {
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: flex-start;
  margin: 0 0 1.5rem; padding: 1.1rem 1.25rem;
  border: 1px solid var(--ars-border, #d9dedf);
  border-left: 5px solid var(--ars-gruen, #2e7d32);
  border-radius: 8px; background: var(--ars-bg-soft, #f1f6f5);
}
.ars-konto__stand--offen { border-left-color: var(--ars-bordeaux, #94132f); }

.ars-konto__stand-zahl { flex: none; min-width: 9rem; }
.ars-konto__stand-wort {
  display: block; font-size: .85rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ars-text-soft, #5b6670);
}
.ars-konto__stand-zahl strong {
  display: block; font-size: 1.9rem; line-height: 1.15;
  color: var(--ars-gruen, #2e7d32); font-variant-numeric: tabular-nums;
}
.ars-konto__stand--offen .ars-konto__stand-zahl strong { color: var(--ars-bordeaux, #94132f); }

.ars-konto__stand-text { flex: 1 1 16rem; min-width: 0; }
.ars-konto__stand-text p { margin: 0 0 .5rem; line-height: 1.5; }
.ars-konto__stand-text p:last-child { margin-bottom: 0; }
.ars-konto__zweck { font-variant-numeric: tabular-nums; }
.ars-konto__abgleich { font-size: .88rem; color: var(--ars-text-soft, #5b6670); }

/* --- Meine Bestellungen, Zeitraum für Zeitraum ------------------------- */
/* Ein Aufklapper je Bestellung. Die Zeile muss im Zugeklappten schon alles
   sagen, was zum Wiederfinden nötig ist: Zeitraum, Zahl der Tage, Betrag. */
.ars-konto__zeitraum {
  margin: 0 0 .75rem;
  border: 1px solid var(--ars-border, #d9dedf);
  border-radius: 8px;
  background: var(--ars-bg, #fff);
}
.ars-konto__zeitraum:last-child { margin-bottom: 0; }

.ars-konto__zeitraum > summary {
  display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: baseline;
  padding: .7rem .9rem; cursor: pointer; border-radius: 8px;
  list-style: none;
}
.ars-konto__zeitraum > summary::-webkit-details-marker { display: none; }
/* Dreieck aus Rändern statt eines Font-Awesome-Zeichens: Die Schrift ist auf
   die tatsächlich benutzten Zeichen zugeschnitten, ein neues Symbol stünde
   dort nicht drin und bliebe ein leeres Kästchen. */
.ars-konto__zeitraum > summary::before {
  content: ""; flex: none;
  width: 0; height: 0; margin-top: .35em;
  border-left: .45em solid var(--ars-text-soft, #5b6670);
  border-top: .32em solid transparent;
  border-bottom: .32em solid transparent;
  transition: transform .15s ease;
}
.ars-konto__zeitraum[open] > summary::before { transform: rotate(90deg); }
.ars-konto__zeitraum > summary:hover { background: var(--ars-bg-soft, #f1f6f5); }
.ars-konto__zeitraum > summary:focus-visible {
  outline: 2px solid var(--ars-bordeaux, #94132f); outline-offset: 2px;
}

.ars-konto__zeitraum-wann { font-weight: 600; font-variant-numeric: tabular-nums; }
.ars-konto__zeitraum-was {
  color: var(--ars-text-soft, #5b6670); font-variant-numeric: tabular-nums;
}

/* Der Rahmen für die Tabelle trägt die Abstände, nicht die Tabelle selbst:
   100 % Breite PLUS seitlicher Rand ergibt mehr als der Kasten hergibt - die
   Tabelle stand sonst rechts über den Rand des Aufklappers hinaus. */
.ars-konto__tabelle {
  margin: 0 .9rem .9rem;
  max-width: calc(100% - 1.8rem);
  overflow-x: auto;
}
.ars-konto__tage { width: 100%; margin: 0; }
/* Gleich breite Ziffern, damit die Daten untereinander stehen. */
.ars-konto__tage td[data-label="Tag"],
.ars-konto__tage td[data-label="Preis"] { font-variant-numeric: tabular-nums; }
.ars-konto__uhrzeit {
  margin-left: .4rem; font-size: .88rem; color: var(--ars-text-soft, #5b6670);
  font-variant-numeric: tabular-nums;
}

/* --- Abbestellen aus der Liste heraus ---------------------------------- */
.ars-konto__abwahl {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.75rem; min-height: 2.75rem; /* Fingerkuppe, nicht Mauszeiger */
  cursor: pointer;
}
.ars-konto__abwahl input { width: 1.15rem; height: 1.15rem; cursor: pointer; }
/* Breiter Schirm: die Spaltenueberschrift sagt, wozu das Kaestchen dient. */
.ars-konto__abwahl-text { display: none; }
.ars-konto__keinewahl { color: var(--ars-text-soft, #5b6670); }

.ars-konto__tageaktion {
  display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center;
  margin: 0 .9rem .9rem;
}
.ars-konto__frist {
  flex: 1 1 18rem; margin: 0;
  font-size: .88rem; line-height: 1.45; color: var(--ars-text-soft, #5b6670);
}

/* --- Was auf dem Konto passiert ist ------------------------------------ */
.ars-konto__verlauf-hinweis {
  display: block; margin-top: .15rem;
  font-size: .88rem; color: var(--ars-text-soft, #5b6670);
}

/* --- Betragsspalte im Kontoauszug -------------------------------------- */
.ars-konto__betrag {
  text-align: right; white-space: nowrap;
  font-variant-numeric: tabular-nums; /* Beträge untereinander ausrichten */
}
.ars-konto__betrag--ab { color: var(--ars-bordeaux, #94132f); }

.ars-konto__summe th,
.ars-konto__summe td {
  border-top: 2px solid var(--ars-border, #d9dedf);
  background: var(--ars-bg-soft, #f1f6f5);
  font-weight: 600;
}
.ars-konto__summe--offen td.ars-konto__betrag { color: var(--ars-bordeaux, #94132f); }

/* --- Handy: aus den Tabellen werden Karten -----------------------------
 * Die Grenze ist dieselbe wie in bedienung.css (.phx-list--karten, 720px) -
 * mit zwei verschiedenen Grenzen gaebe es einen Streifen dazwischen, in dem
 * die halbe Umstellung gilt. Der Baustein legt die Karte an, hier steht nur,
 * wo innerhalb der Karte was hingehoert.
 */
@media (max-width: 720px) {

  /* Der Aufklapper hat selbst schon Rand; drinnen reicht weniger. Scrollen
     muss hier nichts mehr, die Karten sind so breit wie der Schirm. */
  .ars-konto__tabelle {
    margin: 0 .6rem .9rem;
    max-width: calc(100% - 1.2rem);
    overflow-x: visible;
  }

  /* Eine Karte je Essenstag:
       Mo, 16.11.2026
       Spaghetti mit Tomatensauce
       6,00 €   [bestellt]        [x] Abbestellen
     Die Etiketten aus data-label bleiben hier weg: Datum, Gericht und Preis
     sagen von selbst, was sie sind - "Tag: Mo, 16.11.2026" waere nur Laerm. */
  .ars-konto__tage tr.phx-list__zeile {
    grid-template-columns: auto 1fr auto;
    gap: .15rem .6rem;
    padding: .7rem .8rem;
  }
  .ars-konto__tage td[data-label]::before { content: none; }
  .ars-konto__tage td[data-label="Tag"] {
    grid-column: 1 / -1; grid-row: 1;
    font-weight: 700;
  }
  .ars-konto__tage td[data-label="Gericht"] {
    grid-column: 1 / -1; grid-row: 2;
    overflow-wrap: anywhere;
  }
  .ars-konto__tage td[data-label="Preis"] {
    grid-column: 1; grid-row: 3; align-self: center;
  }
  .ars-konto__tage td[data-label="Stand"] {
    grid-column: 2; grid-row: 3; justify-self: start; align-self: center;
  }
  .ars-konto__tage td[data-label="Abbestellen"] {
    grid-column: 3; grid-row: 3; justify-self: end;
  }

  /* Der Knopf traegt jetzt seinen Namen, das Kaestchen allein stuende sonst
     ohne Ueberschrift in der Karte. */
  .ars-konto__abwahl {
    gap: .4rem; padding: 0 .1rem;
    border: 1px solid var(--ars-border, #d9dedf); border-radius: 999px;
    padding-right: .7rem; padding-left: .45rem;
  }
  .ars-konto__abwahl-text { display: inline; font-size: .9rem; }
  /* Tage, die niemand mehr abbestellen kann, zeigen auf der Karte gar nichts:
     ein "-" ohne Spaltenkopf ist eine Frage, keine Antwort. */
  .ars-konto__tage .ars-konto__keinewahl { display: none; }

  /* Kontoauszug: Datum klein darueber, Betrag rechts daneben. */
  .ars-konto__verlauf tr.phx-list__zeile { grid-template-columns: 1fr auto; }
  .ars-konto__verlauf td[data-label="Wann"] {
    grid-column: 1; grid-row: 1;
    font-size: .88rem; color: var(--ars-text-soft, #5b6670);
  }
  .ars-konto__verlauf td[data-label="Wann"]::before { content: none; }
  .ars-konto__verlauf td[data-label="Was"] { grid-column: 1; grid-row: 2; }
  .ars-konto__verlauf td[data-label="Was"]::before { content: none; }
  .ars-konto__verlauf td[data-label="Betrag"] {
    grid-column: 2; grid-row: 1 / span 2; align-self: center;
    font-size: 1.05rem;
  }
  .ars-konto__verlauf td[data-label="Betrag"]::before { content: none; }

  /* Der Schlussstrich ist keine .phx-list__zeile - ohne eigene Regel bliebe
     er als Tabellenzeile neben lauter Karten stehen und zoege seine eigenen
     Spaltenbreiten auf. */
  /* Der Tabellenname muss im Selektor stehen: list.css setzt .phx-list tr
     und .phx-list td auf die Tabellenwerte - ein Selektor aus einer Klasse
     allein verliert dagegen und die Summe blieb eine schmale Tabellenzeile
     am linken Rand (gesehen 16.11.2026). */
  .ars-konto__verlauf tfoot { display: block; }
  .phx-list tr.ars-konto__summe {
    display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem;
    align-items: center;
    padding: .7rem .8rem;
    border: 1px solid var(--ars-border, #d9dedf); border-radius: 8px;
    background: var(--ars-bg-soft, #f1f6f5);
  }
  .phx-list tr.ars-konto__summe > th,
  .phx-list tr.ars-konto__summe > td {
    display: block; padding: 0; border: 0;
  }
  .phx-list tr.ars-konto__summe > td:empty { display: none; }
  .phx-list tr.ars-konto__summe > th { text-align: left; }
  .ars-konto__betrag { text-align: right; }

  /* Knopf und Fristhinweis darunter stehen am Rand der Karten, nicht daneben. */
  .ars-konto__tageaktion { margin: 0 .6rem .9rem; }
}

/* --- Mehrere Kinder auf einer Seite ------------------------------------ */
/* Der Name steht als Beschriftung über dem Satz Gerichte dieses Kindes.
   Ohne ihn wüsste bei zwei Kindern niemand, welche Reihe zu wem gehört. */
.ars-order__kindname {
  display: block; width: 100%;
  margin: 0 0 .6rem; padding: .35rem 0 0;
  font-size: 1.05rem; font-weight: 700;
  color: var(--ars-text, #1f2a30);
}
.ars-order__kindname small {
  margin-left: .4rem; font-size: .85rem; font-weight: 400;
  color: var(--ars-text-soft, #5b6670);
}

/* Zwischen den Kindern eine ruhige Trennung - sie stehen untereinander,
   und ohne Kante läuft die zweite Reihe optisch in die erste. */
.ars-order__dishes--kind + .ars-order__dishes--kind {
  margin-top: 1.25rem; padding-top: 1.25rem;
  border-top: 1px solid var(--ars-border, #d9dedf);
}

.ars-order__zahlliste { margin: 0 0 1.25rem; padding: 0; list-style: none; }
.ars-order__zahlkind {
  margin: 0 0 .75rem; padding: .8rem 1rem;
  border: 1px solid var(--ars-border, #d9dedf); border-radius: 8px;
  background: var(--ars-bg, #fff);
}
.ars-order__zahlkind:last-child { margin-bottom: 0; }
.ars-order__zahlkind p { margin: 0 0 .3rem; }
.ars-order__zahlkind p:last-child { margin-bottom: 0; }
.ars-order__zahlklasse { margin-left: .4rem; color: var(--ars-text-soft, #5b6670); }
.ars-order__zahlbetrag { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.ars-order__zahlzweck { font-variant-numeric: tabular-nums; }
