:root {
  --primary: #175a9f;
  --primary-dark: #114172;
  --secondary: #c22544;
  --text: #000;
  --bg: #fdfdfd;
  --header-h: 96px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

h1,
h2,
h3 {
  font-family: "Poppins", "Open Sans", system-ui, sans-serif;
  line-height: 1.2;
}

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

a {
  color: var(--primary);
}

:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.logo img {
  width: auto;
  height: calc(var(--header-h) - 12px);
}

.main-nav ul {
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  display: inline-block;
  padding: 0.5rem 0;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  border-bottom-color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 28px;
  height: 3px;
  margin: 0 auto;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, background 0.25s;
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -9px;
}

.nav-toggle span::after {
  top: 9px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-9px) rotate(-45deg);
}

.shape-divider {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 28px;
  line-height: 0;
  pointer-events: none;
}

.shape-divider svg {
  width: 100%;
  height: 100%;
}

.shape-divider path {
  fill: var(--primary);
}

/* Galerie */
.gallery-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.25rem 3rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: #f7f7f7;
  border: 0;
  border-radius: 4px;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.gallery button:hover img,
.gallery button:focus-visible img {
  transform: scale(1.05);
}

/* Lightbox */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  padding: 0;
  background: rgba(0, 0, 0, 0.92);
  border: 0;
  color: #fff;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.92);
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: calc(100vw - 8rem);
  max-height: calc(100dvh - 4rem);
  object-fit: contain;
}

.lightbox button {
  position: absolute;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.lightbox button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox .lb-close {
  top: 1rem;
  right: 1rem;
}

.lightbox .lb-prev {
  left: 1rem;
}

.lightbox .lb-next {
  right: 1rem;
}

.lightbox .lb-count {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Kontakt */
.contact {
  background: var(--primary);
  color: #fff;
}

.contact .inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
}

.contact h2 {
  margin: 0 0 1rem;
  font-size: 2.25rem;
}

.contact address {
  font-style: normal;
}

.contact address strong {
  font-size: 1.15rem;
}

.contact a {
  color: #fff;
}

.contact a:hover {
  text-decoration: none;
}

.map-box {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: var(--primary-dark);
  border-radius: 4px;
}

.map-box iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-consent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: 100%;
  min-height: 320px;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

.map-consent p {
  max-width: 34rem;
  margin: 0;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  font: 700 0.95rem "Poppins", sans-serif;
  text-decoration: none;
  color: #fff !important;
  background: var(--secondary);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover {
  background: #a01d37;
}

/* Footer */
.site-footer {
  background: var(--primary);
  color: #fff;
}

.social {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin: 0;
  padding: 1.5rem 0 0.5rem;
  list-style: none;
}

.social a {
  display: block;
  width: 36px;
  height: 36px;
  color: #fff;
  transition: opacity 0.2s;
}

.social a:hover {
  opacity: 0.7;
}

.social svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.footer-bar {
  padding: 1rem 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

.footer-bar a {
  color: #fff;
}

.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 44px;
  height: 44px;
  padding: 11px;
  color: #fff;
  background: var(--secondary);
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.to-top.visible {
  opacity: 1;
  visibility: visible;
}

.to-top svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Rechtstexte */
.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4rem;
}

.legal .back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.legal h1 {
  margin: 0 0 1.5rem;
  color: var(--primary);
  font-size: 2.25rem;
}

.legal h2 {
  margin: 2.5rem 0 0.75rem;
  color: var(--primary);
  font-size: 1.5rem;
}

.legal h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.15rem;
}

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

.legal address {
  font-style: normal;
}

.legal .stand {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: #555;
}

/* Responsive */
@media (max-width: 820px) {
  :root {
    --header-h: 80px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: var(--primary);
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.2);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
  }

  .main-nav a {
    display: block;
    padding: 0.75rem 0;
  }

  .shape-divider {
    display: none;
  }

  .gallery-section {
    padding-top: 2rem;
  }

  .contact .inner {
    grid-template-columns: 1fr;
    padding: 3rem 1.25rem;
  }

  .lightbox img {
    max-width: 100vw;
    max-height: calc(100dvh - 8rem);
  }

  .lightbox .lb-prev,
  .lightbox .lb-next {
    top: auto;
    bottom: 3rem;
  }
}

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

  * {
    transition: none !important;
  }
}
