/* ==========================================================================
   Vycudilik GmbH – Design-Tokens
   Fjord = tiefes Blaugrün, Mist = kühles Papier, Safran = einziger Akzent
   ========================================================================== */
:root {
  --fjord: #000;
  --fjord-soft: #1b3d49;
  --mist: #eef3f2;
  --paper: #f8faf9;
  --ink: #000;
  --slate: #4a5f67;
  --line: #c9d5d4;
  --saffron: #f0b429;

  --font-head: 'Ubuntu', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Ubuntu', 'Helvetica Neue', Arial, sans-serif;

  --step-0: 1.1875rem;
  --step-1: clamp(1.35rem, 1.2rem + 0.6vw, 1.6rem);
  --step-2: clamp(1.7rem, 1.4rem + 1.2vw, 2.25rem);
  --step-3: clamp(2.4rem, 1.7rem + 3vw, 4rem);
  --step-4: clamp(3rem, 2rem + 5vw, 6.25rem);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 72rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 6rem;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0 0 1.1em;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--saffron);
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-thickness: 4px;
}

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

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--fjord);
  color: #fff;
  font-family: var(--font-head);
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(238, 243, 242, 0.94);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 24px -18px rgba(15, 42, 51, 0.55);
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: 3px;
  background: transparent;
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  background: var(--saffron);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--fjord);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand__logo {
  display: block;
  height: clamp(2rem, 1.7rem + 1.2vw, 2.75rem);
  width: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.05rem;
}

.nav a {
  display: inline-block;
  padding-block: 0.35rem;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current='location'] {
  text-decoration: underline;
  text-decoration-color: var(--saffron);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.3em;
}

/* ---------- Hero: das Dach ---------- */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - 5rem);
  background: var(--fjord);
  color: #eaf1f0;
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

.hero__roof {
  display: block;
  width: 100%;
  height: clamp(90px, 14vw, 200px);
  overflow: visible;
  clip-path: inset(0 50% 0 50%);
  animation: roof-open 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s forwards;
}

.hero__roof path {
  fill: none;
  stroke: var(--saffron);
  stroke-width: 4;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

@keyframes roof-open {
  to {
    clip-path: inset(0 0 0 0);
  }
}

.hero__body {
  text-align: center;
}

.hero__title {
  margin-top: clamp(1.5rem, 4vw, 3rem);
  font-size: var(--step-4);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #fff;
}

.hero__lead {
  max-width: 34rem;
  margin: 1.25rem auto 0;
  font-size: var(--step-1);
  line-height: 1.45;
  color: #cfdcda;
}

.hero__roof-label {
  margin: clamp(2.5rem, 6vw, 4.5rem) 0 1.25rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 500;
  color: var(--saffron);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
  text-align: left;
}

.pillar {
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.pillar a {
  display: block;
  height: 100%;
  padding: 1.25rem clamp(1rem, 2.5vw, 2rem) 1.5rem;
  font-family: var(--font-head);
  font-size: var(--step-1);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s;
}

.pillar a:hover {
  background: var(--fjord-soft);
}

.pillar a:focus-visible {
  outline-offset: -3px;
}

/* ---------- Startseite: Einleitung ---------- */
.intro {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 2rem clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.intro__grid h2 {
  font-size: var(--step-2);
  color: var(--fjord);
}

/* ---------- Abschnitte (Ein-Seiten-Layout) ---------- */
.panel {
  padding-block: clamp(3.5rem, 9vw, 7rem);
  border-top: 1px solid var(--line);
}

.hero + .panel {
  border-top: 0;
}

.panel--paper {
  background: var(--paper);
}

.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.panel__index {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--slate);
}

.panel__index::after {
  content: "";
  width: 2.5rem;
  height: 2px;
  background: var(--saffron);
}

.panel__head h2 {
  font-size: var(--step-3);
  color: var(--fjord);
  letter-spacing: -0.03em;
}

/* Einblenden beim Scrollen – nur wenn JavaScript läuft. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Unterseiten ---------- */
.page-head {
  padding-block: clamp(2.5rem, 7vw, 5rem) clamp(1.5rem, 3vw, 2.5rem);
}

.page-head h1 {
  font-size: var(--step-3);
  color: var(--fjord);
  letter-spacing: -0.03em;
}

.breadcrumb {
  margin: 0 0 1.25rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 500;
}

.breadcrumb a {
  color: var(--slate);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--fjord);
  text-decoration: underline;
  text-decoration-color: var(--saffron);
  text-decoration-thickness: 3px;
}

.section {
  padding-block: 0 clamp(3.5rem, 9vw, 7rem);
}

.lead {
  max-width: 38rem;
  margin-bottom: 1.5rem;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--fjord);
}

.prose {
  max-width: 36rem;
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 3rem clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.about__aside {
  padding-top: 1rem;
  border-top: 4px solid var(--fjord);
}

.aside-title {
  margin-bottom: 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--slate);
}

.stack {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: var(--step-1);
  line-height: 1.25;
}

.stack li {
  padding-block: 0.8rem;
  border-top: 1px solid var(--line);
}

.stack a {
  text-decoration: none;
}

.stack a:hover {
  text-decoration: underline;
  text-decoration-color: var(--saffron);
  text-decoration-thickness: 3px;
}

/* Beteiligungen */
.holding {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 1.25rem clamp(2rem, 6vw, 6rem);
  padding-block: clamp(1.75rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.holding:first-child {
  border-top: 4px solid var(--fjord);
}

.holding:last-child {
  border-bottom: 1px solid var(--line);
}

.holding:target h3 {
  text-decoration: underline;
  text-decoration-color: var(--saffron);
  text-decoration-thickness: 5px;
  text-underline-offset: 0.18em;
}

.holding h3 {
  font-size: var(--step-2);
  color: var(--fjord);
}

/* Impressum */
.facts {
  max-width: 44rem;
  margin: 0;
  border-top: 4px solid var(--fjord);
}

.facts__row {
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) 2fr;
  gap: 0.25rem 2rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--slate);
}

.facts dd {
  margin: 0;
}

/* ---------- Buttons ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border: 2px solid var(--fjord);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn--primary {
  background: var(--saffron);
  border-color: var(--saffron);
  color: var(--fjord);
}

.btn--primary:hover {
  background: var(--fjord);
  border-color: var(--fjord);
  color: #fff;
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  color: var(--fjord);
}

.btn--ghost:hover {
  background: var(--fjord);
  color: #fff;
  text-decoration: none;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--fjord);
  color: #cfdcda;
  font-size: 1rem;
}

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 2rem;
  padding-block: 1.75rem;
}

.site-footer p {
  margin: 0;
}

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

/* ---------- Cookie-Hinweis ---------- */
.cookie-notice[hidden] {
  display: none;
}

.cookie-notice {
  position: fixed;
  inset: auto 0 0;
  z-index: 40;
  background: var(--fjord-soft);
  color: #eaf1f0;
  border-top: 3px solid var(--saffron);
  box-shadow: 0 -12px 28px -20px rgba(15, 42, 51, 0.75);
}

.cookie-notice__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding-block: 1rem;
}

.cookie-notice__text {
  flex: 1 1 24rem;
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
}

.cookie-notice__text a {
  color: #fff;
}

.cookie-notice__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cookie-notice__btn {
  padding: 0.6rem 1rem;
  font-size: 1rem;
}

.cookie-notice .btn--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.cookie-notice .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 52rem) {
  .intro__grid,
  .about__grid,
  .holding {
    grid-template-columns: 1fr;
  }

  .pillars {
    grid-template-columns: 1fr;
    border-right: 0;
  }

  .pillar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .pillar:last-child {
    border-bottom: 0;
  }

  .facts__row {
    grid-template-columns: 1fr;
  }
}

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

  .hero__roof {
    animation: none;
    clip-path: none;
  }

  .btn,
  .pillar a,
  .site-header,
  .js [data-reveal] {
    transition: none;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
