.schale { min-height: 100dvh; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; background: var(--bg); }
.kopf { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--surf); border-bottom: 1px solid var(--line); }
.kopf .marke { display: flex; align-items: center; gap: 10px; min-width: 0; }
.kopf .logo { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; background: var(--acc); color: var(--accInk); display: flex; align-items: center; justify-content: center; font-weight: 700; overflow: hidden; }
.kopf .logo img { width: 100%; height: 100%; object-fit: cover; }
.kopf .titel { display: flex; flex-direction: column; min-width: 0; }
.kopf .titel strong, .kopf .titel span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kopf .zurueck { min-height: 44px; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; color: var(--acc); background: none; border: 0; padding: 0; cursor: pointer; }
.notfallknopf { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--red); color: var(--redInk); font-weight: 700; cursor: pointer; flex: 0 0 auto; }
.inhalt { flex: 1 1 auto; padding: 14px 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.tabs { position: sticky; bottom: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--surf); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabs a { min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--mute); font-size: 11.5px; font-weight: 600; border-top: 3px solid transparent; position: relative; text-align: center; padding: 0 2px; overflow-wrap: anywhere; }
.tabs a[aria-current="page"] { color: var(--acc); border-top-color: var(--acc); }
.tabs .punkt { position: absolute; top: 6px; right: calc(50% - 18px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: var(--redInk); font-size: 11px; line-height: 18px; text-align: center; }
.weg { display: flex; gap: 10px; align-items: flex-start; }
.weg svg { flex: 0 0 auto; margin-top: 2px; }
.fallzeile { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); min-height: 56px; }
.fallzeile:first-of-type { border-top: 0; }
.fallzeile .links { display: flex; flex-direction: column; min-width: 0; }
.fallzeile .links strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.neu { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--red); color: var(--redInk); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.zweiknopf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grossknopf { min-height: 88px; border-radius: 14px; border: 1px solid var(--line); background: var(--surf); color: var(--ink); text-decoration: none; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 12px; font-weight: 700; }
.grossknopf.akzent { background: var(--acc); color: var(--accInk); border-color: var(--acc); }
.grossknopf span { font-weight: 500; font-size: 13px; opacity: .9; }
.aufnahmen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.aufnahme { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--surf2); border: 1px solid var(--line); padding: 0; cursor: pointer; }
.aufnahme img, .aufnahme video { width: 100%; height: 100%; object-fit: cover; display: block; }
.aufnahme .marke { position: absolute; left: 6px; bottom: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; font-weight: 600; }
.aufnahme.neu-knopf { display: flex; align-items: center; justify-content: center; border: 1px dashed var(--acc); color: var(--acc); font-weight: 600; font-size: 13px; text-align: center; background: transparent; }
.dringlich { display: flex; flex-direction: column; gap: 6px; }
.dringlich button { min-height: 56px; padding: 8px 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--surf); text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.dringlich button[aria-checked="true"] { border-color: var(--acc); background: var(--accSoft); }
.dringlich button.notfall[aria-checked="true"] { border-color: var(--red); background: var(--redSoft); color: var(--red); }
.dringlich button span { font-size: 13px; color: var(--mute); font-weight: 400; }
.verlauf { display: flex; flex-direction: column; gap: 10px; }
.blase { max-width: 85%; padding: 10px 12px; border-radius: 14px; background: var(--surf); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; align-self: flex-start; white-space: pre-wrap; overflow-wrap: anywhere; }
.blase.eigen { align-self: flex-end; background: var(--accSoft); border-color: var(--accSoft); }
.blase .wer { font-size: 12px; color: var(--mute); }
.ereignis { align-self: center; text-align: center; font-size: 13px; color: var(--mute); padding: 4px 10px; border-radius: 999px; background: var(--surf2); max-width: 92%; }
.schritte { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.schritte.karte { padding: 14px; gap: 0; }
.schritte li { display: flex; gap: 12px; }
.schritte .spur { display: flex; flex-direction: column; align-items: center; }
.schritte .ring { width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--line); background: var(--surf); }
.schritte .ring.an { border-color: var(--acc); background: var(--acc); }
.schritte .linie { flex: 1 1 auto; width: 2px; min-height: 18px; background: var(--line); }
.schritte li:last-child .linie { background: transparent; }
.schritte .txt { padding-bottom: 12px; display: flex; flex-direction: column; }
.eingabe { position: sticky; bottom: 0; display: flex; gap: 8px; align-items: flex-end; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surf); border-top: 1px solid var(--line); }
.eingabe textarea { flex: 1 1 auto; min-height: 48px; max-height: 160px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); resize: none; }
.rundknopf { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surf); color: var(--acc); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.rundknopf.voll { background: var(--acc); color: var(--accInk); border-color: var(--acc); }
.blatt-hinter { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.5); display: flex; align-items: flex-end; justify-content: center; }
.blatt { width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; background: var(--surf); border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
.netzhinweis { padding: 8px 12px; border-radius: 10px; background: var(--ambSoft); color: var(--amb); font-size: 14px; font-weight: 600; }
.vollbild { position: fixed; inset: 0; z-index: 60; background: #000; display: flex; align-items: center; justify-content: center; }
.vollbild img, .vollbild video { max-width: 100%; max-height: 100%; }
.vollbild .zu { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: #000; font-size: 22px; cursor: pointer; }
.vollbild .info { position: absolute; left: 12px; right: 72px; bottom: calc(12px + env(safe-area-inset-bottom)); color: #fff; font-size: 12px; text-shadow: 0 1px 2px #000; overflow-wrap: anywhere; }

/* Kamera */
.kamera { position: fixed; inset: 0; z-index: 70; background: #0B0F0E; color: #F2F5F3; display: flex; flex-direction: column; }
.kamera .oben { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 16px 8px; }
.kamera .oben button { min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid #3A4642; background: transparent; color: #F2F5F3; font-weight: 600; cursor: pointer; }
.kamera .fuehrung { padding: 0 16px 8px; font-size: 14px; color: #C9D3CE; }
.kamera .sucher { position: relative; flex: 1 1 auto; margin: 0 12px; border-radius: 16px; overflow: hidden; background: #222A27; }
.kamera video { width: 100%; height: 100%; object-fit: cover; display: block; }
.kamera .marken { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.kamera .marken span { padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.6); font-size: 12px; font-weight: 600; }
.kamera .warnung { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); padding: 10px 16px; border-radius: 12px; background: #FFD27A; color: #2B1A00; font-weight: 700; text-align: center; }
.kamera .zeit { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; flex-direction: column; gap: 6px; }
.kamera .zeit .uhr { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: #D92D20; color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.kamera .zeit .balken { height: 8px; border-radius: 999px; background: rgba(255,255,255,.25); overflow: hidden; }
.kamera .zeit .balken span { display: block; height: 8px; background: #FFD27A; }
.kamera .zeit .balken span.gut { background: #5FD39A; }
.kamera .unten { padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.kamera .modus { display: flex; padding: 4px; border-radius: 999px; background: #1C2422; }
.kamera .modus button { min-height: 40px; min-width: 96px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: #F2F5F3; font-weight: 700; cursor: pointer; }
.kamera .modus button[aria-checked="true"] { background: #F2F5F3; color: #0B0F0E; }
.kamera .ausloeser { width: 76px; height: 76px; border-radius: 50%; border: 5px solid #F2F5F3; background: #F2F5F3; cursor: pointer; }
.kamera .ausloeser.video { background: #E5483D; }
.kamera .ausloeser.laeuft { background: #D92D20; box-shadow: inset 0 0 0 14px #0B0F0E; }
.kamera .fuss { font-size: 12px; color: #B9C5BF; text-align: center; }
.kamera .sucher.ohne { display: flex; align-items: center; justify-content: center; }
.kamera .erlaubnis { margin: 0 24px; display: flex; flex-direction: column; gap: 12px; text-align: center; }
.fallzeile.umbruch { flex-wrap: wrap; }
.fallzeile.umbruch .links strong { white-space: normal; }
