/* ILDEKI Konto: dunkles Design. Keine externen Ressourcen; Schriften nur als Fallback-Stack. */
:root {
  --bg: #070b11;
  --surface: #111a25;
  --surface-2: #182534;
  --text: #e4edf2;
  --muted: #879baa;
  --accent: #79d5e5;
  --accent-ink: #04141a;
  --danger: #ff9d9d;
  --ok: #8ee3b0;
  --line: #2a3b4d;
  --radius: 6px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: dark; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}

main { flex: 1; padding: var(--space-4) var(--space-2); }

.breit { max-width: 64rem; margin: 0 auto; padding: 0 var(--space-2); }
.schmal { max-width: 34rem; margin: 0 auto; }

h1, h2 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; margin: 0 0 var(--space-2); }
h1 { font-size: 2rem; }
h2 { font-size: 1.35rem; margin-top: var(--space-3); }
p { margin: 0 0 var(--space-2); }

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: #a8e6f0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: var(--space-2); top: -4rem; z-index: 10;
  background: var(--accent); color: var(--accent-ink); padding: 0.6rem 1rem; border-radius: var(--radius);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: var(--space-1); }

.kopf { background: var(--surface); border-bottom: 1px solid var(--line); }
.kopf .breit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-1) var(--space-3); min-height: 3.5rem; }
.marke { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: 0.04em; padding: 0.4rem 0; }
.marke span { color: var(--accent); font-family: var(--font-body); font-size: 0.8em; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.kopf nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); }
.kopf nav a, .kopf nav .link { display: inline-flex; align-items: center; min-height: 2.75rem; }

.fuss { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; padding: var(--space-2) 0; }
.fuss p { margin: 0; }

.feld { margin: 0 0 var(--space-3); }
label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.hinweis { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.4rem; }
.klein { color: var(--muted); font-size: 0.9rem; }

input[type="text"], input[type="email"], input[type="password"], textarea {
  width: 100%; min-height: 2.75rem; padding: 0.6rem 0.8rem;
  background: var(--bg); color: var(--text);
  border: 1px solid #5d7387; border-radius: var(--radius);
  font: inherit;
}
textarea { resize: vertical; min-height: 7rem; }
input:hover, textarea:hover { border-color: var(--muted); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
input:disabled, textarea:disabled, button:disabled { opacity: 0.55; cursor: not-allowed; }

.feld-check { display: grid; grid-template-columns: 1.6rem 1fr; column-gap: 0.75rem; align-items: start; }
.feld-check input { width: 1.4rem; height: 1.4rem; margin: 0.2rem 0 0; accent-color: var(--accent); }
.feld-check label { font-weight: 400; margin: 0; }
.feld-check .feld-fehler { grid-column: 2; }

.feld-fehler { color: var(--danger); margin: 0.4rem 0 0; font-size: 0.95rem; }
.fehler-wort { font-weight: 700; }

.knopf, button.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: 0.55rem 1.4rem;
  background: var(--accent); color: var(--accent-ink);
  border: 2px solid var(--accent); border-radius: var(--radius);
  font: inherit; font-weight: 700; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.knopf:hover { background: #a1e3ee; border-color: #a1e3ee; }
.knopf:active { background: #5fc4d6; border-color: #5fc4d6; }
.knopf-zweit, .knopf.knopf-zweit { background: transparent; color: var(--text); border-color: #5d7387; }
.knopf-zweit:hover { background: var(--surface-2); border-color: var(--muted); }
.knopf-zweit:active { background: var(--surface); }

button.link { background: none; border: 0; padding: 0 0.1rem; color: var(--accent); font: inherit; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
button.link:hover { color: #a8e6f0; }

form.inline { display: inline; margin: 0; }

.meldung { background: var(--surface); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: var(--space-2); margin: 0 0 var(--space-3); }
.meldung p:last-child, .meldung ul:last-child { margin-bottom: 0; }
.meldung-fehler { border-left-color: var(--danger); }
.meldung ul { margin: 0; padding-left: 1.25rem; }

.karte { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3); margin: 0 0 var(--space-3); }
.karte h2 { margin-top: 0; }
.daten { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem var(--space-3); margin: 0; }
.daten dt { color: var(--muted); }
.daten dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.umbruch { white-space: pre-wrap; }
.aktionen { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-2); }

.marke-status { display: inline-block; padding: 0.1rem 0.6rem; border: 1px solid currentColor; border-radius: 999px; font-size: 0.9rem; }
.status-freigeschaltet { color: var(--ok); }
.status-bestaetigt, .status-angefragt { color: var(--accent); }
.status-abgelehnt, .status-gesperrt, .status-geloescht { color: var(--danger); }

@media (max-width: 30rem) {
  h1 { font-size: 1.65rem; }
  main { padding: var(--space-3) var(--space-2); }
  .daten { grid-template-columns: 1fr; gap: 0; }
  .daten dd { margin-bottom: var(--space-1); }
  .karte { padding: var(--space-2); }
}

@media (min-width: 120rem) {
  html { font-size: 1.125rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
