/* Richtung "Arve" fuer die Startseite (Pawel und Oskar, 2026-11-22). Laedt als letztes Stylesheet
   und setzt die Tokens neu, damit die bestehenden Komponenten mitziehen: Papier, Stein, Arve
   (dunkles Gruen), Tinte; Arvenna-Violett nur als Akzent. Abschnitte wechseln das Tuch, damit
   nicht alles im selben Kontrast liegt. Andere Seiten der Site sind davon nicht betroffen.
   body.home, weil home-base.css die alten Tokens dort setzt und gleich spezifisch sein muss. */
body.home {
  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", var(--font);
  --mono: var(--font);
  --paper: #F5F0E6; --stone: #E6DDCC; --pine: #1F3A31; --pine-2: #2B4A3F; --ink: #18241F;
  --ink-soft: #33443C; --muted: #5B6A63; --surface: #FFFCF6; --surface-alt: var(--stone); --line: #DDD3C1;
  --accent: #6D3FE0; --accent-dark: #5A30C8; --accent-hi: #B9A1FF; --accent-wash: #EDE6FC; --accent-rgb: 109, 63, 224;
  --v-bg: var(--pine); --v-bg-2: #24443A; --v-surface: var(--pine-2); --v-surface-2: #33574A;
  --v-line: rgba(245, 240, 230, 0.1); --v-line-2: rgba(245, 240, 230, 0.2);
  --v-text: #F5F0E6; --v-muted: #CBD6CF; --v-dim: #9DB0A6; --v-ink-soft: var(--ink-soft);
  --light: var(--paper); --line-l: var(--line);
  background: var(--paper); color: var(--ink); font-family: var(--font);
}
.home h1, .home h2, .home h3, .home .section-title { font-family: var(--display); letter-spacing: -0.03em; }
.home h2, .home .section-title { font-weight: 800; line-height: 1.02; }
.home .vsplit h2 { margin-top: 1rem; font-size: var(--v-step-h2); }
.home .vsplit .lead { margin-top: 1.2rem; }
.home .lead { color: var(--ink-soft); }
.home .panel { color: var(--v-text); }

/* Ueberschriften-Marke: ruhig, in Satzschreibung, statt Mono in Versalien */
.home .v-label, .home .eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem; font: 600 0.95rem/1 var(--font);
  letter-spacing: 0; text-transform: none; color: var(--accent);
}
.home .v-label::before, .home .eyebrow::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }

/* Tuecher der Abschnitte */
.home .a-stone, .home #fragen { background: var(--stone); color: var(--ink); }
.home .legacy { background: var(--paper); color: var(--ink); }
.home .a-pine { background: var(--pine); color: var(--v-text); }
.home .a-pine .lead { color: var(--v-muted); }
.home .a-pine .v-label { color: var(--accent-hi); }
.home .a-violet { background: var(--accent); color: #fff; }
.home .a-violet .v-label { color: #fff; }
.home .a-violet h2, .home .a-violet h3 { color: #fff; }

/* Kopf und Fuss */
.home .site-header { background: rgba(24, 36, 31, 0.92); }
.home .site-footer { background: var(--ink); }

/* Held mit Netz */
.home .ahero { padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0 clamp(3.5rem, 3rem + 3vw, 5.5rem); background: var(--paper); }
.home .ahero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.home .ahero-kicker { margin: 0 0 1.1rem; color: var(--accent); font-weight: 600; }
.home .ahero h1 { color: var(--ink); margin: 0; font-size: clamp(2.8rem, 1.3rem + 4.8vw, 5.6rem); font-weight: 800; line-height: 0.98; letter-spacing: -0.04em; }
.home .ahero .rotor { position: relative; display: inline-grid; vertical-align: top; color: var(--accent); clip-path: inset(0.02em -0.1em -0.25em -0.1em); }
.home .ahero .lead { max-width: 31em; margin: 1.4rem 0 1.8rem; font-size: clamp(1.06rem, 1rem + 0.3vw, 1.22rem); }
.home .ahero .hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.home .ahero .btn--ghost-dark { color: var(--ink); border-color: var(--line); }
.home .ahero .btn--ghost-dark:hover { background: var(--stone); }
.home .ahero .hero-facts { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin: 1.5rem 0 0; color: var(--muted); font-size: 0.92rem; }

.home .net {
  position: relative; min-height: clamp(440px, 44vw, 600px); border-radius: 28px; overflow: hidden; touch-action: pan-y;
  background: radial-gradient(90% 90% at 40% 35%, #2E5246 0%, var(--pine) 60%, #16291F 100%); color: var(--v-text);
}
.home .net-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.home .net-list { list-style: none; margin: 0; padding: 1.6rem; min-height: inherit; display: flex; flex-wrap: wrap; gap: 0.6rem; align-content: center; justify-content: center; }
/* Kugeln wie auf pawelkrawczyk.ch: Licht von oben links, weicher Schatten, Hub mit Puls-Ring. */
.home .net-node {
  position: relative; display: inline-grid; place-items: center; width: 86px; height: 86px; border-radius: 50%; text-align: center; text-decoration: none;
  background: radial-gradient(circle at 32% 28%, #FFFDF8 0%, var(--paper) 45%, #D9CFBC 100%); color: var(--ink);
  font: 600 0.95rem/1.1 var(--font);
  box-shadow: inset 0 -6px 14px rgba(24, 36, 31, 0.12), 0 14px 32px -12px rgba(0, 0, 0, 0.75);
  transition: box-shadow 0.3s, opacity 0.3s, scale 0.3s;
}
.home .net-node--hub {
  width: 112px; height: 112px; color: #fff; font-size: 1.12rem;
  background: radial-gradient(circle at 32% 28%, #A98BFF 0%, var(--accent) 50%, #4A28A3 100%);
  box-shadow: inset 0 -8px 18px rgba(30, 10, 80, 0.35), 0 0 42px -4px rgba(140, 102, 236, 0.65), 0 16px 34px -12px rgba(0, 0, 0, 0.8);
}
.home .net-node--hub::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 1.5px solid rgba(185, 161, 255, 0.7);
  animation: net-ping 3.2s ease-out infinite; pointer-events: none;
}
@keyframes net-ping { 0% { transform: scale(1); opacity: 0.8; } 80%, 100% { transform: scale(1.55); opacity: 0; } }
.home .net-node--minor { width: 68px; height: 68px; font-size: 0.84rem; background: radial-gradient(circle at 32% 28%, #F7F2E8 0%, var(--stone) 55%, #CBBFA8 100%); }
.home .net-node:hover, .home .net-node:focus-visible { box-shadow: 0 0 0 4px rgba(185, 161, 255, 0.55), 0 0 36px -6px rgba(185, 161, 255, 0.6), 0 14px 32px -12px rgba(0, 0, 0, 0.75); outline: none; }
.home .net-sat {
  display: inline-flex; align-items: center; gap: 0.42rem; padding: 0.26rem 0.5rem 0.26rem 0.4rem; border-radius: 99px; white-space: nowrap;
  color: var(--v-muted); background: rgba(22, 41, 31, 0.72); font: 500 0.74rem/1 var(--font); letter-spacing: 0.01em;
  transition: opacity 0.3s, color 0.3s;
}
.home .net-sat::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--accent-hi); box-shadow: 0 0 8px rgba(185, 161, 255, 0.8);
}
.home .net-tip, .home .net-hint { display: none; }
.home .net--live .net-canvas { display: block; opacity: 0; transition: opacity 0.8s ease; }
.home .net--live .net-list { position: absolute; inset: 0; padding: 0; display: block; }
.home .net--live .net-node, .home .net--live .net-sat { position: absolute; left: 0; top: 0; will-change: transform; user-select: none; -webkit-user-drag: none; opacity: 0; }
.home .net--ready .net-canvas { opacity: 1; }
.home .net--ready .net-node, .home .net--ready .net-sat { opacity: 1; animation: net-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.home .net--ready .net-sat { animation-delay: 0.25s; }
@keyframes net-in { from { opacity: 0; scale: 0.6; } to { opacity: 1; scale: 1; } }
.home .net--live .net-node { cursor: grab; }
.home .net.is-dragging, .home .net.is-dragging .net-node { cursor: grabbing; }
.home .net.has-focus .net-node:not(.is-near), .home .net.has-focus .net-sat:not(.is-near) { opacity: 0.3; }
.home .net .net-node.is-near { scale: 1.06; }
.home .net .net-sat.is-near { color: var(--v-text); }
@media (prefers-reduced-motion: reduce) {
  .home .net-node--hub::after { animation: none; opacity: 0; }
  .home .net--ready .net-node, .home .net--ready .net-sat { animation: none; }
}
.home .net--live .net-tip { display: block; position: absolute; left: 1.3rem; right: 1.3rem; bottom: 2.7rem; margin: 0; min-height: 1.4em; font-weight: 600; pointer-events: none; }
.home .net--live .net-hint { display: block; position: absolute; left: 1.3rem; bottom: 1.1rem; margin: 0; color: var(--v-dim); font-size: 0.84rem; pointer-events: none; }
.home section[id], .home [id="ablauf"], .home [id="panel"] { scroll-margin-top: 84px; }

/* Panel und Agenten: zwei Ansichten statt zwei Abschnitte */
.home .views { display: inline-flex; gap: 0.3rem; padding: 0.3rem; border-radius: 99px; background: rgba(24, 36, 31, 0.08); margin-bottom: 0.4rem; }
.home .views button {
  border: 0; border-radius: 99px; padding: 0.7rem 1.15rem; background: transparent; color: var(--ink-soft);
  font: 600 0.95rem/1 var(--font); cursor: pointer; transition: background 0.25s, color 0.25s;
}
.home .views button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.home .view[hidden] { display: none; }
.home .desk { background: radial-gradient(120% 140% at 50% 0%, #2E5246 0%, var(--pine) 55%, #16291F 100%); }
.home #agenten .rule { margin-top: 2rem; }

/* Website und Beispiele: Kacheln statt Reiter, sie heben sich beim Zeigen */
.home :is(#branchen, #work) .branch-chip[data-demo] { display: none; }
.home :is(#branchen, #work) .branch-bar { margin-bottom: 0.4rem; }
.home :is(#branchen, #work) .stage-wrap { display: flex; flex-direction: column; }
.home :is(#branchen, #work) .demo-thumbs { order: -1; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0 0 0.5rem; }
/* Persoenliche Website: deutlich sichtbar, mit Pawels Seite als lebendem Beispiel */
.home .personal-card {
  margin-top: 1.4rem; padding: 1.2rem 1.4rem; border-radius: 18px; background: var(--accent-wash);
  border: 1px solid rgba(var(--accent-rgb), 0.25); max-width: 44rem;
}
.home .personal-card p { margin: 0; color: var(--ink-soft); }
.home .personal-card .personal-title { margin-bottom: 0.35rem; font: 800 clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem)/1.15 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.home .personal-card a { color: var(--accent-dark); font-weight: 700; }
.home :is(#branchen, #work) .demo-thumb {
  height: clamp(150px, 17vw, 230px); border-radius: 18px; border-width: 2px;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.3s;
}
.home :is(#branchen, #work) .demo-thumb img { transition: transform 0.8s var(--ease-out); }
.home :is(#branchen, #work) .demo-thumb:hover { transform: translateY(-6px) rotate(-0.6deg); box-shadow: 0 24px 40px -24px rgba(24, 36, 31, 0.6); }
.home :is(#branchen, #work) .demo-thumb:hover img { transform: scale(1.06); }
.home :is(#branchen, #work) .demo-thumb figcaption { font: 700 1rem/1 var(--display); }
.home :is(#branchen, #work) .demo-thumb[aria-selected="true"] { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.22); }

/* Rabatt als kleiner Hinweis statt Durchstreichen */
.home .off {
  display: inline-block; margin-left: 0.5rem; padding: 0.22rem 0.5rem; border-radius: 99px; vertical-align: 0.15em;
  background: var(--accent-wash); color: var(--accent-dark); font: 600 0.72rem/1 var(--font); white-space: nowrap;
}
.home .a-pine .offer { background: var(--pine-2); border-color: var(--v-line-2); }

/* Preise auf Violett: die Tabelle als helle Karte */
.home .a-violet .prices { background: var(--surface); color: var(--ink); border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(24, 36, 31, 0.6); }
.home .a-violet .prices th, .home .a-violet .prices td { padding-left: clamp(0.9rem, 2vw, 1.4rem); padding-right: clamp(0.9rem, 2vw, 1.4rem); }
.home .a-violet .fine { color: rgba(255, 255, 255, 0.82); }
/* So geht's (#ablauf): die Schiene fuellt sich beim Scrollen, ein Funke laeuft vorn mit,
   jeder Schritt zuendet, sobald die Fuellung ihn erreicht (motion.js setzt --fill und .is-on). */
.home .how .timeline { gap: 1.1rem; padding-top: 3.2rem; }
.home .how .timeline::before { display: none; }
.home .how-rail { position: absolute; top: 1.05rem; left: 0.6rem; right: 0.6rem; height: 3px; border-radius: 3px; background: var(--line-l); }
.home .how-fill {
  position: absolute; inset: 0; border-radius: inherit; transform-origin: left; transform: scaleX(var(--fill, 0));
  background: linear-gradient(90deg, var(--accent), var(--accent-hi));
}
.home .how-spark {
  position: absolute; top: 50%; left: calc(var(--fill, 0) * 100%); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.35), 0 0 22px 6px rgba(185, 161, 255, 0.85);
  opacity: var(--spark, 0); transition: opacity 0.3s;
}
.home .how .tl-step {
  padding: 1.25rem 1.2rem 1.2rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-l);
  box-shadow: 0 18px 40px -32px rgba(24, 36, 31, 0.5);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s, border-color 0.6s;
}
.home .how .tl-step::before {
  top: calc(-2.75rem + 1.5px); left: 1.2rem; width: 1.3rem; height: 1.3rem; background: var(--paper); border: 3px solid var(--line-l);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.home .how .tl-step .nr {
  font: 800 2.4rem/1 var(--display); letter-spacing: -0.03em; color: transparent; -webkit-text-stroke: 1.5px var(--line-strong, #C8BDA9);
  transition: color 0.5s, -webkit-text-stroke-color 0.5s;
}
.home .how .tl-step h4 { margin: 0.2rem 0 0; font: 700 1.12rem/1.2 var(--display); }
.home .how .tl-step p { margin: 0; }
.home .how .tl-step.is-on { transform: translateY(-6px); border-color: var(--accent-hi); box-shadow: 0 26px 50px -30px rgba(var(--accent-rgb), 0.55); }
.home .how .tl-step.is-on::before { background: var(--accent); border-color: #fff; box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.3); animation: how-ping 1.4s ease-out 1; }
.home .how .tl-step.is-on .nr { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.home .how .tl-step.is-on .dur { background: var(--accent-wash); border-color: var(--accent-hi); }
@keyframes how-ping { 0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.6); } 100% { box-shadow: 0 0 0 16px rgba(var(--accent-rgb), 0); } }
@media (max-width: 860px) {
  .home .how .timeline { padding: 0 0 0 2.6rem; }
  .home .how-rail { top: 0.4rem; bottom: 0.4rem; left: 0.55rem; right: auto; width: 3px; height: auto; }
  .home .how-fill { transform-origin: top; transform: scaleY(var(--fill, 0)); }
  .home .how-spark { top: calc(var(--fill, 0) * 100%); left: 50%; margin: -7px 0 0 -7px; }
  .home .how .tl-step::before { top: 1.3rem; left: calc(-2.6rem + 0.05rem); }
}
@media (prefers-reduced-motion: reduce) {
  .home .how .tl-step, .home .how .tl-step::before { transition: none; animation: none; }
  .home .how .tl-step.is-on { transform: none; }
}

@media (max-width: 899px) {
  .home .ahero-grid { grid-template-columns: 1fr; }
  .home .net { min-height: 440px; }
  .home .net-node { width: 72px; height: 72px; font-size: 0.86rem; }
  .home .net-node--hub { width: 94px; height: 94px; }
  .home .net-node--minor { width: 58px; height: 58px; font-size: 0.76rem; }
  .home :is(#branchen, #work) .demo-thumbs { grid-template-columns: 1fr 1fr; }
  .home :is(#branchen, #work) .demo-thumb { height: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  .home :is(#branchen, #work) .demo-thumb, .home :is(#branchen, #work) .demo-thumb img { transition: none; }
}

/* Telefon: mehr Hoehe fuer das Netz, damit sich nichts beruehrt (nach dem 899px-Block, damit es gewinnt) */
@media (max-width: 599px) {
  .home .net { min-height: 580px; }
  .home .net-node { width: 66px; height: 66px; font-size: 0.8rem; }
  .home .net-node--hub { width: 86px; height: 86px; }
  .home .net-node--minor { width: 54px; height: 54px; font-size: 0.72rem; }
  .home .net-sat { font-size: 0.68rem; padding: 0.22rem 0.42rem 0.22rem 0.34rem; gap: 0.32rem; }
}
