/* Bergemann GmbH - Hinweis zur Betriebsschließung
   Schriften lokal gehostet (keine externen Font-Server). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #ea3323;
  --red-ink: #c4211a; /* abgedunkeltes Markenrot für kleine Schrift (AA-Kontrast) */
  --ink: #0b1220;
  --muted: #4b5567;
  --line: #e5e9f2;
  --paper: #ffffff;
  --subtle: #f6f7fa;

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;

  --gutter: clamp(1.25rem, 0.75rem + 2.5vw, 3rem);
  --radius: 0.75rem;

  color-scheme: light;
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  font-size-adjust: from-font;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}

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

a {
  color: inherit;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

a:hover {
  color: var(--red-ink);
}

a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 0.5rem;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

/* Kopfzeile */

.site-header {
  border-top: 6px solid var(--red);
}

.site-header__inner,
.site-main,
.site-footer__inner {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.logo {
  display: inline-block;
  line-height: 0;
}

.logo img {
  width: clamp(7.5rem, 6rem + 6vw, 11.125rem);
}

/* Inhalt */

.site-main {
  flex: 1;
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 5.5rem) clamp(3rem, 2rem + 5vw, 6rem);
}

.notice {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 960px) {
  .notice {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  .notice__head {
    position: sticky;
    top: 2rem;
  }
}

.notice__date {
  margin: 0 0 1rem;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--red-ink);
}

.notice__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.125rem, 1.4rem + 3.2vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

@media (min-width: 960px) {
  .notice__title {
    font-size: clamp(2.5rem, 1rem + 2.6vw, 3.5rem);
  }
}

.notice__title mark {
  background: none;
  color: var(--red);
}

.letter {
  max-width: 40rem;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
}

.letter p {
  margin: 0 0 1.25em;
  text-wrap: pretty;
}

.letter__salutation {
  font-weight: 600;
}

.letter h2 {
  margin: 2.25rem 0 1rem;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.points {
  list-style: none;
  margin: 0 0 2.25rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.points li {
  padding: 1rem 1.25rem;
  background: var(--subtle);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  text-wrap: pretty;
}

.points strong {
  font-weight: 700;
}

.contact {
  margin-top: 2.5rem;
  padding: 1.5rem 1.5rem 1.625rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact p {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 1rem;
}

.contact a {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.125rem, 1rem + 0.8vw, 1.5rem);
  color: var(--ink);
}

.contact a:hover {
  color: var(--red-ink);
}

/* Rechtstexte */

.legal {
  max-width: 46rem;
}

.legal h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.legal__lead {
  margin: 0 0 2.5rem;
  color: var(--muted);
}

.legal section + section {
  margin-top: 2rem;
}

.legal h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 650;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.legal p,
.legal ul {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.legal ul {
  padding-left: 1.25rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

/* Fußzeile */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--subtle);
  font-size: 0.9375rem;
  color: var(--muted);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem;
}

.site-footer p {
  margin: 0;
}

.site-footer nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.site-footer nav a {
  display: inline-block;
  padding-block: 0.5rem;
  color: var(--ink);
  font-weight: 600;
}

.site-footer nav a[aria-current="page"] {
  color: var(--red-ink);
}

/* Platz für den Hallo-Petra-Button unten rechts */
@media (max-width: 639px) {
  .site-footer__inner {
    padding-bottom: 6rem;
  }
}

@media print {
  .site-footer nav,
  .skip-link {
    display: none;
  }
}
