/* Verwaltungs-Oberflaeche (Listen, Formulare). Bewusst schlicht, keine externen
   Schriften/Requests (Datenschutz). */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1b1b1b;
  background: #f4f5f7;
  line-height: 1.45;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  background: #1f2937;
  color: #fff;
  padding: 12px 20px;
}
.topbar .brand { color: #fff; font-weight: 700; font-size: 18px; text-decoration: none; }
.topbar nav a { color: #cbd5e1; text-decoration: none; margin-left: 16px; }
.topbar nav a:hover { color: #fff; }

.container { max-width: 920px; margin: 0 auto; padding: 20px; }

.card {
  background: #fff;
  border: 1px solid #e3e6ea;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}
.card.narrow { max-width: 380px; margin: 40px auto; }

h1 { font-size: 22px; margin: 0 0 14px; }
h2 { font-size: 18px; margin: 0 0 14px; }

.muted { color: #6b7280; }
.small { font-size: 13px; }

/* Formulare */
.grid-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}
.grid-form .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .grid-form { grid-template-columns: 1fr; } }

label { display: block; font-weight: 600; font-size: 14px; }
label.check { font-weight: 500; display: flex; align-items: center; gap: 8px; }
label.check input { width: auto; }

input[type="text"], input[type="number"], input[type="date"], input[type="password"], select, textarea {
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
  background: #fff;
}
input.num { width: 90px; }

.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #1b1b1b;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: #f0f2f5; }
.btn.primary { background: #c0392b; border-color: #c0392b; color: #fff; }
.btn.primary:hover { background: #a93226; }
.btn.danger { background: #fff; border-color: #c0392b; color: #c0392b; }
.btn.danger:hover { background: #fdecea; }
.btn.small { padding: 4px 8px; font-size: 13px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Tabellen */
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { border-bottom: 1px solid #e5e7eb; padding: 8px 10px; text-align: left; }
table.list th { font-size: 13px; color: #4b5563; }
table.list td.actions a { margin-right: 12px; }
table.list tr.seat { background: #e8f6ec; }

.logo-preview { max-height: 80px; max-width: 260px; border: 1px solid #e5e7eb; padding: 4px; background: #fff; }

.danger-zone { border-color: #f3c6c0; }

/* Flash */
.flash { list-style: none; padding: 0; margin: 0 0 16px; }
.flash li { padding: 10px 14px; border-radius: 6px; margin-bottom: 8px; }
.flash-ok { background: #e8f6ec; border: 1px solid #b7e1c2; }
.flash-error { background: #fdecea; border: 1px solid #f3c6c0; }

/* ---- Handy / kleine Bildschirme ---- */
@media (max-width: 640px) {
  .container { padding: 12px; }
  .card { padding: 15px; border-radius: 8px; }
  h1 { font-size: 20px; }

  /* Breite Tabellen horizontal scrollbar statt abgeschnitten */
  table.list { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }

  /* Aktions-Links pro Zeile untereinander, besser tippbar */
  table.list td.actions a { display: inline-block; margin: 2px 12px 2px 0; padding: 4px 0; }

  /* Buttons & Toolbars fingerfreundlich */
  .btn { padding: 10px 14px; }
  .toolbar { gap: 8px; }
  .toolbar .btn { flex: 1 1 auto; text-align: center; }

  input.num { width: 100%; min-width: 64px; }
  .inline-form { flex-direction: column; align-items: stretch; }
}
