/* Goetz-Tools — schlichtes, kontrastreiches Design für die Zielgruppe 50+.
   Große Schaltflächen, klare Sprache, viel Weißraum. */

:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --ink: #1c2330;
  --muted: #5b6472;
  --line: #d6dae1;
  --primary: #1f5fa8;
  --primary-dark: #174a85;
  --warn-bg: #fff4d6;
  --warn-ink: #7a5800;
  --error-bg: #fde2e1;
  --error-ink: #9b1c1c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  background: var(--card);
  border-bottom: 2px solid var(--line);
}
.brand { font-size: 1.4rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.topnav { display: flex; align-items: center; gap: 1rem; }
.who { color: var(--muted); }
.navlink { color: var(--primary); text-decoration: none; font-weight: 600; }
.navlink:hover { text-decoration: underline; }
.inline { display: inline; margin: 0; }

.content { max-width: 1000px; margin: 2rem auto; padding: 0 1.5rem; }
.footer { max-width: 1000px; margin: 2rem auto; padding: 1rem 1.5rem; color: var(--muted); font-size: 0.9rem; }

h1 { font-size: 1.8rem; margin: 0 0 0.5rem; }
.subtitle { color: var(--muted); margin-top: 0; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2rem;
}
.card-centered { max-width: 440px; margin: 3rem auto; }

.form { display: flex; flex-direction: column; gap: 0.4rem; }
.form label { font-weight: 600; margin-top: 0.8rem; }
.form input {
  padding: 0.85rem 1rem;
  font-size: 1.1rem;
  border: 2px solid var(--line);
  border-radius: 8px;
}
.form input:focus { outline: none; border-color: var(--primary); }

.btn {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  background: #e9edf3;
  color: var(--ink);
}
.btn:hover { filter: brightness(0.97); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-big { width: 100%; padding: 1rem; font-size: 1.2rem; margin-top: 1.5rem; }
.btn-small { padding: 0.45rem 0.9rem; font-size: 0.9rem; }

.alert { padding: 0.9rem 1.1rem; border-radius: 8px; margin: 1rem 0; }
.alert-error { background: var(--error-bg); color: var(--error-ink); }
.alert-warn { background: var(--warn-bg); color: var(--warn-ink); }
.alert a { color: inherit; font-weight: 700; }

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.tile h2 { font-size: 1.2rem; margin: 0 0 1rem; }
.tile-disabled { opacity: 0.7; }
.badge {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  background: #eef1f5;
  color: var(--muted);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.table th, .table td { text-align: left; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--line); font-size: 0.95rem; vertical-align: top; }
.table th { background: #eef1f5; }
.table tr:last-child td { border-bottom: none; }
.table .num { text-align: right; white-space: nowrap; }
.rowlink { color: var(--primary); font-weight: 600; text-decoration: none; }
.rowlink:hover { text-decoration: underline; }

/* Produktdaten-Manager */
.page-head { margin-bottom: 1rem; }
.ro-tag {
  font-size: 0.8rem; font-weight: 700; vertical-align: middle;
  background: #eef1f5; color: var(--muted); padding: 0.2rem 0.6rem; border-radius: 999px;
}
.searchbar { display: flex; gap: 0.6rem; margin: 1rem 0; flex-wrap: wrap; }
.searchbar input[type=text] {
  flex: 1; min-width: 220px; padding: 0.75rem 1rem; font-size: 1.05rem;
  border: 2px solid var(--line); border-radius: 8px;
}
.filterbar { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.chip {
  padding: 0.45rem 0.9rem; border-radius: 999px; text-decoration: none;
  background: #eef1f5; color: var(--ink); font-weight: 600; border: 2px solid transparent;
}
.chip:hover { filter: brightness(0.97); }
.chip-active { background: var(--primary); color: #fff; }
.chip-disabled { opacity: 0.5; cursor: not-allowed; }

.badge-ok { background: #d8f0dd; color: #1c6b34; }
.badge-off { background: #f0e0e0; color: #8a3a3a; }

.pager { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; }
.pager-info { color: var(--muted); }
.btn-disabled { opacity: 0.5; cursor: default; }

.detail { margin: 1.25rem 0; }
.detail h2 { font-size: 1.2rem; margin: 0 0 1rem; border-bottom: 2px solid var(--line); padding-bottom: 0.5rem; }
.kv { display: grid; grid-template-columns: 220px 1fr; gap: 0.4rem 1rem; margin: 0; }
.kv dt { font-weight: 700; color: var(--muted); }
.kv dd { margin: 0; }
.rich { line-height: 1.6; }
.rich img { max-width: 100%; height: auto; }
.muted { color: var(--muted); }
.opt { margin-bottom: 1rem; }
.opt ul { margin: 0.4rem 0 0; }
.imggrid { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.imggrid img { max-width: 200px; height: auto; border: 1px solid var(--line); border-radius: 8px; }
.imggrid code { background: #eef1f5; padding: 0.3rem 0.5rem; border-radius: 6px; font-size: 0.85rem; }
