/* Kundenportal (/portal): baut auf style.css auf, zuerst fürs Handy. Keine Inline-Stile in den Seiten (CSP). */
body.portal { font-size: 16px; }
.portal-test { background: #cc0000; color: #fff; font-weight: 800; letter-spacing: .15em; text-align: center; padding: 6px 10px; }
.portal-kopf { position: static; }
.portal-kopf .zeile { display: flex; align-items: center; gap: 12px; padding: 10px 16px; max-width: 900px; margin: 0 auto; }
.portal-kopf .marke { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; min-width: 0; }
.portal-kopf .marke:hover { text-decoration: none; }
.portal-kopf img { max-height: 40px; max-width: 140px; background: #fff; border-radius: 6px; padding: 2px; }
.portal-kopf .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-kopf form { margin-left: auto; }
.portal-kopf form button { min-height: 40px; padding: 6px 12px; }
nav.portal-menue { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px 10px; max-width: 900px; margin: 0 auto;
  scrollbar-width: none; flex-wrap: nowrap; }
nav.portal-menue::-webkit-scrollbar { display: none; }
nav.portal-menue a { flex: none; border: 1px solid var(--linie); border-radius: 99px; padding: 8px 14px; min-height: 40px;
  background: var(--flaeche); }
nav.portal-menue a.aktiv { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
main.portal-inhalt { max-width: 900px; padding: 16px 16px 48px; }
.portal-inhalt h1 { font-size: 22px; }
.portal-inhalt .karte { margin-bottom: 14px; }
.portal-schmal { max-width: 460px; margin: 0 auto; }
.portal-inhalt form .formular { grid-template-columns: 1fr; }
.portal-inhalt input, .portal-inhalt select, .portal-inhalt textarea { width: 100%; font-size: 16px; }   /* 16px: kein Zoom am iPhone */
.portal-inhalt button.haupt, .portal-inhalt .knopf.haupt { justify-content: center; }
.portal-inhalt .breit { width: 100%; justify-content: center; }
.haken { flex-direction: row !important; gap: 10px !important; align-items: flex-start; color: var(--text) !important; font-size: 15px !important; }
.haken input { width: 24px !important; height: 24px; min-height: 0; flex: none; margin-top: 1px; }
.wahl { display: grid; gap: 8px; margin: 6px 0 4px; }
.wahl label { flex-direction: row; align-items: center; gap: 10px; border: 1px solid var(--linie); border-radius: 10px; padding: 10px 12px;
  color: var(--text); font-size: 15px; background: var(--flaeche); }
.wahl input { width: 22px !important; height: 22px; min-height: 0; flex: none; }
.wahl .klein { color: var(--leise); }
.liste { list-style: none; margin: 0; padding: 0; }
.liste li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.liste li:last-child { border-bottom: 0; }
.liste .text { min-width: 0; }
.liste .rechts { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.artikelzeile { display: grid; grid-template-columns: 1fr 96px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--linie); }
.artikelzeile input { text-align: right; }
.kacheln { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: 14px; }
.kacheln a { display: block; padding: 14px; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche);
  color: var(--text); font-weight: 600; box-shadow: var(--schatten); }
.kacheln a:hover { text-decoration: none; border-color: var(--akzent); }
details.portal-klappe { margin-bottom: 12px; }
details.portal-klappe > summary { cursor: pointer; font-weight: 650; padding: 12px 14px; border: 1px solid var(--linie);
  border-radius: var(--radius); background: var(--flaeche); list-style: none; }
details.portal-klappe > summary::-webkit-details-marker { display: none; }
details.portal-klappe > summary::after { content: " ▾"; color: var(--leise); }
details.portal-klappe[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
details.portal-klappe > .karte { border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
footer.portal-fuss { max-width: 900px; margin: 0 auto; padding: 16px; color: var(--leise); font-size: 13px; display: flex;
  flex-wrap: wrap; gap: 6px 16px; border-top: 1px solid var(--linie); }
.passwort-regel { font-size: 13px; color: var(--leise); }
/* Marke einer Gesellschaft: eigene Zeile oben, Impressum-Angaben eigene Zeile unten */
footer.portal-fuss .portal-marke-von, footer.portal-fuss span.klein { flex-basis: 100%; }
footer.portal-fuss span.klein { font-size: 12px; opacity: .9; }
@media (min-width: 700px) {
  .portal-inhalt form .formular { grid-template-columns: 1fr 1fr; }
  .portal-inhalt form .formular .ganz { grid-column: 1 / -1; }
}

/* Immer hell (html.portal-hell: externe Seite, Layout „Band“) – auch Formularfelder und Bildlaufleisten */
html.portal-hell { color-scheme: light; }

/* Layout „Band“ (firma.PORTAL_LAYOUTS, je Gesellschaft/Filiale): weißer Kopf nur mit Logo, Überschrift auf einem Band in der
   Akzentfarbe, Karten leicht in der Akzentfarbe getönt, eckige Knöpfe, Fuß in der Akzentfarbe, Schrift Roboto (leicht).
   Immer hell (wie die Webseiten der Firmen). Die Akzentfarbe kommt aus /portal/farbe/<id>.css (portal_farbe). */
body.portal-band { --bg: #ffffff; --flaeche: #ffffff; --text: #444444; --leise: #5f6b66; --linie: #c9d4ce; --radius: 0;
  --schatten: none; --band-hell: color-mix(in srgb, var(--akzent) 13%, #ffffff);
  background: #fff; color: var(--text); font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, sans-serif; font-weight: 300;
  line-height: 1.65; color-scheme: light; }
.portal-band b, .portal-band strong { font-weight: 500; }
.portal-band a { color: var(--akzent); font-weight: 500; }
.portal-band .portal-kopf { background: #fff; border-bottom: 0; }
.portal-band .portal-kopf .zeile { padding: 18px 16px; min-height: 84px; }
.portal-band .portal-kopf .marke { color: var(--akzent); font-weight: 500; font-size: 20px; }
.portal-band .portal-kopf img { max-height: 56px; max-width: 230px; background: none; border-radius: 0; padding: 0; }
.portal-band .portal-kopf .marke img + .name { display: none; }   /* Logo genügt – wie auf der Webseite */
.portal-band main.portal-inhalt { padding-top: 0; }
.portal-band .portal-inhalt h1 { color: #fff; background: var(--akzent); font-weight: 500; font-size: 28px; line-height: 1.25;
  padding: 34px 0 30px; margin: 0 0 30px; box-shadow: 0 0 0 100vmax var(--akzent); clip-path: inset(0 -100vmax); }
.portal-band .portal-inhalt h1 + p { margin-top: 0; }
.portal-band h2 { font-weight: 500; color: var(--akzent); font-size: 21px; }
.portal-band .karte { background: var(--band-hell); border: 0; padding: 20px; }
.portal-band input, .portal-band select, .portal-band textarea { background: #fff; border: 1px solid var(--linie); border-radius: 0;
  font-weight: 300; color: #333; }
.portal-band input:focus, .portal-band select:focus, .portal-band textarea:focus { outline: 2px solid var(--akzent); outline-offset: 0; }
.portal-band label { color: #333; font-weight: 400; }
.portal-band button, .portal-band .knopf { border-radius: 0; border: 1px solid var(--akzent); color: var(--akzent); background: #fff;
  font-weight: 500; }
.portal-band button.haupt, .portal-band .knopf.haupt { background: var(--akzent); color: #fff; }
.portal-band button.haupt:hover, .portal-band .knopf.haupt:hover { filter: brightness(1.12); text-decoration: none; }
.portal-band .hinweis { border-radius: 0; }
.portal-band footer.portal-fuss { max-width: none; margin: 40px 0 0; background: var(--akzent); color: #fff; border-top: 0;
  padding: 18px max(16px, calc((100% - 868px) / 2)); }
.portal-band footer.portal-fuss a { color: #fff; font-weight: 500; }

/* Farbe der Hauptknöpfe je Marke (Filiale → Kundenportal „Knopffarbe“, z. B. Orange wie auf cleancard.de): --knopf aus
   /portal/farbe/<id>.css, sonst die Akzentfarbe. Gilt für beide Layouts. */
body.portal button.haupt, body.portal .knopf.haupt { background: var(--knopf, var(--akzent)); border-color: var(--knopf, var(--akzent));
  color: #fff; }
