/* =========================================================
   Dachseite – danielhense.de
   Neutral und hell. Die Türen tragen die Farbe ihres Bereichs.
   ========================================================= */

@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-ext-700.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/poppins-400-latin.woff2') format('woff2'); }

:root {
  --bg: #F5F4F1;
  --surface: #FFFFFF;
  --ink: #18181A;
  --ink-2: #4A4A47;
  --ink-3: #75746F;
  --line: #E2E0DA;
  --athletik: #00B86B;       /* Grün der Athletik-Welt, für hellen Grund abgedunkelt */
  --athletik-soft: #E3F6EC;
  --pt: #2D49E0;             /* Kobalt der Personal-Training-Welt */
  --pt-soft: #DCE2F5;
  --orange: #F2722B;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Poppins', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.start {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; caret-color: var(--ink);
}
.start ::selection { background: rgba(45, 73, 224, .16); }
.start :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.start img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(100% - 2.5rem, 1180px); margin-inline: auto; }

/* Raster-Hintergrund: nur links, damit das Foto rechts frei atmet */
.stage { position: relative; isolation: isolate; flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.dot-grid { position: absolute; inset: 0; z-index: -2;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 40%, transparent 72%);
          mask-image: linear-gradient(90deg, #000 0%, #000 40%, transparent 72%); }
.dot-grid-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.dot-grid { opacity: 0; transition: opacity 1.2s var(--ease-out); }
.dot-grid.dot-grid-ready { opacity: 1; }

/* Porträt: kein Rahmen, verschmilzt mit dem Hintergrund */
.portrait {
  position: absolute; z-index: -1; margin: 0;
  right: 0; top: 0; bottom: 0; width: min(48vw, 760px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%), linear-gradient(0deg, transparent 0%, #000 22%, #000 84%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 38%), linear-gradient(0deg, transparent 0%, #000 22%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%;
  mix-blend-mode: multiply;   /* heller Fotohintergrund geht im Papierton auf */
  filter: contrast(1.04);
}

/* Header */
.start-header { padding-block: 1.4rem; }
.start-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.start-nav { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.start-nav a { color: var(--ink); text-decoration: none; font-size: .925rem; transition: color .2s; }
.start-nav a:hover { color: var(--ink); }

/* Hero */
.hero { flex: 1; display: flex; align-items: center; }
.hero-copy { max-width: 40rem; padding-block: clamp(2rem, 6vh, 4rem) clamp(3rem, 8vh, 5rem); }
.hero h1 { font-family: var(--font-display); margin: 0 0 clamp(2.5rem, 5vh, 3.5rem); color: var(--ink); text-wrap: balance; }
.hero h1 .h1-main { display: block; font-weight: 700; font-size: clamp(3rem, 7vw, 5.6rem); line-height: 1; letter-spacing: -0.045em; }
.hero h1 .h1-sub { display: block; margin-top: 1.1rem; font-weight: 500; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.4; letter-spacing: -0.01em; color: var(--ink-3); }

/* Die zwei Türen: jede in der Farbwelt ihres Bereichs */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; max-width: 36rem; }
.door {
  position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 1rem;
  padding: 1.35rem 1.4rem; border-radius: 16px; text-decoration: none; color: #fff;
  box-shadow: 0 18px 40px -24px rgba(24,24,26,.55);
}
.door-title { grid-column: 1; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.2; }
.door-text { grid-column: 1; font-size: .85rem; line-height: 1.4; margin-top: .25rem; }
.door-go { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; transition: transform .3s var(--ease-out); }
.door:hover .door-go { transform: translateX(4px); }

.door-athletik { --door-bg: #0D0D0D; --star-border-track: rgba(0,255,136,.22); }
.door-athletik .door-text { color: #9a9a9a; }
.door-athletik .door-go { color: #00FF88; }

.door-pt { --door-bg: #2D49E0; --star-border-track: rgba(255,255,255,.22); }
.door-pt .door-text { color: rgba(255,255,255,.75); }
.door-pt .door-go { color: #fff; }

.start .doors .door { transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), opacity .9s var(--ease-out) var(--d, 0ms), filter .9s var(--ease-out) var(--d, 0ms); }
.start .doors .door:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -24px rgba(24,24,26,.6); }

/* StarBorder in den Türen */
.star-border { isolation: isolate; overflow: visible; }
.star-border::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 var(--star-border-thickness, 1px) var(--star-border-track, var(--line)); }
.star-border__light { position: absolute; top: -48px; left: -48px; z-index: -1; width: calc(100% + 96px); height: calc(100% + 96px); pointer-events: none; }
.door.star-border { background: transparent; }
.door.star-border::after { content: ''; position: absolute; inset: 0; z-index: -2; border-radius: inherit; background: var(--door-bg); }
.door:not(.star-border) { background: var(--door-bg); }

/* Footer */
.start-footer { padding-block: 1.25rem 1.6rem; font-size: .8rem; color: var(--ink-3); }
.start-footer .wrap { display: flex; justify-content: space-between; gap: .75rem 1.5rem; flex-wrap: wrap; }
.start-footer .legal { display: flex; gap: 1.25rem; }
.start-footer a { color: inherit; text-decoration: none; }
.start-footer a:hover { color: var(--ink); }

/* Bewegung */
.motion-on .m-split .m-word { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(.25em);
  transition: opacity .9s var(--ease-out), filter .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0ms); }
.motion-on .m-split.is-in .m-word { opacity: 1; filter: none; transform: none; }
.motion-on .m-reveal { opacity: 0; transform: translateY(16px); filter: blur(4px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out); transition-delay: var(--d, 0ms); }
.motion-on .m-reveal.is-in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: no-preference) {
  .portrait img { animation: portrait-in 1.8s var(--ease-out) .1s both; }
  @keyframes portrait-in { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
}

@media (max-width: 900px) {
  .portrait { width: 100%; left: 0; height: 52vh; bottom: auto;
    -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 50%, #000 85%, transparent 100%); mask-image: linear-gradient(0deg, transparent 0%, #000 50%, #000 85%, transparent 100%);
    -webkit-mask-composite: source-over; mask-composite: add; opacity: .9; }
  .portrait img { object-position: 50% 20%; }
  .dot-grid { -webkit-mask-image: linear-gradient(180deg, transparent 35%, #000 60%); mask-image: linear-gradient(180deg, transparent 35%, #000 60%); }
  .hero { align-items: flex-end; }
  .hero-copy { padding-top: 38vh; }
}
@media (max-width: 560px) {
  .doors { grid-template-columns: 1fr; }
}
