/* Portal-Grundgestaltung – bewusst im Stil des Restaurant-Finders. */
:root {
  --bg: #0d0f13;
  --surface: rgba(18, 20, 27, 0.72);
  --border: rgba(255, 255, 255, 0.12);
  --field: rgba(255, 255, 255, 0.06);
  --text: #f4f6fa;
  --text-dim: #c0c7d3;
  --accent: #ff6b3d;
  --green: #63d996;
  --red: #ff7a7a;
  --radius: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55vw 55vw at 10% 0%, rgba(255,107,61,0.16), transparent 60%),
    radial-gradient(50vw 50vw at 95% 100%, rgba(99,217,150,0.10), transparent 60%);
}

/* --- Kopfleiste --- */
.topbar {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(13,15,19,0.6);
  backdrop-filter: blur(14px);
}
.brand { font-weight: 800; font-size: 1.05rem; color: var(--text); text-decoration: none; }
.topbar nav { margin-left: auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar nav a, .linkish {
  color: var(--text-dim); text-decoration: none; font-size: .9rem; font-weight: 600;
  background: none; border: none; cursor: pointer; font-family: inherit; padding: 0;
}
.topbar nav a:hover, .linkish:hover { color: var(--accent); }
.inline-form { display: inline; }
.who { color: var(--text-dim); font-size: .8rem; opacity: .7; }

/* --- Inhalt --- */
.wrap { flex: 1; width: 100%; max-width: 940px; margin: 0 auto; padding: 38px 20px 60px; }
h1 { font-size: 1.9rem; letter-spacing: -.02em; margin-bottom: 6px; }
h2 { font-size: 1.15rem; margin: 26px 0 12px; }
.lead { color: var(--text-dim); margin-bottom: 26px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(16px);
}
.card + .card { margin-top: 16px; }
.narrow { max-width: 430px; margin: 6vh auto 0; }

/* --- App-Kacheln --- */
.apps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.app-tile {
  display: block; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  transition: border-color .15s, transform .15s;
}
.app-tile:hover { border-color: var(--accent); transform: translateY(-3px); }
.app-tile .icon { font-size: 1.7rem; }
.app-tile .name { font-weight: 700; margin-top: 8px; }
.app-tile .desc { color: var(--text-dim); font-size: .85rem; margin-top: 3px; }

/* --- Formulare --- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
label { font-size: .78rem; font-weight: 700; color: var(--text-dim);
        text-transform: uppercase; letter-spacing: .04em; }
input[type=text], input[type=email], input[type=password], select {
  background: var(--field); border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 12px; color: var(--text); font-size: .95rem; font-family: inherit; width: 100%;
}
input:focus, select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,107,61,.18);
}
.btn {
  background: linear-gradient(135deg, #ff7a4d, #ff5a2c); color: #fff; border: none;
  border-radius: 11px; padding: 12px 18px; font-size: .98rem; font-weight: 800;
  cursor: pointer; font-family: inherit;
}
.btn:hover { filter: brightness(1.07); }
.btn.small { padding: 7px 12px; font-size: .82rem; border-radius: 9px; }
.btn.ghost { background: var(--field); border: 1px solid var(--border); color: var(--text); font-weight: 600; }
.btn.danger { background: rgba(255,90,90,.16); border: 1px solid rgba(255,90,90,.45); color: #ffb0b0; font-weight: 600; }
.checkbox { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.checkbox input { width: auto; }
.checkbox label { text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--text); }

/* --- Meldungen --- */
.msg { padding: 11px 14px; border-radius: 10px; font-size: .88rem; margin-bottom: 16px; }
.msg.ok    { background: rgba(99,217,150,.13); border: 1px solid rgba(99,217,150,.4); color: #bff2d3; }
.msg.error { background: rgba(255,90,90,.12);  border: 1px solid rgba(255,90,90,.4);  color: #ffb0b0; }
.msg.info  { background: rgba(120,180,255,.10); border: 1px solid rgba(120,180,255,.32); color: #cfe2ff; }
.field-error { color: var(--red); font-size: .8rem; }

/* --- Tabelle --- */
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .74rem;
         border: 1px solid var(--border); background: var(--field); color: var(--text-dim); }
.badge.admin  { background: rgba(255,107,61,.16); border-color: rgba(255,107,61,.5); color: #ffc4ab; }
.badge.locked { background: rgba(255,90,90,.14);  border-color: rgba(255,90,90,.45); color: #ffb0b0; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.foot { text-align: center; padding: 18px; font-size: .8rem; }
.foot a { color: var(--text-dim); }

@media (max-width: 560px) {
  .wrap { padding: 26px 16px 50px; }
  .who { display: none; }
  table { font-size: .82rem; }
}
