/* Ettlich Gastronomie – Service-Portal */
:root {
  /* Marke */
  --rot: #c8382a;
  --rot-dunkel: #a32a1e;
  --rot-hell: #fdeeeb;
  /* Flächen und Text */
  --papier: #f2f4f6;          /* Seitenhintergrund und innere Flächen: leicht grau */
  --weiss: #ffffff;
  --linie: #e4e7eb;
  --linie-stark: #d3d8de;
  --tinte: #16181b;
  --tinte-weich: #3a4047;
  --grau: #697077;
  --grau-hell: #9ba2aa;
  /* Status */
  --gruen: #2f7d4f;
  --gruen-hell: #e9f4ed;
  --gelb: #9a6300;
  --gelb-hell: #fdf3de;
  --blau: #2d5b8a;
  --blau-hell: #e9f0f8;
  /* Form */
  --radius: 14px;
  --radius-gross: 20px;
  --radius-klein: 10px;
  --schatten: 0 1px 2px rgba(17, 24, 39, .04), 0 6px 18px rgba(17, 24, 39, .05);
  --schatten-stark: 0 2px 4px rgba(17, 24, 39, .06), 0 12px 28px rgba(17, 24, 39, .09);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--tinte);
  background: var(--papier);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--rot-dunkel); text-underline-offset: 2px; }
img, video { max-width: 100%; }
h1, h2, h3 { line-height: 1.22; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 700; }
h1 { font-size: clamp(1.55rem, 4vw, 2.05rem); }
h2 { font-size: 1.22rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid #f3b3ab; outline-offset: 2px; border-radius: 6px; }

.icon { width: 24px; height: 24px; flex: none; }
.icon.klein { width: 18px; height: 18px; }
.icon.gross { width: 40px; height: 40px; }
.leise { color: var(--grau); }
.klein-text { font-size: .875rem; }
.sr-nur {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Kopf und Navigation ---------- */
.kopf { background: var(--tinte); color: #fff; }
.kopf-innen {
  width: 100%; max-width: 1080px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.marke { display: flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; min-width: 0; }
.marke-zeichen {
  width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--rot);
  display: grid; place-items: center; font-weight: 800; font-size: 14px; letter-spacing: .02em;
}
.marke-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.marke-text strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marke-text span { font-size: 12.5px; color: #b9bfc6; }
.kopf-login, .kopf-person {
  display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none;
  padding: 8px 13px; border-radius: 999px; background: rgba(255, 255, 255, .09); font-size: 14.5px; font-weight: 500;
}
.kopf-login:hover, .kopf-person:hover { background: rgba(255, 255, 255, .17); }
.kopf-person span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navi {
  display: flex; gap: 4px; align-items: center; width: 100%; max-width: 1080px; margin: 0 auto;
  padding: 0 10px 10px; overflow-x: auto; scrollbar-width: none;
}
.navi::-webkit-scrollbar { display: none; }
.navi a {
  color: #b9bfc6; text-decoration: none; padding: 8px 13px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; white-space: nowrap;
}
.navi a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.navi a.aktiv { color: #fff; background: rgba(255, 255, 255, .15); font-weight: 600; }
.navi .navi-ab { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Grundgerüst ---------- */
.inhalt { width: 100%; max-width: 1080px; margin: 0 auto; padding: 26px 16px 56px; flex: 1; }
.schmal { max-width: 640px; margin-left: auto; margin-right: auto; }
.fuss {
  padding: 22px 16px; text-align: center; font-size: 13.5px; color: var(--grau);
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; border-top: 1px solid var(--linie);
}
.fuss a { color: var(--grau); }
.karte {
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 22px; margin-bottom: 16px; box-shadow: var(--schatten);
}
.karte > :last-child { margin-bottom: 0; }
.zurueck {
  display: inline-flex; align-items: center; gap: 3px; font-size: 14px; color: var(--grau);
  text-decoration: none; margin-bottom: 12px;
}
.zurueck:hover { color: var(--tinte); }
.titelzeile { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.titelzeile h1 { margin: 0; }
.abschnitt-titel {
  font-size: 12.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--grau);
  margin: 32px 0 13px; font-weight: 700;
}

/* ---------- Hinweise ---------- */
.hinweis {
  padding: 13px 16px; border-radius: var(--radius-klein); margin-bottom: 16px; font-size: 15px;
  border: 1px solid; display: flex; gap: 10px; align-items: flex-start;
}
.hinweis-ok { background: var(--gruen-hell); border-color: #c3e2cf; color: #1d5434; }
.hinweis-fehler { background: var(--rot-hell); border-color: #f4c7c1; color: var(--rot-dunkel); }
.hinweis-info { background: var(--blau-hell); border-color: #c9d9ec; color: var(--blau); }

/* ---------- Startseite, Kacheln ---------- */
.held { margin: 6px 0 28px; }
.held h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); margin-bottom: 6px; }
.held p { color: var(--grau); font-size: 1.05rem; margin: 0; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.kachel {
  position: relative; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 20px; text-decoration: none; color: var(--tinte); display: flex; flex-direction: column; gap: 7px;
  box-shadow: var(--schatten); transition: box-shadow .16s, transform .16s, border-color .16s;
}
.kachel:hover { border-color: var(--linie-stark); box-shadow: var(--schatten-stark); transform: translateY(-2px); }
.kachel .icon {
  width: 42px; height: 42px; padding: 9px; border-radius: 12px;
  background: var(--rot-hell); color: var(--rot); margin-bottom: 4px;
}
.kachel strong { font-size: 1.06rem; }
.kachel span { color: var(--grau); font-size: 14.5px; line-height: 1.45; }
.kachel.dunkel { background: var(--tinte); color: #fff; border-color: var(--tinte); }
.kachel.dunkel span { color: #b9bfc6; }
.kachel.dunkel .icon { background: rgba(255, 255, 255, .12); color: #ff9c90; }
.kachel .zaehler, .zaehler {
  position: absolute; top: 14px; right: 14px; min-width: 24px; height: 24px; padding: 0 7px;
  border-radius: 999px; background: var(--rot); color: #fff; font-size: 12.5px; font-weight: 700;
  display: grid; place-items: center;
}

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--rot); color: #fff; border: 1px solid transparent; border-radius: 11px;
  padding: 11px 18px; min-height: 44px; font-size: 15px; font-weight: 600; font-family: inherit;
  text-decoration: none; cursor: pointer; transition: background .15s, box-shadow .15s, transform .1s;
  box-shadow: 0 1px 2px rgba(17, 24, 39, .08);
}
.knopf:hover { background: var(--rot-dunkel); }
.knopf:active { transform: translateY(1px); }
.knopf.zweit { background: var(--weiss); color: var(--tinte); border-color: var(--linie-stark); }
.knopf.zweit:hover { background: var(--papier); border-color: var(--grau-hell); }
.knopf.gruen { background: var(--gruen); }
.knopf.gruen:hover { background: #246240; }
.knopf.klein { padding: 7px 13px; min-height: 36px; font-size: 14px; border-radius: 9px; }
.knopf.breit { width: 100%; }
.knopf.link {
  background: none; color: var(--rot-dunkel); padding: 0; min-height: 0; font-weight: 500;
  text-decoration: underline; box-shadow: none; border: 0;
}
.knopf.link:hover { background: none; color: var(--rot); }
.knopf[disabled] { opacity: .45; cursor: not-allowed; }
.knopfreihe { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- Formulare ---------- */
.feld { margin-bottom: 18px; }
.feld label, .feld .label { display: block; font-weight: 600; margin-bottom: 7px; font-size: 14.5px; }
.feld .hilfe { font-size: 13.5px; color: var(--grau); margin-top: 6px; line-height: 1.5; }
input[type=text], input[type=password], input[type=email], input[type=search], input[type=url], input[type=number], select, textarea {
  width: 100%; padding: 11px 13px; font-size: 16px; font-family: inherit; color: var(--tinte);
  background: var(--weiss); border: 1px solid var(--linie-stark); border-radius: var(--radius-klein);
  min-height: 46px; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--rot); box-shadow: 0 0 0 3px var(--rot-hell);
}
input[type=file] {
  width: 100%; font-size: 14.5px; padding: 10px; background: var(--papier);
  border: 1px dashed var(--linie-stark); border-radius: var(--radius-klein);
}
.check { display: flex; gap: 11px; align-items: flex-start; padding: 7px 0; cursor: pointer; font-weight: 400 !important; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--rot); flex: none; }
.zweispaltig { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Meldeformular ---------- */
.melden-kopf { margin-bottom: 20px; }
.pfad { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; min-height: 32px; }
.pfad li {
  font-size: 13.5px; background: var(--weiss); border: 1px solid var(--linie); color: var(--grau);
  padding: 5px 11px; border-radius: 999px;
}
.pfad li button { all: unset; cursor: pointer; }
.pfad li:hover { border-color: var(--rot); color: var(--tinte); }
.schritt { display: none; }
.schritt.aktiv { display: block; animation: rein .18s ease; }
@keyframes rein { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.schritt-nr { font-size: 12.5px; font-weight: 700; color: var(--rot); text-transform: uppercase; letter-spacing: .09em; margin-bottom: 5px; }
.schritt h2 { font-size: 1.3rem; margin-bottom: 18px; }
.wahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 11px; }
.wahl.gross { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.wahl label { position: relative; display: block; cursor: pointer; }
.wahl input { position: absolute; opacity: 0; pointer-events: none; }
.wahl .opt {
  display: flex; align-items: center; gap: 11px; min-height: 58px; padding: 14px 16px;
  background: var(--weiss); border: 1.5px solid var(--linie); border-radius: var(--radius);
  font-weight: 500; transition: border-color .15s, background .15s, transform .12s;
}
.wahl.gross .opt { flex-direction: column; justify-content: center; min-height: 132px; text-align: center; font-size: 1.04rem; gap: 8px; }
.wahl.gross .opt .icon { width: 46px; height: 46px; color: var(--rot); }
.wahl label:hover .opt { border-color: var(--grau-hell); transform: translateY(-1px); }
.wahl input:checked + .opt { border-color: var(--rot); background: var(--rot-hell); }
.wahl input:focus-visible + .opt { outline: 3px solid #f3b3ab; outline-offset: 2px; }
.nummer-eingabe { font-size: 1.45rem !important; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; text-align: center; }
.schritt-fuss { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.ergebnis { text-align: center; padding: 36px 22px; }
.ergebnis .haken-kreis {
  width: 74px; height: 74px; border-radius: 50%; background: var(--gruen-hell); color: var(--gruen);
  display: grid; place-items: center; margin: 0 auto 16px;
}
.ergebnis .haken-kreis .icon { width: 40px; height: 40px; stroke-width: 2.6; }
.zusammenfassung { text-align: left; max-width: 430px; margin: 20px auto; border-top: 1px solid var(--linie); }
.zusammenfassung div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.zusammenfassung dt { color: var(--grau); }
.zusammenfassung dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- Reiter, Filter, Chips ---------- */
.reiter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.reiter a {
  text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 8px 14px; border-radius: 999px;
  background: var(--weiss); border: 1px solid var(--linie); color: var(--tinte-weich);
}
.reiter a:hover { border-color: var(--linie-stark); }
.reiter a.aktiv { background: var(--tinte); color: #fff; border-color: var(--tinte); }
.reiter a .anz { opacity: .65; font-weight: 500; margin-left: 5px; }
.filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.filter select, .filter input { width: auto; min-width: 170px; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 22px; }
.chips a {
  text-decoration: none; font-size: 14px; padding: 7px 13px; border-radius: 999px; background: var(--weiss);
  border: 1px solid var(--linie); color: var(--tinte-weich);
}
.chips a:hover { border-color: var(--linie-stark); }
.chips a.aktiv { background: var(--rot); border-color: var(--rot); color: #fff; font-weight: 600; }

/* ---------- Defekt-Liste ---------- */
.defekt { padding: 20px; }
.defekt-kopf { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.defekt-titel { font-size: 1.08rem; font-weight: 700; margin: 0 0 5px; }
.defekt-meta { display: flex; flex-wrap: wrap; gap: 5px 14px; font-size: 13.5px; color: var(--grau); }
.defekt-text { margin: 13px 0 0; white-space: pre-line; color: var(--tinte-weich); }
.defekt-aktion { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--linie); display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.defekt-aktion .notiz { flex: 1 1 240px; }
.defekt-aktion textarea { min-height: 46px; height: 46px; }
.defekt-foto { display: block; margin-top: 13px; max-width: 220px; border-radius: var(--radius-klein); border: 1px solid var(--linie); }
.marke-status { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.st-offen { background: var(--rot-hell); color: var(--rot-dunkel); }
.st-in_arbeit { background: var(--gelb-hell); color: var(--gelb); }
.st-erledigt { background: var(--gruen-hell); color: var(--gruen); }
.st-wartend { background: var(--gelb-hell); color: var(--gelb); }
.st-aktiv { background: var(--gruen-hell); color: var(--gruen); }
.st-gesperrt { background: #e9ebee; color: #5a6168; }
.nicht-fahrbereit { color: var(--rot-dunkel); font-weight: 700; display: inline-flex; gap: 4px; align-items: center; }
.fahrzeug-marke {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px;
  background: var(--papier); border: 1px solid var(--linie); padding: 3px 10px; border-radius: 999px;
}
.fahrzeug-marke.klein { font-size: 12.5px; padding: 2px 8px; }
.standort-marke { font-weight: 700; color: var(--tinte); }

/* ---------- Anleitungen und FAQ ---------- */
.suchfeld { position: relative; margin-bottom: 20px; }
.suchfeld .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--grau); }
.suchfeld input { padding-left: 50px; min-height: 56px; font-size: 16.5px; border-radius: 999px; box-shadow: var(--schatten); border-color: var(--linie); }

/* Quadratische Kacheln für Anleitungen */
.anl-gitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 16px; }
.anl-kachel {
  position: relative; aspect-ratio: 1 / 1; display: flex; flex-direction: column;
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--tinte); box-shadow: var(--schatten);
  transition: box-shadow .16s, transform .16s, border-color .16s;
}
.anl-kachel:hover { border-color: var(--linie-stark); box-shadow: var(--schatten-stark); transform: translateY(-2px); }
.anl-kachel.aus { opacity: .62; }
.anl-bild { flex: 1 1 auto; min-height: 0; background: var(--papier); display: grid; place-items: center; overflow: hidden; }
.anl-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.anl-bild .icon { width: 40px; height: 40px; color: var(--grau-hell); }
.anl-text { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.anl-text strong { font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.anl-meta { font-size: 12.5px; color: var(--grau); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.anl-fahne {
  position: absolute; top: 10px; left: 10px; background: rgba(22, 24, 27, .82); color: #fff;
  font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
}
.anl-ecke { position: absolute; top: 10px; right: 10px; display: flex; gap: 5px; }
.anl-ecke span {
  width: 26px; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, .92);
  display: grid; place-items: center; color: var(--grau); box-shadow: 0 1px 3px rgba(17, 24, 39, .14);
}
.anl-ecke .icon { width: 15px; height: 15px; }

/* Shop-Artikel mit Produktbild */
.shop-gitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.shop-karte {
  display: flex; flex-direction: column; background: var(--weiss); border: 1px solid var(--linie);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten);
}
.shop-bild { aspect-ratio: 4 / 3; background: var(--papier); display: grid; place-items: center; overflow: hidden; }
.shop-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-bild .icon { width: 38px; height: 38px; color: var(--grau-hell); }
.shop-text { padding: 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.shop-text strong { font-size: 15.5px; }
.shop-text .leise { font-size: 13.5px; line-height: 1.45; }
.shop-menge { display: flex; align-items: center; gap: 10px; padding: 0 14px 14px; }
.shop-menge input { width: 86px; text-align: center; font-weight: 700; }
.shop-menge .einheit { font-size: 13.5px; color: var(--grau); }

/* Listenzeilen (FAQ, Verwaltung) */
.liste { list-style: none; margin: 0; padding: 0; }
.liste li + li { border-top: 1px solid var(--linie); }
.liste a.zeile { display: flex; align-items: center; gap: 14px; padding: 15px 4px; text-decoration: none; color: var(--tinte); }
.liste a.zeile:hover strong { color: var(--rot-dunkel); }
.zeile .zeile-text { flex: 1; min-width: 0; }
.zeile .zeile-text strong { display: block; }
.zeile .zeile-text span { font-size: 14px; color: var(--grau); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeile-icons { display: flex; gap: 5px; color: var(--grau-hell); }
.kat-marke {
  font-size: 12.5px; font-weight: 600; color: var(--grau); background: var(--papier);
  border: 1px solid var(--linie); padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.leer { text-align: center; padding: 44px 20px; color: var(--grau); }
.leer .icon { width: 44px; height: 44px; color: var(--grau-hell); margin-bottom: 10px; }

.anleitung-text { font-size: 16.5px; line-height: 1.68; color: var(--tinte-weich); }
.anleitung-text h2 { margin-top: 1.4em; color: var(--tinte); }
.anleitung-text ol.schritte { counter-reset: s; list-style: none; padding: 0; }
.anleitung-text ol.schritte li { counter-increment: s; position: relative; padding: 2px 0 14px 48px; }
.anleitung-text ol.schritte li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--rot); color: #fff; font-weight: 700; font-size: 15px; display: grid; place-items: center;
}
.anl-cover { width: 100%; max-height: 300px; object-fit: cover; border-radius: var(--radius); margin-bottom: 18px; display: block; }
.pdf-einbettung { width: 100%; border: 1px solid var(--linie); border-radius: var(--radius-klein); overflow: hidden; background: var(--papier); margin: 12px 0; }
.pdf-einbettung iframe { width: 100%; height: 78vh; min-height: 480px; border: 0; display: block; }
.pdf-vorschau { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.pdf-vorschau .icon { width: 28px; height: 28px; flex: none; color: var(--rot); }
.medien { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 22px; }
.medien figure { margin: 0; background: var(--papier); border: 1px solid var(--linie); border-radius: var(--radius-klein); overflow: hidden; }
.medien img, .medien video { display: block; width: 100%; height: auto; background: #000; }
.medien img { background: var(--papier); cursor: zoom-in; }
.medien figcaption { font-size: 13px; color: var(--grau); padding: 8px 12px; }
.medien .pdf { display: flex; align-items: center; gap: 10px; padding: 18px; text-decoration: none; color: var(--tinte); font-weight: 600; }
.video-rahmen { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; background: #000; margin-top: 22px; }
.video-rahmen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.antwort { background: var(--papier); border-left: 3px solid var(--rot); padding: 13px 16px; border-radius: 0 var(--radius-klein) var(--radius-klein) 0; margin-top: 10px; white-space: pre-line; }

/* ---------- Tabellen (Verwaltung) ---------- */
.tabelle-huelle { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--linie); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
th { font-size: 12px; color: var(--grau); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.matrix th, .matrix td { text-align: center; }
.matrix th:first-child, .matrix td:first-child { text-align: left; }
.matrix input { width: 20px; height: 20px; accent-color: var(--rot); }
.rechts { text-align: right; }
.inline-form { display: inline-flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.inline-form select, .inline-form input { width: auto; min-height: 38px; padding: 7px 11px; font-size: 14.5px; }

.medien-bearbeiten { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 11px; }
.medien-bearbeiten .m { border: 1px solid var(--linie); border-radius: var(--radius-klein); padding: 8px; background: var(--papier); font-size: 13px; }
.medien-bearbeiten .m img { width: 100%; height: 100px; object-fit: cover; border-radius: 7px; display: block; }
.medien-bearbeiten .m .vorschau-icon { height: 100px; display: grid; place-items: center; color: var(--grau); }
.medien-bearbeiten .m .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 7px 0; }

/* Kategorien verwalten */
.kat-zeile { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 13px 4px; }
.kat-eingabe { flex: 1 1 260px; }
.kat-name { width: auto; flex: 1 1 150px; min-width: 120px; min-height: 38px; }
.kat-mail { width: auto; flex: 1 1 200px; min-width: 160px; min-height: 38px; }
.kat-anzahl { white-space: nowrap; line-height: 1.45; }

/* Rechte eines Profils anhaken */
.haken-gitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 18px; }
.haken-gitter .check { padding: 8px 0; }
.neu-zeile { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 15px; padding-top: 15px; border-top: 1px dashed var(--linie-stark); }

/* Bild groß ansehen */
.lupe { position: fixed; inset: 0; background: rgba(16, 18, 21, .93); display: grid; place-items: center; z-index: 50; padding: 16px; cursor: zoom-out; }
.lupe img { max-height: 92vh; max-width: 100%; border-radius: var(--radius-klein); }

@media (max-width: 700px) {
  .zweispaltig { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .inhalt { padding: 20px 14px 48px; }
  .karte { padding: 17px; border-radius: var(--radius-klein); }
  .marke-text strong { font-size: 14px; }
  .kopf-person span, .kopf-login span { display: none; }
  .wahl { grid-template-columns: 1fr 1fr; }
  .wahl.gross { grid-template-columns: 1fr 1fr; }
  .wahl.gross .opt { min-height: 112px; font-size: .96rem; }
  .filter select, .filter input { flex: 1 1 140px; min-width: 0; }
  .anl-gitter { grid-template-columns: 1fr 1fr; gap: 12px; }
  .anl-text { padding: 10px 11px 12px; }
  .anl-text strong { font-size: 14px; }
  .shop-gitter { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kacheln { grid-template-columns: 1fr; }
}
@media print {
  .kopf, .navi, .fuss, .knopf { display: none !important; }
  body { background: #fff; }
  .karte { box-shadow: none; border: 0; }
}

/* PDF-Karte (wird auf dem Handy statt der Einbettung gezeigt) */
.pdf-block { margin: 12px 0; }
.pdf-karte { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--tinte); margin-bottom: 8px; }
.pdf-karte .icon { width: 34px; height: 34px; color: var(--rot); flex: none; }
.pdf-karte strong { display: block; font-size: 1.05rem; }
.pdf-karte:hover { border-color: var(--rot); }

/* Band während der Testansicht */
.testband {
  background: var(--gelb-hell); border-bottom: 1px solid #e7d3a6; color: var(--gelb);
  padding: 10px 16px; display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap; font-size: 14.5px; text-align: center;
}
.testband .knopf { background: var(--gelb); }
.testband .knopf:hover { background: #7f5200; }

/* Größenauswahl im Shop */
.shop-groessen { display: flex; flex-direction: column; gap: 6px; padding: 0 14px 14px; }
.shop-groessen .zeile-g { display: flex; align-items: center; gap: 10px; }
.shop-groessen .g-name { flex: 1; font-size: 14px; font-weight: 600; color: var(--tinte); }
.shop-groessen input { width: 72px; text-align: center; font-weight: 700; min-height: 38px; }

/* Defekt-Kacheln mit Ampelfarbe (Fahrzeuge) */
.d-gitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 16px; margin-bottom: 26px; }
.d-kachel {
  position: relative; display: flex; flex-direction: column; gap: 3px;
  background: var(--weiss); border: 1px solid var(--linie); border-top: 4px solid var(--grau-hell);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--schatten);
}
.d-rot    { border-top-color: var(--rot); }
.d-orange { border-top-color: var(--gelb); }
.d-gruen  { border-top-color: var(--gruen); }
.d-grau   { border-top-color: var(--grau-hell); }
.d-grau .d-symbol .icon { color: var(--grau-hell); }

.d-ecke {
  position: absolute; top: 13px; right: 13px; font-size: 11.5px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; background: #eef0f2; color: var(--grau);
  max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.d-rot .d-ecke    { background: var(--rot-hell); color: var(--rot-dunkel); }
.d-orange .d-ecke { background: var(--gelb-hell); color: var(--gelb); }
.d-gruen .d-ecke  { background: var(--gruen-hell); color: var(--gruen); }

.d-symbol { margin-bottom: 6px; }
.d-symbol .icon { width: 54px; height: 54px; }
.d-rot .d-symbol .icon    { color: var(--rot); }
.d-orange .d-symbol .icon { color: var(--gelb); }
.d-gruen .d-symbol .icon  { color: var(--gruen); }

.d-nummer { font-size: 1.3rem; font-weight: 800; line-height: 1.2; }
.d-typ { font-size: 13px; color: var(--grau); }
.d-schaden { font-weight: 600; margin-top: 7px; }
.d-text { font-size: 14px; color: var(--tinte-weich); margin-top: 2px; }
.d-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--grau); margin-top: 8px; }
.d-aktion {
  margin-top: auto; padding-top: 13px; border-top: 1px solid var(--linie);
  display: flex; flex-direction: column; gap: 8px;
}
.d-aktion select, .d-aktion input[type=text] { width: 100%; min-height: 38px; font-size: 14px; padding: 8px 11px; }

@media (max-width: 560px) {
  .d-gitter { grid-template-columns: 1fr; }
}
