/* tw.css — eingebettete, statische Tailwind-Utilities (Ersatz fuer das Play-CDN).
   Enthaelt NUR die in index.html + app.js tatsaechlich verwendeten Klassen, plus den
   noetigen Preflight-Subset (box-sizing, Resets, border-style). Farb-Tokens (:root/.dark)
   und Komponenten (.dropzone/.stepper/.bottomnav-btn) stehen weiterhin in style.css.
   Dadurch rendert die App deterministisch und ohne Internet — kein Laufzeit-CDN mehr. */

/* ===== Preflight (Tailwind-Subset) ===== */
*, ::before, ::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: hsl(var(--border));
}
html { line-height: 1.5; -webkit-text-size-adjust: 100%; -moz-tab-size: 4; tab-size: 4; }
body { margin: 0; line-height: inherit; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; margin: 0; }
p, figure, blockquote, dl, dd, pre { margin: 0; }
ul, ol, menu { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: inherit; }
button, input, optgroup, select, textarea {
  font-family: inherit; font-size: 100%; font-weight: inherit; line-height: inherit;
  color: inherit; margin: 0; padding: 0;
}
button, select { text-transform: none; }
button, [type="button"], [type="reset"], [type="submit"] {
  -webkit-appearance: button; background-color: transparent; background-image: none;
}
button, [role="button"] { cursor: pointer; }
:disabled { cursor: default; }
img, svg, video, canvas { display: block; vertical-align: middle; }
input::placeholder, textarea::placeholder { opacity: 1; color: hsl(var(--muted-foreground)); }
[hidden] { display: none; }

/* ===== Layout / Display ===== */
.min-h-screen { min-height: 100vh; }
.block { display: block; }
.hidden { display: none; }
.flex { display: flex; }
.grid { display: grid; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
/* Kein JIT (CLAUDE.md): eine Klasse, die hier fehlt, tut im Browser stillschweigend
   nichts. `self-start` haelt den P.IVA-Knopf in seiner Spalte auf Inhaltsbreite, statt
   ihn ueber die volle Feldbreite zu ziehen. */
.self-start { align-self: flex-start; }
.items-baseline { align-items: baseline; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.shrink-0 { flex-shrink: 0; }
.min-w-0 { min-width: 0; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ===== Position ===== */
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* ===== Sizing ===== */
.h-4 { height: 1rem; }
.w-4 { width: 1rem; }
.h-5 { height: 1.25rem; }
.w-5 { width: 1.25rem; }
.h-6 { height: 1.5rem; }
.w-6 { width: 1.5rem; }
.h-9 { height: 2.25rem; }
.w-9 { width: 2.25rem; }
.h-12 { height: 3rem; }
.w-12 { width: 3rem; }
.w-24 { width: 6rem; }
.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-5xl { max-width: 64rem; }
.max-h-72 { max-height: 18rem; }

/* ===== Padding ===== */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-2 { padding-left: .5rem; padding-right: .5rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.py-1\.5 { padding-top: .375rem; padding-bottom: .375rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-2\.5 { padding-top: .625rem; padding-bottom: .625rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.pt-3 { padding-top: .75rem; }
.pl-5 { padding-left: 1.25rem; }
.pb-24 { padding-bottom: 6rem; }

/* ===== Margin ===== */
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-0\.5 { margin-top: .125rem; }
.mt-1 { margin-top: .25rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mt-2 { margin-top: .5rem; }
.ml-1 { margin-left: .25rem; }
.ml-2 { margin-left: .5rem; }
.mr-1 { margin-right: .25rem; }

/* ===== Gap ===== */
.gap-0\.5 { gap: .125rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-x-5 { column-gap: 1.25rem; }
.gap-y-2 { row-gap: .5rem; }

/* ===== space-y (Abstand zwischen Geschwistern) ===== */
.space-y-0\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: .125rem; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: .25rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: .5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: .75rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }

/* ===== Scroll ===== */
.scroll-mt-20 { scroll-margin-top: 5rem; }

/* ===== Typography ===== */
.text-xs { font-size: .75rem; line-height: 1rem; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.leading-tight { line-height: 1.25; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: .025em; }
.text-center { text-align: center; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-pre-wrap { white-space: pre-wrap; }
.list-disc { list-style-type: disc; }
.underline { text-decoration: underline; }
.overflow-auto { overflow: auto; }

/* ===== Textfarben ===== */
.text-foreground { color: hsl(var(--foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-primary { color: hsl(var(--primary)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.text-secondary-foreground { color: hsl(var(--secondary-foreground)); }
.text-destructive { color: hsl(var(--destructive)); }
.text-warning { color: hsl(var(--warning)); }
.text-success { color: hsl(var(--success)); }
.text-foreground\/80 { color: hsl(var(--foreground) / .8); }

/* ===== Hintergrundfarben ===== */
.bg-card { background-color: hsl(var(--card)); }
.bg-card\/90 { background-color: hsl(var(--card) / .9); }
.bg-card\/95 { background-color: hsl(var(--card) / .95); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-primary\/10 { background-color: hsl(var(--primary) / .1); }
.bg-secondary { background-color: hsl(var(--secondary)); }
.bg-background { background-color: hsl(var(--background)); }
.bg-destructive\/10 { background-color: hsl(var(--destructive) / .1); }
.bg-success\/10 { background-color: hsl(var(--success) / .1); }
.bg-warning\/10 { background-color: hsl(var(--warning) / .1); }
/* Hinweis-Bloecke 'Beträge prüfen' + 'Was das Programm entschieden hat' (2026-08-12).
   Bewusst gedaempft: sie sollen NEBEN dem bernsteinfarbenen Block stehen, nicht mit ihm
   um Aufmerksamkeit konkurrieren. */
.bg-muted\/30 { background-color: hsl(var(--muted) / .3); }
.bg-muted\/40 { background-color: hsl(var(--muted) / .4); }

/* ===== Deckkraft ===== */
/* Volltext eines Hinweises unter der Kurzfassung - lesbar, aber nachrangig. */
.opacity-70 { opacity: .7; }

/* ===== Rahmen ===== */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-dashed { border-style: dashed; }
.border-border { border-color: hsl(var(--border)); }
.border-destructive\/40 { border-color: hsl(var(--destructive) / .4); }
.border-success\/40 { border-color: hsl(var(--success) / .4); }
.border-warning\/40 { border-color: hsl(var(--warning) / .4); }

/* ===== Radius ===== */
.rounded-md { border-radius: calc(var(--radius) - 2px); }
.rounded-lg { border-radius: var(--radius); }
.rounded-full { border-radius: 9999px; }

/* ===== Schatten ===== */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* ===== Effekte / Sonstiges ===== */
.backdrop-blur { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cursor-pointer { cursor: pointer; }
.accent-\[hsl\(var\(--primary\)\)\] { accent-color: hsl(var(--primary)); }
.accent-\[hsl\(var\(--destructive\)\)\] { accent-color: hsl(var(--destructive)); }

/* ===== Zustaende (hover/focus/placeholder) ===== */
.hover\:bg-accent:hover { background-color: hsl(var(--accent)); }
.hover\:text-foreground:hover { color: hsl(var(--foreground)); }
.hover\:bg-primary\/90:hover { background-color: hsl(var(--primary) / .9); }
.hover\:bg-destructive\/20:hover { background-color: hsl(var(--destructive) / .2); }
.focus\:border-primary:focus { border-color: hsl(var(--primary)); }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px hsl(var(--ring) / .3); }
.focus\:ring-ring\/30:focus { box-shadow: 0 0 0 2px hsl(var(--ring) / .3); }
.placeholder\:text-muted-foreground::placeholder { color: hsl(var(--muted-foreground)); }

/* ===== Responsive ===== */
@media (min-width: 640px) {
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .md\:hidden { display: none; }
  .md\:pb-10 { padding-bottom: 2.5rem; }
}

/* Kurtaxen-Tagestabelle (Aufgabe 4.5) - kein JIT: neue Klassen MUESSEN hier stehen. */
.overflow-x-auto { overflow-x: auto; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.pr-3 { padding-right: 0.75rem; }

/* ===== Nachtrag 2026-09-02 (Aufgabe 5.1 + Waechter test_tailwind_klassen.py) =====
   FUENF DAVON WAREN SCHON VORHER LUECKEN: `rounded`, `select-none`, `py-0.5`,
   `disabled:cursor-not-allowed` und `disabled:opacity-50` werden im Bestand benutzt und
   standen nirgends - sie taten also nichts, ohne dass etwas kaputtging. Genau dieser
   stille Fehlermodus ist der Grund fuer den neuen Test; gefunden hat sie er, nicht ein
   Blick in den Browser. */
.rounded { border-radius: 0.25rem; }
.select-none { user-select: none; -webkit-user-select: none; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }
.disabled\:opacity-50:disabled { opacity: 0.5; }

/* Neu mit der Betreiber-Ansicht. */
.bg-muted { background-color: hsl(var(--muted)); }
.gap-1 { gap: 0.25rem; }
.items-end { align-items: flex-end; }
.mt-8 { margin-top: 2rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.tracking-widest { letter-spacing: 0.1em; }
.mr-2 { margin-right: 0.5rem; }
.ml-auto { margin-left: auto; }
