/* public/app.css – Basisstyles für Landing, Generator, Dashboard */
/* -------------------- Design Tokens -------------------- */
:root{
  --bg:#0d0f13;
  --card:#131722;
  --muted:#8892a6;
  --text:#e6ecff;
  --accent:#7c9cff;
  --accent-2:#32d4a4;
  --danger:#ff6b6b;
  --warning:#ffb020;
  --border:#1f2533;
  --shadow:0 6px 16px rgba(0,0,0,.35);
  --radius:10px;
  --radius-sm:8px;
  --gap:14px;
  --gap-lg:22px;
  --focus:#3a68ff;
}

/* -------------------- Sticky-Footer Layout -------------------- */
html, body { height: 100%; }
body{
  min-height: 100svh; /* moderne Viewport-Einheit */
  min-height: 100vh;  /* Fallback */
  display: flex;
  flex-direction: column;
  margin:0;
  background:linear-gradient(180deg,#0b0e12 0%,#0e1219 100%);
  color:var(--text);
  font:15px/1.5 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif;
}
.main{ flex:1 0 auto; }                 /* Hauptbereich wächst */
footer{
  margin-top:auto;                       /* klebt unten */
  border-top:1px solid var(--border);
  color:var(--muted);
  padding:18px 0;
  text-align:center;
  background:var(--bg);
}

/* -------------------- Base -------------------- */
*{box-sizing:border-box}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
a:focus-visible,
button:focus-visible,
.input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible{
  outline:2px solid var(--focus);
  outline-offset:2px;
  border-radius:8px;
}
code,pre{font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace}
.container{ width:min(1100px,92%); margin:32px auto; }

/* -------------------- Header / Nav -------------------- */
header{
  position:sticky; top:0; z-index:10;
  background:rgba(13,15,19,.7);
  backdrop-filter:saturate(120%) blur(8px);
  border-bottom:1px solid var(--border);
}
.nav{
  display:flex; align-items:center; gap:16px;
  width:min(1100px,92%); margin:0 auto; padding:12px 0;
}
.nav a, .nav summary{
  padding:8px 10px; border-radius:8px;
}
.nav a:hover{background:rgba(124,156,255,.1);text-decoration:none}

/* --- Admin Dropdown (details/summary) --- */
.dropdown{ position:relative; }
.nav summary{ list-style:none; cursor:pointer; user-select:none; }
.nav summary::-webkit-details-marker{ display:none; }
.dropdown[open] > summary{ background:rgba(124,156,255,.12); }
.dropdown-menu{
  position:absolute; top:calc(100% + 6px); left:0;
  min-width:200px;
  background:#0f1420; color:var(--text);
  border:1px solid var(--border);
  border-radius:8px;
  box-shadow:0 12px 28px rgba(0,0,0,.35);
  padding:6px;
  display:grid; gap:4px;
  z-index:1000;
}
.dropdown-menu a{
  display:block; padding:8px 10px; border-radius:6px; text-decoration:none;
}
.dropdown-menu a:hover{ background:rgba(124,156,255,.12); }
@media (max-width:640px){
  .dropdown-menu{ left:auto; right:0; min-width:160px; }
}

/* -------------------- Components -------------------- */
.hero{
  padding:40px;
  background:
    radial-gradient(1200px 400px at 20% -10%,rgba(124,156,255,.18),transparent 40%),
    radial-gradient(1200px 400px at 100% 10%,rgba(50,212,164,.18),transparent 40%),
    var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:var(--shadow);
}
.hero h1{margin:0 0 10px;font-size:28px}
.hero p{margin:0 0 18px;color:var(--muted)}

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:10px 14px;border-radius:10px;border:1px solid var(--border);
  background:#0f1420;color:var(--text);cursor:pointer;font-weight:600;
  transition:background .15s ease, transform .06s ease;
}
.btn:hover{background:#12192a}
.btn:active{ transform:translateY(1px); }
.btn.primary{background:linear-gradient(180deg,#3a68ff,#214cff);border-color:#2845b9}
.btn.success{background:linear-gradient(180deg,#39e0b8,#19b88f);border-color:#159d79}
.btn.danger{background:linear-gradient(180deg,#ff7d7d,#ff5454);border-color:#c93e3e}

.grid{ display:grid; gap:var(--gap); }
.grid.cols-2{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.grid.cols-3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
@media (max-width:900px){ .grid.cols-3{ grid-template-columns:1fr; } }
@media (max-width:700px){ .grid.cols-2{ grid-template-columns:1fr; } }

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:var(--shadow);
}

.section-title{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin:0 0 12px;
}
.muted{color:var(--muted)}
.tag{
  display:inline-block;
  padding:3px 8px;
  border:1px solid var(--border);
  border-radius:999px;
  background:#0f1420;color:var(--muted);font-size:12px
}
.row{display:flex;align-items:center;gap:10px}
.spacer{height:14px}

.table{
  width:100%; border-collapse:separate; border-spacing:0 8px;
}
.table tr{background:var(--card);border:1px solid var(--border)}
.table td,.table th{padding:10px 12px}
.table th{color:var(--muted);text-align:left;font-weight:600}
.table tr{border-radius:10px}
.table tr td:first-child{border-top-left-radius:10px;border-bottom-left-radius:10px}
.table tr td:last-child{border-top-right-radius:10px;border-bottom-right-radius:10px}

.input, select, textarea{
  width:100%; padding:10px 12px; border-radius:8px;
  border:1px solid var(--border); background:#0f1420; color:var(--text)
}
.input:focus, select:focus, textarea:focus{ border-color:#2e5cff; box-shadow:0 0 0 3px rgba(58,104,255,.25); outline:0; }

label{display:block;color:var(--muted);margin:8px 0 6px}
.form-row{display:grid;grid-template-columns:1fr 1fr; gap:var(--gap)}
@media (max-width:800px){.form-row{grid-template-columns:1fr}}

.notice{
  padding:10px 12px; border:1px dashed var(--border);
  background:#0e1420; border-radius:10px; color:var(--muted)
}
.notice.success{
  border-color:rgba(50,212,164,.4);
  background:rgba(50,212,164,.08);
  color:#bff3e3;
}

.preview-box{
  display:flex; align-items:center; justify-content:center;
  min-height:220px; background:#0f1420; border:1px solid var(--border);
  border-radius:12px; padding:16px; text-align:center
}
.preview-box .placeholder{ color:var(--muted); font-style:italic }

/* -------------------- Utilities -------------------- */
hr.sep{border:0;border-top:1px solid var(--border);margin:16px 0}
.hidden{display:none !important}
