/* ==========================================================
   Markenkonzepte – provisorische Startseite
   Schrift: Figtree (Google Fonts, SIL OFL 1.1) – lokal eingebunden
   ========================================================== */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/figtree-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/figtree-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2");
}

:root {
  --navy: #13243a;
  --navy-deep: #0c1828;
  --sand: #efd9b4;
  --sand-hover: #f5e4c6;
  --gold: #e9b25f;
  --white: #ffffff;
  --paper: #f6f6f5;
  --ink: #1c2633;
  --gutter: clamp(16px, 5.3vw, 90px);
  --bar-h: clamp(56px, 7vw, 66px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
}

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

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

body {
  margin: 0;
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-loading { overflow: hidden; }

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

/* ---------- Loader ---------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  pointer-events: all;
}

.loader__curtain {
  position: absolute;
  left: 0;
  right: 0;
  height: 50.5%;
  background: var(--navy-deep);
  transition: transform 1.1s var(--ease-io);
  z-index: 0;
}
.loader__curtain--top { top: 0; }
.loader__curtain--bottom {
  bottom: 0;
  background: linear-gradient(180deg, var(--navy-deep), var(--navy));
}

.loader__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 0 16px;
  transition: opacity .5s ease, transform .7s var(--ease-out);
}

.loader__word {
  display: flex;
  color: var(--white);
  font-weight: 400;
  font-size: clamp(15px, 3.6vw, 22px);
  letter-spacing: .32em;
  margin-right: -.32em; /* optischer Ausgleich für Tracking */
}
.loader__word span {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
  animation: letter .9s var(--ease-out) forwards;
}
.loader__word span:nth-child(1)  { animation-delay: .30s; }
.loader__word span:nth-child(2)  { animation-delay: .35s; }
.loader__word span:nth-child(3)  { animation-delay: .40s; }
.loader__word span:nth-child(4)  { animation-delay: .45s; }
.loader__word span:nth-child(5)  { animation-delay: .50s; }
.loader__word span:nth-child(6)  { animation-delay: .55s; }
.loader__word span:nth-child(7)  { animation-delay: .60s; }
.loader__word span:nth-child(8)  { animation-delay: .65s; }
.loader__word span:nth-child(9)  { animation-delay: .70s; }
.loader__word span:nth-child(10) { animation-delay: .75s; }
.loader__word span:nth-child(11) { animation-delay: .80s; }
.loader__word span:nth-child(12) { animation-delay: .85s; }
.loader__word span:nth-child(13) { animation-delay: .90s; }
.loader__word span:nth-child(14) { animation-delay: .95s; }

@keyframes letter {
  to { opacity: 1; transform: none; filter: blur(0); }
}

.loader__bar {
  position: relative;
  width: min(220px, 60vw);
  height: 2px;
  background: rgba(255, 255, 255, .12);
  border-radius: 2px;
  overflow: hidden;
}
.loader__bar span {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--sand), var(--gold));
  transition: transform .5s var(--ease-out);
}

/* Loader verlassen */
.loader.is-done { pointer-events: none; }
.loader.is-done .loader__inner {
  opacity: 0;
  transform: translateY(-12px) scale(.98);
}
.loader.is-done .loader__curtain--top    { transform: translateY(-101%); transition-delay: .35s; }
.loader.is-done .loader__curtain--bottom { transform: translateY(101%);  transition-delay: .35s; }
.loader.is-gone { display: none; }

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: clamp(22px, 3.4vw, 34px) var(--gutter);
}

.logo {
  display: inline-block;
  color: var(--white);
  text-decoration: none;
  font-weight: 400;
  font-size: clamp(17px, 2vw, 29px);
  letter-spacing: .14em;
  line-height: 1;
}

/* ---------- Hero ---------- */

/* Gesamte Seite passt in den Viewport: Hero füllt den Rest */
main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

.hero {
  position: relative;
  flex: 1 1 auto;
  min-height: 420px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
  background: var(--navy);
}

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

.hero__video,
.hero__still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}

.hero__video {
  transform: scale(1.06);
  transition: transform 9s var(--ease-out);
}
body.is-ready .hero__video { transform: scale(1); }

.hero__still { display: none; }
.hero.use-still .hero__video { display: none; }
.hero.use-still .hero__still { display: block; }

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 24, 40, .62) 0%, rgba(12, 24, 40, .34) 38%, rgba(12, 24, 40, 0) 64%),
    linear-gradient(180deg, rgba(12, 24, 40, .35) 0%, rgba(12, 24, 40, 0) 22%, rgba(12, 24, 40, 0) 70%, rgba(12, 24, 40, .45) 100%);
}

.hero__content {
  width: 100%;
  padding: clamp(110px, 14vw, 140px) var(--gutter) clamp(56px, 8vw, 90px);
}

.hero__title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(40px, min(7.1vw, 12vh), 120px);
  line-height: 1.02;
  letter-spacing: -.01em;
}
.hero__title > span { display: block; }

.dot { color: var(--gold); }

.hero__claim {
  margin: clamp(12px, 1.6vw, 22px) 0 0;
  font-weight: 400;
  font-size: clamp(17px, 2.05vw, 31px);
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .86);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(24px, 3vw, 34px);
  padding: 17px 38px;
  border-radius: 6px;
  background: var(--sand);
  color: var(--navy-deep);
  font-weight: 500;
  font-size: clamp(16px, 1.25vw, 19px);
  text-decoration: none;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45);
  transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s ease;
}
.btn:hover,
.btn:focus-visible {
  background: var(--sand-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .5);
}
.btn:hover svg,
.btn:focus-visible svg { transform: translateX(3px); }
.btn:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

/* Langsames Einblenden (wird per JS 3 s nach dem Laden ausgelöst) */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(8px);
  transition:
    opacity 1.8s var(--ease-out),
    transform 1.8s var(--ease-out),
    filter 1.8s var(--ease-out);
}
.reveal--2 { transition-delay: .25s; }
.reveal--3 { transition-delay: .7s; }
.reveal--4 { transition-delay: 1.05s; }

body.show-headline .reveal {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* ---------- Leistungs-Balken ---------- */

.services {
  background: var(--navy);
  color: var(--white);
  padding: 0 var(--gutter);
}

.services__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  min-height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.services__list li {
  flex: 1 1 auto;
  text-align: center;
  text-transform: uppercase;
  font-weight: 400;
  font-size: clamp(13px, 1.06vw, 17px);
  letter-spacing: .26em;
  padding: 0 clamp(10px, 2vw, 36px);
  white-space: nowrap;
}
.services__list li + li { border-left: 1px solid rgba(255, 255, 255, .55); }
.services__list li:first-child { text-align: left; padding-left: clamp(0px, 1.8vw, 56px); }
.services__list li:last-child  { text-align: right; padding-right: 0; }

/* ---------- Hinweis-Text ---------- */

.notice {
  background: var(--paper);
  padding: clamp(22px, 2.6vw, 34px) var(--gutter);
  text-align: center;
}

.notice__text {
  margin: 0 auto;
  max-width: 46em;
  font-weight: 400;
  font-size: clamp(17px, 1.45vw, 22px);
  letter-spacing: .06em;
  line-height: 1.55;
  color: var(--navy);
}
.notice__text strong {
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Rechtliche Links ---------- */

.legal {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: clamp(10px, 1.2vw, 16px);
}

.legal a {
  position: relative;
  color: rgba(19, 36, 58, .62);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 4px 0;
  transition: color .2s ease;
}
.legal a::after {
  content: "";
  position: absolute;
  left: 0;
  right: .16em;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s var(--ease-out);
}
.legal a:hover,
.legal a:focus-visible { color: var(--navy); }
.legal a:hover::after,
.legal a:focus-visible::after { transform: scaleX(1); }
.legal a:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }

/* ---------- Popup (Impressum / Datenschutz) ---------- */

html.modal-open { overflow: hidden; }

.modal {
  width: min(760px, calc(100vw - 32px));
  max-height: min(84vh, 900px);
  max-height: min(84svh, 900px);
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(12, 24, 40, .55);
  overflow: hidden;
  display: none;
  flex-direction: column;
}
.modal[open] {
  display: flex;
  animation: modal-in .45s var(--ease-out);
}
.modal::backdrop {
  background: rgba(12, 24, 40, .62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal[open]::backdrop { animation: backdrop-in .35s ease; }

.modal.is-closing { animation: modal-out .25s ease forwards; }
.modal.is-closing::backdrop { animation: backdrop-out .25s ease forwards; }

@keyframes modal-in {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
@keyframes modal-out {
  to { opacity: 0; transform: translateY(10px) scale(.985); }
}
@keyframes backdrop-in  { from { opacity: 0; } }
@keyframes backdrop-out { to { opacity: 0; } }

.modal__head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(20px, 4vw, 40px);
  background: var(--navy);
  color: var(--white);
}
.modal__head h2 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: .04em;
}

.modal__close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .3s var(--ease-out);
}
.modal__close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.modal__close:hover,
.modal__close:focus-visible {
  background: var(--sand);
  border-color: var(--sand);
  color: var(--navy-deep);
  transform: rotate(90deg);
}
.modal__close:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

.modal__body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: clamp(20px, 4vw, 40px);
  font-size: 16px;
  line-height: 1.65;
}
.modal__body h3 {
  margin: 28px 0 6px;
  font-weight: 600;
  font-size: 17px;
  color: var(--navy);
}
.modal__body h3:first-child { margin-top: 0; }
.modal__body p,
.modal__body ul { margin: 0 0 12px; }
.modal__body ul { padding-left: 1.2em; }
.modal__body li { margin-bottom: 2px; }
.modal__body a {
  color: var(--navy);
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
  word-break: break-word;
}
.modal__meta {
  margin-top: 28px !important;
  font-size: 14px;
  color: rgba(28, 38, 51, .6);
}

@media (max-width: 640px) {
  .modal {
    width: calc(100vw - 20px);
    max-height: calc(100svh - 20px);
  }
  .modal__body { font-size: 15px; }

  .notice { padding-top: 18px; padding-bottom: 14px; }
  .legal { margin-top: 6px; }
}

@media (max-width: 640px) and (max-height: 700px) {
  .services__list { padding: 18px 0; row-gap: 9px; }
}

/* ---------- Responsive ---------- */

@media (min-width: 641px) and (max-height: 760px) {
  .hero__content { padding-top: 96px; padding-bottom: 36px; }
  .btn { margin-top: 20px; padding: 14px 32px; }
}

@media (max-width: 1100px) {
  .services__list {
    flex-wrap: wrap;
    justify-content: center;
    padding: 16px 0;
    row-gap: 12px;
  }
  .services__list li,
  .services__list li:first-child,
  .services__list li:last-child {
    flex: 0 0 auto;
    text-align: center;
    padding: 0 clamp(14px, 2.4vw, 26px);
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 340px;
    align-items: flex-end;
  }
  .hero__content { padding-bottom: 40px; }
  .hero__video,
  .hero__still { object-position: 68% 50%; }
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(12, 24, 40, .45) 0%, rgba(12, 24, 40, 0) 26%, rgba(12, 24, 40, .15) 50%, rgba(12, 24, 40, .78) 100%);
  }
  .hero__claim { letter-spacing: .08em; }
  .btn { padding: 15px 28px; }

  .services__list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 0;
    row-gap: 12px;
  }
  .services__list li,
  .services__list li + li,
  .services__list li:first-child,
  .services__list li:last-child {
    border-left: 0;
    padding: 0;
    text-align: left;
    font-size: 17px;
    letter-spacing: .24em;
  }
}

@media (max-width: 360px) {
  .services__list li,
  .services__list li + li,
  .services__list li:first-child,
  .services__list li:last-child { letter-spacing: .18em; font-size: 15px; }
}

/* ---------- Reduzierte Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
  .loader__word span { animation-duration: .01s; animation-delay: 0s !important; }
  .loader__curtain,
  .loader__inner,
  .hero__video,
  .reveal { transition-duration: .6s; transition-delay: 0s !important; }
  .reveal { transform: none; filter: none; }
}
