/* Selfiefox Live-Gästebuch – Gastgeber- und Admin-Bereich */
:root {
  --rot: #b1322e; --rot-dunkel: #962a26; --orange: #cc4113; --blau: #00a8f4; --gruen: #16a34a; --gelb: #f59e0b;
  --text: #3c424f; --hell: #6b7280; --flaeche: #f6f7f9; --rand: #e5e7eb; --weiss: #fff;
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--schrift); color: var(--text); background: var(--flaeche); -webkit-font-smoothing: antialiased; line-height: 1.45; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: var(--rot); }
[hidden] { display: none !important; }
svg { display: block; }

.kopf { background: #fff; border-bottom: 1px solid var(--rand); position: sticky; top: 0; z-index: 20; }
.kopf .innen { max-width: 1100px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.kopf img { height: 22px; width: auto; }
.kopf .wer { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blau); }
.kopf .platz { flex: 1; }
@media (max-width: 560px) { .kopf .wer { display: none; } }
.seite { max-width: 820px; margin: 0 auto; padding: 18px 16px 80px; }
.seite.breit { max-width: 1100px; }
h1 { font-size: 24px; line-height: 1.2; }
.unter { color: var(--hell); font-size: 14.5px; margin-top: 4px; }
.karte { background: #fff; border-radius: 18px; box-shadow: 0 1px 3px rgba(20,30,50,.06), 0 6px 20px rgba(20,30,50,.05); padding: 20px; margin-top: 16px; }
.karte h2 { font-size: 18px; display: flex; align-items: center; gap: 10px; }
.karte h2 .nr { width: 28px; height: 28px; border-radius: 50%; background: #fdecea; color: var(--rot); font-size: 14px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.karte .erkl { color: var(--hell); font-size: 14px; margin: 4px 0 12px; }
.feld { margin-top: 12px; }
.feld label { display: block; font-size: 13px; color: var(--hell); font-weight: 500; margin-bottom: 5px; }
.feld input, .feld textarea, .feld select { width: 100%; border: 1.5px solid var(--rand); border-radius: 12px; padding: 11px 13px; font-size: 16px; background: #fff; outline: none; }
.feld textarea { min-height: 96px; resize: vertical; }
.feld input:focus, .feld textarea:focus, .feld select:focus { border-color: var(--blau); }
.feld small { display: block; color: var(--hell); font-size: 12.5px; margin-top: 4px; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .zwei { grid-template-columns: 1fr; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; font-weight: 600; font-size: 15px; padding: 11px 16px; border: 1.5px solid var(--rand); background: #fff; color: var(--text); text-decoration: none; white-space: nowrap; transition: background .15s; }
.btn:hover { background: var(--flaeche); }
.btn.haupt { background: var(--rot); border-color: var(--rot); color: #fff; }
.btn.haupt:hover { background: var(--rot-dunkel); }
.btn.blau { background: var(--blau); border-color: var(--blau); color: #fff; }
.btn.gefahr { color: var(--rot); border-color: #f3c6c4; }
.btn.klein { font-size: 13.5px; padding: 7px 11px; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn svg { width: 18px; height: 18px; }
.reihe { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }

.schalter-zeile { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--rand); }
.schalter-zeile:last-child { border-bottom: 0; }
.schalter-zeile b { font-size: 15px; font-weight: 600; display: block; }
.schalter-zeile small { font-size: 13px; color: var(--hell); }
.schalter { position: relative; width: 50px; height: 30px; flex-shrink: 0; }
.schalter input { opacity: 0; width: 0; height: 0; position: absolute; }
.schalter span { position: absolute; inset: 0; background: #d1d5db; border-radius: 999px; transition: background .2s; cursor: pointer; }
.schalter span::after { content: ''; position: absolute; width: 26px; height: 26px; left: 2px; top: 2px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .2s; }
.schalter input:checked + span { background: #34c759; }
.schalter input:checked + span::after { transform: translateX(20px); }
.schalter input:focus-visible + span { outline: 2px solid var(--blau); outline-offset: 2px; }

.titelbild { position: relative; height: 190px; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #b1322e 0%, #cc4113 55%, #e0763b 100%) center 30%/cover; color: #fff; }
.titelbild::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.6) 100%); }
.titelbild .txt { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 2; }
.titelbild .txt small { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.titelbild .txt b { display: block; font-size: 24px; font-weight: 900; line-height: 1.1; overflow-wrap: anywhere; }
.titelbild .txt span { font-size: 13px; opacity: .9; }

.qrbox { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.qrbox .q { width: 170px; height: 170px; background: #fff; border: 1px solid var(--rand); border-radius: 14px; padding: 10px; flex-shrink: 0; }
.qrbox .q img, .qrbox .q canvas { width: 148px !important; height: 148px !important; }
.qrbox .link { font-size: 18px; font-weight: 700; word-break: break-all; }
.qrbox .link small { display: block; font-size: 13px; font-weight: 400; color: var(--hell); }

.regler { width: 100%; accent-color: var(--rot); }
.statuszeile { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 14px; color: var(--hell); }
.statuszeile b { color: var(--text); }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--flaeche); color: var(--hell); white-space: nowrap; }
.badge.aktiv { background: #dcfce7; color: #166534; }
.badge.abgelaufen { background: #fef3c7; color: #92400e; }
.badge.geloescht { background: #fee2e2; color: #991b1b; }
.badge.bald { background: #e0f2fe; color: #075985; }

.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; margin-top: 12px; }
.kachel { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #e9ebef; cursor: pointer; }
.kachel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kachel .vid { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.kachel .haken { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.25); color: #fff; font-size: 14px; display: none; align-items: center; justify-content: center; }
.waehlen .kachel .haken { display: flex; }
.kachel.an .haken { background: var(--rot); }
.kachel.an img { opacity: .75; }
.kachel .platz { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #9aa1ad; font-size: 12px; }

.dlbox { margin-top: 14px; background: var(--flaeche); border-radius: 14px; padding: 14px; }
.dlbox b { display: block; }
.balken { height: 8px; background: var(--rand); border-radius: 999px; overflow: hidden; margin: 10px 0 6px; }
.balken div { height: 100%; width: 0; background: var(--blau); border-radius: 999px; transition: width .3s; }
.dlbox .teile a { display: block; margin-top: 6px; font-weight: 600; }
.klein { font-size: 13px; color: var(--hell); }

.laden { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 60vh; color: var(--hell); }
.kreisel { width: 40px; height: 40px; border-radius: 50%; border: 4px solid #f3d6d4; border-top-color: var(--rot); animation: dreh .9s linear infinite; }
@keyframes dreh { to { transform: rotate(360deg); } }
.fehlerkarte { text-align: center; padding: 40px 20px; }
.fehlerkarte img { width: 180px; height: auto; margin-bottom: 16px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; background: rgba(20,22,28,.92); color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 14px; z-index: 80; max-width: calc(100% - 32px); text-align: center; }
.sticky-speichern { position: sticky; bottom: 12px; z-index: 10; display: flex; justify-content: flex-end; margin-top: 14px; }

/* Admin */
.werkzeuge { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.werkzeuge input, .werkzeuge select { border: 1.5px solid var(--rand); border-radius: 12px; padding: 10px 12px; font-size: 15px; background: #fff; outline: none; }
.werkzeuge input { flex: 1; min-width: 200px; }
.tabelle { width: 100%; border-collapse: collapse; margin-top: 12px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 3px rgba(20,30,50,.06); }
.tabelle th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--hell); font-weight: 600; padding: 12px 12px; background: #fafbfc; border-bottom: 1px solid var(--rand); white-space: nowrap; }
.tabelle td { padding: 12px; border-bottom: 1px solid var(--rand); font-size: 14px; vertical-align: top; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle td .t { font-weight: 600; font-size: 15px; }
.tabelle td .k { font-size: 12.5px; color: var(--hell); }
.tabelle td .code { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .06em; }
.tabelle .aktionen { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 860px) {
  .tabelle thead { display: none; }
  .tabelle, .tabelle tbody, .tabelle tr, .tabelle td { display: block; width: 100%; }
  .tabelle tr { border-bottom: 8px solid var(--flaeche); }
  .tabelle td { border: 0; padding: 6px 14px; }
  .tabelle td:first-child { padding-top: 14px; }
  .tabelle td:last-child { padding-bottom: 14px; }
  .tabelle .aktionen { justify-content: flex-start; }
}
.modal { position: fixed; inset: 0; background: rgba(15,18,24,.5); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal .karte { width: 100%; max-width: 520px; margin: 0; max-height: 92vh; overflow-y: auto; }
.login { max-width: 380px; margin: 12vh auto 0; text-align: center; }
.login img { width: 200px; height: auto; margin-bottom: 10px; }

/* ===================== Galerie (galerie.selfiefox.de) – Ergänzungen ===================== */
body { background: var(--flaeche); }
.kopf .logo img { height: 24px; }
.kopf .slogan { font-size: 12.5px; color: var(--hell); max-width: 420px; line-height: 1.3; }
.kopfnav { display: flex; gap: 8px; align-items: center; }
.kontaktlink { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--rand); border-radius: 999px; padding: 7px 12px; color: var(--text); text-decoration: none; font-size: 13.5px; font-weight: 600; background: #fff; }
.kontaktlink svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .kopf .slogan { display: none; } .kontaktlink .lbl { display: none; } .kontaktlink { padding: 7px 9px; } }
.versteckt { display: none !important; }
.hinweis { color: var(--hell); font-size: 14px; }
.fehler { color: var(--rot); }
h3 { font-size: 17px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.grid2 > .karte { margin-top: 0; }
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; } }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=tel], select.feldwahl { border: 1.5px solid var(--rand); border-radius: 12px; padding: 11px 13px; font-size: 15.5px; background: #fff; outline: none; font: inherit; }
input:focus, select:focus { border-color: var(--blau); }
.btn.gefahr { color: var(--rot); border-color: #f3c6c4; background: #fff; }
.btn.wa { background: #25D366; border-color: #25D366; color: #fff; }
.balken { height: 8px; background: var(--rand); border-radius: 999px; overflow: hidden; }
.balken div { height: 100%; width: 0; background: linear-gradient(90deg, var(--rot), var(--blau)); border-radius: 999px; transition: width .3s; }
.box-info { background: #eef8fe; border-radius: 14px; padding: 12px 14px; font-size: 14.5px; color: #075985; }
.box-warn { background: #fff7ed; border-radius: 14px; padding: 14px 16px; font-size: 14.5px; }

/* Ladeschicht */
.ladeschicht { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(246,247,249,.82); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.ladeschicht.an { display: flex; }
.laden-karte { background: #fff; border-radius: 18px; box-shadow: 0 10px 40px rgba(0,0,0,.14); padding: 26px 24px 20px; width: min(420px, 100%); text-align: center; border-top: 5px solid var(--rot); }
.laden-karte .kreisel { margin: 0 auto 14px; }
.laden-titel { font-size: 19px; font-weight: 700; }
.laden-unter { font-size: 14.5px; color: var(--hell); margin-top: 4px; }
.laden-balken { height: 8px; background: var(--rand); border-radius: 999px; overflow: hidden; margin-top: 16px; position: relative; }
.laden-balken > div { position: absolute; top: 0; bottom: 0; width: 40%; border-radius: 999px; background: linear-gradient(90deg, var(--rot), var(--blau)); animation: sfLauf 1.4s ease-in-out infinite; }
.laden-zeit { font-size: 13px; color: var(--hell); margin-top: 10px; min-height: 18px; }
.ladeschicht .laden-neu { display: none; margin: 12px auto 0; }
.ladeschicht.lang .laden-neu { display: inline-flex; }
@keyframes sfLauf { 0% { left: -40%; } 100% { left: 100%; } }

/* Großansicht */
.lb { position: fixed; inset: 0; z-index: 120; background: #0b0c0f; color: #fff; display: flex; flex-direction: column; }
.lb[hidden] { display: none; }
.lb-oben { display: flex; justify-content: space-between; align-items: center; padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 8px; gap: 10px; }
.lb .rund { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.lb-zaehl { font-size: 15px; opacity: .85; }
.lb-rechts { width: 40px; }
.lb-buehne { flex: 1; position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: pan-y; }
.lb-buehne img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb-pfeil { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 70px; font-size: 36px; color: #fff; opacity: .6; background: none; border: 0; cursor: pointer; }
.lb-pfeil:hover { opacity: 1; } .lb-pfeil.l { left: 4px; } .lb-pfeil.r { right: 4px; }
@media (hover: none) { .lb-pfeil { display: none; } }
.lb-info { padding: 8px 18px 0; font-size: 13.5px; opacity: .75; min-height: 26px; text-align: center; }
.lb-leiste { display: flex; gap: 10px; justify-content: center; padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px)); flex-wrap: wrap; }
.lb-knopf { background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 12px; padding: 11px 16px; font: inherit; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; }
.lb-knopf.rot { background: var(--rot); }

/* Team: Liste */
.listwerkzeug, .werkzeug { position: sticky; top: 50px; z-index: 10; background: #fff; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 0 12px; border-bottom: 1px solid var(--rand); margin-bottom: 10px; }
.listwerkzeug .anz, .werkzeug .anz { font-weight: 600; margin-right: auto; }
.tabelle tr.zeile { cursor: pointer; }
.tabelle tr.zeile:hover td { background: #fafbfc; }
.tabelle tr.zeile.gewaehlt td { background: #eef8fe; }
.tabelle td.wahl, .tabelle th.wahl { width: 40px; }
.tabelle input[type=checkbox] { width: 19px; height: 19px; accent-color: var(--blau); cursor: pointer; }
.warnmarke { display: inline-block; margin-top: 4px; font-size: 12px; color: #92400e; background: #fef3c7; border-radius: 6px; padding: 1px 7px; }
.audiomarke { display: inline-block; font-size: 12px; background: #e0f2fe; color: #075985; border-radius: 6px; padding: 1px 7px; margin-left: 6px; font-weight: 600; }
.badge.leer { background: #f1f2f4; color: var(--hell); }
.badge.deaktiviert { background: #fee2e2; color: #991b1b; }
@media (max-width: 860px) { .tabelle td.wahl { position: absolute; right: 8px; top: 10px; width: auto; } .tabelle tr.zeile { position: relative; } }

/* Team: Detail */
.zurueck { display: inline-block; margin-bottom: 8px; text-decoration: none; font-size: 14px; font-weight: 600; }
.kopfzeile { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.akt { list-style: none; margin-top: 12px; font-size: 14px; }
.akt li { padding: 4px 0; }
.linkzeile { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--rand); flex-wrap: wrap; }
.linkzeile:last-child { border-bottom: 0; }
.linkzeile .lbl { flex: 1 1 170px; font-weight: 600; font-size: 15px; }
.linkzeile .lbl small { display: block; font-weight: 400; color: var(--hell); font-size: 12.5px; }
.zone { border: 2px dashed var(--rand); border-radius: 16px; padding: 24px 16px; text-align: center; background: var(--flaeche); cursor: pointer; }
.zone.drag { border-color: var(--rot); background: #fdf1f0; }
.zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 14px 0; }
.zahl { background: var(--flaeche); border-radius: 12px; padding: 8px 12px; }
.zahl b { display: block; font-size: 20px; }
.zahl span { font-size: 12px; color: var(--hell); }
.fehlerliste { max-height: 160px; overflow: auto; font-size: 13px; background: #fff5f5; border-radius: 10px; padding: 8px 12px; margin-top: 10px; }
.raster.team { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
@media (max-width: 640px) { .raster.team { grid-template-columns: repeat(3, 1fr); gap: 3px; } }
.raster.team .kachel .haken { display: flex; opacity: 0; transition: opacity .12s; }
.raster.team .kachel:hover .haken, .raster.team.auswahlmodus .kachel .haken { opacity: 1; }
.raster.team .kachel.gewaehlt { box-shadow: 0 0 0 3px var(--blau); }
.raster.team .kachel.gewaehlt .haken { background: var(--blau); }
.raster.team .kachel.gewaehlt img { transform: scale(.9); border-radius: 6px; opacity: 1; }
.kachel .name { position: absolute; left: 0; right: 0; bottom: 0; font-size: 11px; color: #fff; padding: 14px 6px 4px; background: linear-gradient(transparent, rgba(0,0,0,.55)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; }
.kachel:hover .name { opacity: 1; }
.pruef { border-radius: 12px; padding: 12px 14px; margin-top: 10px; }
.pruef.warn { background: #fff7ed; border-left: 4px solid var(--gelb); }
.pruef.info { background: #f1f7fb; border-left: 4px solid var(--blau); }
.pruef.gut { background: #eefaf3; border-left: 4px solid var(--gruen); }
.pruef b { display: block; margin-bottom: 2px; }
.pruef .txt { font-size: 14px; }
.gruppen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gruppe { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--rand); border-radius: 999px; padding: 3px 4px 3px 10px; font-size: 13px; }
.gruppe button { font-size: 12px; font-weight: 600; background: var(--flaeche); border-radius: 999px; padding: 4px 9px; }
.gruppe button:hover { background: #fdecea; color: var(--rot); }
.filterleiste { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #fff7ed; border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; font-size: 14px; }
.modal-karte { background: #fff; border-radius: 18px; width: min(540px, 100%); padding: 22px; box-shadow: 0 10px 40px rgba(0,0,0,.25); max-height: 92vh; overflow: auto; }
.modal-karte h3 { justify-content: space-between; }
.modal-karte label { display: block; font-size: 13px; color: var(--hell); margin: 12px 0 4px; font-weight: 500; }
.modal-karte input { width: 100%; }
.wahl2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
@media (max-width: 480px) { .wahl2 { grid-template-columns: 1fr; } }
.wahl2 .btn { padding: 14px 12px; flex-direction: column; gap: 2px; white-space: normal; }
.wahl2 .btn small { font-weight: 400; font-size: 12px; opacity: .9; }
.zu { font-size: 22px; color: var(--hell); }
.audio-liste { max-height: 260px; overflow: auto; font-size: 14px; margin-top: 8px; border: 1px solid var(--rand); border-radius: 10px; }
.audio-liste div { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--rand); align-items: center; }
.audio-liste div:last-child { border-bottom: 0; }
.audio-liste button { color: var(--rot); font-size: 13px; }
.knopfreihe { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* ---------- Kundengalerie ---------- */
.held { margin-top: 4px; }
.held .titelbild { height: 230px; }
@media (max-width: 640px) { .held .titelbild { height: 180px; } }
.held .titelbild .txt b { font-size: clamp(24px, 5vw, 34px); }
.online { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 6px 12px; border-radius: 999px; background: #eef8fe; color: #075985; font-size: 14px; font-weight: 600; }
.online.bald { background: #fff4ec; color: var(--orange); }
.aktionsleiste { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
@media (max-width: 560px) { .aktionsleiste .btn { flex: 1 1 100%; } }
.hilfe { display: grid; gap: 12px; grid-template-columns: 2fr 1fr; margin-top: 16px; align-items: start; }
@media (max-width: 860px) { .hilfe { grid-template-columns: 1fr; } }
.hilfe .karte { margin-top: 0; }
.hilfe h3 { font-size: 16.5px; margin-bottom: 8px; }
.hilfe ol { padding-left: 20px; font-size: 15px; }
.hilfe li { margin: 4px 0; }
.hilfe .box-warn p + p { margin-top: 10px; }
.raster.kunde { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-top: 16px; }
@media (max-width: 640px) { .raster.kunde { grid-template-columns: repeat(3, 1fr); gap: 3px; } .raster.kunde .kachel { border-radius: 3px; } }
.raster.kunde .kachel img { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; transition: transform .2s; }
@media (hover: hover) { .raster.kunde .kachel:hover img { transform: scale(1.04); } }
.werbe-kachel { aspect-ratio: 1; border-radius: 10px; background: linear-gradient(145deg, #fff 0%, #fdf0ee 100%); border: 1px solid var(--rand); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10px; text-decoration: none; color: var(--text); gap: 6px; }
.werbe-kachel img { max-width: 70%; max-height: 40%; object-fit: contain; }
.werbe-kachel b { font-size: 14px; }
.werbe-kachel span { font-size: 12px; color: var(--rot); font-weight: 600; }
@media (max-width: 640px) { .werbe-kachel { border-radius: 3px; gap: 3px; } .werbe-kachel b { font-size: 11px; } .werbe-kachel span { font-size: 10px; } }
.leerhinweis { text-align: center; padding: 50px 16px; color: var(--hell); }
.audiobox { display: flex; gap: 16px; align-items: flex-start; border-left: 5px solid var(--blau); }
.audiobox .ico { font-size: 38px; line-height: 1; }
.audiobox h2 { margin-bottom: 2px; }
.audiobox .inhalt { flex: 1; min-width: 0; }
@media (max-width: 640px) { .audiobox { gap: 10px; } .audiobox .ico { font-size: 28px; } .audiobox .btn { white-space: normal; width: 100%; } }
.anhoeren { margin-top: 10px; }
.anhoeren summary { cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--rot); }
.anhoeren .audio-liste { max-height: 380px; }
.anhoeren .audio-liste div { flex-wrap: wrap; }
.anhoeren .audio-liste span { flex: 1 1 160px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anhoeren audio { height: 36px; max-width: 100%; flex: 1 1 240px; }
.promo { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-left: 4px solid var(--rot); padding: 14px 18px; font-size: 15px; }
.promo a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.abschluss { text-align: center; padding: 28px 20px; margin-top: 28px; }
.abschluss img { max-width: min(300px, 100%); max-height: 64px; width: auto; height: auto; }
.abschluss h2 { justify-content: center; font-size: 22px; margin: 10px 0 4px; }
.abschluss .knopfreihe { justify-content: center; margin-top: 16px; }
@media (max-width: 640px) { .abschluss img { max-height: 46px; } .abschluss h2 { font-size: 20px; } }
.fuss { text-align: center; color: var(--hell); font-size: 13px; padding: 26px 16px 34px; }
.fuss a { color: var(--hell); }

/* ---------- Stand 07.10.2026: Kopfzeile, Speicher, Name-Schritt, mobile Tabelle ---------- */
html, body { overflow-x: hidden; }
.kopf .btn .kurz { display: none; }
@media (max-width: 640px) {
  .kopf .innen { gap: 8px; padding: 10px 12px; }
  .kopf .btn .lang { display: none; }
  .kopf .btn .kurz { display: inline; }
  .kopf .btn.klein { padding: 7px 10px; }
  .kopf img { height: 19px; }
}
.kopfnav { display: flex; gap: 8px; align-items: center; }
.werkzeuge input { min-width: 0; flex: 1 1 220px; }
.werkzeuge select { flex: 0 1 auto; min-width: 0; max-width: 100%; }
@media (max-width: 560px) { .werkzeuge input { flex-basis: 100%; } .werkzeuge select { flex: 1 1 0; } }
.tabelle td { overflow-wrap: anywhere; }
.tabelle .aktionen { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nurhandy { display: none; }
@media (max-width: 860px) { .nurhandy { display: inline; } .tabelle .aktionen { justify-content: flex-start; } }
.speicher { margin-top: 12px; background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: 0 1px 3px rgba(20,30,50,.06); font-size: 14px; }
.speicher .zeile { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.speicher .balken { margin: 8px 0 2px; height: 8px; }
.speicher .k { font-size: 12.5px; color: var(--hell); }
.schrittlabel { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 8px; }
.schrittlabel .nr { width: 24px; height: 24px; border-radius: 50%; background: #fdecea; color: var(--rot); font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.namezeile { display: flex; gap: 10px; flex-wrap: wrap; }
.namezeile input { flex: 1 1 240px; min-width: 0; border: 1.5px solid var(--rand); border-radius: 12px; padding: 11px 13px; font-size: 16px; outline: none; }
.namezeile input:focus { border-color: var(--blau); }
#nameSchritt .hinweis { margin-top: 6px; }
.namefertig { background: var(--flaeche); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-size: 14.5px; }
.linkknopf { color: var(--rot); font-weight: 600; text-decoration: underline; margin-left: 6px; }

/* Kundengalerie: Titelbild dunkler, damit die Schrift gut lesbar ist */
.held .titelbild::after { background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.35) 40%, rgba(0,0,0,.78) 100%); }
.held .titelbild .txt { text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.held .titelbild .txt small { opacity: 1; }
.tabelle td { overflow-wrap: break-word; }
.tabelle td.ev { min-width: 200px; }
.tabelle td.dat { white-space: nowrap; }
@media (max-width: 860px) { .tabelle td.ev { min-width: 0; } }
@media (max-width: 560px) { .aktionsleiste .btn { white-space: normal; text-align: left; } }
#vListe .speicher { margin-top: 18px; }

/* Admin: Fotos einklappen, Prüfung einklappen */
.mehrzeile { text-align: center; margin-top: 12px; }
.pruef-mehr { margin-top: 10px; }
#uploadKarte, #fotoKarte, #pruefKarte { scroll-margin-top: 70px; }
