

:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --paper-soft: #f2f7fa;

  --ink: #02457c;
  --muted: #02457c;
  --brand: #02457c;
  --brand-dark: #02457c;
  --brand-hover: #00669a;
  --brand-light: #e7f1f7;
  --accent: #b7a164;

  --line: #d9e6ee;
  --shadow: none;
  --radius: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

body,
p,
li,
span,
small,
strong,
h1,
h2,
h3,
h4,
a,
time,
code {
  color: var(--ink);
}

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

a:hover,
a:focus {
  color: var(--brand-hover);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 3px solid rgba(2, 69, 124, 0.24);
  outline-offset: 3px;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

/* Header näher an Originalwebsite */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.header-inner {
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  color: var(--brand);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 255px;
  max-width: 100%;
  height: auto;
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding-left: 2px;
  padding-top:25px;
  white-space: nowrap;
}

.brand strong {
  display: inline;
  color: var(--brand);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
}

.brand small {
  display: inline;
  margin-top: 0;
  color: var(--brand);
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.2;
}

/* Funktioniert für dein <nav> und auch optional für .main-nav */

nav,
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

nav a,
.main-nav a {
  color: var(--brand);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

nav a:hover,
nav a:focus,
.main-nav a:hover,
.main-nav a:focus {
  color: var(--brand-hover);
  text-decoration: none;
}

.admin-link {
  color: var(--brand);
}

/* Hero / Seitenkopf */

.hero {
  padding: 58px 0 56px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: 44px;
  align-items: start;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 16px;
  color: var(--brand);
  line-height: 1.18;
  font-weight: 700;
}

h1 {
  max-width: 840px;
  font-size: clamp(2.35rem, 5vw, 4.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

h4 {
  margin-top: 0;
  font-size: 1.04rem;
  font-weight: 700;
}

p {
  margin: 0 0 15px;
}

.lead {
  max-width: 760px;
  color: var(--brand);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 300;
}

.updated {
  margin-top: 20px;
  color: var(--brand);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Status */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 7px 0;
  color: var(--brand);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-badge::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--brand);
}

.status-normal,
.status-hinweis,
.status-stoerung,
.status-notfall {
  color: var(--brand);
}

/* Buttons sichtbar, aber ruhiger wie Originalseite */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 210px;
  padding: 13px 20px;
  color: var(--brand);
  background: #ffffff;
  border: 2px solid var(--brand);
  border-radius: 0;
  box-shadow: none;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button span {
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 400;
}

.button:hover,
.button:focus {
  color: #ffffff;
  background: var(--brand);
  text-decoration: none;
}

.button:hover span,
.button:focus span {
  color: #ffffff;
}

.button.primary {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
}

.button.primary span {
  color: #ffffff;
}

.button.primary:hover,
.button.primary:focus {
  color: var(--brand);
  background: #ffffff;
  border-color: var(--brand);
}

.button.primary:hover span,
.button.primary:focus span {
  color: var(--brand);
}

/* Inhaltsbereiche */

.section {
  padding: 58px 0;
  background: #ffffff;
}

.section.alt,
.section-light {
  background: var(--paper-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.emergency-card,
.source-card,
.card,
.contact-card,
.service-list article,
.info-grid article,
.hero-card,
.info-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.emergency-card {
  padding: 28px 30px;
  border-left: 5px solid var(--brand);
}

.emergency-card h2,
.emergency-card p {
  color: var(--brand);
}

.tiny {
  color: var(--brand);
  font-size: 0.88rem !important;
  font-weight: 300;
}

/* Karten dezenter und originalnäher */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.card {
  padding: 24px 26px;
  border-left: 5px solid var(--brand);
}

.priority-hoch,
.priority-mittel,
.priority-niedrig {
  border-left-color: var(--brand);
}

/* Service-Status */

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.service-list article {
  padding: 22px 24px;
  border-left: 5px solid var(--brand);
}

.service-list strong {
  display: block;
  color: var(--brand);
  font-size: 1.02rem;
  font-weight: 700;
}

.service-list span {
  display: inline-block;
  margin: 6px 0 8px;
  color: var(--brand);
  font-weight: 500;
}

.service-list p {
  margin-bottom: 0;
  color: var(--brand);
  font-weight: 300;
}

/* Kontaktbereich */

.contact-groups {
  display: grid;
  gap: 36px;
  margin-top: 24px;
}

.contact-group h3 {
  margin-bottom: 16px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 18px;
}

.contact-card {
  padding: 24px 26px;
  border-left: 5px solid var(--brand);
}

.contact-card p {
  margin-bottom: 14px;
  color: var(--brand);
  font-weight: 300;
}

.contact-card a {
  display: inline-block;
  margin-right: 12px;
  color: var(--brand);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-card a:hover,
.contact-card a:focus {
  color: var(--brand-hover);
}

/* Zwei-Spalten-Bereich */

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
  gap: 36px;
  align-items: start;
}

.info-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.info-list article {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.source-card {
  padding: 26px 28px;
  border-left: 5px solid var(--brand);
}

code {
  padding: 2px 6px;
  color: var(--brand);
  background: var(--brand-light);
  border-radius: 0;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 0.92em;
}

/* Falls später Formularfelder im HTML dazukommen */

label,
input,
textarea,
button {
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  color: var(--brand);
}

input,
textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #ffffff;
  color: var(--brand);
  font: inherit;
}

input:focus,
textarea:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(2, 69, 124, 0.16);
}

/* Footer */

.site-footer {
  padding: 30px 0;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-footer p {
  margin: 0;
  color: var(--brand);
  font-size: 0.94rem;
  font-weight: 400;
}

.site-footer a {
  color: var(--brand);
  font-weight: 500;
}

.noscript {
  padding: 14px;
  color: var(--brand);
  background: var(--brand-light);
  text-align: center;
  font-weight: 700;
}

/* Responsive */

@media (max-width: 860px) {
  .header-inner {
    min-height: auto;
    padding: 20px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  nav,
  .main-nav {
    justify-content: flex-start;
    gap: 12px 18px;
  }

  .brand-logo {
    width: 225px;
  }

  .hero {
    padding: 42px 0;
  }

  .hero-grid,
  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.65rem;
  }

  .button {
    width: 100%;
  }

  .brand-logo {
    width: 205px;
  }

  .emergency-card,
  .source-card,
  .card,
  .contact-card,
  .service-list article {
    padding: 22px;
  }
}

@media print {
  .site-header,
  .skip-link,
  .actions,
  .admin-link {
    display: none;
  }

  body {
    background: #ffffff;
  }

  .hero,
  .section,
  .section.alt,
  .section-light {
    padding: 22px 0;
    background: #ffffff;
    border: 0;
  }

  .emergency-card,
  .source-card,
  .card,
  .contact-card,
  .service-list article,
  .info-grid article,
  .hero-card,
  .info-box {
    box-shadow: none;
  }

  a::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    font-weight: 400;
  }
}

