/* ==========================================================================
   Remscheider Herztage 2026 – Danke-Seite
   ========================================================================== */

/* Inter – SIL Open Font License 1.1, lokal gehostet (assets/fonts/OFL-LICENSE.txt) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-300.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-700.woff2") format("woff2");
}

:root {
  --c-navy: #0a2c4f;
  --c-navy-deep: #062a50;
  --c-blue: #0a6eb4;
  --c-sky: #64b4e6;
  --c-text: #0b2c4c;
  --c-grey-bg: #f4f4f4;
  --c-line: #dcdcdc;
  --c-white: #fff;

  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --container: 920px;
  --container-wide: 1040px;
  --gutter: 24px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 19px;
  line-height: 1.5;
  color: var(--c-text);
  background: var(--c-white);
  letter-spacing: -.011em; /* Inter läuft etwas breiter als Helvetica */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--c-blue); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: calc(var(--container-wide) + var(--gutter) * 2); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--c-white);
  color: var(--c-navy);
  font-weight: 700;
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 3px solid var(--c-sky);
  outline-offset: 3px;
}

/* JS-Vorbereitung: Elemente erst nach GSAP-Init zeigen (kein Aufblitzen) */
.js:not(.reduced-motion) [data-anim],
.js:not(.reduced-motion) .hero__line-inner,
.js:not(.reduced-motion) .intro__headline { visibility: hidden; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  height: clamp(460px, 30vw, 600px);
  background: var(--c-navy-deep);
  border-top: 14px solid var(--c-sky);
  color: var(--c-white);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 70%;
  will-change: transform;
}

.hero__bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 36px;
}

.brand { color: inherit; text-decoration: none; }

.brand__name {
  display: block;
  font-size: 20px;
  line-height: 1.38;
  font-weight: 700;
  letter-spacing: -.01em;
}

.brand__logo {
  width: 43px;
  height: auto;
  aspect-ratio: 43 / 69;
}

.hero__title-wrap {
  position: absolute;
  left: 0;
  right: 0;
  top: 30%;
}

.hero__title {
  margin: 0;
  padding-left: 32px;
  font-size: clamp(30px, 3.4vw, 49px);
  line-height: 1.38;
}

.hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: .06em;
}

.hero__line-inner { display: inline-block; }

.hero__line-inner--light {
  color: var(--c-sky);
  font-weight: 300;
  letter-spacing: -.01em;
}

.hero__line-inner--bold {
  color: var(--c-white);
  font-weight: 700;
  letter-spacing: -.015em;
}

/* ==========================================================================
   Intro / Danke
   ========================================================================== */

.intro { padding: 66px 0 34px; }

.intro__eyebrow {
  margin: 0 0 6px;
  padding-left: 4px;
  font-size: 22px;
  color: var(--c-blue);
}

.intro__headline {
  margin: 0 0 40px;
  font-size: clamp(44px, 6vw, 66px);
  line-height: 1.1;
  font-weight: 700;
  color: var(--c-navy);
  letter-spacing: -.01em;
}

.intro__headline .char { display: inline-block; will-change: transform; }

.intro__text p { margin: 0 0 1.45em; max-width: 46em; }
.intro__text p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Galerie
   ========================================================================== */

.gallery {
  background: var(--c-grey-bg);
  padding: 56px 0 80px;
}

.gallery__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.gallery__link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #dfe6ee;
  cursor: zoom-in;
}

.gallery__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}

.gallery__link::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 44px no-repeat,
    rgba(10, 44, 79, .35);
  opacity: 0;
  transition: opacity .35s var(--ease);
}

@media (hover: hover) {
  .gallery__link:hover img { transform: scale(1.05); }
  .gallery__link:hover::after { opacity: 1; }
}
.gallery__link:focus-visible::after { opacity: 1; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--c-grey-bg);
  border-top: 1px solid var(--c-line);
  padding: 22px 0 26px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 58px;
}

.footer__copy {
  margin: 0;
  font-weight: 700;
  color: var(--c-navy);
}

.footer__nav { display: flex; gap: 58px; }

.footer__nav a { text-decoration: none; }
.footer__nav a:hover,
.footer__nav a:focus-visible { text-decoration: underline; }

/* ==========================================================================
   Unterseiten (Impressum)
   ========================================================================== */

.hero--compact { height: clamp(340px, 21vw, 400px); }
.hero--compact .hero__img { object-position: 50% 30%; }
.hero--compact .hero__title-wrap { top: 100px; }
.hero--compact .hero__title { font-size: clamp(24px, 2.4vw, 34px); }

.legal { padding: 48px 0 80px; }

.legal__back {
  display: inline-block;
  margin-bottom: 22px;
  font-size: 16px;
  text-decoration: none;
}
.legal__back:hover,
.legal__back:focus-visible { text-decoration: underline; }

.legal__headline {
  margin: 0 0 36px;
  font-size: clamp(36px, 4.6vw, 52px);
  line-height: 1.1;
  font-weight: 700;
  color: var(--c-navy);
}

.legal__lead { margin: 0 0 44px; }

.legal__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 48px;
  padding-top: 40px;
  border-top: 1px solid var(--c-line);
}

.legal__block h2 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--c-blue);
}
.legal__block h2:not(:first-child) { margin-top: 26px; }

.legal__block p,
.legal__block address {
  margin: 0;
  font-style: normal;
}
.legal__block address + p { margin-top: 10px; }

.legal a { overflow-wrap: anywhere; }

.footer__nav a[aria-current="page"] { font-weight: 700; }

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 72px 88px;
}
.lightbox[hidden] { display: none; }

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 22, 42, .94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lightbox__stage {
  position: relative;
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  touch-action: pan-y;
}

.lightbox__img {
  max-width: min(1280px, 100%);
  max-height: calc(100vh - 72px * 2 - 48px);
  max-height: calc(100dvh - 72px * 2 - 48px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox__caption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding-top: 14px;
  font-size: 15px;
  color: rgba(255, 255, 255, .85);
}

.lightbox__counter {
  flex: none;
  color: var(--c-sky);
  font-variant-numeric: tabular-nums;
}

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: var(--c-white);
  cursor: pointer;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.lightbox__btn:hover { background: var(--c-blue); }
.lightbox__btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox__btn--close { top: 16px; right: 16px; }
.lightbox__btn--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: 20px; top: 50%; transform: translateY(-50%); }

body.lightbox-open { overflow: hidden; }

/* ==========================================================================
   Tablet
   ========================================================================== */

@media (max-width: 1024px) {
  .hero { height: 440px; }
  .hero__img { object-position: 62% 70%; }
  .hero__title { padding-left: 0; }
}

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 720px) {
  :root { --gutter: 20px; }

  body { font-size: 17px; }

  .hero {
    height: 500px;
    border-top-width: 8px;
  }

  /* Bild so zuschneiden, dass das Herz rechts unten sichtbar bleibt */
  .hero__img { object-position: 66% 100%; }

  .hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 42, 80, .55) 0%, rgba(6, 42, 80, 0) 45%);
  }

  .hero__bar { padding-top: 22px; }
  .brand__name { font-size: 16px; }
  .brand__logo { width: 32px; }

  .hero__title-wrap { top: 112px; }
  .hero__title { font-size: clamp(24px, 7.2vw, 38px); line-height: 1.25; }

  .intro { padding: 44px 0 28px; }
  .intro__eyebrow { font-size: 18px; padding-left: 2px; }
  .intro__headline { margin-bottom: 26px; }

  .gallery { padding: 36px 0 52px; }
  .gallery__grid { grid-template-columns: 1fr; gap: 16px; }

  .footer__inner { flex-direction: column; gap: 10px; }

  .hero--compact { height: 280px; }
  .hero--compact .hero__title-wrap { top: auto; bottom: 24px; }
  .hero--compact .hero__title { font-size: clamp(22px, 6.4vw, 28px); }
  .legal { padding: 36px 0 56px; }
  .legal__lead { margin-bottom: 32px; }
  .legal__grid { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
  .footer__nav { gap: 28px; }

  .lightbox { padding: 64px 0 24px; }
  .lightbox__img {
    max-width: 100vw;
    max-height: calc(100dvh - 64px - 24px - 48px);
    box-shadow: none;
  }
  .lightbox__caption { padding: 12px 20px 0; font-size: 14px; }
  .lightbox__btn { width: 44px; height: 44px; }
  .lightbox__btn--close { top: 10px; right: 10px; }
  .lightbox__btn--prev,
  .lightbox__btn--next { top: auto; bottom: 16px; transform: none; }
  .lightbox__btn--prev { left: auto; right: 64px; }
  .lightbox__btn--next { right: 12px; }
}

/* ==========================================================================
   Reduzierte Bewegung
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
