/* =========================================================================
   marcelchristen.de — Apple-Style Variante
   Nativer SF-Pro-Stack · Weißraum · Bento · ein blauer Akzent
   ========================================================================= */

:root {
  --bg:      #ffffff;
  --bg-2:    #f5f5f7;   /* Apple grey */
  --bg-3:    #fafafc;
  --ink:     #1d1d1f;   /* Apple near-black text */
  --sec:     #6e6e73;   /* secondary text */
  --ter:     #86868b;   /* tertiary */
  --line:    #d2d2d7;
  --line-2:  #e8e8ed;
  --blue:    #0071e3;   /* button */
  --link:    #0066cc;   /* text link */
  --ink-bg:  #000000;   /* dark full-bleed sections */

  --sf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
        "Helvetica Neue", Helvetica, Arial, sans-serif;

  --maxw: 1024px;
  --maxw-wide: 1280px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  --radius: 22px;
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { animation-duration:.001ms!important; transition-duration:.001ms!important; } }

body {
  font-family: var(--sf);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: #b3d7ff; }

/* ---------------- Layout ---------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: var(--maxw-wide); }
.section { padding-block: clamp(5rem, 12vh, 8.5rem); }
.center { text-align: center; }

/* ---------------- Type ---------------- */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.06; color: var(--ink); }

.hero-title { font-size: clamp(3rem, 8.5vw, 6.4rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.03; }
.h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); font-weight: 600; letter-spacing: -0.022em; }
.h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600; letter-spacing: -0.02em; }
.h3 { font-size: clamp(1.45rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -0.018em; }

.eyebrow { font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 600; color: var(--blue); letter-spacing: -0.01em; }
.subhead { font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 400; color: var(--sec); letter-spacing: -0.014em; line-height: 1.35; }
.lead { font-size: clamp(1.15rem, 1.5vw, 1.35rem); color: var(--sec); font-weight: 400; }
.small { font-size: 14px; color: var(--ter); letter-spacing: -0.008em; }

.grad-text {
  background: linear-gradient(120deg, #0071e3 0%, #42a5f5 30%, #1d1d1f 75%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------------- Links & buttons ---------------- */
.tlink { color: var(--link); font-size: clamp(1.05rem, 1.5vw, 1.3rem); display: inline-flex; align-items: center; gap: 0.15em; }
.tlink .chev { transition: transform 0.3s var(--ease); }
.tlink:hover { text-decoration: underline; }
.tlink:hover .chev { transform: translateX(3px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--sf); font-size: 17px; font-weight: 400; letter-spacing: -0.01em;
  padding: 0.75rem 1.4rem; border-radius: 980px; cursor: pointer; border: 1px solid transparent;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.2s var(--ease), border-color 0.3s var(--ease);
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #0077ed; }
.btn-secondary { background: transparent; color: var(--link); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ter); }
.btn-lg { font-size: 19px; padding: 0.9rem 1.7rem; }
.on-dark .btn-secondary { color: #2997ff; border-color: rgba(255,255,255,0.3); }
.on-dark .btn-secondary:hover { border-color: rgba(255,255,255,0.6); }

/* ---------------- Nav (Apple translucent) ---------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.nav-inner { width: 100%; max-width: var(--maxw-wide); padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); display: flex; align-items: center; gap: 0.5rem; }
.brand .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.nav-links { display: flex; align-items: center; gap: clamp(1.4rem, 3vw, 2.6rem); }
.nav-links a { font-size: 14px; font-weight: 400; color: #1d1d1fcc; letter-spacing: -0.005em; transition: color 0.25s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta { color: var(--link) !important; font-weight: 500; }
.nav-toggle { display: none; background: none; border: 0; font-family: var(--sf); font-size: 14px; color: var(--ink); cursor: pointer; }
@media (max-width: 800px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open { display: flex; flex-direction: column; align-items: flex-start; gap: 1.6rem;
    position: fixed; inset: 48px 0 auto 0; background: rgba(255,255,255,0.97); backdrop-filter: blur(20px);
    padding: 2rem var(--gutter); border-bottom: 1px solid var(--line); }
  .nav-links.open a { font-size: 1.2rem; }
}

/* ---------------- Hero ---------------- */
.hero { padding-top: clamp(7rem, 16vh, 10rem); padding-bottom: clamp(3rem, 7vh, 5rem); text-align: center; position: relative; }
.hero::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 90vw; max-width: 1100px; height: 520px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 22%, rgba(0,113,227,0.10), rgba(66,165,245,0.05) 42%, transparent 70%);
}
.hero .subhead { max-width: 34ch; margin: 1.6rem auto 0; }
.hero-actions { display: flex; gap: 1.6rem; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 2.4rem; }

/* ---------------- Bento grid (showpiece) ---------------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.tile {
  background: var(--bg-2); border-radius: var(--radius); padding: clamp(1.6rem, 2.6vw, 2.6rem);
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  min-height: 260px; transition: transform 0.5s var(--ease);
}
.tile:hover { transform: translateY(-4px); }
.tile .kick { font-size: 14px; font-weight: 600; color: var(--blue); letter-spacing: -0.005em; margin-bottom: 0.6rem; }
.tile h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); margin-bottom: 0.6rem; }
.tile p { color: var(--sec); font-size: 15px; letter-spacing: -0.008em; }
.tile .grow { flex: 1; }
.tile ul { list-style: none; margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tile ul li { font-size: 12.5px; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 980px; padding: 0.3rem 0.75rem; }

.tile--wide { grid-column: span 4; }
.tile--tall { grid-column: span 2; }
.tile--half { grid-column: span 3; }
.tile--third { grid-column: span 2; }

.tile--dark { background: #000; color: #fff; }
.tile--dark h3, .tile--hero-grad h3 { color: #fff; }
.tile--dark p { color: #a1a1a6; }
.tile--dark ul li { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); color: #f5f5f7; }
.tile--hero-grad { background: radial-gradient(120% 120% at 15% 12%, #0a84ff 0%, #0040a0 48%, #05173d 100%); color: #fff; }
.tile--hero-grad .kick { color: #7ec2ff; }
.tile--hero-grad p { color: #cfe4ff; }
.tile--grey2 { background: linear-gradient(180deg, #fbfbfd, #eef0f4); }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--wide, .tile--tall, .tile--half, .tile--third { grid-column: span 1; }
  .tile--hero-grad { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .tile, .tile--hero-grad { grid-column: span 1; }
}

/* ---------------- Dark statement section ---------------- */
.dark { background: #000; color: #fff; }
.dark .h1, .dark .h2, .dark h3 { color: #fff; }
.dark .subhead, .dark .lead { color: #a1a1a6; }
.statement { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 600; letter-spacing: -0.022em; line-height: 1.12; max-width: 20ch; margin-inline: auto; }
.statement .accent { color: #2997ff; }

/* ---------------- Metrics ---------------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 3rem); text-align: center; }
.metric .num { font-size: clamp(2.8rem, 5vw, 4.2rem); font-weight: 600; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.dark .metric .num { color: #fff; }
.metric .num .u { color: var(--blue); }
.dark .metric .num .u { color: #2997ff; }
.metric .lbl { margin-top: 0.6rem; font-size: 15px; color: var(--sec); }
.dark .metric .lbl { color: #a1a1a6; }
@media (max-width: 700px) { .metrics { grid-template-columns: repeat(2,1fr); gap: 2.4rem; } }

/* ---------------- Feature rows ---------------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.feature.rev .feature__media { order: -1; }
.feature__media {
  border-radius: var(--radius); min-height: 340px; background: var(--bg-2);
  display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative;
}
.feature__media.grad-a { background: radial-gradient(130% 130% at 20% 15%, #e8f2ff, #cfe0ff 55%, #a9c8ff); }
.feature__media.grad-b { background: radial-gradient(130% 130% at 80% 20%, #0a84ff, #0a2a66); }
.feature__media .glyph { font-size: clamp(5rem, 11vw, 9rem); font-weight: 600; letter-spacing: -0.04em; color: #fff; mix-blend-mode: soft-light; }
.feature__media.grad-a .glyph { color: #0071e3; mix-blend-mode: normal; opacity: 0.85; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; gap: 1.8rem; } .feature.rev .feature__media { order: 0; } }

/* ---------------- FAQ (Apple-clean) ---------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.5rem 0; display: flex; justify-content: space-between; align-items: center; gap: 2rem; font-size: clamp(1.15rem,1.8vw,1.4rem); font-weight: 600; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 26px; height: 26px; position: relative; transition: transform 0.35s var(--ease); }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; background: var(--blue); border-radius: 2px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.faq summary .pm::before { width: 15px; height: 2px; }
.faq summary .pm::after { width: 2px; height: 15px; transition: opacity 0.3s var(--ease); }
.faq details[open] summary .pm::after { opacity: 0; }
.faq details[open] summary .pm { transform: rotate(90deg); }
.faq .ans { padding: 0 0 1.6rem; color: var(--sec); font-size: 1.05rem; max-width: 66ch; }

/* ---------------- CTA ---------------- */
.cta-band { text-align: center; }
.cta-band .h1 { max-width: 16ch; margin-inline: auto; }

/* ---------------- Footer ---------------- */
.footer { background: var(--bg-2); color: var(--sec); font-size: 12px; line-height: 1.5; padding-block: 2.6rem; border-top: 1px solid var(--line-2); }
.footer .wrap-wide { max-width: var(--maxw-wide); margin-inline: auto; padding-inline: var(--gutter); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.footer h4 { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 0.9rem; letter-spacing: -0.005em; }
.footer a { color: var(--sec); display: block; padding: 0.28rem 0; transition: color 0.2s var(--ease); }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer .brand-f { font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; padding-top: 1.4rem; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } }

/* ---------------- Portrait ---------------- */
.portrait { border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, #eef3fb, #c3d7fb); aspect-ratio: 4 / 5; position: relative; box-shadow: 0 30px 60px -30px rgba(0,60,140,0.35); }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait--round { border-radius: 50%; aspect-ratio: 1; max-width: 168px; box-shadow: 0 20px 40px -20px rgba(0,60,140,0.4); }

/* ---------------- Reveal & Motion ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; } .reveal.d5 { transition-delay: 0.40s; }

[data-scroll-scale] { transform: scale(0.94); opacity: 0; transition: transform 1s var(--ease), opacity 1s var(--ease); will-change: transform; }
[data-scroll-scale].scaled { transform: scale(1); opacity: 1; }

[data-parallax] { will-change: transform, opacity; }
@media (prefers-reduced-motion: reduce) {
  [data-scroll-scale] { transform: none; opacity: 1; }
  [data-parallax] { transform: none !important; opacity: 1 !important; }
}
:focus-visible { outline: 3px solid #0071e3; outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 200; background: #fff; padding: 0.7rem 1rem; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }

/* ---------------- Legal pages (Impressum, Datenschutz) ---------------- */
.legal { color: var(--ink); line-height: 1.65; }
.legal h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 600; letter-spacing: -0.01em; margin: 2.4rem 0 0.9rem; color: var(--ink); }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.1rem; font-weight: 600; margin: 1.6rem 0 0.6rem; color: var(--ink); }
.legal p { color: var(--sec); margin-bottom: 1rem; }
.legal p strong { color: var(--ink); font-weight: 600; }
.legal ul { color: var(--sec); margin: 0.4rem 0 1.2rem 1.4rem; padding: 0; }
.legal ul li { margin-bottom: 0.35rem; }
.legal a { color: var(--link); text-decoration: none; border-bottom: 1px solid rgba(0,113,227,0.28); transition: border-color 0.2s var(--ease); }
.legal a:hover { border-bottom-color: var(--link); }
.legal code { background: var(--bg-2); padding: 0.1em 0.4em; border-radius: 4px; font-size: 0.92em; }
