/* =========================================================
   FONTS
   ========================================================= */
@font-face {
  font-family: "Alcyone";
  font-weight: 900;
  font-style: normal;
  src: url("fonts/Alcyone-Black.otf") format("opentype");
}
@font-face {
  font-family: "Alcyone";
  font-weight: 500;
  font-style: normal;
  src: url("fonts/Alcyone-Regular.otf") format("opentype");
}

/* =========================================================
   DESIGN TOKENS  (mapped 1:1 from Figma "Saisonal" theme)
   ========================================================= */
:root {
  /* Surface colors */
  --c-home-default:    #c8e0f4;
  --c-home-hover:      #75aee3;
  --c-impact-default:  #cfe8c2;
  --c-impact-hover:    #8dc472;
  --c-about-default:   #f5c8d4;
  --c-about-hover:     #e68398;
  --c-contact-default: #fbd4b0;
  --c-contact-hover:   #f4a056;
  --c-footer-default:  #dcc4ae;
  --c-footer-hover:    #a57e58;

  /* Text colors */
  --t-default:         #202427;
  --t-home-active:     #2D74BC;
  --t-impact-active:   #2d5e1c;
  --t-about-active:    #8b2845;
  --t-contact-active:  #8b4a13;
  --t-footer-active:   #4f3520;

  --t-home-onhover:    #173E66;
  --t-impact-onhover:  #2A4D1B;
  --t-about-onhover:   #963555;
  --t-contact-onhover: #6B380A;
  --t-footer-onhover:  #ffffff;

  /* Geometry */
  --strip-h: clamp(36px, 4.5vh, 48px);
  --footer-h: clamp(64px, 9.6vh, 108px);
  --label-pad-r: clamp(20px, 4vw, 88px);
  --label-pad-y: 10px;

  /* Type */
  --font-stack: "Inter", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --label-size: clamp(14px, 1.05vw, 18px);
  --label-tracking: 0.25px;

  /* Motion */
  --t-fast: 220ms;
  --t-base: 540ms;
  --t-slow: 780ms;
  --ease-flash: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft:  cubic-bezier(0.65, 0, 0.35, 1);
}

/* =========================================================
   RESET / GLOBALS
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: #f6f1ea;
  color: var(--t-default);
  font-family: var(--font-stack);
  font-weight: 500;
  letter-spacing: var(--label-tracking);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  font: inherit; color: inherit; background: none; border: none; padding: 0;
  cursor: pointer; letter-spacing: inherit;
}

/* =========================================================
   LAYOUT — bands + footer
   ========================================================= */
.site {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
}

.band {
  position: relative;
  flex: 1 1 0;
  min-height: var(--strip-h);
  overflow: hidden;
  cursor: pointer;
  transition:
    flex-grow        var(--t-base) var(--ease-flash),
    flex-basis       var(--t-base) var(--ease-flash),
    background-color var(--t-fast) var(--ease-soft);
  will-change: flex-grow, flex-basis, background-color;
}

.band-home    { background-color: var(--c-home-default); }
.band-impact  { background-color: var(--c-impact-default); }
.band-about   {
  background-color: var(--c-about-default);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 3vw;
  padding: clamp(20px, 5.5vh, 64px) clamp(160px, 20vw, 280px) clamp(24px, 5vh, 64px) var(--label-pad-r);
  box-sizing: border-box;
}
.band-contact { background-color: var(--c-contact-default); }

.band-impact:hover  { background-color: var(--c-impact-hover); }
.band-about:hover   { background-color: var(--c-about-hover); }
.band-contact:hover { background-color: var(--c-contact-hover); }

body[data-state="impact"]  .band-impact:hover  { background-color: var(--c-impact-default); }
body[data-state="about"]   .band-about:hover   { background-color: var(--c-about-default); }
body[data-state="contact"] .band-contact:hover { background-color: var(--c-contact-default); }

/* band-impressum acts as the footer in its default (closed) state */
.band-impressum {
  flex: 0 0 var(--footer-h) !important; /* always footer height when not open */
  min-height: 0 !important;             /* override .band min-height: var(--strip-h) */
  background-color: var(--c-footer-default);
  cursor: default;
  overflow: hidden;
}

/* In impressum state: expand to fill remaining space */
body[data-state="impressum"] .band-impressum {
  flex: 1 1 auto !important;
}

/* ── Footer strip (visible when closed) ── */
.impressum-strip {
  position: absolute;
  left: var(--label-pad-r);
  bottom: 0;
  height: var(--footer-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  pointer-events: auto;
  z-index: 3;  /* above .band-content (position:absolute, no z-index) */
}

/* Strikethrough + toggle-close when band is open */
body[data-state="impressum"] .footer-impressum-btn {
  text-decoration: line-through;
  text-decoration-color: var(--t-footer-active);
}

.footer-meta {
  position: static;
  font-size: clamp(11px, 0.8vw, 13px);
  color: var(--t-footer-active);
  opacity: 0.75;
  pointer-events: none;
}

.footer-impressum-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-stack);
  font-size: clamp(11px, 0.8vw, 13px);
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  color: var(--t-footer-active);
  opacity: 0.75;
  padding: 0;
  text-align: left;
  transition:
    color   200ms var(--ease-soft),
    opacity 200ms var(--ease-soft);
}
.footer-impressum-btn:hover {
  color: #fef5ec;
  opacity: 1;
}
/* Whole footer band colours on Impressum hover */
.band-impressum:has(.footer-impressum-btn:hover) {
  background-color: #a57e58;
}

/* =========================================================
   STATES — flex distribution
   ========================================================= */
body[data-state="home"] .band { flex: 1 1 0; }
/* band-impressum always stays at footer height — never expands with home state */
body[data-state="home"] .band-impressum { flex: 0 0 var(--footer-h) !important; }
body[data-state="home"]    .band-home,
body[data-state="home"]    .band-home    * { cursor: default; }
body[data-state="impact"]  .band-impact,
body[data-state="impact"]  .band-impact  * { cursor: default; }
body[data-state="about"]   .band-about,
body[data-state="about"]   .band-about   * { cursor: default; }
body[data-state="contact"] .band-contact,
body[data-state="contact"] .band-contact * { cursor: default; }
body:not([data-state="home"]) .band-home:hover { background-color: var(--c-home-hover); }

body[data-state="impact"] .band-home    { flex: 0 0 var(--strip-h); }
body[data-state="impact"] .band-impact  { flex: 1 1 auto; }
body[data-state="impact"] .band-about   { flex: 0 0 var(--strip-h); }
body[data-state="impact"] .band-contact { flex: 0 0 var(--strip-h); }

body[data-state="about"]  .band-home    { flex: 0 0 var(--strip-h); }
body[data-state="about"]  .band-impact  { flex: 0 0 var(--strip-h); }
body[data-state="about"]  .band-about   { flex: 1 1 auto; }
body[data-state="about"]  .band-contact { flex: 0 0 var(--strip-h); }

body[data-state="contact"] .band-home    { flex: 0 0 var(--strip-h); }
body[data-state="contact"] .band-impact  { flex: 0 0 var(--strip-h); }
body[data-state="contact"] .band-about   { flex: 0 0 var(--strip-h); }
body[data-state="contact"] .band-contact { flex: 1 1 auto; }

/* Impressum state — home fixed at ~22.6vh (matches Figma 252/1116), rest hidden */
body[data-state="impressum"] .band-home    { flex: 0 0 clamp(140px, 22.6vh, 260px); }
body[data-state="impressum"] .band-impact  { flex: 0 0 0; min-height: 0; overflow: hidden; }
body[data-state="impressum"] .band-about   { flex: 0 0 0; min-height: 0; overflow: hidden; }
body[data-state="impressum"] .band-contact { flex: 0 0 0; min-height: 0; overflow: hidden; }
body[data-state="impressum"] .band-impressum { flex: 1 1 auto; }
/* Logo full-size in impressum state — !important beats body:not([data-state="home"]) */
body[data-state="impressum"] .logo {
  height: clamp(20px, 4vh, 40px) !important;
  top: calc(clamp(140px, 22.6vh, 260px) / 2 - clamp(10px, 2vh, 20px)) !important;
}
/* Menu visible; "Home" highlighted as active */
body[data-state="impressum"] .menu-item[data-target="home"] {
  color: var(--t-home-active);
}

body:not([data-state="about"]) .band-about {
  padding: 0;
  gap: 0;
}

/* =========================================================
   CONTENT CONTAINERS
   ========================================================= */
.band-content {
  position: absolute;
  inset: 0;
  cursor: default;
  padding:
    clamp(20px, 5.5vh, 64px)
    clamp(160px, 20vw, 280px)
    clamp(24px, 5vh, 64px)
    var(--label-pad-r);
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity    360ms var(--ease-soft),
    transform  480ms var(--ease-flash),
    visibility 0s   linear 480ms;

  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.18) transparent;
}
.band-content::-webkit-scrollbar { width: 8px; }
.band-content::-webkit-scrollbar-track { background: transparent; }
.band-content::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.16);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: content-box;
}
.band-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.28);
  background-clip: content-box;
}

body[data-state="impact"]  .band-impact  .band-content,
body[data-state="about"]   .band-about   .band-content,
body[data-state="contact"] .band-contact .band-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition:
    opacity    480ms var(--ease-soft)  220ms,
    transform  600ms var(--ease-flash) 200ms,
    visibility 0s   linear 0s;
}
body[data-state="about"] .band-about .overview-image {
  opacity: 1;
  transition-delay: 220ms;
}

/* ── Impressum band content (shown when state = impressum) ── */
body[data-state="impressum"] .band-impressum .band-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition:
    opacity    480ms var(--ease-soft)  220ms,
    transform  600ms var(--ease-flash) 200ms,
    visibility 0s   linear 0s;
  padding:
    clamp(20px, 5.5vh, 64px)
    var(--label-pad-r)
    calc(var(--footer-h) + clamp(24px, 5vh, 64px))
    var(--label-pad-r);
}

/* =========================================================
   CONTENT TYPOGRAPHY
   ========================================================= */
.content-inner {
  max-width: 880px;
  margin-right: auto;
  margin-left: 0;
}
.band-impact .content-inner,
.band-about  .content-inner {
  max-width: none;
}
.band-about .band-content {
  position: relative;
  inset: auto;
  flex: 0 0 35vw;
  overflow-y: auto;
  padding: 0;
  min-height: 0;
}
.band-about .overview-layout {
  align-items: flex-start;
}
.band-about .overview-image {
  flex: 0 0 45vw;
  overflow: hidden;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 480ms var(--ease-soft);
}
.band-about .overview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.band-about .overview-layout .overview-side {
  flex: 0 0 35vw;
  padding-right: 16px;
  box-sizing: border-box;
  align-self: flex-start;
}

/* About typography */
.about-block {
  margin-bottom: 60px;
}
.overview-side p.about-headline {
  color: var(--font-saisonal-about-item-color, #4A0023);
  font-family: "Noto Sans", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  margin: 0 0 80px;
  max-width: none;
}
.overview-side p.impact-headline {
  color: var(--t-impact-active);
  font-family: "Noto Sans", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  margin: 0 0 40px;
  max-width: none;
}
/* Impact blocks — adapted from pixelsektor.de "Beratung" design */
.impact-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}
.impact-block:nth-of-type(1) { margin-left: 30%; }
.impact-block:nth-of-type(2) { margin-left: 37%; }
.impact-block:nth-of-type(3) { margin-left: 44%; }
.impact-block:nth-of-type(4) { margin-left: 48%; }

.impact-block-headline {
  align-self: flex-start;
  background: #fff;
  color: var(--t-impact-active);
  font-family: "Noto Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  padding: 16px 18px;
  border-radius: 2px;
  animation: headlineIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  animation-play-state: paused;
}
.impact-block-text {
  width: min(33vw, 390px);
  background: #11240A;
  border-radius: 2px;
  padding: 28px 28px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  animation: textIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  animation-play-state: paused;
}

.impact-block:nth-of-type(1) .impact-block-headline,
.impact-block:nth-of-type(1) .impact-block-text { animation-delay: 0.1s; }
.impact-block:nth-of-type(2) .impact-block-headline,
.impact-block:nth-of-type(2) .impact-block-text { animation-delay: 0.2s; }
.impact-block:nth-of-type(3) .impact-block-headline,
.impact-block:nth-of-type(3) .impact-block-text { animation-delay: 0.3s; }
.impact-block:nth-of-type(4) .impact-block-headline,
.impact-block:nth-of-type(4) .impact-block-text { animation-delay: 0.4s; }

body[data-state="impact"] .impact-block-headline,
body[data-state="impact"] .impact-block-text {
  animation-play-state: running;
}

@keyframes headlineIn {
  from { opacity: 0; transform: translateX(-100%); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes textIn {
  from { opacity: 0; transform: translateX(100%); }
  to   { opacity: 1; transform: translateX(0); }
}

.impact-block-text p {
  color: #e8f5e0;
  font-family: "Noto Sans", sans-serif;
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  max-width: none;
}
.overview-side p.about-item-date {
  color: #4A0023;
  font-family: "Noto Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0.25px;
  margin: 0 0 4px;
  white-space: nowrap;
}
.overview-side p.about-item-title {
  color: #4A0023;
  font-family: "Noto Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: 0.25px;
  margin: 0 0 0.6em;
}
.overview-side p.about-item-desc {
  color: #4A0023;
  font-family: "Noto Sans", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: 0.25px;
  margin: 0 0 0.4em;
  max-width: none;
}
.overview-side .about-desc-label {
  font-weight: 550;
}
.content-inner h2 {
  font-size: clamp(28px, 4.4vw, 64px);
  line-height: 1.05;
  font-weight: 600;
  margin: 0 0 0.4em;
  letter-spacing: -0.5px;
  max-width: none;
  white-space: nowrap;
}
.content-inner h3 {
  font-size: clamp(15px, 1.3vw, 20px);
  font-weight: 600;
  margin: 1.6em 0 0.4em;
  letter-spacing: 0;
}
.content-inner p {
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.6;
  margin: 0 0 1em;
  max-width: 56ch;
}
.band-impact  .content-inner { color: var(--t-impact-active); }
.band-about   .content-inner { color: var(--t-about-active); }
.band-contact .content-inner { color: var(--t-contact-active); }

/* Overview: cards left, sidebar right */
.overview-layout {
  display: flex;
  gap: 3vw;
  align-items: flex-start;
}
.overview-layout .placeholder-grid {
  flex: 0 0 45vw;
  margin-top: 0;
  grid-template-columns: repeat(3, 1fr);
}
.overview-layout .overview-side {
  flex: 0 0 40vw;
  align-self: flex-start;
}
.band-impact-bg {
  position: absolute;
  top: 0;
  left: 48%;
  right: 25%;
  width: auto;
  height: 100%;
  background: url('img/Impact-illustration.svg') no-repeat right center;
  background-size: contain;
  pointer-events: none;
}
body:not([data-state="impact"]) .band-impact-bg {
  display: none;
}
.overview-layout .overview-image {
  flex: 0 0 45vw;
  height: calc(100dvh - 70px);
  overflow: hidden;
  border-radius: 4px;
  align-self: flex-start;
}
.overview-layout .overview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Background watermark */
.band-watermark {
  position: absolute;
  left: -40px;
  bottom: 20px;
  font-family: "Alcyone", "Inter", "Helvetica Neue", sans-serif;
  font-weight: 900;
  font-size: clamp(6.75rem, 19.75rem, 26.75rem);
  color: rgba(255, 255, 255, 0.3);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
  letter-spacing: -0.03em;
  user-select: none;
}
body:not([data-state="impact"])  .band-impact  .band-watermark,
body:not([data-state="about"])   .band-about   .band-watermark,
body:not([data-state="contact"]) .band-contact .band-watermark {
  display: none;
}

/* =========================================================
   PROJECT GRID & CARDS  (Impact overview)
   ========================================================= */
.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
  padding-bottom: 24px;
}

.placeholder-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  background-color: #ffffff;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: background-color var(--t-fast) var(--ease-soft);
}
.placeholder-card.has-detail { cursor: pointer; }
/* Override band-level cursor:default so cards with visible content show pointer */
body[data-state="impact"] .placeholder-card.has-detail { cursor: pointer; }
/* Hover image overlay */
.placeholder-card.has-detail::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hover-bg);
  background-size: var(--hover-size, cover);
  background-position: top center;
  background-repeat: no-repeat;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast) var(--ease-soft);
}
.placeholder-card.has-detail:hover::after { opacity: 1; }

/* =========================================================
   SCREENSHOT CAROUSEL  (used on project detail pages)
   ========================================================= */
.screenshot-row {
  --row-w:   calc(75vw - var(--label-pad-r));
  --row-gap: clamp(16px, 1.5vw, 28px);
  --img-w:   calc((var(--row-w) - var(--row-gap)) / 2);

  width: var(--row-w);
  margin: clamp(24px, 3vh, 40px) 0 clamp(16px, 2vh, 24px);
  overflow: hidden;
}
.screenshot-track {
  --shift: 0;
  display: flex;
  align-items: flex-start;
  gap: var(--row-gap);
  width: max-content;
  transform: translateX(calc(var(--shift) * -1 * (var(--img-w) + var(--row-gap))));
  transition: transform var(--t-slow) var(--ease-flash);
  will-change: transform;
}
.screenshot-track > img,
.screenshot-track > .swap {
  flex: 0 0 var(--img-w);
  width: var(--img-w);
}
.screenshot-track > img {
  height: auto;
  display: block;
  border-radius: 4px;
}
.screenshot-track > .swap {
  position: relative;
  display: block;
  line-height: 0;
}
.screenshot-track > .swap > img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.screenshot-track > .swap > .img-hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease-soft);
}
.screenshot-track > .swap:hover > .img-hover { opacity: 0; pointer-events: none; }

.screenshot-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: calc(75vw - var(--label-pad-r));
  max-width: 100%;
  margin: clamp(12px, 1.5vh, 20px) 0 clamp(8px, 1vh, 14px);
}
.screenshot-nav {
  display: flex;
  gap: 14px;
  margin-left: auto;
}
.arrow-btn {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #202427;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  border-radius: 4px;
  opacity: 0.85;
  transition: opacity var(--t-fast) var(--ease-soft);
}
.arrow-btn:hover { opacity: 1; }
.arrow-btn:disabled,
.arrow-btn[aria-disabled="true"] {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}
.arrow-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.arrow-btn svg { width: 22px; height: 22px; }

.content-inner p.caption {
  font-size: clamp(13px, 0.95vw, 15px);
  font-weight: 500;
  opacity: 0.85;
  width: calc(75vw - var(--label-pad-r));
  max-width: 100%;
  margin-top: calc(clamp(12px, 1.5vh, 20px) + 40px);
}

/* Pagination */
.pagination {
  display: flex;
  gap: 10px;
  margin: 0;
  align-items: center;
}
.page-dot {
  width: 32px;
  height: 6px;
  border-radius: 3px;
  background: currentColor;
  opacity: 0.25;
  border: none;
  padding: 0;
  cursor: pointer;
  transition:
    opacity var(--t-fast) var(--ease-soft),
    width   var(--t-base) var(--ease-flash);
}
.page-dot:hover { opacity: 0.55; }
.page-dot.is-active { opacity: 1; width: 48px; }
.page-dot.is-active:hover { opacity: 1; }
.page-dot:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 3px; }

/* =========================================================
   EYEBROW  (used on project detail pages)
   ========================================================= */
.eyebrow {
  font-size: clamp(11px, 0.78vw, 13px);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 0.4em;
  opacity: 0.7;
}

/* =========================================================
   BACK LINK
   ========================================================= */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(13px, 0.95vw, 15px);
  font-weight: 500;
  color: #202427;
  cursor: pointer;
  padding: 4px 0;
  margin: 0 0 1.6em;
  letter-spacing: var(--label-tracking);
  text-decoration: none;
  transition: opacity var(--t-fast) var(--ease-soft);
  opacity: 0.85;
}
.back-link:hover { opacity: 1; }
.back-link svg { width: 16px; height: 16px; }

/* =========================================================
   MENU OVERLAY
   ========================================================= */
.menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: clamp(140px, 18vw, 240px);
  pointer-events: none;
  z-index: 10;
}
.menu-item {
  position: absolute;
  left: var(--label-pad-r);
  display: inline-flex;
  align-items: center;
  height: var(--strip-h);
  padding: 0;
  color: var(--surface-saisonal-color-3-selected, #963555);
  text-align: justify;
  font-family: "Alcyone";
  font-size: var(--font-size-Body-lg, 18px);
  font-style: normal;
  font-weight: 500;
  line-height: var(--font-line-height-Body-md, 24px);
  letter-spacing: 0.25px;
  cursor: pointer;
  pointer-events: auto;
  white-space: nowrap;
  transition:
    top       var(--t-base) var(--ease-flash),
    color     var(--t-fast) var(--ease-soft),
    transform var(--t-fast) var(--ease-flash);
}
.menu-item:hover { transform: translateX(6px); }
.menu-item:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }

body[data-state="home"]    .menu-item[data-target="home"]    { color: var(--t-home-active);    cursor: default; }
body[data-state="impact"]  .menu-item[data-target="impact"]  { color: var(--t-impact-active);  cursor: default; }
body[data-state="about"]   .menu-item[data-target="about"]   { color: var(--t-about-active);   cursor: default; }
body[data-state="contact"] .menu-item[data-target="contact"] { color: var(--t-contact-active); cursor: default; }


.band-impact:hover  ~ .menu .menu-item[data-target="impact"]  { color: var(--t-impact-onhover); }
.band-about:hover   ~ .menu .menu-item[data-target="about"]   { color: var(--t-about-onhover); }
.band-contact:hover ~ .menu .menu-item[data-target="contact"] { color: var(--t-contact-onhover); }

body[data-state="home"] .menu-item[data-target="home"]:hover    { color: inherit; }
.menu-item[data-target="impact"]:hover  { color: var(--t-impact-onhover); }
.menu-item[data-target="about"]:hover   { color: var(--t-about-onhover); }
.menu-item[data-target="contact"]:hover { color: var(--t-contact-onhover); }

body[data-state="home"]:has(.menu-item[data-target="home"]:hover) .band-home { background-color: var(--c-home-default); }
body:not([data-state="home"]):has(.menu-item[data-target="home"]:hover) .band-home { background-color: var(--c-home-hover); }
.site:has(.menu-item[data-target="impact"]:hover)  .band-impact  { background-color: var(--c-impact-hover); }
.site:has(.menu-item[data-target="about"]:hover)   .band-about   { background-color: var(--c-about-hover); }
.site:has(.menu-item[data-target="contact"]:hover) .band-contact { background-color: var(--c-contact-hover); }

body[data-state="impact"]:has(.menu-item[data-target="impact"]:hover)   .band-impact  { background-color: var(--c-impact-default); }
body[data-state="impact"]  .menu-item[data-target="impact"]:hover                      { color: var(--t-impact-active); }
body[data-state="about"]:has(.menu-item[data-target="about"]:hover)     .band-about   { background-color: var(--c-about-default); }
body[data-state="about"]   .menu-item[data-target="about"]:hover                       { color: var(--t-about-active); }
body[data-state="contact"]:has(.menu-item[data-target="contact"]:hover) .band-contact { background-color: var(--c-contact-default); }
body[data-state="contact"] .menu-item[data-target="contact"]:hover                     { color: var(--t-contact-active); }

/* HOME state: labels clustered inside the home band */
body[data-state="home"] .menu-item[data-target="home"]    { top: calc((100dvh - var(--footer-h)) / 8 - 68px); }
body[data-state="home"] .menu-item[data-target="impact"]  { top: calc((100dvh - var(--footer-h)) / 8 - 36px); }
body[data-state="home"] .menu-item[data-target="about"]   { top: calc((100dvh - var(--footer-h)) / 8 -  4px); }
body[data-state="home"] .menu-item[data-target="contact"] { top: calc((100dvh - var(--footer-h)) / 8 + 28px); }

/* IMPRESSUM state: menu centred inside the fixed home band (22.6vh) */
body[data-state="impressum"] .menu-item[data-target="home"]    { top: calc(clamp(140px, 22.6vh, 260px) / 2 - 48px); }
body[data-state="impressum"] .menu-item[data-target="impact"]  { top: calc(clamp(140px, 22.6vh, 260px) / 2 - 16px); }
body[data-state="impressum"] .menu-item[data-target="about"]   { top: calc(clamp(140px, 22.6vh, 260px) / 2 + 16px); }
body[data-state="impressum"] .menu-item[data-target="contact"] { top: calc(clamp(140px, 22.6vh, 260px) / 2 + 48px); }

/* IMPACT expanded */
body[data-state="impact"] .menu-item[data-target="home"]    { top: 0; }
body[data-state="impact"] .menu-item[data-target="impact"]  { top: calc((100dvh - var(--footer-h)) / 2 - var(--strip-h)); }
body[data-state="impact"] .menu-item[data-target="about"]   { top: calc(100dvh - var(--footer-h) - 2 * var(--strip-h)); }
body[data-state="impact"] .menu-item[data-target="contact"] { top: calc(100dvh - var(--footer-h) - 1 * var(--strip-h)); }

/* ABOUT expanded */
body[data-state="about"] .menu-item[data-target="home"]    { top: 0; }
body[data-state="about"] .menu-item[data-target="impact"]  { top: var(--strip-h); }
body[data-state="about"] .menu-item[data-target="about"]   { top: calc((100dvh - var(--footer-h)) / 2); }
body[data-state="about"] .menu-item[data-target="contact"] { top: calc(100dvh - var(--footer-h) - var(--strip-h)); }

/* CONTACT expanded */
body[data-state="contact"] .menu-item[data-target="home"]    { top: 0; }
body[data-state="contact"] .menu-item[data-target="impact"]  { top: var(--strip-h); }
body[data-state="contact"] .menu-item[data-target="about"]   { top: calc(2 * var(--strip-h)); }
body[data-state="contact"] .menu-item[data-target="contact"] { top: calc(var(--strip-h) + (100dvh - var(--footer-h)) / 2); }

body[data-state="impact"]  .menu-item[data-target="impact"],
body[data-state="about"]   .menu-item[data-target="about"],
body[data-state="contact"] .menu-item[data-target="contact"] {
  transition:
    top       var(--t-slow) var(--ease-flash),
    color     var(--t-base) var(--ease-soft),
    transform var(--t-fast) var(--ease-flash);
}

/* =========================================================
   LOGO
   ========================================================= */
.logo {
  position: fixed;
  left: var(--label-pad-r);
  top: calc((100dvh - var(--footer-h)) / 8 - clamp(10px, 2vh, 20px));
  height: clamp(20px, 4vh, 40px);
  aspect-ratio: 12448 / 1017;
  max-width: min(70vw, calc(100vw - 320px));
  pointer-events: none;
  z-index: 9;
  color: #202427;
  opacity: 1;
  transition:
    height  var(--t-base) var(--ease-flash),
    top     var(--t-base) var(--ease-flash),
    opacity var(--t-base) var(--ease-flash),
    color   var(--t-base) var(--ease-soft);
}
.logo svg {
  width: 100%;
  height: 100%;
  display: block;
}
/* Logo shrinks into the collapsed home strip in non-home states */
body:not([data-state="home"]) .logo {
  height: clamp(12px, 2vh, 18px);
  top: calc((var(--strip-h) - clamp(12px, 2vh, 18px)) / 2);
}
@media (max-width: 640px) {
  /* Logo visible in all states on mobile — full in home, small in collapsed strip */
  .logo { height: 16px; max-width: none; }
}

/* =========================================================
   OPENING ANIMATION
   ========================================================= */
/* =========================================================
   PAGE TRANSITIONS
   ========================================================= */
@keyframes pageSlideInFromRight {
  from { opacity: 0; transform: translateX(64px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pageSlideOutToLeft {
  to   { opacity: 0; transform: translateX(-64px); }
}
@keyframes pageSlideOutToRight {
  to   { opacity: 0; transform: translateX(64px); }
}

/* Project page enters from right */
body.page-project {
  animation: pageSlideInFromRight 420ms var(--ease-flash) both;
}

/* Exit: index → project (slides left) */
html.pt-exit-left body {
  animation: pageSlideOutToLeft 280ms var(--ease-flash) both;
  pointer-events: none;
  overflow: hidden;
}

/* Exit: project → back (slides right) */
html.pt-exit-right body {
  animation: pageSlideOutToRight 280ms var(--ease-flash) both;
  pointer-events: none;
  overflow: hidden;
}

@keyframes bandSweepIn {
  from { transform: scaleX(0); transform-origin: right center; opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}
@keyframes menuFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.band { animation: bandSweepIn 700ms var(--ease-flash) both; }
.band-home      { animation-delay:  60ms; }
.band-impact    { animation-delay: 140ms; }
.band-about     { animation-delay: 220ms; }
.band-contact   { animation-delay: 300ms; }
.band-impressum { animation-delay: 380ms; }
.menu-item    { animation: menuFadeIn 600ms var(--ease-flash) both; }
.menu-item[data-target="home"]    { animation-delay: 480ms; }
.menu-item[data-target="impact"]  { animation-delay: 540ms; }
.menu-item[data-target="about"]   { animation-delay: 600ms; }
.menu-item[data-target="contact"] { animation-delay: 660ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
}


/* =========================================================
   IMPRESSUM BAND
   ========================================================= */

/* ── Close button: hidden when band is closed, visible when open ── */
.impressum-close {
  position: absolute;
  top: clamp(10px, 2vh, 20px);
  right: var(--label-pad-r);
  z-index: 2;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #964f12;
  /* hidden by default */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms var(--ease-soft), visibility 0s linear 200ms;
  padding: 0;
}
body[data-state="impressum"] .impressum-close {
  opacity: 0.6;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 200ms var(--ease-soft) 300ms, visibility 0s linear 0s;
}
.impressum-close:hover { opacity: 1; }
.impressum-close svg { width: 20px; height: 20px; display: block; }

/* ── Two-column layout ── */
.impressum-layout {
  display: flex;
  gap: clamp(32px, 6vw, 96px);
  min-height: 100%;
}

.impressum-col {
  color: #964f12;
  font-family: "Noto Sans", var(--font-stack);
  font-size: clamp(13px, 0.95vw, 16px);
  line-height: 1.75;
  font-weight: 400;
}

.impressum-col p {
  margin: 0 0 1em;
}

.impressum-col a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.impressum-col a:hover { opacity: 0.7; }

/* Left column: sticky, fixed width */
.impressum-col--left {
  width: clamp(200px, 26%, 320px);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  align-self: flex-start;
}

/* Right column: flexible, scrolls with content */
.impressum-col--right {
  flex: 1;
  min-width: 0;
  padding-bottom: clamp(24px, 5vh, 64px);
}

/* "Impressum" title — full-width row above the two columns */
.impressum-col-title {
  font-family: "Alcyone", var(--font-stack);
  font-weight: 500;
  font-size: clamp(16px, 1.4vw, 22px);
  letter-spacing: 0.25px;
  color: #964f12;
  margin: 0 0 clamp(20px, 3vh, 36px);
}

/* Section heading (e.g. "Angaben gemäß § 5 DDG", "Datenschutzerklärung") */
.impressum-section-title {
  font-weight: 700;
  margin-bottom: 0.6em;
}

/* Sub-heading (numbered sections) */
.impressum-sub-title {
  font-weight: 700;
  margin-top: 1.2em;
  margin-bottom: 0.3em;
}

/* Smaller sub-heading (e.g. "Server-Log-Dateien") */
.impressum-sub-title-sm {
  font-weight: 600;
  margin-top: 0.8em;
  margin-bottom: 0.2em;
}

/* ── Mobile: stack columns ── */
@media (max-width: 640px) {
  .impressum-layout {
    flex-direction: column;
    gap: 32px;
  }

  .impressum-col--left {
    width: 100%;
    position: static;
  }

  .impressum-col-title {
    font-size: 18px;
  }
}

/* =========================================================
   PROJECT DETAIL PAGES  (body.page-project)
   ========================================================= */
html:has(body.page-project),
body.page-project {
  height: 100vh;
  overflow: hidden;
}

.page-project {
  height: 100vh;
  background: var(--c-impact-default);
  display: flex;
  flex-direction: column;
}
.page-project .project-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-bottom: 0;
  background: var(--c-impact-default);
}

.page-project .screenshot-row {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  order: 1;
}
.page-project .screenshot-row::-webkit-scrollbar {
  display: none;
}

.page-project .band-impressum {
  flex: 0 0 var(--footer-h) !important;
  min-height: 0 !important;
  overflow: hidden;
}
body.page-project[data-state="impressum"] .band-impressum {
  position: fixed;
  inset: 0;
  height: 100vh;
  z-index: 10;
}

.page-project .impressum-strip {
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.page-project .project-sticky {
  background: var(--c-impact-default);
}

.page-project .project-sticky > * {
  background: var(--c-impact-default);
}

.project-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 2.5vh, 28px) var(--label-pad-r);
  background: var(--c-impact-default);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.project-nav {
  display: flex;
  gap: 8px;
}
.project-nav-link {
  display: inline-block;
  padding: 8px 16px;
  background: #B0D69C;
  border-radius: 8px;
  color: #00363D;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity var(--t-fast) var(--ease-soft);
}
.project-nav-link:hover {
  opacity: 0.85;
}
.project-nav-link.disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* Override back-link margin on project pages */
.page-project .back-link { margin: 0; }

.project-main {
  margin: 0 var(--label-pad-r);
  padding: clamp(24px, 4.8vh, 48px) 0 clamp(64px, 12vh, 128px);
  color: var(--t-impact-active);
}

.project-hero {
  margin-bottom: clamp(16px, 2.5vh, 32px);
  max-width: 960px;
}

.project-hero h1 {
  font-size: clamp(20px, 2.4vw, 34px);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.3em;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.project-tagline {
  font-size: clamp(15px, 1.3vw, 20px);
  line-height: 1.5;
  margin: 0;
  width: 50vw;
  opacity: 0.75;
}

/* Override screenshot-row sizing for full-page context */
.page-project .screenshot-row,
.page-project .screenshot-controls {
  --row-w: calc(100vw - 2 * var(--label-pad-r));
  width: var(--row-w);
}
.page-project .screenshot-controls {
  order: 2;
  margin: 0;
  padding: clamp(20px, 3vh, 40px) 0;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  padding: clamp(12px, 1.5vh, 20px) 0;
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  margin: clamp(16px, 2.5vh, 32px) 0;
}

.project-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.project-meta-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.45;
}
.project-meta-value {
  font-size: clamp(13px, 1vw, 15px);
}

.project-body {
  max-width: 720px;
  margin-top: clamp(32px, 5vh, 56px);
}

.project-section {
  margin-bottom: clamp(32px, 5vh, 48px);
}

.project-section h2 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.45;
  margin: 0 0 0.8em;
  white-space: normal;
}

.project-section p {
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.65;
  margin: 0 0 1em;
  max-width: 60ch;
  white-space: normal;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(20px, 3vh, 32px) var(--label-pad-r);
  background: var(--c-impact-default);
  font-size: clamp(11px, 0.85vw, 13px);
  color: var(--t-impact-active);
}
.project-footer a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  opacity: 0.8;
}
.project-footer a:hover { opacity: 1; text-decoration: underline; }
.project-footer span { opacity: 0.5; }


/* ===== CONTACT FORM ===== */
body[data-state="contact"] .band-contact .band-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}
body[data-state="contact"] .band-contact .content-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}
body[data-state="contact"] .band-contact .content-inner .cf-intro {
  flex-shrink: 0;
}
body[data-state="contact"] .band-contact .content-inner .cf-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Intro text above the form — mirrors .about-headline 1:1.
   Uses the same level of specificity (class + p tag) as .about-headline
   so the global `.content-inner p` defaults don't override it. */
.content-inner p.cf-intro {
  color: var(--font-saisonal-about-item-color, #4A0023);
  font-family: "Noto Sans", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  margin: 0 0 80px;
  max-width: none;
}

.cf-success {
  display: none;
  margin: 0 0 40px;
  color: var(--font-saisonal-about-item-color, #4A0023);
  font-family: "Noto Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
}
.cf-success.is-visible { display: block; }

.content-inner .cf-contact-info {
  margin: 40px 0 0;
  font-family: "Noto Sans", sans-serif;
  font-size: clamp(13px, 1vw, 18px);
  font-weight: 400;
  color: #964f12;
  letter-spacing: 0.25px;
  line-height: 28px;
  white-space: nowrap;
}
.cf-sep { color: #e68398; }
.cf-ci-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.cf-ci-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cf-form { display: flex; flex-direction: column; }

.cf-fields {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 56px;
}

/* ── Field row ── */
.cf-field {
  display: flex;
  align-items: center;
  gap: 14px;
}

body[data-state="contact"] .cf-field,
body[data-state="contact"] .cf-field * { cursor: pointer; }

.cf-field.is-active,
body[data-state="contact"] .cf-field.is-active { cursor: default; align-items: center; }
body[data-state="contact"] .cf-field.is-active * { cursor: default; }
body[data-state="contact"] .cf-field.is-active .cf-confirm { cursor: pointer; }
body[data-state="contact"] .cf-field.has-content .cf-clear,
body[data-state="contact"] .cf-field.has-content .cf-clear * { cursor: pointer; }

/* ── Step circle ── */
.cf-step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #F4A056;
  color: #5A2C0A;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  flex-shrink: 0;
  transition: margin-top var(--t-fast) var(--ease-soft);
}
.cf-field.is-active .cf-step { margin-top: 0; }

/* ── Body (label + input stacked) ── */
.cf-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ── Label ── */
.cf-label {
  display: flex;
  align-items: center;
  font-size: clamp(15px, 1.1vw, 18px);
  color: #5A2C0A;
  font-weight: 400;
  padding: 24px 16px;
  border-radius: 6px;
  background-color: transparent;
  transition: background-color var(--t-fast) var(--ease-soft),
              font-size 150ms var(--ease-soft),
              padding 150ms var(--ease-soft);
}
.cf-field:not(.is-active):not(.is-filled):hover .cf-label { background-color: #FEF5EC; }
.cf-field.is-active .cf-label  { display: none; }
.cf-field.is-filled .cf-label  { display: none !important; }

/* ── Input wrap (the styled box) ── */
.cf-input-wrap {
  display: none;
  position: relative;
  align-items: flex-end;
  gap: 10px;
  padding: 24px 16px;
  border-radius: 6px;
  background: #FEF5EC;
  min-width: 458px;
  max-width: 50vw;
  width: max-content;
  box-sizing: border-box;
}
.cf-field.is-active .cf-input-wrap { display: inline-flex; }

/* ── Inner group: label + input stacked ── */
.cf-input-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  flex: 1;
}

.cf-field-label {
  font-size: 12px;
  color: #5A2C0A;
  font-weight: 400;
  line-height: 1.3;
}

/* ── Contenteditable input ── */
.cf-input {
  flex: 1;
  min-width: 140px;
  outline: none;
  font: inherit;
  font-size: clamp(15px, 1.1vw, 18px);
  color: #4A78C8;
  word-break: break-word;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  cursor: text;
  line-height: 1.45;
}

/* ── Clear (×) button ── */
.cf-clear {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #4A78C8;
  transition: color var(--t-fast);
}
.cf-clear:hover { color: #2D5FA8; }
.cf-clear svg { width: 24px; height: 24px; }

/* ── Resize grabber ── */
.cf-grabber { display: none !important; }

/* ── Filled (success) state ──
   When the user confirms a value: hide the editable body, show the committed
   value, switch the action stack into a horizontal row with ✓ and 🗑 visible. */
.cf-filled-value {
  display: none;
  font-size: clamp(15px, 1.1vw, 18px);
  color: #5A2C0A;
  font-weight: 400;
}
.cf-field.is-filled                    { align-items: center; gap: 24px; }
.cf-field.is-filled .cf-body           { display: none; }
.cf-field.is-filled .cf-filled-value   { display: block; }
.cf-field.is-filled .cf-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-left: 0;
  padding-top: 0;
}
.cf-field.is-filled .cf-confirm        { display: flex; pointer-events: none; }
.cf-field.is-filled .cf-clear          { display: none; }
.cf-field.is-filled .cf-delete:hover   { color: #CC2200; }
body[data-state="contact"] .cf-field.is-filled,
body[data-state="contact"] .cf-field.is-filled * { cursor: default; }
body[data-state="contact"] .cf-field.is-filled .cf-delete { cursor: pointer; }

/* ── Action buttons (✓ 🗑) ── */
.cf-actions {
  display: none;
  flex-direction: row;
  gap: 12px;
  margin-left: 10px;
  flex-shrink: 0;
}
.cf-field.is-active .cf-actions { display: flex; }
.cf-field.is-active .cf-confirm { display: none; }
.cf-field.is-active .cf-clear { display: none; }
.cf-field.has-content .cf-clear { display: flex; }

.cf-confirm,
.cf-delete {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #5A2C0A;
}
/* Hide delete by default — must come after the shared rule above */
.cf-delete { display: none; }
.cf-field.is-filled .cf-delete { display: flex; }
.cf-delete:hover  { color: #5A2C0A; }
.cf-confirm svg,
.cf-delete svg { width: 24px; height: 24px; }

/* ── Error state ──
   Triggered on blur (or on confirm) when the input doesn't validate.
   Wrap stays open so the user can correct it; value + clear-icon go red;
   a small message renders below the card. */
.cf-error-msg {
  display: none;
  font-size: 12px;
  line-height: 24px;
  letter-spacing: 0.25px;
  color: #D2283B;
  margin: 4px 0 0;
  padding: 0 16px;            /* aligned with input-wrap padding-left */
}
.cf-field.is-error .cf-error-msg   { display: block; }
.cf-field.is-error .cf-input-wrap  { display: inline-flex; }
.cf-field.is-error .cf-label       { display: none; }       /* hide the idle label */
.cf-field.is-error .cf-input,
.cf-field.is-error .cf-clear       { color: #D2283B; }
.cf-field.is-error .cf-clear:hover { color: #B11D2F; }
.cf-field.is-error .cf-actions     { display: flex; flex-direction: row; }
.cf-field.is-error .cf-confirm     { display: none; }
.cf-field.is-error .cf-delete      { display: flex; }

/* ── Locked submit (all-or-nothing gate) ── */
.cf-submit.is-locked {
  opacity: 1;
  pointer-events: none;
  cursor: default;
}

/* ── Submit button (final design — pink CTA from Figma) ── */
.cf-submit-wrap {
  margin-top: 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.cf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 26px 32px;
  background-color: #ED4790;
  color: #F8FDFF;
  font: inherit;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 16px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition:
    background-color var(--t-fast) var(--ease-soft),
    opacity var(--t-fast) var(--ease-soft),
    transform var(--t-fast) var(--ease-flash);
}
body[data-state="contact"] .cf-submit { cursor: pointer; }
.cf-submit:hover  { background-color: #D63A82; }
.cf-submit:active { transform: scale(0.98); }
.cf-submit:disabled,
.cf-submit[aria-disabled="true"] {
  opacity: 0.2;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}
.cf-submit svg { width: 24px; height: 24px; }

/* Sending state — button stays visible but inert */
.cf-form.is-sending .cf-submit {
  opacity: 0.6;
  cursor: wait;
}
.cf-form.is-sending .cf-submit-label::after {
  content: " …";
}

/* Submit-level error (network / Formspree problem) */
.cf-submit-error {
  display: none;
  color: #D2283B;
  font-size: 12px;
  line-height: 24px;
  letter-spacing: 0.25px;
  margin: 0;
}
.cf-form.has-submit-error .cf-submit-error { display: block; }

/* Thank-you message (replaces the form once Formspree returns 200) */
/* (Old .cf-thank-you rules removed — success now lives above the form via .cf-success.is-visible) */

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.85);
  flex-direction: column;
}
.lightbox.is-open { display: flex; }

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(16px, 2.5vh, 28px) var(--label-pad-r);
  background: var(--c-impact-default);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 1;
}

.lightbox-close {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  color: currentColor;
  font-size: 0;
  cursor: pointer;
  transition: opacity var(--t-fast) var(--ease-soft);
}
.lightbox-close:hover { opacity: 0.6; }

.lightbox-body {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 0;
  overflow: hidden;
}

.lightbox-nav-btn {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  color: rgba(255,255,255,0.8);
  background: none;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease-soft);
}
.lightbox-nav-btn:hover { color: #fff; }
.lightbox-nav-btn svg {
  width: 28px;
  height: 28px;
}
.lightbox-nav-btn.prev {
  margin-left: var(--label-pad-r);
}
.lightbox-nav-btn.next {
  margin-right: var(--label-pad-r);
}

.lightbox-content {
  flex: 1;
  align-self: stretch;
  display: block;
  overflow-y: auto;
  scrollbar-width: none;
  padding-top: 24px;
  text-align: center;
}
.lightbox-content::-webkit-scrollbar {
  display: none;
}

.lightbox-img {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

/* =========================================================
   SMALL-SCREEN TWEAKS  (must stay last to win the cascade)
   ========================================================= */
@media (max-width: 640px) {
  :root {
    --strip-h: 36px;
    --footer-h: 64px;
    --label-pad-r: 18px;
  }
  .footer-meta { font-size: 11px; }
  .menu { width: 113px; } /* 7px less so "Contact" ends 18px from right edge */

  /* Hide the active band's nav label and watermark on mobile */
  body[data-state="impact"]  .menu-item[data-target="impact"],
  body[data-state="about"]   .menu-item[data-target="about"],
  body[data-state="contact"] .menu-item[data-target="contact"] {
    display: none;
  }
  body[data-state="impact"]  .band-impact  .band-watermark,
  body[data-state="about"]   .band-about   .band-watermark,
  body[data-state="contact"] .band-contact .band-watermark {
    display: none;
  }

  /* Contact band — equal left/right padding on mobile */
  body .band-contact .band-content {
    padding-right: var(--label-pad-r);
  }

  .cf-submit-wrap { margin-top: 16px; margin-left: 50px; }
  .content-inner .cf-contact-info { margin-top: 56px; }

  /* Contact form — mobile */
  .band-contact .content-inner {
    max-width: 100%;
    overflow-x: hidden;
  }
  .content-inner p.cf-intro {
    font-size: 16px;
    line-height: 22px;
    margin: 0 0 28px;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .band-contact .cf-fields { gap: 16px; display: flex; width: 100%; }
  .band-contact .cf-field { position: relative; width: 100%; }
  .band-contact .cf-label { white-space: nowrap; }

  /* Active / error field: body fills remaining width; actions float right absolutely */
  .band-contact .cf-field.is-active .cf-body,
  .band-contact .cf-field.is-error  .cf-body { flex: 1; min-width: 0; }
  .band-contact .cf-field.is-active .cf-actions,
  .band-contact .cf-field.is-error  .cf-actions {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
    flex-direction: column;
    align-items: center;
  }

  /* iOS Safari zooms in automatically when input font-size < 16px — keep at 16px to prevent */
  .band-contact .cf-input,
  .band-contact .cf-input-group input,
  .band-contact [contenteditable] { font-size: 16px; }

  /* Input wrap: general reset (no width% — that resolves against the position:relative
     cf-field ancestor, not the flex parent cf-body, so it overflows on wide phones) */
  .cf-input-wrap {
    min-width: 0;
    box-sizing: border-box;
  }

  /* Active / error: stretch along cf-body's cross axis (column-flex → horizontal),
     which correctly fills exactly the width of cf-body without the containing-block bug */
  .band-contact .cf-field.is-active .cf-input-wrap,
  .band-contact .cf-field.is-error  .cf-input-wrap {
    align-self: stretch;
    width: auto;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
  }

  /* Filled field: value truncates so icons are always visible; ~40 px gap */
  .band-contact .cf-field.is-filled { gap: 40px; }
  .band-contact .cf-field.is-filled .cf-filled-value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .band-contact .cf-field.is-filled .cf-actions { flex-shrink: 0; align-self: center; }
  .cf-contact-info {
    white-space: normal;
    font-size: 13px;
    line-height: 22px;
  }
}

/* =========================================================
   AUDIO NARRATION TOGGLE  (About vorlesen)
   ========================================================= */
.audio-toggle {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: auto;
  padding: 24px;
  border: none;
  border-radius: 100px;
  background: var(--c-home-default);
  color: #00363D;
  font-family: var(--font-stack);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  cursor: pointer;
  min-width: 140px;
  width: 140px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.15), 0 1px 2px 0 rgba(0, 0, 0, 0.30);
  -webkit-tap-highlight-color: transparent;
  transition:
    transform        var(--t-fast) var(--ease-flash),
    box-shadow       var(--t-fast) var(--ease-soft),
    background-color var(--t-fast) var(--ease-soft);
  animation: menuFadeIn 600ms var(--ease-flash) both;
  animation-delay: 720ms;
}
.audio-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 12px 6px rgba(0, 0, 0, 0.20), 0 4px 4px 0 rgba(0, 0, 0, 0.35);
}
.audio-toggle:active { transform: translateY(0); }
.audio-toggle:focus-visible {
  outline: 2px solid var(--t-about-active, #8b2845);
  outline-offset: 3px;
}

.audio-toggle-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.audio-toggle-icon svg { width: 18px; height: 18px; display: block; }
.audio-toggle .icon-stop { display: none; }
.audio-toggle.is-playing .icon-play { display: none; }
.audio-toggle.is-playing .icon-stop { display: block; }
.audio-toggle-label { white-space: nowrap; }

/* Active (playing) — Elevation 05, Stop-Label */
.audio-toggle.is-playing {
  background: var(--c-home-default);
  box-shadow: 0 8px 12px 6px rgba(0, 0, 0, 0.15), 0 4px 4px 0 rgba(0, 0, 0, 0.30);
}
.audio-toggle.is-playing::before {
  display: none;
}

@media (max-width: 640px) {
  .audio-toggle {
    right: 12px;
    top: auto;
    bottom: 12px;
    padding: 10px 16px;
    font-size: 12px;
  }
}

/* =========================================================
   COOKIE CONSENT — vertical stripe
   ========================================================= */
.cookie-stripe {
  position: fixed;
  top: 0;
  right: 0;
  width: clamp(220px, 22vw, 300px);
  height: 100%;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(32px, 6vh, 64px) clamp(24px, 2.5vw, 40px);
  gap: 20px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-left: 1px solid rgba(255,255,255,0.4);
  transform: translateX(0);
  transition: transform 500ms cubic-bezier(0.65, 0, 0.35, 1),
              opacity   400ms ease;
}
.cookie-stripe.is-hidden {
  transform: translateX(110%);
  opacity: 0;
  pointer-events: none;
}

.cookie-stripe-label {
  font-family: var(--font-stack);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t-footer-active);
  opacity: 0.65;
}
.cookie-stripe-title {
  font-family: "Alcyone", var(--font-stack);
  font-weight: 900;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.15;
  color: var(--t-default);
  margin: 0;
}
.cookie-stripe-text {
  font-family: var(--font-stack);
  font-size: clamp(11px, 0.85vw, 13px);
  line-height: 1.6;
  color: var(--t-default);
  opacity: 0.75;
  margin: 0;
}
.cookie-stripe-text a,
.cookie-impressum-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  letter-spacing: inherit;
  display: inline;
}
.cookie-stripe-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}
.cookie-btn {
  width: 100%;
  height: 56px;
  padding: 0 32px;
  font-family: "Noto Sans", var(--font-stack);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, opacity 180ms ease;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-btn-accept {
  background: #8c0044;
  color: #f8fdff;
  border: none;
}
.cookie-btn-accept:hover {
  background: #6e0035;
}
.cookie-btn-decline {
  background: transparent;
  color: #8c0044;
  border: 1px solid #8c0044;
}
.cookie-btn-decline:hover {
  background: rgba(140, 0, 68, 0.06);
}

@media (max-width: 640px) {
  .cookie-stripe {
    width: 100%;
    height: auto;
    top: auto;
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.35);
    padding: 24px 20px 28px;
  }
  .cookie-stripe.is-hidden {
    transform: translateY(110%);
  }
}
