:root {
  --nnl-violett: #83406f;
  --nnl-hellgruengelb: #b4c897;
  --nnl-hellbeige: #dcc6a3;
  --nnl-himmelblau: #cce9f3;
  --white: #ffffff;
  --black: #000000;

  --element: var(--nnl-violett);

  --font: "FS Me", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 16px;
  --container: 1400px;
  --gutter: 20px;
  --section-y: 96px;
  --text-gap: 120px;

  --band-ratio: 1190.55 / 105;
  --band: calc(100vw * 105 / 1190.55);

  --header-h: 88px;
  --hero-min: 240px;
  --hero-gap: clamp(40px, calc(9svh - 24px), 120px);
  --hero-pad-bottom: clamp(32px, 5svh, 64px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-size: 20px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.1;
  overflow-wrap: break-word;
  hyphens: auto;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--nnl-violett);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--white);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  border-radius: 8px;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 16px 32px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.btn svg {
  flex: none;
  width: 20px;
  height: 20px;
}

.btn--primary {
  background: var(--nnl-violett);
  color: var(--white);
}

.btn--light {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

.btn--outline-light {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn--small {
  padding: 14px 24px;
  font-size: 19px;
}

.site-header {
  min-height: var(--header-h);
  background: var(--white);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--black);
  font-size: 20px;
  text-decoration: none;
}

.header-link:hover {
  text-decoration: underline;
}

.header-link svg {
  width: 22px;
  height: 22px;
}

.hero {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
}

.hero-image {
  position: relative;
  flex: 1 1 auto;
  min-height: var(--hero-min);
  overflow: hidden;
  background: var(--element);
}

.hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.hero-panel {
  position: relative;
  flex: none;
  padding: var(--hero-gap) 0 var(--hero-pad-bottom);
  background: var(--element);
  color: var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
}

.hero-text {
  max-width: 900px;
}

.hero-signet {
  display: block;
  margin-right: calc(-1 * var(--gutter));
  border-radius: 8px;
}

.hero-signet img {
  width: clamp(380px, 25vw, 460px);
  max-width: calc(100% + var(--gutter));
  height: auto;
}

.hero-panel .lead {
  margin-top: clamp(12px, 2svh, 24px);
}

.kicker {
  display: block;
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-panel .kicker {
  margin-bottom: clamp(8px, 1.5svh, 16px);
}

.hero-panel h1 {
  font-size: clamp(44px, min(4vw, 6.6svh), 60px);
  line-height: 1.05;
}

.hero-panel .lead {
  font-size: clamp(20px, 2vh, 24px);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: clamp(20px, 3svh, 32px);
}

.hero-panel a:not(.btn) {
  color: var(--white);
}

.wave-top::before,
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  aspect-ratio: var(--band-ratio);
  background-color: var(--element);
  -webkit-mask-size: 100% auto;
  mask-size: 100% auto;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
}

.wave-top::before,
.site-footer::before {
  bottom: 100%;
  margin-bottom: -1px;
  -webkit-mask-image: url("../nnl/nnl-dialogelement-querformat-02a-2026-06.svg");
  mask-image: url("../nnl/nnl-dialogelement-querformat-02a-2026-06.svg");
  -webkit-mask-position: top center;
  mask-position: top center;
}

@supports not ((mask-image: none) or (-webkit-mask-image: none)) {
  .wave-top::before,
  .site-footer::before {
    display: none;
  }
}

.section {
  padding: var(--section-y) 0;
}

main > :last-child {
  padding-bottom: calc(var(--section-y) + var(--band));
}

.section-head {
  max-width: 900px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: 48px;
}

.section-head p {
  margin-top: 16px;
  font-size: 22px;
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.area-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
}

.area-card--wildnis {
  background: var(--nnl-hellgruengelb);
}

.area-card--offen {
  background: var(--nnl-hellbeige);
}

.area-card figure {
  margin: 0;
}

.area-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.area-card .area-body {
  padding: 48px;
}

.area-card h3 {
  margin-bottom: 20px;
  font-size: 40px;
}

.area-card .kicker {
  margin-bottom: 12px;
}

.section--beige {
  background: var(--nnl-hellbeige);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px 32px;
  background: var(--white);
  border-radius: var(--radius);
  font-size: 19px;
}

.tile-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--nnl-violett);
  color: var(--white);
}

.tile-icon svg {
  width: 34px;
  height: 34px;
}

.tile h3 {
  font-size: 26px;
}

.tile address {
  font-style: normal;
}

.tile dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin: 0;
}

.tile dt {
  font-weight: 700;
}

.tile dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.tile .btn {
  align-self: flex-start;
  margin-top: auto;
}

.infobox {
  margin-top: 40px;
  padding: 28px 32px;
  background: var(--nnl-himmelblau);
  border-radius: var(--radius);
  font-size: 19px;
}

.page-title {
  padding: 56px 0 8px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-bottom: 16px;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.back-link svg {
  flex: none;
  width: 18px;
  height: 18px;
}

.page-title .kicker {
  color: var(--nnl-violett);
}

.page-title .container {
  max-width: 900px;
}

.page-title h1 {
  font-size: 56px;
}

.legal {
  max-width: 900px;
  overflow-wrap: anywhere;
  padding-top: 32px;
  font-size: 19px;
}

.legal h2 {
  margin: 48px 0 16px;
  font-size: 32px;
}

.legal h3 {
  margin: 32px 0 12px;
  font-size: 24px;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal address {
  margin-bottom: 1em;
  font-style: normal;
}

.legal ul,
.legal ol {
  padding-left: 1.4em;
}

.legal li {
  margin-bottom: 8px;
}

.legal .stand {
  margin-top: 32px;
  font-size: 17px;
}

.site-footer {
  position: relative;
  background: var(--element);
  color: var(--white);
  font-size: 18px;
}

.site-footer a {
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 64px;
  padding-top: 32px;
}

.site-footer h2 {
  margin-bottom: 16px;
  font-size: 28px;
}

.site-footer address {
  font-style: normal;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  padding: 6px 0;
  font-size: 19px;
}

.footer-partners {
  background: var(--white);
  color: var(--black);
}

.footer-partners .container {
  padding-top: 36px;
  padding-bottom: 36px;
}

.footer-partners a {
  display: inline-block;
  padding: 12px;
  margin-left: -12px;
  border-radius: 8px;
}

.footer-partners img {
  width: 360px;
  max-width: 100%;
  height: auto;
}

@media (max-width: 1100px) {
  :root {
    --section-y: 72px;
    --text-gap: 64px;
    --hero-gap: 40px;
    --hero-pad-bottom: 56px;
    --hero-img: clamp(280px, 45svh, 60vw);
  }

  .hero {
    display: block;
    min-height: 0;
  }

  .hero-image {
    height: var(--hero-img);
    min-height: 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-signet {
    order: -1;
    justify-self: end;
  }

  .hero-panel h1 {
    font-size: 56px;
  }

  .hero-panel .lead {
    font-size: 22px;
  }

  .section-head h2 {
    font-size: 40px;
  }

  .area-card h3 {
    font-size: 28px;
  }

  .area-card .area-body {
    padding: 32px;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .hero-signet img {
    width: 340px;
  }
}

@media (max-width: 720px) {
  :root {
    --section-y: 56px;
    --text-gap: 40px;
    --gutter: 16px;
    --header-h: 80px;
    --hero-gap: 32px;
    --hero-pad-bottom: 48px;
    --hero-img: clamp(200px, 36svh, 100vw);
  }

  body {
    font-size: 18px;
  }

  .header-bar {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero-signet img {
    width: min(300px, calc(100vw - 2 * var(--gutter)));
  }

  .hero-panel h1 {
    font-size: 38px;
  }

  .hero-panel .lead {
    font-size: 20px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .section-head h2,
  .page-title h1 {
    font-size: 32px;
  }

  .section-head p {
    font-size: 20px;
  }

  .area-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .area-grid {
    gap: 24px;
  }

  .area-card h3 {
    font-size: 26px;
  }

  .area-card .area-body,
  .tile {
    padding: 28px 22px;
  }

  .page-title {
    padding: 40px 0 4px;
  }

  .legal h2 {
    font-size: 26px;
  }

  .legal h3 {
    font-size: 21px;
  }

  .footer-grid {
    gap: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .hero-image,
  .hero-signet,
  .wave-top::before,
  .site-footer::before {
    display: none;
  }

  .hero-panel,
  .site-footer {
    background: none;
    color: var(--black);
  }

  .site-footer a,
  .hero-panel a:not(.btn) {
    color: var(--black);
  }
}
