:root {
  color-scheme: light;
  --ink: #263746;
  --muted: #64727d;
  --blue: #1d4f7a;
  --blue-dark: #173c5c;
  --blue-light: #dceaf2;
  --accent: #0090D4;
  --sand: #a5825d;
  --paper: #ffffff;
  --page: #fafcff;
  --line: #dbe3e8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  padding: 8rem 3rem 7rem;
  color: var(--ink);
  background-color: #d9e5f0;
  background-image: url("../img/hintergrund.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: var(--blue);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--blue-dark);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #ba8c5e;
  outline-offset: 4px;
}

.page-shell {
  position: relative;
  width: min(100%, 1280px);
  min-height: calc(100vh - 15rem);
  margin: 0 auto;
  overflow: visible;
  background: var(--paper);
  box-shadow: 0 0 30px rgb(26 49 67 / 15%), 0 0 4px rgb(26 49 67 / 8%);
}

.site-header {
  position: relative;
  padding: 7.5rem 3rem 0;
  text-align: center;
}

.brand {
  position: absolute;
  z-index: 2;
  top: -3.7rem;
  left: 50%;
  display: block;
  width: 9.2rem;
  transform: translateX(-50%);
}

.brand-mark {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 3px 4px rgb(23 60 92 / 17%));
}

.menu-toggle {
  display: none;
}

.primary-navigation {
  border-bottom: 1px solid var(--line);
}

.primary-navigation > ul {
  display: flex;
  justify-content: center;
  gap: clamp(0.25rem, 2.5vw, 2.4rem);
  margin: 0;
  padding: 0 0 1rem;
  list-style: none;
}

.primary-navigation a,
.primary-navigation button {
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: 2px;
  color: var(--blue-dark);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.primary-navigation button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.primary-navigation a:hover,
.primary-navigation button:hover,
.nav-dropdown:hover > .nav-dropdown-toggle,
.nav-dropdown:focus-within > .nav-dropdown-toggle,
.nav-dropdown.is-current > .nav-dropdown-toggle {
  background: #edf3f7;
  color: var(--blue);
}

.primary-navigation a.active,
.primary-navigation a[aria-current="page"] {
  background: var(--blue);
  color: #fff;
}

.nav-dropdown {
  position: relative;
}

.nav-submenu {
  position: absolute;
  z-index: 5;
  top: 100%;
  left: 0;
  display: flex;
  min-width: 12rem;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0;
  padding: 0.45rem;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 18px rgb(26 49 67 / 16%);
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.35rem);
  transition: opacity 140ms ease, transform 140ms ease;
  visibility: hidden;
}

.nav-dropdown:hover > .nav-submenu,
.nav-dropdown:focus-within > .nav-submenu,
.nav-dropdown.is-open > .nav-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.primary-navigation .nav-submenu a {
  padding: 0.5rem 0.7rem;
  white-space: nowrap;
}

.primary-navigation .nav-submenu a[aria-current="page"] {
  background: var(--blue);
  color: #fff;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 3rem;
}

.content-section {
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--line);
}

.welcome {
  padding-top: 2.2rem;
  padding-bottom: 1.8rem;
  text-align: center;
}

.eyebrow,
.entry-label {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--blue-dark);
  line-height: 1.3;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.welcome-copy {
  max-width: 850px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
}

.welcome-contact {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.section-heading {
  margin-bottom: 0.8rem;
}

.home-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.home-sections > .content-section {
  padding: 1.2rem 1.2rem 1rem;
  border-bottom: 0;
}

.home-sections > .content-section + .content-section {
  border-left: 1px solid var(--line);
}

.home-sections p {
  font-size: 0.94rem;
  line-height: 1.55;
}

.home-sections h3 {
  font-size: 1.1rem;
}

.membership-cta {
  color: inherit;
  text-decoration: none;
}

.membership-cta:hover {
  text-decoration: underline;
}

.membership-download-row {
  margin: 1.25rem auto 0;
  text-align: left;
}

.membership-download {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  border-radius: 2px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.membership-download:hover {
  background: var(--blue-dark);
  color: #fff;
}

.legal-page main,
.legal-page main * {
  text-align: left;
}

.legal-page .legal-section {
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--line);
}

.legal-page .legal-section:last-child {
  border-bottom: 0;
}

.legal-page h1,
.legal-page h2,
.legal-page h3 {
  margin-bottom: 0.7rem;
}

.legal-page p:last-child {
  margin-bottom: 0;
}

.association-list {
  border-bottom: 1px solid var(--line);
}

.association-entry {
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}

.association-entry:last-child {
  border-bottom: 0;
}

.association-entry h2 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
}

.association-entry dl {
  display: grid;
  grid-template-columns: minmax(8.5rem, 0.35fr) minmax(0, 1fr);
  gap: 0.25rem 1rem;
  margin: 0;
}

.association-entry dt {
  color: var(--blue-dark);
  font-weight: 600;
}

.association-entry dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.about-section {
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--line);
}

.about-section:last-child {
  border-bottom: 0;
}

.about-section h1,
.about-section h2 {
  margin-bottom: 0.8rem;
}

.about-intro p:last-child,
.about-board p:last-child {
  margin-bottom: 0;
}

.member-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.member-list li {
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-page .contact-intro {
  max-width: 760px;
  margin: 0 0 1.8rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.contact-form {
  display: grid;
  gap: 1.1rem;
  max-width: 760px;
}

.contact-form label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--blue-dark);
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid #aebdc8;
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  outline: 2px solid rgb(29 79 122 / 18%);
}

.contact-form textarea {
  min-height: 14rem;
  overflow-y: auto;
  resize: none;
}

.contact-form button {
  justify-self: start;
  padding: 0.65rem 1.1rem;
  border: 0;
  border-radius: 2px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.contact-form button:hover {
  background: var(--blue-dark);
}

.contact-form-note,
.contact-form-status {
  max-width: 760px;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-form-status:empty {
  display: none;
}

.news-item,
.event-item,
.instagram-item {
  max-width: 760px;
}

.news-item p:last-child,
.event-item p:last-child,
.instagram-item p:last-child,
.contact-section p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.entry-label {
  color: var(--accent);
  letter-spacing: 0.08em;
}

.event-item,
.instagram-item {
  padding-left: 1.25rem;
  border-left: 3px solid var(--accent);
}

.event-date {
  margin-bottom: 0.45rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.instagram-section {
  padding-top: 1.5rem;
  padding-bottom: 1.2rem;
}

.instagram-section h2 {
  margin-bottom: 0.9rem;
}

.instagram-link {
  display: inline-flex;
  width: 2.8rem;
  height: 2.8rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.8rem;
  border-radius: 0.45rem;
  background: var(--accent);
  color: #fff;
  transition: background-color 160ms ease, transform 160ms ease;
}

.instagram-link:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
}

.instagram-link svg {
  width: 1.65rem;
  height: 1.65rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.instagram-link .instagram-icon-dot {
  fill: currentColor;
  stroke: none;
}

.contact-section {
  display: flex;
  align-items: center;
  min-height: 175px;
  margin: 0 -3rem;
  padding: 2.2rem 3rem;
  background: #f3f7f9;
  border-top: 3px solid var(--blue-light);
}

.contact-section h2 {
  margin-bottom: 0.5rem;
  font-size: 1.45rem;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1.428rem auto;
  align-items: start;
  column-gap: 0.8rem;
  row-gap: 0.75rem;
  padding: 1.6rem 3rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.site-footer::before {
  content: "";
  grid-column: 1 / -1;
  grid-row: 1;
}

.site-footer > a {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  justify-self: end;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.footer-note,
.copyright {
  margin: 0;
}

.footer-note {
  margin-right: auto;
  color: var(--blue-dark);
  font-weight: 700;
}

.copyright {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  margin-top: 0;
  color: #7b8790;
}

@media (max-width: 700px) {
  body {
    padding: 3.5rem 1.6rem 2.8rem;
  }

  .page-shell {
    min-height: calc(100vh - 6.3rem);
  }

  .site-header {
    padding: 7.2rem 1.2rem 0;
  }

  .brand {
    top: -3.1rem;
    width: 8.2rem;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 0.9rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #fff;
    color: var(--blue-dark);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
  }

  .menu-toggle-icon {
    display: grid;
    gap: 4px;
  }

  .menu-toggle-icon span {
    display: block;
    width: 17px;
    height: 2px;
    background: currentColor;
  }

  .primary-navigation {
    display: none;
    border-top: 1px solid var(--line);
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-navigation > ul {
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.7rem 0;
  }

  .primary-navigation a,
  .primary-navigation button {
    padding: 0.55rem 0.75rem;
  }

  .nav-dropdown-toggle {
    width: 100%;
    text-align: left;
  }

  .nav-submenu {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 0.35rem 0.8rem;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
  }

  .nav-dropdown:hover > .nav-submenu,
  .nav-dropdown:focus-within > .nav-submenu {
    display: none;
  }

  .nav-dropdown.is-open > .nav-submenu {
    display: flex;
  }

  main {
    padding: 0 1.4rem;
  }

  .home-sections {
    grid-template-columns: 1fr;
  }

  .member-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-sections > .content-section {
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--line);
  }

  .home-sections > .content-section + .content-section {
    border-left: 0;
  }

  .content-section {
    padding: 1.6rem 0;
  }

  .welcome {
    padding-top: 1.8rem;
    padding-bottom: 1.6rem;
  }

  .contact-section {
    min-height: auto;
    margin: 0 -1.4rem;
    padding: 1.8rem 1.4rem;
  }

  .site-footer {
    padding: 1.3rem 1.4rem;
  }
}

@media (max-width: 420px) {
  .member-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
