@font-face {
  font-family: 'Barlow';
  src: url('fonts/Barlow-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  src: url('fonts/BarlowSemiCondensed-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #faf7f2;
  --bg-alt: #f1efea;
  --ink: #23292a;
  --muted: #6f6f6f;
  --accent: #006878;
  --accent-dark: #00505c;
  --accent-light: #4fb3c4;
  --line: #e0ded7;
  --white: #fff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 'Barlow', 'Segoe UI', Arial, sans-serif;
}

h1, h2, h3, .btn {
  font-family: 'Barlow Semi Condensed', 'Arial Narrow', Arial, sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

h1 { font-size: clamp(2.8rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1.6rem; }
h3 { font-size: 1.35rem; margin-bottom: .6rem; }

p { margin: 0 0 1rem; max-width: 62ch; }

a { color: var(--accent-dark); }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 4rem 0; }
.alt { background: var(--bg-alt); }
.section, .site-foot { scroll-margin-top: 4rem; }

/* Kopf */

.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 247, 242, .94);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .9rem;
  padding-bottom: .9rem;
}

.brand {
  display: inline-block;
  line-height: 0;
}
.brand img {
  display: block;
  width: 184px;
  height: auto;
}

.nav ul {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav ul a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--muted);
  font-size: .85rem;
}
.nav ul a:hover { color: var(--ink); }
.nav ul a { position: relative; }
.nav ul a[aria-current] { color: var(--ink); }

/* Hero */

.hero {
  position: relative;
  background: #0d3138;
  color: #e2e7e7;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 3.6rem);
  min-height: calc(100svh - 3.6rem);
  padding: 4rem 0;
  overflow: hidden;
}
.hero .container { position: relative; }
.hero h1 { color: var(--bg); max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--accent-light); }
.hero .lead { color: #c2cccc; }
.hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-art svg { width: 100%; height: 100%; }
.lead { font-size: 1.35rem; line-height: 1.5; max-width: 46ch; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero .btn.ghost { color: #e2e7e7; border-color: var(--accent-light); }
.hero .btn.ghost:hover { background: var(--accent-light); color: #0d3138; }

.hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  margin: 2.6rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid rgba(226, 231, 231, .18);
  color: #a9bcbe;
  font-size: .95rem;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  padding: .7rem 1.6rem;
  border-radius: 2px;
}
.btn:hover { background: var(--accent-dark); color: var(--white); }

/* Leistungen */

.grid-3, .grid-2 { display: grid; gap: 2rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

#leistungen article { border-top: 2px solid var(--ink); padding-top: 1rem; }

.events {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  max-width: none;
}

/* Ablauf */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps li { counter-increment: step; border-top: 2px solid var(--accent); padding-top: 1rem; }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: 'Barlow Semi Condensed', Arial, sans-serif;
  font-weight: 600;
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: .3rem;
}

/* Bilder */

.note { color: var(--muted); font-size: .85rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .8rem;
  margin: 0 0 2.5rem;
}
.gallery figure { margin: 0; }
.gallery figcaption {
  font-size: .8rem;
  color: var(--muted);
  padding-top: .35rem;
}
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 2px;
  cursor: zoom-in;
}
.gallery video {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 2px;
  cursor: pointer;
}
/* Events Row */

.events-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.events-row > * {
  min-width: 0;
}
.events-img {
  margin: 0;
}
.events-img img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 2px;
  cursor: zoom-in;
}
.events-img figcaption {
  font-size: .8rem;
  color: var(--muted);
  padding-top: .35rem;
}

/* Video Feature */

.video-feature {
  margin: 2rem 0;
  cursor: pointer;
}
.events-row .video-feature {
  margin: 0;
}
.video-preview {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(13, 49, 56, .15);
}
.video-preview img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .4s;
}
.video-feature:hover .video-preview img {
  transform: scale(1.03);
}
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 5rem;
  height: 5rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, background .2s;
}
.video-play svg {
  width: 2rem;
  height: 2rem;
  margin-left: .2rem;
}
.video-feature:hover .video-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--accent-dark);
}
.video-label {
  text-align: center;
  margin: .8rem 0 0;
  font-size: 1rem;
  color: var(--muted);
}

/* Video Player Modal */

#videoplayer {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(94vw, 1200px);
}
#videoplayer::backdrop { background: rgba(13, 49, 56, .92); }
.vp-inner {
  position: relative;
  background: #0d3138;
  border-radius: 4px;
  overflow: hidden;
}
#videoplayer video {
  display: block;
  width: 100%;
  max-height: 80vh;
  background: #000;
}
.vp-controls {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .8rem 1rem;
  background: var(--ink);
}
.vp-btn {
  background: none;
  border: none;
  color: #d7dcdc;
  cursor: pointer;
  padding: .3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vp-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}
.vp-btn:hover { color: var(--white); }
.vp-play .icon-pause { display: none; }
.vp-play.playing .icon-play { display: none; }
.vp-play.playing .icon-pause { display: block; }
.vp-progress {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,.15);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}
.vp-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  width: 0;
  transition: width .1s;
}
.vp-time {
  color: #d7dcdc;
  font-size: .85rem;
  font-variant-numeric: tabular-nums;
  min-width: 6ch;
}
.vp-close {
  position: absolute;
  top: .8rem;
  right: .8rem;
  background: rgba(13, 49, 56, .7);
  color: #d7dcdc;
  border: none;
  border-radius: 2px;
  font-size: 1.2rem;
  line-height: 1;
  padding: .6rem .75rem;
  cursor: pointer;
}
.vp-close:hover { background: rgba(13, 49, 56, .9); color: var(--white); }

#bilder h3 { margin-top: 1.5rem; }

/* Events: ein Block pro Veranstaltung */
.event + .event { margin-top: 2.5rem; }
.event h4 {
  font-size: 1.05rem;
  margin: 0 0 .8rem;
  color: var(--accent-dark);
}
.event .gallery { margin-bottom: 1rem; }

.gallery.events-featured {
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.events-featured img { height: auto; }
.events-featured figcaption { font-size: .95rem; color: var(--ink); }
.events-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin-bottom: 1.5rem;
  padding: 1.1rem 1.4rem;
  font: inherit;
  font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  text-align: left;
  box-shadow: 0 4px 16px rgba(13, 49, 56, .15);
  transition: background .2s, box-shadow .2s;
}
.events-toggle:hover { box-shadow: 0 6px 22px rgba(13, 49, 56, .25); }
.events-toggle-count {
  margin-left: auto;
  font-family: "Barlow", sans-serif;
  font-weight: 400;
  font-size: .95rem;
  opacity: .85;
}
.events-toggle-icon {
  width: 1.4rem;
  height: 1.4rem;
  flex: none;
  transition: transform .25s;
}
.events-toggle[aria-expanded="true"] .events-toggle-icon { transform: rotate(180deg); }
.js .eventgalerie:not(.open) { display: none; }
.no-js .events-toggle { display: none; }
.eventgalerie { padding-top: .5rem; }
@media (max-width: 640px) {
  .gallery.events-featured { grid-template-columns: 1fr; }
}

/* Kontakt */

.contact {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 3rem;
  align-items: start;
}
.portrait {
  width: 100%;
  height: auto;
  border-radius: 2px;
  display: block;
}

.contact-list { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.5rem; margin: 0 0 1.6rem; }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; }

.sig { font-weight: 600; }

/* Anfrage-Formular */

.inquiry {
  margin: 3rem auto 0;
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
  max-width: 46rem;
}
.inquiry h3 { margin-bottom: 1.2rem; }
.inquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
}
.inquiry-grid .wide { grid-column: 1 / -1; }
.inquiry label {
  display: grid;
  gap: .35rem;
  font-size: .85rem;
  color: var(--muted);
}
.inquiry select, .inquiry input, .inquiry textarea {
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: .65rem .7rem;
  min-height: 46px;
}
.inquiry select:focus-visible, .inquiry input:focus-visible, .inquiry textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.inquiry textarea { resize: vertical; }
.inquiry-actions { display: flex; gap: 1rem; margin-top: 1.4rem; flex-wrap: wrap; }
.btn { border: none; cursor: pointer; }
.mail-hint {
  margin: 1.2rem 0 0;
  padding: .8rem 1rem;
  background: #eef4f4;
  border: 1px solid var(--line);
  font-size: .95rem;
}
.card-link { margin: .8rem 0 0; font-size: .9rem; }
.btn.ghost {
  background: transparent;
  color: var(--accent-dark);
  border: 1px solid var(--accent);
}
.btn.ghost:hover { background: var(--accent); color: var(--white); }

/* Footer */

.site-foot {
  background: #0d3138;
  color: #d7dcdc;
  padding: 1.5rem 0;
}
.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.foot-logo {
  display: block;
  width: 150px;
  height: auto;
  opacity: .9;
}
.foot-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-foot p { margin: 0; font-size: .85rem; }
.foot-links { display: flex; gap: 1.2rem; }
.foot-links button {
  background: none;
  border: none;
  padding: .9rem .35rem;
  margin: -.9rem -.35rem;
  min-height: 44px;
  font: inherit;
  color: #d7dcdc;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.foot-links button:hover { color: var(--white); }

/* Rechtliches als Modal */

.legal-box {
  border: none;
  border-radius: 4px;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  max-width: min(92vw, 40rem);
  max-height: min(85vh, 46rem);
  overflow-y: auto;
}
.legal-box::backdrop { background: rgba(13, 49, 56, .6); }
.legal-inner { padding: 2rem 2rem 1.8rem; }
.legal-box h2 { font-size: 1.35rem; margin-bottom: 1.2rem; }
.legal-box h3 { font-size: 1.05rem; margin: 1.4rem 0 .5rem; }
.legal-box ul { margin: 0 0 1rem; padding-left: 1.3rem; }
.legal-box li { margin-bottom: .3rem; }
.legal-close {
  margin-top: .6rem;
  font-family: 'Barlow Semi Condensed', 'Arial Narrow', Arial, sans-serif;
  font-weight: 600;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 2px;
  padding: .5rem 1.2rem;
  cursor: pointer;
}
.legal-close:hover { background: var(--accent-dark); }

/* Lightbox */

#lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 1100px);
  max-height: 92vh;
}
#lightbox::backdrop { background: rgba(13, 49, 56, .9); }
#lightbox img {
  display: block;
  max-width: 100%;
  max-height: 92vh;
  border-radius: 2px;
}
#lightbox button {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(250, 247, 242, .9);
  color: var(--ink);
  border: none;
  border-radius: 2px;
  font-size: 2rem;
  line-height: 1;
  padding: .55rem .8rem;
  cursor: pointer;
}
#lightbox .lb-prev { left: 1rem; }
#lightbox .lb-next { right: 1rem; }
#lightbox .lb-close { top: 1rem; right: 1rem; transform: none; font-size: 1.3rem; padding: .85rem 1.05rem; }
#lightbox .lb-count {
  position: fixed;
  top: 1.4rem;
  left: 1.4rem;
  margin: 0;
  color: #e2e7e7;
  font-size: .85rem;
  letter-spacing: .04em;
}

/* Mobil */

/* Motion-System (opt-in, respektiert prefers-reduced-motion) */

@media (prefers-reduced-motion: no-preference) {

  /* Hero-Auftritt: 3-Beat-Choreografie */
  .js .hw { display: inline-block; opacity: 0; transform: translateY(.6em); }
  .js .lead, .js .hero-actions, .js .hero-facts li {
    opacity: 0;
    transform: translateY(14px);
  }
  html.js:not(:has(#start:target)) body:not(.booted) > * { visibility: hidden; }
  html.js:not(:has(#start:target)) body:not(.booted) .hero-art { visibility: visible; }

  body.booted .hw {
    animation: word-up .7s cubic-bezier(.16,1,.3,1) forwards;
    animation-delay: calc(150ms + var(--i) * 90ms);
  }
  body.booted .hero-facts li { animation: fade-up .8s cubic-bezier(.16,1,.3,1) forwards; }
  body.booted .hero-facts li:nth-child(2) { animation-delay: .95s; }
  body.booted .lead { animation: fade-up .9s cubic-bezier(.16,1,.3,1) .45s forwards; }
  body.booted .hero-actions { animation: fade-up .9s cubic-bezier(.16,1,.3,1) .6s forwards; }

  @keyframes word-up {
    from { opacity: 0; transform: translateY(.6em); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Wellen zeichnen sich */
  .wave { stroke-dasharray: 1; stroke-dashoffset: 1; }
  body.booted .wave {
    animation: draw 2.2s cubic-bezier(.4,0,.2,1) forwards;
  }
  body.booted .wave:nth-of-type(2) { animation-delay: .15s; }
  body.booted .wave:nth-of-type(3) { animation-delay: .3s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }

  /* Scroll-Reveal */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
  }
  .js [data-reveal].in {
    opacity: 1;
    transform: none;
    transition:
      opacity .7s cubic-bezier(.16,1,.3,1),
      transform .7s cubic-bezier(.16,1,.3,1);
    transition-delay: var(--d, 0ms);
  }

}

/* Mikrointeraktionen */

.btn {
  position: relative;
  overflow: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color .15s ease-out, transform .15s ease-out, border-color .15s ease-out, color .15s ease-out; }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(0) scale(.97); }
}

.nav ul a[aria-current]::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: .4rem;
  height: 2px;
  background: var(--accent);
  transform-origin: left;
  animation: nav-line .25s cubic-bezier(.16,1,.3,1);
}
@keyframes nav-line { from { transform: scaleX(0); } }

#leistungen article, .steps li {
  transition: border-color .25s ease-out;
}
#leistungen article:hover { border-color: var(--accent); }
.steps li:hover { border-color: var(--ink); }

.gallery img, .events-img img {
  transition: filter .35s ease-out, transform .35s ease-out;
}
.gallery figure:hover img, .events-img:hover img {
  filter: brightness(1.06) saturate(1.05);
  transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .video-preview img, .video-play { transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 880px) {
  .grid-3, .steps, .gallery, .events-row { grid-template-columns: repeat(2, 1fr); }
  .gallery { gap: .6rem; }
}

@media (max-width: 640px) {
  .hero-art { opacity: .45; }
  .hero { min-height: 0; padding: 3.5rem 0; }
  .grid-3, .grid-2, .steps, .contact, .inquiry-grid { grid-template-columns: 1fr; }
  .contact { gap: 2rem; }
  .portrait { max-width: 320px; }
  .nav { flex-wrap: wrap; }
  .nav ul { gap: 1rem; }
  .section { padding: 3rem 0; }
}

/* Schnellkontakt am Handy */
.mobile-cta { display: none; }
@media (max-width: 640px) {
  .mobile-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom, 0px));
    background: var(--bg);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(13, 49, 56, .08);
    transform: translateY(110%);
    transition: transform .25s ease;
  }
  .mobile-cta.show { transform: none; }
  .mobile-cta .btn { text-align: center; padding: .75rem 1rem; }
  .site-foot { padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .mobile-cta { transition: none; }
}
