/* ==========================================================
   Jakob goes Digital – Stylesheet
   Schriften werden lokal geladen (DSGVO-konform, kein Google-Server)
   ========================================================== */

@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-400.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/work-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/work-sans-500.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/work-sans-600.woff2") format("woff2"); }

:root {
  --cream: #f8f6f1;
  --ink: #1d1a17;
  --ink-soft: #4a4f5c;
  --muted: #5b6070;
  --line: #d9dbe2;
  --nav: #15171d;
  --dark: #15171d;
  --dark-line: #30343f;
  --blue: #2541cc;
  --blue-soft: #e6ebf8;
  --cyan: #6ec6ea;
  --white: #ffffff;

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow--cyan { color: var(--cyan); }
.eyebrow svg { width: 18px; height: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 28px;
  font-family: var(--sans); font-weight: 600; font-size: 16px; letter-spacing: 0.01em;
  border: 0; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: #1d34a8; }
.btn--white { background: var(--white); color: var(--blue); }
.btn--white:hover { background: var(--blue-soft); }
.btn--glass {
  border-radius: 999px; color: var(--white);
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn--glass:hover { background: rgba(255, 255, 255, .26); }
/* Gleicher Look wie der Header-Button, auf hellem Hintergrund: Glas über der Header-Farbe */
.btn--glass-dark {
  border-radius: 999px; color: var(--white);
  background: linear-gradient(rgba(255, 255, 255, .18), rgba(255, 255, 255, .18)), var(--nav);
  border: 1px solid rgba(255, 255, 255, .26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  padding: 17px 27px; /* 1px Rand ausgleichen */
}
.btn--glass-dark:hover { background: linear-gradient(rgba(255, 255, 255, .26), rgba(255, 255, 255, .26)), var(--nav); }
.cta .btn--glass { padding: 17px 27px; }
/* Milchig-weißes Glas auf hellem Hintergrund – dunkle Schrift, damit sie lesbar bleibt */
.btn--glass-light {
  border-radius: 999px; color: var(--ink);
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 1px 2px rgba(21, 23, 29, .06), inset 0 1px 0 rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 17px 27px; /* 1px Rand ausgleichen */
}
.btn--glass-light:hover { background: rgba(255, 255, 255, .8); }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: var(--white); }
.link-arrow { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translate(2px, 2px); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav); color: var(--white);
}
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__mark {
  width: 44px; height: 44px; border-radius: 8px; background: var(--white);
  display: flex; align-items: center; justify-content: center; color: var(--nav);
  font-family: var(--sans); font-weight: 700; font-size: 22px; line-height: 1;
}
.logo__mark span { color: #7b8cf0; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-weight: 700; font-size: 26px; letter-spacing: -0.03em; }
.logo__sub { font-size: 13px; font-weight: 600; margin-top: 3px; }
.logo__sub em { font-family: var(--serif); font-style: italic; font-weight: 400; color: #8f9cf5; font-size: 15px; margin-right: 3px; }

.nav { position: relative; isolation: isolate; display: flex; gap: 12px; }
.nav a { padding: 8px 16px; font-size: 16px; font-weight: 500; opacity: .85; transition: opacity .2s; }
.nav a:hover, .nav a.is-current { opacity: 1; }

/* Milchig-transparenter Schieber, der beim Scrollen zwischen den Menüpunkten gleitet */
.nav__pill {
  position: absolute; top: 0; left: 0; z-index: -1;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  pointer-events: none;
  will-change: transform, width;
}
.header .btn { padding: 16px 26px; }
.header .btn--glass { padding: 15px 25px; } /* 1px Rand ausgleichen, gleiche Größe wie vorher */

.menu-toggle { display: none; background: none; border: 0; color: var(--white); padding: 8px; cursor: pointer; }
.menu-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero { background: var(--blue-soft); padding: 18px 0 96px; overflow-x: hidden; overflow: clip; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: start; }
.hero__text { padding-top: 8px; }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.2rem, 7.4vw, 7.2rem);
  line-height: 0.98; letter-spacing: -0.02em;
  margin: 28px 0 44px;
}
.hero h1 em { color: var(--blue); font-style: italic; }
.hero__lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.75; color: var(--ink-soft); max-width: 620px; }
.hero__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 44px; }
.hero__note {
  margin-top: 64px; padding-left: 22px; border-left: 2px solid var(--cyan);
  font-size: 16px; color: var(--muted); line-height: 1.75; max-width: 440px;
}

.hero__media { position: relative; padding-bottom: 72px; }
.hero__media img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center; }
.hero__card {
  position: absolute; right: 5%; bottom: 0; width: 62%;
  will-change: transform;
  background: var(--dark); color: var(--white);
  padding: 30px 28px 32px;
}
.hero__card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.hero__card-top svg { width: 26px; height: 26px; color: var(--cyan); }
.hero__card-top span { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 500; }
.hero__card p { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.25; }

/* ---------- Problem ---------- */
.problem { background: var(--blue-soft); border-top: 1px solid #cfd6ec; border-bottom: 1px solid #cfd6ec; padding: 150px 0; }
.problem__grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 64px; }
.problem h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 4.4vw, 4rem); line-height: 1.2; margin-top: 22px; }
.problem__lead { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.75rem); line-height: 1.35; padding-bottom: 56px; border-bottom: 1px solid #c4cad9; }
.problem__points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 44px; }
.problem__points li { display: flex; gap: 16px; font-size: 17px; line-height: 1.8; color: var(--ink-soft); }
.num { font-family: var(--serif); color: var(--cyan); font-size: 26px; line-height: 1.2; flex-shrink: 0; }

/* ---------- Leistungen ---------- */
.services { padding: 150px 0 120px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid #cfd6ec; }
.section-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 5vw, 4.6rem); line-height: 1.05; margin-top: 18px; }
.section-head p { max-width: 540px; color: var(--muted); font-size: 17px; line-height: 1.85; padding-bottom: 8px; }

.services__grid { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1fr; margin-top: 76px; }

/* Blauer Hintergrund, der zwischen den Leistungen gleitet */
.services__glider {
  position: absolute; top: 0; left: 0; z-index: -1;
  background: var(--blue);
  transition: transform .55s cubic-bezier(.22, .8, .24, 1), width .55s cubic-bezier(.22, .8, .24, 1), height .55s cubic-bezier(.22, .8, .24, 1);
  will-change: transform;
}
/* Ohne JavaScript: aktive Karte bekommt den blauen Hintergrund direkt */
.services__grid:not(.has-glider) .service.is-active { background: var(--blue); }

.service { padding: 56px; transition: color .4s ease; }
.service__top { display: flex; justify-content: space-between; align-items: flex-start; }
.service__top .num { font-size: clamp(56px, 6vw, 80px); line-height: 1; }
.service__top svg { width: 34px; height: 34px; color: var(--blue); transition: color .4s ease; }
.service__top .service__devices,
.service__top .service__chart { width: 50px; height: 35px; overflow: visible; }
.service h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1.15; margin: 64px 0 26px; }
.service > p { font-size: 18px; line-height: 1.85; color: var(--ink-soft); padding-bottom: 36px; border-bottom: 1px solid #cfd6ec; transition: color .4s ease, border-color .4s ease; }
.service ul { margin-top: 36px; display: grid; gap: 20px; }
.service li { display: flex; align-items: center; gap: 18px; font-size: 17px; }
.service li svg { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; transition: color .4s ease; }

.service.is-active { color: var(--white); }
.service.is-active .service__top svg { color: var(--white); }
.service.is-active > p { color: #e3e8ff; border-color: rgba(255, 255, 255, .22); }
.service.is-active li svg { color: var(--cyan); }

/* ---------- Ablauf ---------- */
.process { background: var(--dark); color: var(--white); padding: 150px 0; }
.process__grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 64px; }
.process h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 4.6vw, 4.2rem); line-height: 1.2; margin-top: 22px; }
.steps li {
  display: grid; grid-template-columns: 64px 1fr 1.6fr; gap: 24px;
  padding: 44px 0 44px; border-top: 1px solid var(--dark-line);
}
.steps li:first-child { padding-top: 40px; }
.steps .num { font-size: 30px; }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.3vw, 2.1rem); line-height: 1.25; }
.steps p { color: #c9ccd6; font-size: 17px; line-height: 1.85; }

/* ---------- Zitat / Über mich ---------- */
.about { padding: 150px 0; }
.about__grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 80px; align-items: start; }
.about__icon { display: block; width: 38px; height: 38px; color: var(--blue); margin-bottom: 40px; overflow: visible; }
.about blockquote { margin: 0; font-family: var(--serif); font-size: clamp(2.4rem, 4.2vw, 3.9rem); line-height: 1.3; max-width: 760px; }
.about__side > p { font-size: 20px; line-height: 1.95; color: var(--ink-soft); }
.person { display: flex; align-items: center; gap: 20px; margin-top: 32px; }
.person__avatar { width: 58px; height: 58px; border-radius: 50%; background: var(--blue-soft); display: grid; place-items: center; font-family: var(--serif); font-size: 28px; }
.person strong { display: block; font-size: 18px; font-weight: 600; }
.person span { color: var(--muted); font-size: 16px; }

/* ---------- CTA ---------- */
.cta { background: var(--blue); color: var(--white); padding: 140px 0; }
.cta__grid { display: grid; grid-template-columns: 1.5fr 0.5fr; gap: 64px; align-items: end; }
.cta h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 6.4vw, 6rem); line-height: 1; margin-top: 30px; }
.cta__side p { color: #cbd5ff; font-size: 17px; line-height: 1.85; margin-bottom: 36px; }
.copy-mail { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .22); font-size: 15px; }
.copy-mail__label { display: block; color: #cbd5ff; margin-bottom: 6px; }
.copy-mail__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.copy-mail__address { font-weight: 600; color: var(--white); user-select: all; overflow-wrap: anywhere; }
.copy-mail__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px; color: var(--white);
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 500 13px/1 var(--sans); cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.copy-mail__btn:hover { background: rgba(255, 255, 255, .26); }
.copy-mail__btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.copy-mail__btn svg { width: 14px; height: 14px; }
.copy-mail__btn .icon-check { display: none; color: var(--cyan); }
.copy-mail__btn.is-copied { border-color: var(--cyan); }
.copy-mail__btn.is-copied .icon-copy { display: none; }
.copy-mail__btn.is-copied .icon-check { display: block; }
.copy-mail__status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Footer ---------- */
.footer { background: var(--nav); color: var(--white); padding: 36px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.footer .logo { flex-shrink: 0; }
.footer__tag { color: #b9bdc8; font-size: 15px; text-align: center; }
.footer__links { display: flex; gap: 24px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.footer__links a { opacity: .92; transition: opacity .2s; }
.footer__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Rechtstexte ---------- */
.legal { padding: 100px 0 140px; }
.legal .container { max-width: 860px; }
.legal h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 5vw, 4.4rem); line-height: 1.1; margin: 18px 0 48px; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 2rem; margin: 48px 0 14px; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 14px; }
.legal a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.placeholder { background: #fff3c4; padding: 0 4px; }

/* ---------- Elastischer Cursor-Kreis ---------- */
/* Kreis und farbige Textkopie sind Hintergründe mit "background-attachment: fixed":
   Sie stehen fest am Bildschirm (ruhig beim Scrollen, ohne JavaScript) und werden vom
   Abschnitt an dessen Rändern abgeschnitten – der Kreis rutscht so unter die Nachbarn.
   Position und Größe kommen als CSS-Variablen vom Abschnitt. */
.has-cursor-ring { position: relative; overflow: hidden; cursor: none; }
.has-cursor-ring * { cursor: none; }
.has-cursor-ring > .container { position: relative; z-index: 1; }

.cursor-ring,
.cursor-ring__copy {
  --ring-shape: ellipse var(--ring-rx, 36px) var(--ring-ry, 36px) at var(--ring-x, -999px) var(--ring-y, -999px);
  pointer-events: none;
  transition: opacity .25s ease;
}
.is-ring-hidden .cursor-ring,
.is-ring-hidden .cursor-ring__copy { opacity: 0; }

/* Farbfläche des Kreises */
.cursor-ring {
  position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(var(--ring-shape), var(--ring-fill, var(--nav)) calc(100% - 1px), transparent 100%) fixed;
}
.cursor-ring--light { --ring-fill: var(--blue-soft); } /* im dunklen Ablauf-Abschnitt */

/* Textkopie: nur innerhalb des Kreises eingefärbt (Hintergrund auf den Text beschnitten) */
.cursor-ring__copy {
  position: absolute; top: -1px; left: 0; right: 0; margin: 0; z-index: 3;
  background: radial-gradient(var(--ring-shape), var(--ring-text, #fff) calc(100% - 1px), transparent 100%) fixed;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; border-color: transparent !important;
}
.cursor-ring__copy * { color: transparent !important; border-color: transparent !important; }
.cursor-ring__copy.process { top: 0; --ring-text: var(--ink); } /* schwarze Schrift im hellen Kreis */

/* ---------- Reveal-Animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .services__glider, .service, .service * { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 28px; }
  .service { padding: 44px 36px; }
  .steps li { grid-template-columns: 52px 1fr; }
  .steps p { grid-column: 2; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .logo__mark { width: 38px; height: 38px; font-size: 19px; }
  .logo__name { font-size: 22px; }
  .menu-toggle { display: block; }
  .header .btn { display: none; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--nav);
    padding: 8px var(--gutter) 24px; border-top: 1px solid #2a2d36;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid #2a2d36; }
  .nav__pill { display: none; }
  .nav .nav__cta { display: block; border: 0; margin-top: 12px; color: var(--cyan); }

  .hero { padding-top: 32px; }
  .hero__grid, .problem__grid, .process__grid, .about__grid, .cta__grid, .services__grid { grid-template-columns: 1fr; }
  .hero__grid { gap: 48px; }
  .hero__media img { aspect-ratio: 4 / 5; }
  .hero__card { width: 78%; }
  .problem, .services, .process, .about, .cta { padding: 96px 0; }
  .problem__grid, .process__grid, .about__grid, .cta__grid { gap: 44px; }
  .problem__points { grid-template-columns: 1fr; gap: 20px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .services__grid { margin-top: 48px; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer__tag { text-align: left; }
  .footer__links { flex-wrap: wrap; }
}

@media (min-width: 901px) { .nav .nav__cta { display: none; } }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero__note { margin-top: 44px; }
  .hero__actions { gap: 20px; }
  .hero__card { width: 90%; right: 5%; padding: 24px 22px; }
  .service { padding: 36px 24px; }
  .service h3 { margin-top: 44px; }
  .steps li { grid-template-columns: 1fr; gap: 10px; padding: 32px 0; }
  .steps p { grid-column: 1; }
}
