/* CCS Kundenbereich – ruhig, würdevoll, mobil zuerst */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }

:root {
  --petrol: #2C6E7A;
  --petrol-dunkel: #22565F;
  --petrol-hell: #E4EEEF;
  --basis: #F7F5F0;
  --greige: #D8CFC4;
  --greige-hell: #EDE8E1;
  --text: #23454B;
  --text-leise: #5A7277;
  --weiss: #FFFFFF;
  --erfolg: #3F7A5E;
  --erfolg-hell: #E6F0EA;
  --warnung: #8A6A2F;
  --warnung-hell: #F4ECDD;
  --fehler: #9A4B45;
  --fehler-hell: #F5E6E4;
  --radius: 20px;
  --radius-klein: 12px;
  --schatten: 0 1px 2px rgba(35, 69, 75, .06), 0 6px 20px rgba(35, 69, 75, .06);
  --leiste-hoehe: 72px;
  --schrift-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --schrift-titel: "Poppins", "Inter", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--basis);
  color: var(--text);
  font-family: var(--schrift-text);
  font-size: 17px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.mit-leiste { padding-bottom: calc(var(--leiste-hoehe) + env(safe-area-inset-bottom)); }

h1, h2, h3 { font-family: var(--schrift-titel); font-weight: 600; line-height: 1.25; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.06rem; font-weight: 500; }
p { margin: 0 0 1em; }
a { color: var(--petrol); text-underline-offset: 3px; }
a:hover { color: var(--petrol-dunkel); }
img, video { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--petrol); outline-offset: 3px; border-radius: 6px; }

.leise { color: var(--text-leise); }
.klein { font-size: .9rem; }
.mitte { text-align: center; }
.versteckt { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Kopf ---------- */
.kopf {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 18px 10px;
  background: rgba(247, 245, 240, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--greige-hell);
}
.kopf__marke { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); min-width: 0; }
.kopf__logo {
  flex: none; width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--petrol); color: var(--weiss);
  font-family: var(--schrift-titel); font-weight: 600; font-size: .82rem; letter-spacing: .04em;
}
.kopf__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.kopf__text strong { font-family: var(--schrift-titel); font-weight: 600; font-size: .98rem; }
.kopf__text span { color: var(--text-leise); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kopf__konto {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; color: var(--petrol-dunkel);
  background: var(--weiss); border: 1px solid var(--greige-hell);
}

/* ---------- Inhalt ---------- */
.inhalt { width: 100%; max-width: 720px; margin: 0 auto; padding: 20px 16px 28px; flex: 1; }
.inhalt--breit { max-width: 1100px; }
body.admin .inhalt { max-width: 1100px; }

.seitenkopf { margin: 4px 4px 18px; }
.seitenkopf h1 { margin-bottom: .2em; }
.seitenkopf p { margin: 0; color: var(--text-leise); }
.zurueck { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 12px; text-decoration: none; font-weight: 500; min-height: 44px; }
.zurueck .symbol { width: 20px; height: 20px; }

.karte {
  background: var(--weiss);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 22px 20px;
  margin: 0 0 16px;
}
.karte--schmal { max-width: 460px; margin-left: auto; margin-right: auto; }
.karte--betont { border: 2px solid var(--petrol); }
.karte--ruhig { background: var(--greige-hell); box-shadow: none; }
.karte > :last-child { margin-bottom: 0; }
.karte__kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.karte__kopf h2 { margin: 0; }
.karte__titel { display: flex; align-items: center; gap: 10px; }
.karte__titel .symbol { width: 26px; height: 26px; color: var(--petrol); }

a.karte--link { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--text); }
a.karte--link:hover { box-shadow: 0 2px 4px rgba(35,69,75,.08), 0 10px 26px rgba(35,69,75,.1); }
.karte--link .karte__symbol { flex: none; width: 54px; height: 54px; border-radius: 16px; background: var(--petrol-hell); color: var(--petrol-dunkel); display: grid; place-items: center; }
.karte--link .karte__symbol .symbol { width: 28px; height: 28px; }
.karte--link .karte__text { flex: 1; min-width: 0; }
.karte--link .karte__text strong { display: block; font-family: var(--schrift-titel); font-weight: 500; font-size: 1.08rem; }
.karte--link .karte__text span { color: var(--text-leise); font-size: .95rem; }
.karte--link > .symbol { width: 22px; height: 22px; color: var(--greige); flex: none; }

.symbol { width: 24px; height: 24px; flex: none; }

/* ---------- Hinweise ---------- */
.hinweis { border-radius: var(--radius-klein); padding: 14px 16px; margin: 0 0 16px; background: var(--petrol-hell); color: var(--petrol-dunkel); }
.hinweis--ok { background: var(--erfolg-hell); color: #2D5A45; }
.hinweis--fehler { background: var(--fehler-hell); color: #7A3A35; }
.hinweis--warnung { background: var(--warnung-hell); color: #6B5224; }
.hinweis--ruhig { background: var(--greige-hell); color: var(--text); }
.hinweis strong { font-weight: 600; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 26px;
  border: 2px solid var(--petrol); border-radius: 999px;
  background: var(--petrol); color: var(--weiss);
  font: 600 1.02rem/1.2 var(--schrift-text);
  text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.knopf:hover { background: var(--petrol-dunkel); border-color: var(--petrol-dunkel); color: var(--weiss); }
.knopf:disabled, .knopf[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.knopf .symbol { width: 22px; height: 22px; }
.knopf--breit { width: 100%; }
.knopf--zweit { background: var(--weiss); color: var(--petrol-dunkel); border-color: var(--greige); }
.knopf--zweit:hover { background: var(--petrol-hell); color: var(--petrol-dunkel); border-color: var(--petrol); }
.knopf--leise { background: transparent; color: var(--petrol-dunkel); border-color: transparent; padding-left: 14px; padding-right: 14px; }
.knopf--leise:hover { background: var(--petrol-hell); color: var(--petrol-dunkel); border-color: transparent; }
.knopf--gefahr { background: var(--weiss); color: var(--fehler); border-color: #E2C4C0; }
.knopf--gefahr:hover { background: var(--fehler-hell); color: #7A3A35; border-color: var(--fehler); }
.knopf--klein { min-height: 44px; padding: 8px 18px; font-size: .95rem; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.knopfreihe--stapel { flex-direction: column; }
.knopfreihe--stapel .knopf { width: 100%; }
.inline { display: inline; margin: 0; }

/* ---------- Formulare ---------- */
.formular { display: flex; flex-direction: column; gap: 6px; }
.formular label, .feldname { font-weight: 600; margin-top: 12px; }
.formular label:first-of-type { margin-top: 4px; }
.feldhilfe { font-size: .92rem; color: var(--text-leise); margin: -2px 0 4px; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="search"], input:not([type]), select, textarea {
  width: 100%; min-height: 54px;
  padding: 13px 16px;
  font: 400 17px/1.4 var(--schrift-text); color: var(--text);
  background: var(--weiss);
  border: 1.5px solid var(--greige); border-radius: var(--radius-klein);
  -webkit-appearance: none; appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C6E7A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 22px; padding-right: 46px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--petrol); box-shadow: 0 0 0 3px rgba(44, 110, 122, .18); }
.formular .knopf { margin-top: 18px; }

.haken { display: flex; align-items: flex-start; gap: 12px; font-weight: 500 !important; cursor: pointer; padding: 14px 16px; background: var(--basis); border-radius: var(--radius-klein); border: 1.5px solid var(--greige-hell); }
.haken input { flex: none; width: 26px; height: 26px; margin: 1px 0 0; accent-color: var(--petrol); }

/* Themen als große Auswahlfelder */
.auswahl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0; }
.auswahl input { position: absolute; opacity: 0; pointer-events: none; }
.auswahl label {
  margin: 0 !important; display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 58px; padding: 10px 12px; border-radius: 999px;
  background: var(--weiss); border: 1.5px solid var(--greige);
  font-weight: 500 !important; cursor: pointer;
}
.auswahl input:checked + label { background: var(--petrol); border-color: var(--petrol); color: var(--weiss); }
.auswahl input:focus-visible + label { outline: 3px solid var(--petrol); outline-offset: 2px; }

/* ---------- Hochladen ---------- */
.dateiwahl {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  min-height: 150px; padding: 22px; border-radius: var(--radius);
  border: 2px dashed var(--greige); background: var(--basis); cursor: pointer; color: var(--petrol-dunkel);
  margin: 0 !important;
}
.dateiwahl:hover, .dateiwahl.ist-ueber { border-color: var(--petrol); background: var(--petrol-hell); }
.dateiwahl .symbol { width: 38px; height: 38px; }
.dateiwahl strong { font-family: var(--schrift-titel); font-weight: 500; font-size: 1.1rem; }
.dateiwahl span { color: var(--text-leise); font-size: .92rem; font-weight: 400; }
.dateiwahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.auswahlliste { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.auswahlliste li { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--greige-hell); }
.auswahlliste img { width: 100%; height: 100%; object-fit: cover; }
.auswahlliste .platzhalter { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--petrol-dunkel); font-size: .78rem; padding: 6px; text-align: center; word-break: break-all; }
.auswahlliste button {
  position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: rgba(35, 69, 75, .78); color: var(--weiss); font-size: 20px; line-height: 1; cursor: pointer;
}

.fortschritt { margin: 18px 0 4px; }
.fortschritt__balken { height: 14px; border-radius: 999px; background: var(--greige-hell); overflow: hidden; }
.fortschritt__fuellung { height: 100%; width: 0; border-radius: 999px; background: var(--petrol); transition: width .25s ease; }
.fortschritt__text { margin-top: 8px; color: var(--text-leise); font-size: .95rem; }

.danke { text-align: center; padding: 30px 20px; }
.danke__symbol { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; background: var(--erfolg-hell); color: var(--erfolg); display: grid; place-items: center; }
.danke__symbol .symbol { width: 38px; height: 38px; }

/* Raster der Uploads */
.raster { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.kachel { background: var(--weiss); border-radius: 16px; overflow: hidden; box-shadow: var(--schatten); display: flex; flex-direction: column; position: relative; }
.kachel__bild { display: block; aspect-ratio: 1; background: var(--greige-hell); position: relative; }
.kachel__bild img { width: 100%; height: 100%; object-fit: cover; }
.kachel__bild--video { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--petrol-dunkel); text-decoration: none; font-size: .9rem; }
.kachel__bild--video .symbol { width: 40px; height: 40px; }
.kachel__text { padding: 10px 12px 12px; font-size: .9rem; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.kachel__text .leise { font-size: .85rem; }
.kachel__aktion { padding: 0 8px 8px; }
.kachel__aktion .knopf { width: 100%; }
.kachel__marke { position: absolute; top: 8px; left: 8px; }
.kachel__wahl { position: absolute; top: 6px; right: 6px; z-index: 2; }
.kachel__wahl input { width: 30px; height: 30px; accent-color: var(--petrol); cursor: pointer; }
.kachel.ist-gewaehlt { outline: 3px solid var(--petrol); }

/* ---------- Marken (Status) ---------- */
.marke { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; background: var(--greige-hell); color: var(--text); white-space: nowrap; }
.marke--neu { background: var(--petrol); color: var(--weiss); }
.marke--verwendet { background: var(--greige-hell); color: var(--text-leise); }
.marke--entwurf { background: var(--greige-hell); color: var(--text-leise); }
.marke--zur_freigabe { background: var(--warnung-hell); color: #6B5224; }
.marke--freigegeben { background: var(--erfolg-hell); color: #2D5A45; }
.marke--aenderung_gewuenscht { background: var(--fehler-hell); color: #7A3A35; }
.marke--veroeffentlicht { background: var(--petrol-hell); color: var(--petrol-dunkel); }
.marke--paket { background: var(--petrol-hell); color: var(--petrol-dunkel); }
.marke--gesperrt { background: var(--fehler-hell); color: #7A3A35; }

/* ---------- Post-Vorschau ---------- */
.post { background: var(--weiss); border: 1px solid var(--greige-hell); border-radius: 16px; overflow: hidden; margin: 4px 0 0; }
.post__kopf { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.post__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--petrol); color: var(--weiss); display: grid; place-items: center; font: 600 .85rem var(--schrift-titel); }
.post--instagram .post__avatar { box-shadow: 0 0 0 2px var(--weiss), 0 0 0 4px var(--greige); }
.post__wer { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.post__wer strong { font-size: .95rem; }
.post__wer span { font-size: .85rem; color: var(--text-leise); }
.post__bilder { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; background: var(--basis); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.post__bilder::-webkit-scrollbar { display: none; }
.post__bilder img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: center; }
.post--google .post__bilder img, .post--facebook .post__bilder img { aspect-ratio: 4 / 3; }
.post__wisch { margin: 6px 14px 0; font-size: .82rem; color: var(--text-leise); }
.post__text { padding: 12px 14px 16px; font-size: .97rem; white-space: normal; overflow-wrap: anywhere; }
.post--google .post__text, .post--facebook .post__text { padding-top: 0; }

.freigabe-aktionen { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.freigabe-aktionen form { margin: 0; }
.freigabe-aktionen .knopf { width: 100%; }
details.aenderung > summary { list-style: none; }
details.aenderung > summary::-webkit-details-marker { display: none; }
details.aenderung[open] > summary { background: var(--petrol-hell); border-color: var(--petrol); }
details.aenderung .formular { margin-top: 12px; }

/* ---------- Listen ---------- */
.liste { list-style: none; margin: 0; padding: 0; }
.liste > li { border-top: 1px solid var(--greige-hell); }
.liste > li:first-child { border-top: 0; }
.zeile { display: flex; align-items: center; gap: 14px; padding: 14px 2px; text-decoration: none; color: var(--text); min-height: 64px; }
a.zeile:hover { color: var(--petrol-dunkel); }
.zeile__bild { flex: none; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--greige-hell); display: grid; place-items: center; color: var(--petrol); }
.zeile__bild img { width: 100%; height: 100%; object-fit: cover; }
.zeile__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.zeile__text strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.zeile__text span { color: var(--text-leise); font-size: .92rem; }
.zeile__ende { flex: none; display: flex; align-items: center; gap: 8px; }
.zeile > .symbol { color: var(--greige); }

.zahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 16px; }
.zahl { background: var(--weiss); border-radius: 16px; padding: 14px 12px; box-shadow: var(--schatten); text-decoration: none; color: var(--text); }
.zahl strong { display: block; font: 600 1.7rem/1.1 var(--schrift-titel); color: var(--petrol-dunkel); }
.zahl span { font-size: .85rem; color: var(--text-leise); }

.monat { font: 500 .95rem var(--schrift-titel); color: var(--text-leise); margin: 22px 4px 10px; text-transform: none; }

.filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.filter a { display: inline-flex; align-items: center; min-height: 42px; padding: 6px 16px; border-radius: 999px; background: var(--weiss); border: 1.5px solid var(--greige); color: var(--text); text-decoration: none; font-size: .95rem; }
.filter a.ist-aktiv { background: var(--petrol); border-color: var(--petrol); color: var(--weiss); }

.tabelle { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tabelle th, .tabelle td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--greige-hell); vertical-align: top; }
.tabelle th { font-weight: 600; color: var(--text-leise); border-top: 0; }

.protokoll { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--greige-hell); }
.protokoll li { position: relative; padding: 0 0 14px 6px; display: flex; flex-direction: column; }
.protokoll li::before { content: ""; position: absolute; left: -25px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--greige); }
.protokoll li:first-child::before { background: var(--petrol); }
.protokoll__wann { font-size: .85rem; color: var(--text-leise); }
.protokoll__kommentar { margin-top: 6px; padding: 10px 12px; background: var(--basis); border-radius: 10px; font-size: .95rem; }

.trenner { border: 0; border-top: 1px solid var(--greige-hell); margin: 20px 0; }
.technik { white-space: pre-wrap; font-size: .8rem; background: var(--basis); padding: 12px; border-radius: 10px; overflow: auto; }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88rem; background: var(--basis); border-radius: 10px; padding: 12px 14px; word-break: break-all; display: block; }

/* ---------- Fuß ---------- */
.fuss { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 18px 16px 26px; color: var(--text-leise); font-size: .9rem; }
.fuss a { color: var(--text-leise); }
.fuss__marke { flex-basis: 100%; text-align: center; font-size: .82rem; }

/* ---------- Untere Leiste ---------- */
.leiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: space-around;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: var(--weiss);
  border-top: 1px solid var(--greige-hell);
  box-shadow: 0 -4px 18px rgba(35, 69, 75, .06);
}
.leiste__punkt {
  position: relative; flex: 1; max-width: 140px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 58px; border-radius: 16px;
  color: var(--text-leise); text-decoration: none; font-size: .82rem; font-weight: 500;
}
.leiste__punkt .symbol { width: 26px; height: 26px; }
.leiste__punkt.ist-aktiv { color: var(--petrol-dunkel); background: var(--petrol-hell); }
.leiste__zahl { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--petrol); color: var(--weiss); font-size: .75rem; font-weight: 600; display: grid; place-items: center; }

/* ---------- Größere Bildschirme ---------- */
@media (min-width: 640px) {
  .inhalt { padding: 28px 24px 40px; }
  .karte { padding: 26px 28px; }
  .raster { grid-template-columns: repeat(3, 1fr); }
  .auswahl { grid-template-columns: repeat(3, 1fr); }
  .auswahlliste { grid-template-columns: repeat(5, 1fr); }
  .freigabe-aktionen { flex-direction: row; align-items: flex-start; }
  .freigabe-aktionen > * { flex: 1; }
  h1 { font-size: 1.8rem; }
}
@media (min-width: 960px) {
  .spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
.ohne-rahmen { border: 0; padding: 0; margin: 0; min-width: 0; }

/* Admin: Kacheln passen sich der Spaltenbreite an */
@media (min-width: 640px) {
  body.admin .raster { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
.kachel__text input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--petrol); vertical-align: middle; margin-right: 6px; }
input[type="file"] {
  width: 100%; padding: 14px; font: 400 16px var(--schrift-text); color: var(--text-leise);
  background: var(--basis); border: 2px dashed var(--greige); border-radius: var(--radius-klein); cursor: pointer;
}
input[type="file"]::file-selector-button {
  margin-right: 14px; padding: 10px 18px; border: 0; border-radius: 999px;
  background: var(--petrol); color: var(--weiss); font: 600 15px var(--schrift-text); cursor: pointer;
}

/* Lange Titel in Listen einzeilig kürzen statt Wort für Wort umbrechen */
.zeile__text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zeile__text span { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .zeile { flex-wrap: wrap; }
  .zeile__text { flex: 1 1 calc(100% - 90px); }
  .zeile__ende .marke { font-size: .78rem; }
}
@media (max-width: 480px) {
  .zeile__bild ~ .zeile__ende { margin-left: 70px; }
}

/* ---------- Lesbarkeit auf iPhone und Android ---------- */
/* Helle Darstellung auch im Dunkelmodus des Handys, damit Eingabefelder lesbar bleiben */
:root { color-scheme: light; }
/* Status-Marken und Zahlen nicht kleiner als 14 px */
.marke, .zeile__ende .marke { font-size: .875rem; }
.leiste__zahl { font-size: .875rem; min-width: 24px; height: 24px; }
/* Textlinks unter Formularen gut treffbar */
.mitte a { display: inline-block; padding: 12px 8px; }
/* Unsichtbares Dateifeld im großen Auswahlfeld bleibt klein */
.dateiwahl input[type="file"] { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; }
/* Knöpfe in Listenzeilen dürfen umbrechen statt über den Rand zu ragen */
.zeile__ende { flex-wrap: wrap; justify-content: flex-end; max-width: 100%; }
.zeile__ende form.inline { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
@media (max-width: 480px) {
  .zeile__ende { flex: 1 1 100%; justify-content: flex-start; }
  .zeile__ende form.inline { justify-content: flex-start; }
  .zeile__bild ~ .zeile__ende { flex-basis: calc(100% - 70px); }
}
