/* Gestaltung nach bfa.ch, Vorlage: pruefbank_portal/vorlagen/marke/gestaltung.md */

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

:root {
  --primaer: #002b51;
  --akzent: #105b9e;
  --sehr-dunkel: #001629;
  --hell: #b7c3ce;
  --hintergrund-2: #eef1f3;
  --fokus: #0050bd;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Hanken Grotesk", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--primaer);
  background: #fff;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

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

.kopf {
  padding: 1.5rem clamp(1.25rem, 5vw, 4rem);
  border-bottom: 1px solid var(--hintergrund-2);
}

.kopf-logo {
  display: inline-block;
}

.kopf-logo img {
  width: 9rem;
}

.inhalt {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem clamp(1.25rem, 5vw, 4rem);
  background: var(--hintergrund-2);
}

.inhalt h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  overflow-wrap: break-word;
}

.inhalt p {
  margin: 0;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 400;
}

.fuss {
  background: var(--sehr-dunkel);
  color: #fff;
  padding: 2.5rem clamp(1.25rem, 5vw, 4rem);
}

.fuss-innen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.5rem;
}

.fuss-logo {
  width: 7rem;
}

.fuss-firma {
  margin: 0;
  font-size: 1rem;
}

.fuss-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-left: auto;
  font-size: 1rem;
}

.fuss-links a {
  text-underline-offset: .2em;
}

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

.fuss-links a:focus-visible {
  outline-color: #fff;
}

@media (max-width: 40rem) {
  .fuss-innen {
    flex-direction: column;
    align-items: flex-start;
  }

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

/* Textseiten: Impressum, Datenschutz */

.inhalt-text {
  justify-content: flex-start;
  background: #fff;
}

.inhalt-text > * {
  max-width: 42rem;
}

.inhalt-text h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin-bottom: 1.5rem;
}

.inhalt-text h2 {
  margin: 2rem 0 .5rem;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
}

.inhalt-text p {
  font-size: 1.125rem;
}

.inhalt-text p + p {
  margin-top: .75rem;
}

.platzhalter {
  padding: 0 .3em;
  border: 1px dashed var(--primaer);
  border-radius: 3px;
  background: #fff1b8;
  color: var(--primaer);
  overflow-wrap: anywhere;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.fuss-links a[aria-current="page"] {
  text-decoration-thickness: 2px;
}
