/* ==========================================================================
   TSCHACHER — Production CSS bundle
   Source order: base.css → layout.css → components.css → animations.css → responsive.css
   Modular source files remain in /assets/css for maintenance.
   ========================================================================== */

/* ---- base.css ---- */
/* ========================================================================== 
   TSCHACHER — Base
   Globale Variablen, Reset, Typografie und Grundelemente.
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-text: #101010;
  --color-muted: #696969;
  --color-soft: #f2f2f2;
  --color-line: #d9d9d9;
  --color-panel: #111111;
  --color-panel-text: #ffffff;
  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Merriweather", Georgia, "Times New Roman", serif;
  --content-max: 1240px;
  --text-max: 760px;
  --page-pad: clamp(1.25rem, 4vw, 4rem);
  --radius-pill: 999px;
  --radius-card: 1.5rem;
  --ease-out: cubic-bezier(.2,.8,.2,1);
  --nav-height: 3.05rem;
}

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

html {
  scroll-behavior: smooth;
  background: var(--color-bg);
  color: var(--color-text);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: clamp(1rem, .3vw + .95rem, 1.15rem);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.is-scroll-locked { overflow: hidden; }

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

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .12em; }

h1, h2, h3, h4, .sans {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .98;
}

h1 { font-size: clamp(3rem, 8vw, 8.5rem); }
h2 { font-size: clamp(2.4rem, 5.6vw, 6.2rem); }
h3 { font-size: clamp(1.7rem, 3vw, 3.25rem); }

p { margin: 0; }
p + p { margin-top: 1em; }

strong { font-weight: 700; }

::selection { background: #111; color: #fff; }

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  z-index: 9999;
  top: .75rem;
  left: .75rem;
  transform: translateY(-160%);
  padding: .7rem 1rem;
  background: #111;
  color: #fff;
  border-radius: .5rem;
  font-family: var(--font-sans);
}
.skip-link:focus { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---- layout.css ---- */
/* ========================================================================== 
   TSCHACHER — Layout
   Seitenraster, Hero, Inhaltsbereiche und Projektseiten.
   ========================================================================== */

.site-main { overflow: clip; }

.container {
  width: min(calc(100% - (2 * var(--page-pad))), var(--content-max));
  margin-inline: auto;
}

.text-column { max-width: var(--text-max); }

.page-section {
  padding: clamp(5rem, 10vw, 10rem) 0;
}

.section-kicker {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.section-intro {
  max-width: 780px;
  margin-top: 1.5rem;
  font-size: clamp(1.15rem, 1.4vw, 1.5rem);
  line-height: 1.55;
}

/* Startseite ------------------------------------------------------------- */
.home-hero {
  min-height: 82svh;
  display: flex;
  align-items: center;
  padding: clamp(8rem, 14vh, 11rem) var(--page-pad) clamp(3.5rem, 6vh, 5rem);
}

.home-hero__inner {
  width: min(100%, 1450px);
  margin-inline: auto;
}

.home-hero h1 {
  max-width: 1200px;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(.5rem);
  animation: homeHeroTitleFade .95s cubic-bezier(.22, .61, .36, 1) .12s forwards;
}

.home-hero__role {
  margin-top: clamp(2.5rem, 5vw, 5rem);
  font-family: var(--font-sans);
  font-size: clamp(1.45rem, 2.3vw, 2.8rem);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -.03em;
}

.home-hero__copy {
  max-width: 810px;
  margin-top: 1.25rem;
  font-size: clamp(1.12rem, 1.45vw, 1.55rem);
  line-height: 1.55;
}

.home-chapter {
  padding: clamp(3.5rem, 6vw, 6rem) var(--page-pad) clamp(4rem, 7vw, 7rem);
}

.home-chapter__inner { width: min(100%, 1450px); margin: 0 auto; }
.home-chapter h2 { max-width: 1150px; }
.home-chapter p { max-width: 760px; margin-top: 1.5rem; font-size: clamp(1.1rem, 1.35vw, 1.45rem); }
.home-chapter__label { margin-top: 1.25rem; font-family: var(--font-sans); font-weight: 700; }

.chapter-divider {
  min-height: 86svh;
  display: grid;
  place-items: center;
  padding: 8rem var(--page-pad);
  background: #111;
  color: #fff;
}

.chapter-divider__inner {
  width: min(100%, 1200px);
  text-align: left;
}
.chapter-divider h2 { max-width: 1000px; }
.chapter-divider p { max-width: 720px; margin-top: 1.6rem; font-size: clamp(1.1rem, 1.5vw, 1.5rem); }

.home-closing {
  min-height: 92svh;
  display: flex;
  align-items: center;
  padding: 8rem var(--page-pad) 10rem;
}
.home-closing__inner { width: min(100%, 1200px); margin: 0 auto; }
.home-closing p { max-width: 700px; margin-top: 1.5rem; font-size: clamp(1.15rem, 1.5vw, 1.55rem); }
.home-closing__micro { margin-top: 1.4rem !important; font-family: var(--font-sans); font-size: .9rem !important; font-weight: 700; letter-spacing: .04em; }

/* Unterseiten ------------------------------------------------------------ */
.page-hero {
  padding: clamp(10rem, 19vh, 14rem) 0 clamp(5rem, 9vw, 8rem);
}
.page-hero h1 { max-width: 1150px; }
.page-hero__lead {
  max-width: 820px;
  margin-top: clamp(2rem, 4vw, 3.5rem);
  font-size: clamp(1.2rem, 1.65vw, 1.65rem);
  line-height: 1.55;
}

.feature-list { display: grid; gap: clamp(5rem, 9vw, 9rem); }
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
}
.feature:nth-child(even) .feature__media { order: 2; }
.feature:nth-child(even) .feature__copy { order: 1; }
.feature__media { overflow: hidden; background: #fff; }
.feature__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; }
.feature__copy h2 { font-size: clamp(2rem, 4.4vw, 4.7rem); }
.feature__copy p { margin-top: 1.25rem; font-size: clamp(1.05rem, 1.15vw, 1.3rem); }

.info-band {
  margin-top: clamp(7rem, 12vw, 12rem);
  padding: clamp(4rem, 7vw, 7rem);
  background: #111;
  color: #fff;
  border-radius: var(--radius-card);
}
.info-band + .info-band { margin-top: 1.25rem; }
.info-band h2 { font-size: clamp(2rem, 4vw, 4.4rem); }
.info-band p { max-width: 820px; margin-top: 1.2rem; }

/* Über mich -------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}
.about-photo { position: sticky; top: 7rem; }
.about-photo img { width: 100%; background: #f2f2f2; }
.about-copy h2 { margin-top: 4.5rem; font-size: clamp(2rem, 4vw, 4rem); }
.about-copy h2:first-child { margin-top: 0; }
.about-copy p { margin-top: 1.25rem; font-size: clamp(1.08rem, 1.15vw, 1.28rem); }
.about-highlight { font-family: var(--font-sans); font-weight: 750; font-size: clamp(1.35rem, 2vw, 2rem) !important; line-height: 1.2; }

/* Arbeiten --------------------------------------------------------------- */
.work-grid { display: grid; gap: clamp(5rem, 9vw, 9rem); }
.work-card { display: block; text-decoration: none; }
.work-card__image {
  overflow: hidden;
  background: #f2f2f2;
}
.work-card__image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .8s var(--ease-out); }
.work-card:focus-visible .work-card__image img { transform: scale(1.015); }
@media (min-width: 901px) and (hover: hover) and (pointer: fine) {
  .work-card:hover .work-card__image img { transform: scale(1.015); }
}
.work-card__meta { display: flex; justify-content: space-between; gap: 2rem; padding-top: 1.4rem; }
.work-card__meta h2 { font-size: clamp(2rem, 4.2vw, 4.4rem); }
.work-card__meta p { max-width: 470px; font-family: var(--font-sans); font-size: .95rem; line-height: 1.4; }

.project-hero-media { margin-top: 4rem; }
.project-hero-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #f2f2f2; }
.project-meta { margin-top: 1.2rem; font-family: var(--font-sans); font-weight: 700; }
.project-content { max-width: 880px; }
.project-content section + section { margin-top: 5rem; }
.project-content h2 { font-size: clamp(2rem, 4vw, 4.2rem); }
.project-content p, .project-content li { font-size: clamp(1.05rem, 1.15vw, 1.28rem); }
.project-content p { margin-top: 1.25rem; }
.project-content ul { margin: 1.5rem 0 0; padding-left: 1.2rem; }
.project-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 5rem; }
.project-gallery img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #f2f2f2; }
.project-back { display: inline-block; margin-top: 6rem; font-family: var(--font-sans); font-weight: 700; }

@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature__media,
  .feature:nth-child(even) .feature__copy { order: initial; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 540px; }
  .work-card__meta { display: block; }
  .work-card__meta p { margin-top: .75rem; }
  .project-gallery { grid-template-columns: 1fr; }
}

.service-duo { display: grid; gap: 1rem; }
.service-duo img { width: 100%; aspect-ratio: 16/10; object-fit: contain; }

/* Kosmetik Jungbrunnen — mobile Projektansichten -------------------------
   Die beiden Screenshots behalten ihr originales Seitenverhältnis.
   Das lange Mobilmotiv bleibt bewusst deutlich höher als die Navigation. */
.project-gallery--jungbrunnen {
  align-items: start;
}
.project-gallery--jungbrunnen .project-gallery__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: #fff;
}

/* Freiform-Screenshots in Projektgalerien -------------------------------- */
.project-gallery__image--freeform {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: #fff;
}

/* ---- components.css ---- */
/* ========================================================================== 
   TSCHACHER — Components
   Brand, Drei-Punkt-Navigation, Off-Canvas-Panel, Buttons und Formulare.
   ========================================================================== */

.site-brand {
  position: fixed;
  z-index: 1100;
  top: 1.4rem;
  left: var(--page-pad);
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.2vw, 1.3rem);
  font-weight: 850;
  letter-spacing: -.035em;
  text-decoration: none;
}

.primary-nav {
  position: fixed;
  z-index: 1200;
  top: 1.1rem;
  right: var(--page-pad);
  display: grid;
  grid-template-columns: repeat(3, minmax(5.4rem, 1fr));
  height: var(--nav-height);
  overflow: hidden;
  border: 1px solid #111;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(14px);
}

.primary-nav__button {
  position: relative;
  border: 0;
  border-right: 1px solid #111;
  background: transparent;
  color: #111;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 750;
  line-height: 1;
}
.primary-nav__button:last-child { border-right: 0; }
.primary-nav__label,
.primary-nav__close {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity .24s ease, transform .24s ease;
}
.primary-nav__close { opacity: 0; transform: scale(.65); font-size: 1.55rem; font-weight: 400; }
.primary-nav__button[aria-expanded="true"] .primary-nav__label { opacity: 0; transform: scale(.72); }
.primary-nav__button[aria-expanded="true"] .primary-nav__close { opacity: 1; transform: scale(1); }

.site-panel-backdrop {
  position: fixed;
  z-index: 990;
  inset: 0;
  background: rgba(0,0,0,.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .42s var(--ease-out);
}
.site-panel-backdrop.is-visible { opacity: 1; pointer-events: auto; }

.site-panel {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  width: min(50vw, 860px);
  height: 100dvh;
  overflow-y: auto;
  padding: clamp(7rem, 12vh, 9rem) clamp(2rem, 5vw, 5.5rem) 5rem;
  background: #111;
  color: #fff;
  transform: translateX(102%);
  visibility: hidden;
  transition: transform .56s var(--ease-out), visibility 0s linear .56s;
}
.site-panel.is-open {
  transform: translateX(0);
  visibility: visible;
  transition-delay: 0s;
}
.site-panel__title {
  margin-bottom: clamp(2rem, 5vh, 4rem);
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  opacity: .72;
}
.panel-links { display: grid; gap: .5rem; }
.panel-link {
  display: block;
  padding: .32rem 0;
  font-family: var(--font-sans);
  font-size: clamp(1.55rem, 2.55vw, 3.15rem);
  font-weight: 780;
  line-height: 1;
  letter-spacing: -.045em;
  text-decoration: none;
}
.panel-link span { display: block; margin-top: .28rem; font-family: var(--font-serif); font-size: .9rem; font-weight: 400; letter-spacing: 0; line-height: 1.35; opacity: .72; }
.panel-link:hover { opacity: .65; }

.contact-form { display: grid; gap: 1.15rem; }
.contact-form label { font-family: var(--font-sans); font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  margin-top: .45rem;
  padding: .9rem 0;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.45);
  border-radius: 0;
  background: transparent;
  color: #fff;
  outline: none;
}
.contact-form select option { color: #111; }
.contact-form textarea { min-height: 8rem; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { border-bottom-color: #fff; }
.contact-form__status { min-height: 1.5em; font-size: .9rem; opacity: .8; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  margin-top: 2rem;
  padding: .8rem 1.35rem;
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 750;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.button:hover {
  background: #111;
  border-color: #111;
  color: #fff;
}
.site-panel .button:hover {
  background: #fff;
  border-color: #fff;
  color: #111;
}

@media (max-width: 760px) {
  .site-brand { top: 1.2rem; }
  .primary-nav {
    top: auto;
    right: 50%;
    bottom: max(1rem, env(safe-area-inset-bottom));
    transform: translateX(50%);
    width: min(calc(100vw - 2rem), 31rem);
    grid-template-columns: repeat(3, 1fr);
    background: rgba(255,255,255,.97);
  }
  .site-panel {
    width: 100vw;
    padding: 7rem 1.5rem calc(6rem + env(safe-area-inset-bottom));
  }
  .panel-link { font-size: clamp(1.7rem, 7vw, 2.8rem); }
}


/* Kontakt — Datenschutzbestätigung --------------------------------------- */
.contact-consent {
  display: grid !important;
  grid-template-columns: 1.1rem 1fr;
  gap: .7rem;
  align-items: start;
  margin-top: .25rem;
  font-family: var(--font-serif) !important;
  font-size: .92rem !important;
  font-weight: 400 !important;
  line-height: 1.45;
  letter-spacing: 0 !important;
}
.contact-consent input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: .2rem 0 0;
  accent-color: #fff;
}
.contact-consent a { text-decoration: underline; }
.contact-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.1rem;
  margin-top: 1rem;
  font-size: .82rem;
  opacity: .72;
}

/* Globaler Footer -------------------------------------------------------- */
.site-footer {
  padding: 2.25rem var(--page-pad) calc(2.25rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-line);
  background: #fff;
  color: #111;
  font-family: var(--font-sans);
  font-size: .78rem;
}
.site-footer__inner {
  width: min(100%, var(--content-max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .8rem 1.5rem;
}
.site-footer__links { display: flex; flex-wrap: wrap; gap: 1rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Rechtliche Seiten ------------------------------------------------------ */
.legal-page {
  padding: clamp(9rem, 15vh, 12rem) 0 7rem;
}
.legal-content {
  width: min(calc(100% - (2 * var(--page-pad))), 920px);
  margin-inline: auto;
}
.legal-content h1 {
  margin-bottom: 3rem;
  font-size: clamp(2.8rem, 6vw, 5.6rem);
}
.legal-content h2 {
  margin: 3.5rem 0 1.1rem;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  line-height: 1.08;
}
.legal-content p,
.legal-content li,
.legal-content div {
  max-width: 78ch;
}
.legal-content ul { padding-left: 1.35rem; }
.legal-content a { overflow-wrap: anywhere; }
#itkanzlei_txt_copyright { max-width: none; }

/* Datenschutz: lange Wörter, URLs und eingebettete Inhalte mobil sicher umbrechen */
.legal-content,
.legal-content * {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.legal-content img,
.legal-content iframe,
.legal-content table {
  max-width: 100%;
  height: auto;
}

/* Kontakt — Bot-Honeypot --------------------------------------------------
   Bleibt für normale Nutzer unsichtbar. Das Server-Script verwirft Anfragen,
   wenn automatisierte Bots dieses Feld ausfüllen. */
.contact-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.contact-form button[disabled] {
  cursor: wait;
  opacity: .58;
}

/* Arbeit-Panel — Projektvorschauen ---------------------------------------
   Die vorhandenen Projektscreenshots werden direkt beim jeweiligen Arbeitslink gezeigt.
   STRATO besitzt bewusst keine Bildvorschau. Alle vier Projekte bleiben direkt erreichbar. */
.panel-links--projects {
  gap: clamp(2rem, 5vh, 3.5rem);
}

.panel-link--project {
  display: block;
}

.panel-link__preview {
  width: 100%;
  margin: .85rem 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: .45rem;
  background: #fff;
}

.panel-link__preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.panel-link__preview--placeholder img {
  object-fit: contain;
}

@media (max-width: 760px) {
  .panel-links--projects {
    gap: 2.4rem;
  }

  .panel-link--project {
    font-size: clamp(1.55rem, 7vw, 2.45rem);
  }

  .panel-link__preview {
    margin-top: .75rem;
    border-radius: .35rem;
  }
}

/* ---- animations.css ---- */
/* ========================================================================== 
   TSCHACHER — Animations
   Scroll-Sequenzen, Iris-Maske und allgemeine Reveal-Bewegungen.
   ========================================================================== */

/* Ruhiger Einstieg der H1 auf der Startseite. */
@keyframes homeHeroTitleFade {
  from { opacity: 0; transform: translateY(.5rem); }
  to   { opacity: 1; transform: translateY(0); }
}

/*
 * Die Sequenzbühne ist absichtlich niedriger als der gesamte Viewport.
 * So füllen die 16:9-Bilder die verfügbare Breite aus, bleiben zentriert
 * und erzeugen auf hochformatigen Displays keinen übergroßen Weißraum.
 */
.scroll-sequence {
  --sequence-stage-height: min(74svh, max(24rem, calc(56.25vw + 6rem)));
  position: relative;
  min-height: 430svh; /* Fallback; JavaScript setzt die exakte Scrollhöhe. */
  background: #fff;
}

.scroll-sequence__stage {
  position: sticky;
  top: clamp(4rem, 7vh, 5.5rem);
  width: 100%;
  height: var(--sequence-stage-height);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
}

.scroll-sequence__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0; /* Reset des Browser-Standardabstands von <figure>; verhindert mobilen Rechtsversatz. */
  padding-inline: var(--page-pad);
  pointer-events: none;
  will-change: clip-path;
}

/*
 * WICHTIG: Das Bild richtet sich an seiner intrinsischen 16:9-Größe aus.
 * max-width/max-height verhindern zuverlässig ein Abschneiden am rechten
 * oder linken Viewportrand – auch bei Browser-Zoom und schmalen Displays.
 */
.scroll-sequence__frame picture {
  display: contents;
}

.scroll-sequence__frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  margin: 0;
  flex: 0 1 auto;
}

.scroll-sequence__frame:first-child { clip-path: circle(150% at 50% 50%); }
.scroll-sequence__frame:not(:first-child) { clip-path: circle(0% at 50% 50%); }

.reveal {
  clip-path: inset(10% 0 0 0);
  opacity: 0;
  transform: translateY(3rem);
  transition: clip-path .9s var(--ease-out), opacity .7s ease, transform .9s var(--ease-out);
}
.reveal.is-visible {
  clip-path: inset(0 0 0 0);
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .scroll-sequence {
    /* Mobile: Bühne eng an das 16:9-Bild koppeln, damit darunter kein
       großer leerer Weißraum stehen bleibt. Desktop bleibt unverändert. */
    --sequence-stage-height: calc(56.25vw + 1rem);
  }

  .scroll-sequence__stage {
    top: 4.25rem;
  }

  /*
   * Mobile Zentrierung der 16:9-Sequenzbilder.
   * Die Bildbreite wird direkt aus dem sichtbaren Viewport berechnet und
   * anschließend über left:50% / translateX(-50%) exakt mittig gesetzt.
   * Dadurch bleibt links und rechts derselbe Abstand und kein Motiv wird
   * durch Containerbreiten oder Browser-Zoom seitlich abgeschnitten.
   */
  .scroll-sequence__frame {
    padding-inline: 0;
  }

  .scroll-sequence__frame img {
    position: absolute;
    left: 50%;
    width: calc(100vw - (2 * var(--page-pad)));
    max-width: calc(100vw - (2 * var(--page-pad)));
    height: auto;
    max-height: 100%;
    margin: 0;
    transform: translateX(-50%);
    object-fit: contain;
    object-position: 50% 50%;
  }

  /*
   * Nur Startseite / Webdesign / Mobile:
   * Die hochformatigen 9:16-Motive belegen die komplette sichtbare Bühne.
   * Wichtig: Diese Regeln überschreiben ausschließlich die mobile
   * Webdesign-Sequenz. Desktop und Analyse bleiben unverändert.
   */
  .scroll-sequence--webdesign {
    --sequence-stage-height: 100svh;
  }

  .scroll-sequence--webdesign .scroll-sequence__stage {
    top: 0;
    width: 100vw;
    height: 100svh;
  }

  .scroll-sequence--webdesign .scroll-sequence__frame {
    inset: 0;
    width: 100vw;
    height: 100%;
    padding: 0;
  }

  .scroll-sequence--webdesign .scroll-sequence__frame picture {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
  }

  .scroll-sequence--webdesign .scroll-sequence__frame img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    max-height: none;
    margin: 0;
    transform: none;
    object-fit: cover;
    object-position: 50% 50%;
  }

}

@media (prefers-reduced-motion: reduce) {
  .home-hero h1 { opacity: 1; transform: none; animation: none; }
  .scroll-sequence {
    min-height: 0 !important;
    height: auto !important;
    padding: 0 var(--page-pad);
  }
  .scroll-sequence__stage {
    position: static;
    height: auto;
    display: grid;
    gap: 1rem;
  }
  .scroll-sequence__frame {
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
    transform: none;
    clip-path: none !important;
  }
  .scroll-sequence__frame img { width: 100%; height: auto; max-height: none; }
  .reveal { clip-path: none; opacity: 1; transform: none; }
}

/* ========================================================================== 
   Startseite / Analyse / Mobile-only
   Hochformatige 9:16-Analysebilder füllen ausschließlich auf Smartphones
   die komplette sichtbare Bühne. Desktop und Webdesign bleiben unverändert.
   ========================================================================== */
@media (max-width: 760px) {
  .scroll-sequence--analyse {
    --sequence-stage-height: 100svh;
  }

  .scroll-sequence--analyse .scroll-sequence__stage {
    top: 0;
    width: 100vw;
    height: 100svh;
  }

  .scroll-sequence--analyse .scroll-sequence__frame {
    inset: 0;
    width: 100vw;
    height: 100%;
    padding: 0;
  }

  .scroll-sequence--analyse .scroll-sequence__frame picture {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
  }

  .scroll-sequence--analyse .scroll-sequence__frame img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    max-height: none;
    margin: 0;
    transform: none;
    object-fit: cover;
    object-position: 50% 50%;
  }
}

/* ---- responsive.css ---- */
/* ========================================================================== 
   TSCHACHER — Responsive Feinschliff
   ========================================================================== */

@media (max-width: 760px) {
  :root { --page-pad: 1.25rem; }
  body { padding-bottom: calc(var(--nav-height) + 2rem); }
  .home-hero { min-height: auto; padding-top: 7rem; padding-bottom: 3.5rem; }
  .home-hero h1 { font-size: clamp(3rem, 15vw, 5.6rem); }
  .home-chapter { padding-top: 3rem; }
  .chapter-divider { min-height: 78svh; }
  .page-hero { padding-top: 8rem; }
}

@media (min-width: 1700px) {
  :root { --content-max: 1480px; --text-max: 820px; }
}


/* Regionaler Bereich im Profil-Panel ------------------------------------ */
.panel-region {
  margin-top: clamp(2.4rem, 5vh, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.22);
}
.panel-region__title {
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .62;
}

/* Navigation v5: expliziter Schließen-Button im Off-Canvas-Dialog. */
.site-panel__close {
  position: absolute;
  top: 1.25rem;
  right: var(--page-pad);
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1.8rem;
  line-height: 1;
}
.site-panel__close:hover { background: #fff; color: #111; }
.site-panel__close:focus-visible { outline-color: #fff; }

@media (max-width: 760px) {
  .site-panel__close { right: 1.5rem; }
}
