/* ==========================================================
   admin/style.css – kompaktes neutrales Dark-Theme
   Struktur:
   1) Design Tokens / Root
   2) Base / Reset
   3) Layout
   4) Typografie & Links
   5) Komponenten (Card, Tables, Buttons, Forms, Flash, Topbar, Login)
   6) Utilities & Page-spezifisch
   7) Responsive
   ========================================================== */

/* =========================
   1) Design Tokens / Root
   ========================= */
:root{
  --bg:#191d1d;
  --card:#191d1d;
  --text:#f0f4f8;
  --muted:#8aa0b2;
  --accent:#22c55e;
  --warn:#f59e0b;
  --danger:#ef4444;

  /* Zusatzfarben abgeleitet (nur wo genutzt) */
  --link:#7dd3fc;
  --surface-1:#0b162b;  /* Buttons dunkel */
  --surface-2:#0a1426;  /* Inputs dunkel */
  --border:rgba(255,255,255,.08);
  --border-strong:rgba(255,255,255,.15);
}

/* ==================
   2) Base / Reset
   ================== */
*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #fff;/* var(--bg); */
  color: #000;/* var(--text); */
}

h1,h2{ margin:.2rem 0 .6rem; }

a{
  color: #333;/* var(--link); */
  text-decoration:none;
}
a:hover{ text-decoration:underline; }

/* =================
   3) Layout
   ================= */
.wrap{
  width:95%;
  max-width:1600px;
  margin:28px auto;
  padding:0 16px;
}

.card{
  /* background:var(--card); */
  border:1px solid var(--border);
  border-radius:12px;
  padding:16px;
  box-shadow:0 10px 24px rgba(0,0,0,.35);
}


.adminarea .card{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}

body.adminarea {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.adminarea a{
  color: #fff;/* var(--link); */
  text-decoration:none;
}

/* ==============================
   4) Typografie & Links & Nav
   ============================== */
nav a{ margin-right:10px; }
.small{ font-size:.9rem; color:var(--muted); }

/* =================
   5) Komponenten
   ================= */

/* --- 5.1 Tables --- */
table{
  width:100%;
  border-collapse:collapse;
  margin-top:12px;
}
th,td{
  border-bottom:1px solid var(--border);
  padding:8px 10px;
  text-align:left;
}

/* --- 5.2 Buttons --- */
button,
.btn{
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--border-strong);
  background:var(--surface-1);
  color:var(--text);
  cursor:pointer;
}
button:hover,
.btn:hover{ transform:translateY(-1px); }

/* Baseline „neutrale“ .btn (explizit) */
.btn{
  margin-right:6px;
  background:#ddd;/* #fff; */
  color:#000;
}

/* Varianten */
.btn-accent{ /*background:#fff;*/ border:0; color:#000; /*font-weight:700;*/ }
.btn-warn{ background:linear-gradient(180deg,#fbbf24,#f59e0b); color:#1e1e1e; border:0; }
.btn-danger{ background:linear-gradient(180deg,#ef4444,#dc2626); border:0; }
.btn-call2action{ background:#ff0; }
.btn-kacheln{ background:#0ff; }

/* --- 5.3 Formulare / Inputs --- */
/* Einheitlich */
input[type="text"],
input[type="number"],
input,
select,
textarea,
select{
  width:100%;
  padding:8px 10px;
  border-radius:8px;
  border:1px solid var(--border-strong);
  background:#ededed;/* #191d1d */;
  color: #333;/* var(--text); */
  font-size:.95rem;
}

input[type="checkbox"]{
  width:auto;  
}

/* Alternative dunkle Variante (beibehalten) */
input.darkorg,
select.darkorg,
textarea.darkorg{
  width:100%;
  padding:8px 10px;
  border-radius:8px;
  border:1px solid var(--border-strong);
  background:#ededed;/* #191d1d */;
  color:var(--text);
}

/* Spezifisches Feld-Theme */
textarea,
select,
input[type="text"],
input[type="number"]{
  /*background:var(--surface-2);*/
  border:1px solid rgba(255,255,255,.25);
}

/* Fokus-Effekt */
input:focus,
textarea:focus,
select:focus{
  border-color:#38bdf8;
  outline:none;
  box-shadow:0 0 0 2px rgba(56,189,248,.3);
}

/* Textarea Beschreibung */
textarea.description{
  min-height:80px;
  resize:vertical;
  line-height:1.4;
}

/* Labels */
label{
  display:block;
  margin:.35rem 0 .15rem;
  color:var(--muted);
}


/* --- 5.4 Flash Message --- */
.flash{
  background:#052e16;
  color:#d1fae5;
  border:1px solid #065f46;
  padding:8px 12px;
  border-radius:8px;
  margin:10px 0;
}

/* --- 5.5 Topbar & Login --- */
.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:14px;
}

.login{
  max-width:420px;
  margin:40px auto;
  padding: 50px;
}

.login.card{
  border: none;
  background: #2b6b82;
  /*background: linear-gradient(90deg, rgba(197, 222, 237, 1) 0%, rgba(152, 143, 204, 1) 100%);*/
}

.login-title{
  max-width:420px;
  margin:50px auto 0;
  font-size:2rem;
  font-style:italic;
  /*background-color: #13afb9;*/
  padding: 15px;
  color: #fff;
  border-radius: 12px;
  text-align: center;
}

.login.card input{
  background-color: #fff;
}
.login.card input:focus{
  border-color: transparent;
}

/* --- 5.6 Footer --- */
#footer-div{
  text-align:center;
  position:absolute;
  bottom:15px;
  display:inline-block;
  width:100%;
  font-size:.85rem;
}

/* ==============================
   6) Utilities & Page-spezifisch
   ============================== */
.inline{ display:inline-block; }
form.inline{ display:inline; }

.actions{ white-space:nowrap; }
/* Standard: normaler Text (Icon-Helfer zurücksetzen) */
.actions .btn::before{ display:none; }

/* Seiten-spezifisch */
.page-dashboard .card{ min-height:400px; }

/* =================
   7) Responsive
   ================= */
@media screen and (max-width:960px){
  .wrap{ max-width:95%; }

  /* Aktionen: Icons statt Text */
  .actions .btn{
    font-size:0;           /* Text verstecken */
    position:relative;
    background-color:transparent;
    border:none;
    padding:0;
  }
  .actions button{ background-color:transparent; border:none; padding:0; }
  .actions button.btn.btn-danger,
  .actions .btn.btn-warn.btn-inaktiv{ background:none; }

  .actions .btn::before{
    display:inline-block;
    font-size:1rem;
    margin:0 4px;
    padding:0;
  }

  /* Icon-Zuordnung nach Variante */
  .actions .btn.btn-accent::before,
  .actions .btn.btn-edit::before{ content:"✏️"; }
  .actions .btn.btn-hinweis::before{ content:"ℹ️"; }
  .actions .btn.btn-call2action::before{ content:"💾"; }
  .actions .btn.btn-danger::before{ content:"🗑️"; }
  .actions .btn.btn-warn.btn-inaktiv::before{ content:"👁️"; }
  .actions .btn.btn-verlauf::before{ content:"📊️"; }
}
