/* shadcn/ui-Designsprache in reinem CSS: Zinc-Theme, Tokens wie in shadcn (hell + dunkel). */
:root{
  --background:0 0% 100%;--foreground:240 10% 3.9%;
  --card:0 0% 100%;--card-foreground:240 10% 3.9%;
  --primary:240 5.9% 10%;--primary-foreground:0 0% 98%;
  --secondary:240 4.8% 95.9%;--secondary-foreground:240 5.9% 10%;
  --muted:240 4.8% 95.9%;--muted-foreground:240 3.8% 46.1%;
  --accent:240 4.8% 95.9%;--accent-foreground:240 5.9% 10%;
  --destructive:0 84.2% 60.2%;--destructive-foreground:0 0% 98%;
  --success:142 71% 35%;
  --border:240 5.9% 90%;--input:240 5.9% 90%;--ring:240 5.9% 10%;--radius:.5rem;
}
@media (prefers-color-scheme:dark){:root{
  --background:240 10% 3.9%;--foreground:0 0% 98%;
  --card:240 10% 3.9%;--card-foreground:0 0% 98%;
  --primary:0 0% 98%;--primary-foreground:240 5.9% 10%;
  --secondary:240 3.7% 15.9%;--secondary-foreground:0 0% 98%;
  --muted:240 3.7% 15.9%;--muted-foreground:240 5% 64.9%;
  --accent:240 3.7% 15.9%;--accent-foreground:0 0% 98%;
  --destructive:0 72% 51%;--destructive-foreground:0 0% 98%;
  --success:142 60% 50%;
  --border:240 3.7% 15.9%;--input:240 3.7% 15.9%;--ring:240 4.9% 83.9%;
}}
*{box-sizing:border-box;border-color:hsl(var(--border))}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:hsl(var(--background));color:hsl(var(--foreground));
  font:14px/1.5 ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit}
h1,h2,h3,p{margin:0}

/* Layout */
.topbar{position:sticky;top:0;z-index:10;border-bottom:1px solid hsl(var(--border));background:hsl(var(--background)/.95);backdrop-filter:blur(8px)}
.topbar-in{max-width:56rem;margin:0 auto;padding:0 1rem;height:3.5rem;display:flex;align-items:center;gap:.25rem}
.brand{font-weight:600;font-size:.95rem;letter-spacing:-.01em;text-decoration:none;margin-right:1rem}
.nav{display:flex;gap:.25rem;flex:1;min-width:0;overflow-x:auto}
.nav a{padding:.4rem .75rem;border-radius:calc(var(--radius) - 2px);text-decoration:none;color:hsl(var(--muted-foreground));font-weight:500;white-space:nowrap}
.nav a:hover,.nav a.active{color:hsl(var(--foreground));background:hsl(var(--accent))}
main{max-width:56rem;margin:0 auto;padding:1.5rem 1rem 4rem}
.stack{display:flex;flex-direction:column;gap:1.5rem}
.row{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}
.between{justify-content:space-between}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));gap:1rem}
.page-title{font-size:1.5rem;font-weight:700;letter-spacing:-.025em}
.page-desc{color:hsl(var(--muted-foreground));margin-top:.25rem}

/* Card */
.card{border:1px solid hsl(var(--border));border-radius:calc(var(--radius) + 4px);background:hsl(var(--card));color:hsl(var(--card-foreground));box-shadow:0 1px 2px rgb(0 0 0/.05)}
a.card{display:block;text-decoration:none;transition:background .15s}a.card:hover{background:hsl(var(--accent)/.5)}
.card-header{padding:1.5rem 1.5rem 0;display:flex;flex-direction:column;gap:.375rem}
.card-title{font-size:1.125rem;font-weight:600;letter-spacing:-.015em;line-height:1}
.card-description{font-size:.875rem;color:hsl(var(--muted-foreground))}
.card-content{padding:1.5rem}
.card-header+.card-content{padding-top:1rem}
.card-footer{padding:0 1.5rem 1.5rem;display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}

/* Button */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;white-space:nowrap;height:2.25rem;padding:0 1rem;border-radius:calc(var(--radius) - 2px);
  font:inherit;font-weight:500;border:1px solid transparent;cursor:pointer;text-decoration:none;
  background:hsl(var(--primary));color:hsl(var(--primary-foreground));transition:background .15s,opacity .15s}
.btn:hover{background:hsl(var(--primary)/.9)}
.btn:focus-visible,.input:focus-visible,.select:focus-visible,.textarea:focus-visible{outline:none;box-shadow:0 0 0 2px hsl(var(--background)),0 0 0 4px hsl(var(--ring))}
.btn:disabled{opacity:.5;pointer-events:none}
.btn-secondary{background:hsl(var(--secondary));color:hsl(var(--secondary-foreground))}.btn-secondary:hover{background:hsl(var(--secondary)/.8)}
.btn-outline{background:hsl(var(--background));color:hsl(var(--foreground));border-color:hsl(var(--input))}.btn-outline:hover{background:hsl(var(--accent));color:hsl(var(--accent-foreground))}
.btn-ghost{background:transparent;color:hsl(var(--foreground))}.btn-ghost:hover{background:hsl(var(--accent))}
.btn-destructive{background:hsl(var(--destructive));color:hsl(var(--destructive-foreground))}.btn-destructive:hover{background:hsl(var(--destructive)/.9)}
.btn-sm{height:2rem;padding:0 .75rem;font-size:.8125rem}
.btn-lg{height:2.5rem;padding:0 2rem}

/* Form */
.label{display:block;font-size:.875rem;font-weight:500;line-height:1;margin-bottom:.5rem}
.field{display:flex;flex-direction:column}
.field+.field{margin-top:1rem}
.grid>.field+.field{margin-top:0}
.input,.select,.textarea{display:flex;width:100%;min-height:2.25rem;border-radius:calc(var(--radius) - 2px);border:1px solid hsl(var(--input));background:transparent;
  padding:.375rem .75rem;font:inherit;color:inherit}
.input::placeholder,.textarea::placeholder{color:hsl(var(--muted-foreground))}
.textarea{min-height:10rem;resize:vertical;line-height:1.5}
.select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .6rem center;padding-right:2rem}
.select option{color:initial}
input[type=file].input{padding:.3rem .5rem;cursor:pointer}
input[type=file]::file-selector-button{border:0;border-radius:calc(var(--radius) - 4px);background:hsl(var(--secondary));color:hsl(var(--secondary-foreground));font:inherit;font-weight:500;padding:.25rem .75rem;margin-right:.75rem;cursor:pointer}
.help{font-size:.8rem;color:hsl(var(--muted-foreground));margin-top:.4rem}

/* Switch (Checkbox) */
.switch{display:flex;align-items:center;gap:.75rem;cursor:pointer;font-weight:500}
.switch input{appearance:none;width:2.25rem;height:1.25rem;border-radius:999px;background:hsl(var(--input));position:relative;cursor:pointer;flex:none;transition:background .15s;margin:0}
.switch input::after{content:"";position:absolute;top:2px;left:2px;width:1rem;height:1rem;border-radius:50%;background:hsl(var(--background));transition:transform .15s;box-shadow:0 1px 2px rgb(0 0 0/.3)}
.switch input:checked{background:hsl(var(--primary))}.switch input:checked::after{transform:translateX(1rem)}
.switch input:focus-visible{outline:none;box-shadow:0 0 0 2px hsl(var(--background)),0 0 0 4px hsl(var(--ring))}

/* Radio-Karten */
.radio-item{display:flex;gap:.75rem;align-items:flex-start;padding:.875rem 1rem;border:1px solid hsl(var(--border));border-radius:var(--radius);cursor:pointer;transition:background .15s,border-color .15s}
.radio-item+.radio-item{margin-top:.5rem}
.radio-item:hover{background:hsl(var(--accent)/.5)}
.radio-item:has(input:checked){border-color:hsl(var(--primary));background:hsl(var(--accent))}
.radio-item input{appearance:none;flex:none;width:1rem;height:1rem;margin:.2rem 0 0;border:1px solid hsl(var(--primary));border-radius:50%;display:grid;place-content:center}
.radio-item input::before{content:"";width:.5rem;height:.5rem;border-radius:50%;background:hsl(var(--primary));transform:scale(0);transition:transform .1s}
.radio-item input:checked::before{transform:scale(1)}

/* Badge */
.badge{display:inline-flex;align-items:center;border-radius:999px;border:1px solid transparent;padding:.125rem .625rem;font-size:.75rem;font-weight:600;white-space:nowrap;background:hsl(var(--primary));color:hsl(var(--primary-foreground))}
.badge-secondary{background:hsl(var(--secondary));color:hsl(var(--secondary-foreground))}
.badge-outline{background:transparent;color:hsl(var(--foreground));border-color:hsl(var(--border))}
.badge-destructive{background:hsl(var(--destructive));color:hsl(var(--destructive-foreground))}

/* Alert */
.alert{border:1px solid hsl(var(--border));border-radius:var(--radius);padding:.875rem 1rem}
.alert-title{font-weight:500;line-height:1.2;margin-bottom:.25rem}
.alert-desc{font-size:.875rem;color:hsl(var(--muted-foreground))}
.alert-destructive{border-color:hsl(var(--destructive)/.5)}.alert-destructive .alert-title,.alert-destructive .alert-desc{color:hsl(var(--destructive))}
.alert-success{border-color:hsl(var(--success)/.5)}.alert-success .alert-title{color:hsl(var(--success))}

/* Progress */
.progress{height:.5rem;width:100%;overflow:hidden;border-radius:999px;background:hsl(var(--primary)/.2)}
.progress>i{display:block;height:100%;width:0;background:hsl(var(--primary));transition:width .4s}

/* Table */
.table-wrap{width:100%;overflow:auto;max-height:26rem;border:1px solid hsl(var(--border));border-radius:var(--radius)}
.table{width:100%;border-collapse:collapse;font-size:.875rem}
.table th{position:sticky;top:0;background:hsl(var(--card));text-align:left;font-weight:500;color:hsl(var(--muted-foreground));padding:.5rem .75rem;border-bottom:1px solid hsl(var(--border));height:2.5rem}
.table td{padding:.25rem .5rem;border-bottom:1px solid hsl(var(--border))}
.table tr:last-child td{border-bottom:0}
.table .input{min-height:2rem;padding:.2rem .5rem}.table .num{width:5.5rem}

.separator{height:1px;background:hsl(var(--border));border:0;margin:0}
.muted{color:hsl(var(--muted-foreground))}.small{font-size:.8125rem}.center{text-align:center}
.mono{font-variant-numeric:tabular-nums}

/* Stepper */
.steps{list-style:none;margin:0;padding:0;display:flex;gap:.5rem;flex-wrap:wrap}
.steps li{display:flex;align-items:center;gap:.5rem;color:hsl(var(--muted-foreground));font-size:.875rem;font-weight:500;flex:1;min-width:6.5rem}
.steps li span{display:grid;place-items:center;width:1.5rem;height:1.5rem;border-radius:50%;border:1px solid hsl(var(--border));font-size:.75rem;flex:none}
.steps li.cur{color:hsl(var(--foreground))}.steps li.cur span{border-color:hsl(var(--primary));background:hsl(var(--primary));color:hsl(var(--primary-foreground))}
.steps li.done{color:hsl(var(--foreground))}.steps li.done span{background:hsl(var(--secondary))}

/* Video */
.video{width:100%;max-width:22rem;margin:0 auto;display:block;border-radius:var(--radius);background:#000;border:1px solid hsl(var(--border))}

/* Auth */
.auth{min-height:100dvh;display:grid;place-items:center;padding:1rem}.auth .card{width:100%;max-width:24rem}

.nav{scrollbar-width:none}.nav::-webkit-scrollbar{display:none}
@media (max-width:560px){.topbar-in{padding:0 .5rem}.brand{display:none}.nav a{padding:.4rem .6rem}main{padding:1rem .75rem 3rem}.card-header,.card-content{padding-left:1rem;padding-right:1rem}.card-footer{padding:0 1rem 1rem}}
