/* Gemeinsames Erscheinungsbild für Startseite, WP und PV. */
:root {
  --navy: #003087;
  --navy-deep: #001e5c;
  --navy-soft: #e8eef8;
  --red: #e31c23;
  --cyan: #00a3e0;
  --paper: #f3f0e9;
  --ink: #1b2430;
  --muted: #5c6570;
  --line: #d5d0c6;
  --surface: #fff;
  --ok: #1f7a4d;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* Einheitliche Schaltflächen: weiße Schrift auf Blau */
.bg-navy,
a.bg-navy,
button.bg-navy {
  color: #fff !important;
}

.bg-navy-deep,
a.bg-navy-deep,
button.bg-navy-deep {
  color: #fff !important;
}

.shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: 36rem;
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--navy);
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem 0.75rem;
}

.logo {
  background: var(--surface);
  border-radius: 0.2rem;
  padding: 0.25rem 0.5rem;
  line-height: 0;
}

.logo img { height: 1.5rem; width: auto; display: block; }

.brand-text { margin-left: auto; text-align: right; }

.brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

.brand-text span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.7);
}

.bar {
  background: var(--navy-deep);
  padding: 0.7rem 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
}

.page {
  flex: 1;
  padding: 1rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
}

.lead {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.choices { display: flex; flex-direction: column; gap: 0.75rem; }

a.card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

a.card:active { transform: scale(0.985); }

.badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 4.5rem;
  height: 3rem;
  border-radius: 0.4rem;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
}

.badge.pv { background: #0077c8; }

.card strong { display: block; font-size: 1.05rem; }

.card small {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.chev { margin-left: auto; flex: 0 0 auto; color: var(--navy); }

.site-footer {
  padding: 0 1rem 1.25rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.home-btn {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.3rem;
  color: #fff;
  text-decoration: none;
  flex: 0 0 auto;
}

.settings-btn {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.3rem;
  background: transparent;
  color: #fff;
  flex: 0 0 auto;
}

.settings-btn:active { background: rgb(255 255 255 / 0.14); }

.settings {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}

.settings h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: var(--navy);
}

.settings label {
  display: block;
  margin-bottom: 0.7rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.settings input {
  display: block;
  width: 100%;
  height: 2.75rem;
  margin-top: 0.35rem;
  padding: 0 0.75rem;
  border: 0;
  border-radius: 0.4rem;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line);
  font: inherit;
  color: var(--ink);
}

.settings input:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--navy);
}

.settings p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
}

.monteur-line {
  margin: 0 0 1rem;
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
}

.admin-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  text-decoration: none;
}

.admin-link:hover { color: var(--navy); }

.row-btns { display: flex; gap: 0.5rem; margin-top: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn.ghost {
  background: var(--surface);
  color: var(--navy);
  box-shadow: 0 0 0 1px var(--line);
}

.btn.danger { background: var(--red); }

.list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.6rem;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  font-size: 0.875rem;
}

.list-item small { display: block; color: var(--muted); }

.note {
  margin: 0.75rem 0 0;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: var(--navy-soft);
  color: var(--navy);
  font-size: 0.8rem;
  line-height: 1.4;
}


