/* Lizenzportal: Gestaltung nach vorlagen/marke/gestaltung.md (bfa.ch). */

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../schrift/hanken-grotesk-latin-wght-normal.c501f578bf3f.woff2") format("woff2");
}

:root {
  --primaer: #002b51;
  --akzent: #105b9e;
  --sehr-dunkel: #001629;
  --mittel: #54718a;
  --hell: #b7c3ce;
  --grund-2: #eef1f3;
  --grund-3: #e5edf2;
  --fokus: #0050bd;
  --weiss: #ffffff;
  --fehler: #9b1c1c;
  --fehler-grund: #fbeaea;
  --erfolg: #1d5e2f;
  --erfolg-grund: #e8f3eb;
  --radius: 8px;
}

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

/* Das Attribut hidden verbirgt immer, auch Elemente mit Klassen wie .formular, die display setzen. */
[hidden] {
  display: none !important;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  color: var(--primaer);
  background: var(--grund-2);
}

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

a:hover {
  color: var(--primaer);
}

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

h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 600;
}

h1 {
  font-size: 1.75rem;
  margin: 0 0 1.25rem;
}

h2 {
  font-size: 1.25rem;
  margin: 1.75rem 0 .5rem;
}

h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 .5rem;
}

/* Kopf */
.kopf {
  background: var(--weiss);
  border-bottom: 1px solid var(--hell);
}

.kopf-innen,
.fuss-innen,
.inhalt {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.kopf-innen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  min-height: 4.5rem;
}

.marke {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--primaer);
  text-decoration: none;
}

.marke-logo {
  display: block;
  height: 2.5rem;
  width: auto;
}

.marke-name {
  font-size: 1.25rem;
  font-weight: 600;
  padding-left: 1rem;
  border-left: 1px solid var(--hell);
}

.navigation {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.navigation a {
  color: var(--primaer);
  text-decoration: none;
  font-weight: 500;
}

.navigation a:hover,
.navigation a[aria-current="page"] {
  color: var(--akzent);
}

/* Inhalt */
.inhalt {
  flex: 1;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.karte {
  background: var(--weiss);
  border: 1px solid var(--hell);
  border-radius: 0;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.karte > :first-child {
  margin-top: 0;
}

.text {
  max-width: 48rem;
}

.hinweis {
  color: var(--mittel);
}

/* Markierte Platzhalter für noch fehlende Angaben (Impressum, Datenschutz) */
.platzhalter {
  background: #fff1b8;
  color: #5c3d00;
  outline: 2px dashed #b7791f;
  outline-offset: 1px;
  padding: 0 .25rem;
  font-weight: 600;
}

/* Meldungen */
.meldungen {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.meldung {
  border-left: 4px solid var(--akzent);
  background: var(--grund-3);
  padding: .75rem 1rem;
  margin-bottom: .5rem;
}

.meldung-error,
.meldung-fehler {
  border-left-color: var(--fehler);
  background: var(--fehler-grund);
  color: var(--fehler);
}

.meldung-success,
.meldung-erfolg {
  border-left-color: var(--erfolg);
  background: var(--erfolg-grund);
  color: var(--erfolg);
}

/* Knöpfe */
.knopf,
button,
input[type="submit"] {
  display: inline-block;
  font: inherit;
  font-weight: 500;
  line-height: 1.25;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  color: var(--weiss);
  background: var(--akzent);
  border: 2px solid var(--akzent);
  border-radius: var(--radius);
  padding: .75rem 1.5rem;
}

.knopf:hover,
button:hover,
input[type="submit"]:hover {
  color: var(--weiss);
  background: var(--primaer);
  border-color: var(--primaer);
}

.knopf-zweit,
button.knopf-zweit {
  color: var(--akzent);
  background: transparent;
  border: 2px solid var(--akzent);
}

.knopf-zweit:hover,
button.knopf-zweit:hover {
  color: var(--weiss);
  background: var(--primaer);
  border-color: var(--primaer);
}

.knopf-klein {
  padding: .4rem .9rem;
}

/* Formulare */
.formular {
  display: grid;
  gap: 1rem;
  max-width: 32rem;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: .25rem;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="file"],
select,
textarea {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  font: inherit;
  color: var(--primaer);
  background: var(--weiss);
  border: 1px solid var(--hell);
  border-radius: var(--radius);
  padding: .5rem .75rem;
}

input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--akzent);
}

.feld-fehler,
.errorlist {
  color: var(--fehler);
  margin: .25rem 0 0;
  padding: 0;
  list-style: none;
}

.hilfetext,
.helptext {
  display: block;
  color: var(--mittel);
  font-size: .9rem;
  margin-top: .25rem;
}

/* Tabellen */
.tabelle-rahmen {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--weiss);
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: .6rem .75rem;
  border-bottom: 1px solid var(--grund-3);
}

th {
  font-weight: 600;
  border-bottom: 2px solid var(--hell);
}

.zahl {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.kennung {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .9rem;
}

.status-ausgestellt {
  color: var(--erfolg);
  font-weight: 600;
}

.status-abgelehnt {
  color: var(--fehler);
  font-weight: 600;
}

/* Fußzeile */
.fuss {
  background: var(--sehr-dunkel);
  color: var(--grund-2);
}

.fuss-innen {
  display: flex;
  align-items: center;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.fuss-logo {
  display: block;
  height: 2.5rem;
  width: auto;
}

.fuss-betreiber {
  margin: 0;
}

.fuss-links {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}

.fuss a {
  color: var(--grund-2);
}

.fuss a:hover {
  color: var(--weiss);
}

@media (max-width: 40rem) {
  .kopf-innen,
  .fuss-innen,
  .inhalt {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .fuss-links {
    margin-left: 0;
  }
}
