/* ------------------------------------------------------------------
   beseco – öffentliches Design (Startseite und Unterseiten)
   Hell, großzügig, Vollbild-Bereiche; Bewegung über assets/js/site.js
   ------------------------------------------------------------------ */

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 28px; }
.wrap.narrow { max-width: 920px; }
.sec { padding: clamp(80px, 11vw, 150px) 0; }
.sec.tight-top { padding-top: 0; }
.kicker { margin: 0 0 16px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.03; letter-spacing: -.035em; text-wrap: balance; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 64px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head > div { flex: 1 1 520px; min-width: 0; }
.sec-head > p { flex: 1 1 360px; min-width: 0; margin: 0; color: var(--ink-2); font-size: 18px; }

/* ---------- Schaltflächen ---------- */
.pill { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1.5px solid transparent; font: 600 16px var(--font-body); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.pill:hover { transform: translateY(-2px); }
.pill-solid { background: var(--sky); color: var(--night); }
.pill-solid:hover { background: #6BBAE8; color: var(--night); }
.pill-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.pill-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.pill-dark { background: var(--ink); color: #fff; }
.pill-dark:hover { background: var(--accent); color: #fff; }
.pill-line { border-color: #B9C4D2; color: var(--ink); }
.pill-line:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Header (fest, über dem Bild transparent, nach dem Scrollen weiß) ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; color: #fff; transition: background .35s, color .35s, box-shadow .35s; }
.site-header .bar { max-width: 1320px; margin: 0 auto; padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: block; line-height: 0; color: inherit; text-decoration: none; }
.logo svg { height: 46px; width: auto; display: block; overflow: visible; }
.logo .l-bar { fill: var(--blue); }
.logo .l-text { fill: var(--sky); }
.logo .l-tag { fill: #fff; }
.nav { display: flex; align-items: center; gap: 4px 28px; font-size: 15px; font-weight: 500; }
.nav a { color: inherit; text-decoration: none; opacity: .92; }
.nav a:hover { opacity: 1; color: inherit; }
.nav .cta { display: inline-flex; align-items: center; min-height: 42px; padding: 0 20px; border-radius: 999px; background: var(--sky); color: var(--night); font-weight: 600; opacity: 1; }
.nav .cta:hover { background: #6BBAE8; color: var(--night); }
.nav-toggle, .burger { display: none; }
.site-header.scrolled { background: rgba(255,255,255,.88); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.site-header.scrolled .logo .l-text { fill: var(--blue); }
.site-header.scrolled .nav .cta { background: var(--accent); color: #fff; }
.site-header.scrolled .nav .cta:hover { background: var(--accent-dark); color: #fff; }

@media (max-width: 960px) {
  .burger { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; cursor: pointer; border-radius: 12px; }
  .burger span, .burger span::before, .burger span::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; content: ""; position: relative; transition: transform .25s, background .25s; }
  .burger span::before { position: absolute; top: -7px; }
  .burger span::after { position: absolute; top: 7px; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 28px 24px; background: var(--night); color: #fff; max-height: 0; overflow: hidden; visibility: hidden; opacity: 0; transition: opacity .25s; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--night-line); font-size: 17px; }
  .nav .cta { margin-top: 16px; justify-content: center; border-bottom: 0; }
  .nav-toggle:checked ~ .nav { max-height: 90vh; visibility: visible; opacity: 1; }
  .nav-toggle:checked ~ .burger span { background: transparent; }
  .nav-toggle:checked ~ .burger span::before { top: 0; transform: rotate(45deg); background: currentColor; }
  .nav-toggle:checked ~ .burger span::after { top: 0; transform: rotate(-45deg); background: currentColor; }
  .nav-toggle:focus-visible ~ .burger { outline: 3px solid var(--sky); }
  .site-header.scrolled .nav .cta { background: var(--sky); color: var(--night); }
}

/* ---------- Hero (Vollbild) ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; background: var(--night); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; will-change: transform; transform: translate3d(0, var(--py, 0px), 0); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; display: block; transform: scale(1.08); animation: hero-in 2.2s cubic-bezier(.16,.8,.2,1) forwards; }
@keyframes hero-in { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13,20,34,.88) 0%, rgba(13,20,34,.4) 52%, rgba(13,20,34,0) 80%), linear-gradient(0deg, rgba(13,20,34,.75) 0%, rgba(13,20,34,0) 38%); }
.hero-inner { width: 100%; max-width: 1320px; margin: 0 auto; padding: 150px 28px clamp(64px, 9vh, 110px); }
.hero .pre { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; padding: 6px 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: #D5DEEC; backdrop-filter: blur(6px); }
.hero .pre::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }
.hero h1 { margin: 0; max-width: 11em; font-family: var(--font-display); font-weight: 800; font-size: clamp(42px, 5.4vw, 88px); line-height: .98; letter-spacing: -.04em; }
.hero h1 em { font-style: normal; color: var(--sky); }
.hero .lead-hero { margin: 28px 0 0; max-width: 600px; font-size: clamp(17px, 1.5vw, 20px); color: #D5DEEC; }
.hero .cta-row { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-hint { position: absolute; right: 28px; bottom: 36px; width: 1px; height: 64px; background: rgba(255,255,255,.25); overflow: hidden; }
.scroll-hint::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: scroll-hint 2.2s ease-in-out infinite; }
@keyframes scroll-hint { to { top: 110%; } }
.hero-inner > * { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
.hero-inner > :nth-child(2) { animation-delay: .12s; }
.hero-inner > :nth-child(3) { animation-delay: .24s; }
.hero-inner > :nth-child(4) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }

/* ---------- Statement mit Wort-für-Wort-Effekt ---------- */
.statement { text-align: center; }
.statement .big { margin: 0 auto; max-width: 1040px; font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 5.2vw, 76px); line-height: 1.06; letter-spacing: -.04em; text-wrap: balance; }
.statement .big .w { color: #C5CEDA; transition: color .35s; }
.statement .big .w.on { color: var(--ink); }
.statement .sub { margin: 28px auto 0; max-width: 620px; color: var(--ink-2); font-size: 19px; }

/* ---------- Fakten ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 36px 28px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact b { display: block; white-space: nowrap; font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 4.4vw, 64px); line-height: 1; letter-spacing: -.04em; color: var(--accent); }
.fact > span { display: block; margin-top: 10px; color: var(--ink-2); font-size: 16px; }
@media (max-width: 700px) { .fact { border-left: 0; border-top: 1px solid var(--line); padding: 28px 0; } .fact:first-child { border-top: 0; } }

/* ---------- Leistungen ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 300px; padding: clamp(28px, 3vw, 44px); border-radius: 28px; background: var(--white); border: 1px solid var(--line); overflow: hidden; transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s, border-color .3s; }
.tile:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -34px rgba(13,20,34,.35); border-color: #B8CDE4; }
.tile .num { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.tile h3 { margin: 0 0 12px; font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 2.1vw, 30px); letter-spacing: -.02em; line-height: 1.1; }
.tile p { margin: 0; color: var(--ink-2); font-size: 16.5px; }
.tile .tag { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-family: var(--font-mono); font-size: 12px; }
.tile.dark { background: linear-gradient(145deg, var(--night-2), var(--night)); border-color: var(--night-line); color: #fff; }
.tile.dark h3 { color: #fff; font-size: clamp(26px, 2.8vw, 40px); }
.tile.dark p { color: var(--night-text); max-width: 520px; }
.tile.dark .num { color: #93A3BC; }
.tile.dark::after { content: ""; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; border: 1px solid rgba(71,166,221,.35); box-shadow: 0 0 0 40px rgba(71,166,221,.05), 0 0 0 90px rgba(71,166,221,.04); pointer-events: none; }
.tile.tint { background: #E6F0FA; border-color: #D2E3F5; }
.tile.s2 { grid-column: span 2; } .tile.s3 { grid-column: span 3; } .tile.s4 { grid-column: span 4; } .tile.s6 { grid-column: span 6; }
.tile.wide { flex-direction: row; flex-wrap: wrap; align-items: center; min-height: 0; gap: 16px 40px; }
.tile.wide > div { flex: 0 1 280px; }
.tile.wide p { flex: 1 1 420px; }
@media (max-width: 960px) { .tile.s2, .tile.s3, .tile.s4 { grid-column: span 6; } .tile { min-height: 0; } }

/* ---------- Ablauf ---------- */
.steps-wrap { position: relative; }
.steps-line { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line); }
.steps-line i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 1)); }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.steps li { padding-top: 40px; }
.steps .n { font-family: var(--font-display); font-weight: 800; font-size: clamp(64px, 8vw, 120px); line-height: .9; letter-spacing: -.05em; color: #CBD6E4; }
.steps h3 { margin: 22px 0 10px; font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -.01em; }
.steps p { margin: 0; color: var(--ink-2); font-size: 17px; max-width: 380px; }

/* ---------- Vollbild-Band mit Foto ---------- */
.band { position: relative; min-height: min(80vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; background: var(--night); }
.band-media { position: absolute; inset: -12% 0; z-index: -2; will-change: transform; transform: translate3d(0, var(--py, 0px), 0); }
.band-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(13,20,34,.8) 0%, rgba(13,20,34,.1) 60%); }
.band .wrap { width: 100%; padding-top: 120px; padding-bottom: clamp(40px, 7vw, 80px); }
.band h2 { margin: 0; max-width: 14em; font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 5vw, 72px); line-height: 1; letter-spacing: -.04em; }
.band p { margin: 16px 0 0; max-width: 520px; color: #D5DEEC; font-size: 18px; }
.credit { position: absolute; right: 16px; top: 88px; z-index: 1; padding: 3px 8px; border-radius: 6px; background: rgba(13,20,34,.55); font-size: 11px; color: #fff; }
.credit a { color: #fff; }

/* ---------- Zwei Wege ---------- */
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
.path { position: relative; padding: clamp(32px, 4vw, 60px); border-radius: 32px; min-height: 520px; display: flex; flex-direction: column; overflow: hidden; }
.path.light { background: linear-gradient(160deg, #E8F2FC 0%, #CFE4F7 100%); color: var(--ink); }
.path.deep { background: linear-gradient(160deg, var(--night-2), var(--night)); color: #fff; }
.path .lbl { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.path h3 { margin: 18px 0 28px; font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3.2vw, 46px); line-height: 1.05; letter-spacing: -.03em; max-width: 12em; }
.path ul { margin: auto 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 17px; }
.path li { display: flex; gap: 12px; }
.path li svg { flex: none; margin-top: 4px; }
.path.light li svg { stroke: var(--accent); }
.path.deep li svg { stroke: var(--sky); }
.path.deep li { color: var(--night-text); }
.paths-note { margin-top: 28px; text-align: center; }
.paths-note span { display: inline-block; padding: 12px 22px; border-radius: 999px; background: #E6F0FA; color: var(--ink); font-weight: 500; }

/* ---------- Sicherheitstipps ---------- */
.tips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; }
.tip-feature { grid-column: span 1; padding: clamp(32px, 4vw, 52px); border-radius: 28px; background: linear-gradient(150deg, var(--night-2), var(--night)); color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 420px; }
.tip-feature h3 { margin: 22px 0 14px; font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3vw, 42px); line-height: 1.06; letter-spacing: -.03em; }
.tip-feature p { margin: 0; color: var(--night-text); font-size: 17.5px; }
.tip-feature .more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--sky); font-weight: 600; text-decoration: none; }
.tip-feature .more:hover { color: #fff; }
.tip-older { padding: 32px; border-radius: 28px; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.tip-older .t { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.tip-older a.row { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: padding .25s; }
.tip-older a.row:hover { padding-left: 8px; color: var(--accent); }
.tip-older .row small { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.tip-older .row strong { display: block; margin-top: 2px; }
.tip-older .all { margin-top: auto; padding-top: 22px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--accent); }

/* ---------- Über uns ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about figure { margin: 0; position: sticky; top: 110px; }
.about .photo { overflow: hidden; border-radius: 28px; aspect-ratio: 4 / 5; background: #DCE5F0; }
.about .photo img { display: block; width: 100%; height: 118%; object-fit: cover; will-change: transform; transform: translate3d(0, var(--py, 0px), 0); }
.about figcaption { margin-top: 16px; display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.about figcaption span:last-child { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.about .intro { margin: 28px 0 0; max-width: 620px; font-size: 19px; color: var(--ink-2); }
.about .points { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 40px; }
.about .points div { border-top: 1px solid var(--line); padding-top: 20px; }
.about h3 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 700; font-size: 21px; }
.about .points p { margin: 0; color: var(--ink-2); font-size: 16px; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about figure { position: static; max-width: 420px; } }

/* ---------- Referenzen ---------- */
.refs { padding: clamp(32px, 5vw, 64px); border-radius: 32px; background: var(--white); border: 1px solid var(--line); }
.ref-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.ref { padding: 20px 22px; border-radius: 16px; background: var(--paper); transition: transform .3s, background .3s; }
.ref:hover { transform: translateY(-3px); background: #EAF2FB; }
.ref strong { font-weight: 600; }
.ref .chips { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.ref .chips span { padding: 3px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; }
.refs .small { margin: 28px 0 0; font-size: 15px; color: var(--muted); }
.refs .small + .small { margin-top: 8px; }

/* ---------- Kontakt & Fuß ---------- */
.contact { position: relative; background: var(--night); color: #fff; overflow: hidden; isolation: isolate; }
.contact::before { content: ""; position: absolute; z-index: -1; right: -20%; top: -40%; width: 70vw; height: 70vw; border-radius: 50%; background: radial-gradient(circle, rgba(51,134,204,.35), rgba(51,134,204,0) 65%); }
.contact .grid { display: flex; flex-wrap: wrap; gap: 64px; padding: clamp(80px, 11vw, 150px) 0; }
.contact .grid > div:first-child { flex: 1 1 540px; min-width: 0; }
.contact .kicker { color: var(--sky); }
.contact h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 5.6vw, 84px); line-height: 1; letter-spacing: -.045em; text-wrap: balance; }
.contact .txt { margin: 24px 0 0; max-width: 520px; color: var(--night-text); font-size: 18px; }
.contact .cta-row { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.contact-card { flex: 1 1 340px; min-width: 0; align-self: flex-end; padding: 32px; border-radius: 28px; background: rgba(255,255,255,.05); border: 1px solid var(--night-line); backdrop-filter: blur(8px); display: flex; flex-direction: column; gap: 28px; }
.contact-card .t { font-family: var(--font-mono); font-size: 13px; color: #93A3BC; margin-bottom: 8px; }
.contact-card a.link { display: flex; justify-content: space-between; align-items: center; min-height: 50px; border-top: 1px solid var(--night-line); color: #fff; text-decoration: none; transition: padding .25s, color .25s; }
.contact-card a.link:hover { padding-left: 8px; color: var(--sky); }
.foot { border-top: 1px solid var(--night-line); }
.foot .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: #93A3BC; }
.foot a { color: var(--night-text); }
.foot .links { display: flex; gap: 24px; }

/* ---------- Bewegung ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .9s cubic-bezier(.2,.7,.2,1) var(--d, 0s), transform .9s cubic-bezier(.2,.7,.2,1) var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal="left"].in, .js [data-reveal="scale"].in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-media img, .hero-inner > *, .scroll-hint::after { animation: none; }
  .hero-media img { transform: none; }
  .tile, .pill, .ref { transition: none; }
}

/* ---------- Unterseiten ---------- */
.page-hero p { color: var(--night-text); }
.tip-card { border-radius: 24px; }
.section { background: var(--paper); }
.preview-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; }

/* ---------- Titelbilder der Tipps ---------- */
.cover { margin: 0 auto 40px; }
.cover img { display: block; width: 100%; height: auto; border-radius: 24px; background: #DCE5F0; }
.tip-card { overflow: hidden; }
.tip-card .thumb { display: block; margin: -28px -28px 20px; aspect-ratio: 3 / 2; overflow: hidden; background: #DCE5F0; }
.tip-card .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tip-card:hover .thumb img { transform: scale(1.04); }
.tip-feature .thumb { margin-bottom: 22px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 18px; }
.tip-feature .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
