/* ===========================
   style.css
=========================== */

/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── Reduced Motion ── */
/* DEAKTIVIERT – bewusste Entscheidung, Animationen sind Teil der UX
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .burger__line {
    transition-property: opacity, background !important;
  }
}
*/

/* ── Design Tokens ── */
:root {
  --blue:          #2302F5;
  --black:         #000;
  --white:         #fff;
  --header-height: 70px;
  --pad-mobile:    15px;
  --pad-desktop:   30px;
  --pad-content:   48px;

  --fs-display:    max(4.6875rem, 6.9524vw + 2.9929rem);
  --fs-title:      max(2rem, 2.5vw + 1rem);
  --fs-body:       clamp(1rem, 0.1905vw + 0.9536rem, 1.125rem);
}

/* ── Font ── */
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-VariableFont_wght.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── Base ── */
body {
  min-height: 100dvh;
  font-family: "Geist", sans-serif;
}


/* ── Focus ── */
:focus { outline: none; }
:focus-visible { outline: none; }

/* ── Skip Link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
}

/* ── Screen reader only ── */
.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;
}

/* ── Shared image fill ── */
.img-fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── Lazy-load Fade-In ── */
img.is-loading {
  opacity: 0;
  transition: opacity 0.5s ease;
}
img.is-loaded {
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* ── Hero entrance (H1 + H2) ── */
@keyframes hero-slide-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  animation: hero-slide-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.1s;
}
.hero h2 {
  animation: hero-slide-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.25s;
}

/* DEAKTIVIERT
@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero h2 { animation: none; }
}
*/

/* ── Cases: image entrance on scroll-snap ── */
.cases-col-image img {
  transform: scale(1.04);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.5s ease;
}
.cases-section.is-visible .cases-col-image img {
  transform: scale(1);
}

/* ── About: same scale entrance on load ── */
@keyframes about-img-entrance {
  from { transform: scale(1.04); }
  to   { transform: scale(1); }
}
.about-image img {
  animation: about-img-entrance 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* DEAKTIVIERT
@media (prefers-reduced-motion: reduce) {
  .cases-col-image img {
    transform: none;
    transition: opacity 0.5s ease;
  }
}
*/

/* ===========================
   Header
=========================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 600;
  height: var(--header-height);
  padding: 0 var(--pad-desktop);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 13px;
  font-weight: 400;
  color: var(--black);
  text-decoration: none;
  transition: color 0.3s ease;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ── Language Switch ── */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
}

.lang-switch__item {
  font-size: 13px;
  font-weight: 400;
  color: var(--black);
  text-decoration: none;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.lang-switch__item.is-active {
  border-color: var(--black);
}
.lang-switch__item[aria-disabled="true"] {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* ── Burger ── */
.burger {
  width: 32px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.burger__line {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--black);
  transform-origin: center;
  will-change: transform, opacity;
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1),
              opacity   0.2s ease,
              background 0.3s ease;
}

.burger[aria-expanded="true"] .burger__line--top { transform: translateY(9px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__line--mid { opacity: 0; transform: scaleX(0); }
.burger[aria-expanded="true"] .burger__line--bot { transform: translateY(-9px) rotate(-45deg); }

.burger[aria-expanded="true"] .burger__line { background: var(--black); }

/* ── Header colour variants ── */
.site-header--img-right .logo                        { color: var(--black); }
.site-header--img-right .lang-switch__item           { color: var(--white); }
.site-header--img-right .lang-switch__item.is-active { border-color: var(--white); }
.site-header--img-right .burger__line                { background: var(--white); }

.site-header--img-left .logo                         { color: var(--white); }
.site-header--img-left .lang-switch__item            { color: var(--black); }
.site-header--img-left .lang-switch__item.is-active  { border-color: var(--black); }
.site-header--img-left .burger__line                 { background: var(--black); }

.site-header--all-white .logo,
.site-header--all-white .lang-switch__item           { color: var(--white); }
.site-header--all-white .lang-switch__item.is-active { border-color: var(--white); }
.site-header--all-white .burger__line                { background: var(--white); }

/* ===========================
   Fullscreen Nav
=========================== */

.fullscreen-nav {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
  transition: opacity 0.15s ease;
}
.fullscreen-nav.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav__list {
  list-style: none;
  text-align: center;
}
.nav__item + .nav__item {
  margin-top: 0.05em;
}

.nav__link {
  display: block;
  font-size: max(6.0625rem, 3.0986vw + 5.3363rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--black);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--blue);
}

/* ===========================
   Shared Components
=========================== */

.pill {
  display: inline-block;
  font-size: 13px;
  font-weight: inherit;
  color: var(--blue);
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--blue);
  background: transparent;
  align-self: flex-start;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.pill:hover {
  background: var(--blue);
  color: var(--white);
}
.pill--filled {
  background: var(--blue);
  color: var(--white);
}
.pill--filled:hover {
  background: transparent;
  color: var(--blue);
}
.pill--white {
  color: var(--white);
  border-color: var(--white);
}
.pill--white:hover {
  background: var(--white);
  color: var(--black);
}

.text-link {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.text-link:hover,
.text-link:focus-visible {
  border-bottom-color: var(--blue);
  outline: none;
}

/* ===========================
   Home
=========================== */

.page-home {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-home::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

.hero {
  width: 100%;
  padding: 0 var(--pad-mobile);
  color: var(--black);
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  .hero {
    padding: 0 var(--pad-desktop);
  }
}

.hero h1 {
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.03em;
  display: flex;
  flex-direction: column;
  margin-bottom: 0.2em;
}
.hero h2 {
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.5;
  max-width: 58ch;
}

/* ===========================
   About
=========================== */

.page-about {
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.about-layout {
  display: flex;
  flex: 1;
  min-height: 100dvh;
}

.about-text {
  width: 50%;
  padding: 160px var(--pad-content) 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5em;
}

.about-text h1 {
  font-size: max(0.9375rem, 0.5714vw + 0.7982rem);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--black);
  max-width: 54ch;
  width: 100%;
}

.about-text p,
.about-text .intro {
  font-size: max(0.9375rem, 0.5714vw + 0.7982rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--black);
  max-width: 54ch;
  width: 100%;
}

.about-text .pill {
  margin-top: 1.5em;
}

.about-image {
  position: sticky;
  top: 0;
  width: 50%;
  height: 100dvh;
  overflow: hidden;
  flex-shrink: 0;
  align-self: flex-start;
  margin: 0;
}

@media (max-width: 767px) {
  .about-layout {
    flex-direction: column;
  }
  .about-image {
    position: relative;
    width: 100%;
    height: 80dvh;
  }
  .about-text {
    width: 100%;
    padding: 140px var(--pad-desktop) 60px;
    align-items: flex-start;
  }
  .about-text p,
  .about-text .intro,
  .about-text h1 { font-size: var(--fs-body); }
}

/* ===========================
   Contact
=========================== */

.page-contact {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kontakt-list ul {
  list-style: none;
  text-align: center;
}
.kontakt-list ul li + li {
  margin-top: 0.05em;
}

.kontakt-link {
  display: block;
  font-size: max(6.0625rem, 3.0986vw + 5.3363rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--black);
  text-decoration: none;
  transition: color 0.2s ease;
}
.kontakt-link:hover {
  color: var(--blue);
}

/* ===========================
   Cases
=========================== */

.page-cases {
  background: var(--white);
  overflow: hidden;
}

.cases-scroll {
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}
.cases-scroll::-webkit-scrollbar {
  display: none;
}

.cases-section {
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
}

.cases-col-text {
  width: 50%;
  padding: 120px var(--pad-content) 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.cases-col-text .cases-title,
.cases-col-text .cases-intro-text {
  margin-bottom: 0.2em;
}
.cases-col-text .cases-title--outro {
  margin-bottom: 0.8em;
}
.cases-col-text .cases-body {
  margin-bottom: 1.8em;
}

.cases-col-image {
  width: 50%;
  height: 100dvh;
  overflow: hidden;
  flex-shrink: 0;
}

.cases-section--intro {
  align-items: center;
}
.cases-intro-arrow {
  display: block;
  margin-top: 2em;
  color: var(--black);
}

.cases-section--intro .cases-col-text {
  align-items: flex-start;
  justify-content: center;
}

.cases-intro-text {
  font-size: var(--fs-title);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--black);
  max-width: 42ch;
}

.cases-section--image-right {
  flex-direction: row;
  align-items: center;
}
.cases-section--image-left {
  flex-direction: row-reverse;
  align-items: center;
}

.cases-title {
  font-size: var(--fs-title);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--black);
}
.cases-body {
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.5;
  color: var(--black);
  max-width: 54ch;
}

.cases-section--fullscreen {
  position: relative;
  overflow: hidden;
}
.cases-section--fullscreen .cases-col-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.cases-section--fullscreen .cases-col-text {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  padding: 0 var(--pad-content) var(--pad-content);
  gap: 0.6em;
  z-index: 2;
}
.cases-section--fullscreen .cases-title {
  font-size: var(--fs-title);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--white);
}
.cases-section--fullscreen .cases-body {
  color: var(--white);
}
.cases-section--fullscreen::after {
  content: "";
  position: absolute;
  inset: 40% 0 0 0;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.55));
  pointer-events: none;
  z-index: 1;
}



/* ── Scroll Progress ── */
.cases-progress {
  position: fixed;
  left: 0;
  top: 0;
  width: 0%;
  height: 4px;
  background: var(--blue);
  z-index: 300;
  transition: width 0.1s linear;
}

/* ── Dot navigation ── */
.cases-dots {
  position: fixed;
  right: var(--pad-desktop);
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cases-dot {
  position: relative;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.cases-dot::before {
  content: "";
  position: absolute;
  inset: -10px;
}
.cases-dot.is-active {
  background: var(--blue);
  transform: scale(1.5);
}

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

@media (max-width: 767px) {

  .nav__link { font-size: clamp(4.235rem, 16.94vw, 6.0625rem); }
  .kontakt-link { font-size: clamp(4.235rem, 16.94vw, 6.0625rem); }

  .site-header--img-right .logo,
  .site-header--img-right .lang-switch__item,
  .site-header--img-left .logo,
  .site-header--img-left .lang-switch__item,
  .site-header--all-white .logo,
  .site-header--all-white .lang-switch__item           { color: var(--white); }

  .site-header--img-right .lang-switch__item.is-active,
  .site-header--img-left .lang-switch__item.is-active,
  .site-header--all-white .lang-switch__item.is-active { border-color: var(--white); }

  .site-header--img-right .burger__line,
  .site-header--img-left .burger__line,
  .site-header--all-white .burger__line                { background: var(--white); }

  .cases-dots { display: none; }

  .cases-section {
    position: relative;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    flex-direction: row;
    align-items: stretch;
  }

  .cases-col-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .cases-col-text {
    position: absolute;
    inset: auto 0 0 0;
    width: 100%;
    padding: 0 var(--pad-desktop) 40px;
    z-index: 2;
  }

  .cases-col-text .cases-title,
  .cases-col-text .cases-body,
  .cases-col-text .cases-intro-text,
  .cases-col-text p { color: var(--white); }

  .cases-intro-arrow {
    color: var(--white);
  }
  .cases-section--image-left .cases-col-text .pill,
  .cases-section--image-right .cases-col-text .pill {
    border-color: var(--white);
    color: var(--white);
  }
  .cases-section--image-left .cases-col-text .pill:hover,
  .cases-section--image-right .cases-col-text .pill:hover {
    background: var(--white);
    color: var(--black);
  }

  .cases-section::after {
    content: "";
    position: absolute;
    inset: 40% 0 0 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.65));
    pointer-events: none;
    z-index: 1;
  }


}

/* ===========================
   404
=========================== */

.page-404 {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
}
.error-block {
  text-align: center;
  padding: 0 var(--pad-desktop);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
}
.error-code {
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--black);
}
.error-msg {
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--black);
  max-width: 38ch;
}
.error-msg span[lang="en"] {
  display: block;
  opacity: 0.55;
  font-size: 0.9em;
  margin-top: 0.3em;
}


/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 0;
  right: 0;
  z-index: 800;
  display: flex;
  justify-content: flex-end;
  padding: 0 var(--pad-desktop);
  pointer-events: none;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__actions {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 10px 10px 20px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: none;
}

.cookie-banner__info {
  font-family: "Geist", sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: var(--white);
  white-space: nowrap;
}

.cookie-banner__info--short {
  display: none;
}

@media (max-width: 600px) {
  .cookie-banner__info--long {
    display: none;
  }
  .cookie-banner__info--short {
    display: inline;
    white-space: nowrap;
    font-family: "Geist", sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: var(--white);
  }
}

.cookie-banner__link {
  color: var(--white);
  text-decoration: none;
}

.cookie-banner__link:hover {
  opacity: 0.7;
}

.cookie-banner__btn {
  font-family: "Geist", sans-serif;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.cookie-banner__btn--decline {
  background: transparent;
  color: var(--white);
}

.cookie-banner__btn--accept {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.cookie-banner__btn--accept:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

@media (max-width: 600px) {
  .cookie-banner {
    bottom: 16px;
    padding: 0 var(--pad-mobile);
    justify-content: center;
  }
  .cookie-banner__actions {
    flex-wrap: nowrap;
    border-radius: 999px;
    padding: 8px 12px 8px 14px;
    gap: 6px;
  }
  .cookie-banner__info {
    white-space: nowrap;
    width: auto;
    padding-bottom: 0;
    font-size: 11px;
  }
  .cookie-banner__btn {
    font-size: 11px;
    padding: 5px 12px;
  }
}


/* ── Nav Legal Link ── */
.nav__item--legal-wrapper {
  margin-top: 3em;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
  flex-wrap: wrap;
}

.nav__item--legal-wrapper .nav__link--legal {
  color: #999;
}

.nav__item--legal-wrapper .nav__link--legal:hover {
  color: var(--blue);
}

.nav__legal-dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #999;
  flex-shrink: 0;
}

.nav__link--legal {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  color: #555;
  opacity: 1;
  transition: color 0.2s ease;
}

.nav__link--legal:hover {
  color: var(--blue);
  opacity: 1;
}

@media (max-width: 767px) {
  .nav__link--legal {
    font-size: 13px;
  }
}


/* ── Legal Anker Offset (fixed header) ── */
#impressum, #datenschutz, #cookie-einstellungen,
#imprint, #privacy, #cookie-settings {
  scroll-margin-top: calc(var(--header-height) + 32px);
}

/* ── Legal Pages ── */
.legal-content {
  max-width: 640px;
  margin: 0 auto;
  padding: calc(var(--header-height) + 64px) var(--pad-desktop) 120px;
}

.legal-content h1 {
  font-size: var(--fs-title);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 16px;
}

.legal-content section {
  border-top: 1px solid #e8e8e8;
  padding-top: 16px;
  margin-top: 16px;
}

.legal-content section:first-of-type {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.legal-content h2 {
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 16px;
}

.legal-content p,
.legal-content li {
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.5;
  color: var(--black);
}

.legal-content p + p {
  margin-top: 16px;
}

.legal-content ul {
  padding-left: 20px;
  margin: 16px 0;
}

.legal-content li {
  margin-bottom: 16px;
}

.legal-content h1 + section,
.legal-content h1 ~ section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  opacity: 0.6;
}

.legal-content code {
  font-family: monospace;
  font-size: 0.9em;
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 3px;
}

.legal-content .pill {
  margin-top: 16px;
  cursor: pointer;
}

.cookie-reset-wrapper {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.pill--centered {
  align-self: center;
}

/* H1 Folgeblöcke */
.legal-h1--block {
  margin-top: 80px;
  padding-top: 80px;
  border-top: 2px solid var(--black);
}

@media (max-width: 767px) {
  .legal-content {
    max-width: 100%;
    margin: 0;
    padding: calc(var(--header-height) + 40px) 15px 80px;
  }
  .legal-content section {
    padding-top: 16px;
    margin-top: 16px;
  }
  .legal-h1--block {
    margin-top: 56px;
    padding-top: 56px;
  }
}
