/* Gemeinsame Gestaltung fuer Anmeldung, Startseite und Hinweisseiten. Schlicht, deutsch, Manrope lokal
   (die Schriften kommen aus /vendor/fonts/fonts.css). Keine Fremd-URLs, kein @import. */

:root {
  --bg: #f3f4f6;
  --karte: #ffffff;
  --rand: #dfe2e7;
  --text: #1c2430;
  --text-leise: #5b6676;
  --akzent: #17406b;
  --akzent-hover: #10304f;
  --fokus: #2f7dc4;
  --fehler-bg: #fdeeee;
  --fehler-rand: #e9b4b4;
  --fehler-text: #7a1f1f;
  --info-bg: #eef4fa;
  --info-rand: #b9d0e6;
  --info-text: #17406b;
  --radius: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: 1.6rem;
}

h2 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--akzent);
}

:focus-visible {
  outline: 3px solid var(--fokus);
  outline-offset: 2px;
}

/* Kopfzeile (Startseite) */
.kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 14px 28px;
  background: var(--karte);
  border-bottom: 1px solid var(--rand);
}

.kopf .marke {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.kopf .nutzer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: var(--text-leise);
  font-size: 0.95rem;
}

.kopf .nutzer strong {
  color: var(--text);
  font-weight: 600;
}

.kopf form {
  margin: 0;
}

.kopf button {
  font: inherit;
  font-size: 0.9rem;
  padding: 6px 14px;
  color: var(--akzent);
  background: var(--karte);
  border: 1px solid var(--akzent);
  border-radius: 6px;
  cursor: pointer;
}

.kopf button:hover {
  background: var(--info-bg);
}

/* Inhalt */
main {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 28px 56px;
}

.einleitung {
  color: var(--text-leise);
  margin-bottom: 24px;
}

/* Zentrierte Einzelkarte (Anmeldung, Kein Zugang) */
.zentriert {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.karte {
  width: 100%;
  max-width: 420px;
  padding: 32px;
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(20, 30, 45, 0.04);
}

/* Kacheln */
.kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.kachel {
  display: block;
  padding: 22px 22px 20px;
  color: var(--text);
  text-decoration: none;
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(20, 30, 45, 0.04);
  transition: border-color 0.12s, box-shadow 0.12s;
}

.kachel:hover {
  border-color: var(--akzent);
  box-shadow: 0 2px 8px rgba(20, 30, 45, 0.1);
}

.kachel .titel {
  display: block;
  margin-bottom: 4px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--akzent);
}

.kachel .abteilung {
  display: block;
  margin-bottom: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-leise);
}

.kachel .beschreibung {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
}

/* Schaltflaechen */
.btn-primary {
  display: inline-block;
  padding: 11px 22px;
  font: inherit;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  background: var(--akzent);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--akzent-hover);
}

/* Hinweise und Meldungen */
.hinweis {
  padding: 12px 14px;
  color: var(--info-text);
  background: var(--info-bg);
  border: 1px solid var(--info-rand);
  border-radius: 8px;
}

.meldung {
  padding: 12px 14px;
  margin-bottom: 16px;
  color: var(--fehler-text);
  background: var(--fehler-bg);
  border: 1px solid var(--fehler-rand);
  border-radius: 8px;
}

.meldung:empty {
  display: none;
}

/* Formularfelder (Test-Anmeldung) */
label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
  font-weight: 600;
}

input[type='email'],
input[type='text'] {
  width: 100%;
  padding: 9px 11px;
  margin-bottom: 14px;
  font: inherit;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--rand);
  border-radius: 6px;
}

@media (max-width: 560px) {
  .kopf {
    padding: 12px 16px;
  }

  main {
    padding: 20px 16px 40px;
  }

  .karte {
    padding: 22px;
  }
}
