:root {
  color-scheme: light;
  --porzellan: #f8f6f0;
  --weiss: #ffffff;
  --blau: #173f5f;
  --petrol: #405f59;
  --brombeere: #a05c45;
  --akzent-text: #864730;
  --mauve: #786a74;
  --eis: #e3ebed;
  --sand: #e7d6b8;
  --graphit: #27343a;
  --linie: #b8c4c2;
  --fehler: #a22929;
  --text-hell: #f9fbfb;
  --rand: clamp(1.1rem, 4vw, 4.8rem);
  --breite: 1260px;
  --schatten: 0 22px 54px rgba(23, 63, 95, 0.12);
  --schrift: "Segoe UI", Arial, sans-serif;
  --schrift-markant: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

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

html {
  scroll-behavior: auto;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  min-width: min(280px, 100%);
  overflow-x: clip;
  background: var(--porzellan);
  color: var(--graphit);
  font-family: var(--schrift);
  font-size: 1rem;
  line-height: 1.67;
  text-rendering: optimizeLegibility;
}

main {
  overflow: clip;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

button,
summary,
input[type="radio"],
input[type="checkbox"] {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--brombeere);
  outline-offset: 4px;
}

.pruefung :focus-visible,
.eigentuemer :focus-visible,
.anliegen-text :focus-visible,
.kontakt :focus-visible,
.footer :focus-visible {
  outline-color: var(--text-hell);
}

.rahmen {
  width: min(calc(100% - (2 * var(--rand))), var(--breite));
  margin-inline: auto;
}

.sprunglink {
  position: fixed;
  z-index: 1000;
  top: 0.65rem;
  left: 0.65rem;
  translate: 0 -190%;
  padding: 0.72rem 1rem;
  background: var(--weiss);
  color: var(--blau);
  font-weight: 850;
}

.sprunglink:focus {
  translate: 0;
}

.betreiberleiste {
  padding: 0.46rem var(--rand);
  background: var(--petrol);
  color: var(--text-hell);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.kopf {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(39, 52, 58, 0.16);
  background: rgba(248, 246, 240, 0.97);
  backdrop-filter: blur(10px);
}

.kopf-innen {
  position: relative;
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wortmarke {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.78rem;
  color: var(--blau);
  text-decoration: none;
}

.awz-logo {
  width: 66px;
  flex: 0 0 66px;
}

.wortmarke > span {
  display: grid;
  min-width: 0;
  line-height: 1.02;
}

.wortmarke b {
  font-family: var(--schrift-markant);
  font-size: 1.34rem;
  letter-spacing: -0.035em;
}

.wortmarke small {
  margin-top: 0.34rem;
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.navigation {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: clamp(0.62rem, 1.35vw, 1.25rem);
  font-size: clamp(0.73rem, 0.9vw, 0.84rem);
  font-weight: 850;
}

.navigation a {
  white-space: nowrap;
  text-decoration: none;
}

.navigation a:not(.nav-aktion):hover,
.navigation a:not(.nav-aktion):focus-visible {
  color: var(--brombeere);
}

.navigation .nav-aktion {
  padding: 0.82rem 0.92rem;
  background: var(--blau);
  color: var(--weiss);
}

.navigation .nav-aktion:hover,
.navigation .nav-aktion:focus-visible {
  background: var(--brombeere);
}

.menue-schalter {
  display: none;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.82rem;
  gap: 0.7rem;
  border: 1px solid var(--blau);
  background: transparent;
  color: var(--blau);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menue-schalter i,
.menue-schalter i::before,
.menue-schalter i::after {
  display: block;
  width: 19px;
  height: 2px;
  background: currentColor;
}

.menue-schalter i {
  position: relative;
}

.menue-schalter i::before,
.menue-schalter i::after {
  content: "";
  position: absolute;
  left: 0;
}

.menue-schalter i::before { top: -6px; }
.menue-schalter i::after { top: 6px; }

.knopf {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0.84rem 1.2rem;
  border: 2px solid var(--blau);
  background: var(--blau);
  color: var(--weiss);
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, translate 160ms ease;
}

.knopf:hover,
.knopf:focus-visible {
  translate: 0 -2px;
  border-color: var(--brombeere);
  background: var(--brombeere);
}

.knopf-sekundaer {
  border-color: var(--brombeere);
  background: transparent;
  color: var(--brombeere);
}

.knopf-sekundaer:hover,
.knopf-sekundaer:focus-visible {
  color: var(--weiss);
}

.einordnung {
  display: block;
  margin-bottom: 0.72rem;
  color: var(--akzent-text);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.45;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
dd,
dt,
summary,
a,
label {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--blau);
  font-family: var(--schrift-markant);
  line-height: 1.08;
}

h2 {
  margin-bottom: 1.15rem;
  font-size: clamp(1.95rem, 4vw, 3.45rem);
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 0.58rem;
  font-size: 1.18rem;
}

p {
  margin-top: 0;
}

.bildrahmen {
  position: relative;
  margin: 0;
  background: var(--weiss);
  box-shadow: var(--schatten);
}

.bildrahmen img {
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: var(--eis);
}

.bildrahmen figcaption {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 0.62rem 0.8rem;
  gap: 1rem;
  border-top: 1px solid var(--linie);
  background: var(--weiss);
  color: #536367;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.bildrahmen figcaption b {
  flex: 0 0 auto;
  color: var(--brombeere);
}

.hausrahmen::before,
.hausrahmen::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 42px;
  height: 42px;
  pointer-events: none;
}

.hausrahmen::before {
  top: 0.78rem;
  left: 0.78rem;
  border-top: 2px solid var(--brombeere);
  border-left: 2px solid var(--brombeere);
}

.hausrahmen::after {
  right: 0.78rem;
  bottom: 3.35rem;
  border-right: 2px solid var(--mauve);
  border-bottom: 2px solid var(--mauve);
}

.textaktion {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--blau);
  font-weight: 850;
}

.textaktion:hover,
.textaktion:focus-visible {
  color: var(--brombeere);
}

.formular {
  position: relative;
  display: grid;
  min-width: 0;
  padding: clamp(1.15rem, 3vw, 2.15rem);
  gap: 1rem;
  border-top: 6px solid var(--brombeere);
  background: var(--weiss);
  color: var(--graphit);
  box-shadow: var(--schatten);
}

.honigfeld {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.auswahl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  gap: 0.52rem;
  border: 0;
}

.auswahl legend {
  width: 100%;
  margin-bottom: 0.62rem;
  color: var(--blau);
  font-weight: 900;
}

.auswahl label {
  display: flex;
  min-height: 64px;
  align-items: center;
  padding: 0.67rem;
  gap: 0.5rem;
  border: 1px solid #65787b;
  background: var(--porzellan);
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.35;
}

.auswahl label:has(input:checked) {
  border-color: var(--blau);
  background: var(--eis);
  box-shadow: inset 0 -3px 0 var(--blau);
}

.auswahl input,
.zustimmung input {
  width: 1.18rem;
  height: 1.18rem;
  flex: 0 0 auto;
  accent-color: var(--blau);
}

.pflicht-hinweis {
  margin: 0;
  color: #4f5f63;
  font-size: 0.78rem;
}

.pflichtzeichen {
  color: var(--fehler);
  font-weight: 900;
}

.feld {
  display: grid;
  min-width: 0;
  gap: 0.35rem;
  color: var(--blau);
  font-size: 0.85rem;
  font-weight: 850;
}

.feld input,
.feld textarea {
  width: 100%;
  min-width: 0;
  min-height: 49px;
  padding: 0.72rem 0.8rem;
  border: 1px solid #65787b;
  border-radius: 0;
  background: var(--weiss);
  font-weight: 450;
}

.feld textarea {
  min-height: 146px;
  resize: vertical;
}

.feld input[aria-invalid="true"],
.feld textarea[aria-invalid="true"],
.zustimmung input[aria-invalid="true"] {
  outline: 3px solid var(--fehler);
  outline-offset: 2px;
}

.freiwillig {
  border: 1px solid var(--linie);
}

.freiwillig summary {
  min-height: 49px;
  padding: 0.76rem;
  color: var(--blau);
  font-weight: 850;
}

.freiwillig-innen {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 0.76rem 0.76rem;
  gap: 0.75rem;
}

.feld-breit {
  grid-column: 1 / -1;
}

.zustimmung {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.81rem;
}

.zustimmung input {
  margin-top: 0.3rem;
}

.zustimmung a {
  color: var(--blau);
  font-weight: 850;
}

.formular-knopf {
  width: 100%;
}

.vertraulichkeit,
.formular-fehler {
  margin: 0;
  font-size: 0.79rem;
}

.vertraulichkeit {
  color: #526367;
}

.formular-fehler {
  min-height: 1.4em;
  color: var(--fehler);
  font-weight: 850;
}

.formular-fehler.ist-erfolg {
  color: var(--petrol);
}

.footer {
  padding: 1.55rem 0;
  background: #102f49;
  color: #e7eff1;
  font-size: 0.77rem;
}

.footer-raster {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 1rem 2rem;
}

.footer nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.72rem 1.12rem;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--weiss);
}

.bildhinweis {
  grid-column: 1 / -1;
  max-width: 100ch;
  margin: 0;
  color: #c9d7da;
  font-size: 0.71rem;
}

@media (max-width: 940px) {
  html {
    scroll-padding-top: 6rem;
  }

  .kopf-innen {
    min-height: 76px;
  }

  .menue-schalter {
    display: inline-flex;
  }

  .navigation {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    padding: 0.7rem;
    gap: 0;
    border: 1px solid var(--linie);
    background: var(--weiss);
    box-shadow: var(--schatten);
    font-size: 0.84rem;
  }

  .navigation[data-offen="false"] {
    display: none;
  }

  .navigation[data-offen="true"] {
    display: grid;
  }

  .navigation a {
    min-height: 48px;
    padding: 0.72rem 0.82rem;
    border-bottom: 1px solid #e1e7e6;
    white-space: normal;
  }

  .navigation .nav-aktion {
    margin-top: 0.45rem;
    border-bottom: 0;
    text-align: center;
  }
}

@media (max-width: 620px) {
  :root {
    --rand: 1rem;
  }

  .betreiberleiste {
    padding-block: 0.42rem;
    font-size: 0.62rem;
    line-height: 1.35;
  }

  .kopf-innen {
    gap: 0.65rem;
  }

  .wortmarke {
    gap: 0.55rem;
  }

  .awz-logo {
    width: 50px;
    flex-basis: 50px;
  }

  .wortmarke b {
    font-size: 1.04rem;
  }

  .wortmarke small {
    font-size: 0.53rem;
    letter-spacing: 0.08em;
  }

  .menue-schalter span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .menue-schalter {
    width: 48px;
    padding: 0;
  }

  .auswahl,
  .freiwillig-innen {
    grid-template-columns: 1fr;
  }

  .feld-breit {
    grid-column: auto;
  }

  .footer-raster {
    grid-template-columns: 1fr;
  }

  .footer nav {
    justify-content: flex-start;
  }

  .bildhinweis {
    grid-column: auto;
  }

  .bildrahmen figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.18rem;
  }

  .hausrahmen::after {
    bottom: 4.75rem;
  }
}

@media (max-width: 320px) {
  :root {
    --rand: 0.75rem;
  }

  .kopf-innen {
    gap: 0.4rem;
  }

  .wortmarke {
    gap: 0.4rem;
  }

  .awz-logo {
    width: 44px;
    flex-basis: 44px;
  }

  .wortmarke b {
    overflow-wrap: normal;
    font-size: 0.93rem;
    white-space: nowrap;
  }

  .wortmarke small {
    font-size: 0.46rem;
    letter-spacing: 0.055em;
  }

  .menue-schalter {
    width: 44px;
    min-height: 44px;
  }

}

@media (max-width: 360px) {
  h1,
  h2,
  h3 {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
    hyphenate-limit-chars: 10 4 4;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
