/* ============================================================
   Unkopierbar.de — helle, editoriale Bühne
   Farben: Blau #008dd4 (Primär-Akzent), Rot #ec1a37 & Gelb #ffc600
   (Mikro-Akzente), Grau #9b9b9b (Marke), Tinte #1d1d1f
   ============================================================ */

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/SpaceGrotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f6;
  --ink: #1d1d1f;
  --ink-soft: #55555e;
  --ink-faint: #6e6e73;
  --line: #e7e7e5;
  --brand-gray: #9b9b9b;
  --blue: #008dd4;      /* großer Akzent, Hover, Deko */
  --blue-ink: #0073ad;  /* abgedunkelt: kleiner Text/Buttons auf Weiß */
  --red: #ec1a37;
  --yellow: #ffc600;
  --radius: 24px;
  --wrap: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Space Grotesk", "Inter", sans-serif; letter-spacing: -0.015em; }

img { max-width: 100%; display: block; }
a { color: var(--blue-ink); text-decoration: none; }
a:hover { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Signature: feine Tricolor-Linie (sparsam!) */
.tricolor {
  height: 3px; width: 100%; border: 0;
  background: linear-gradient(90deg,
    var(--blue) 0 33.4%, var(--red) 33.4% 66.7%, var(--yellow) 66.7% 100%);
}
.tricolor--kicker { width: 56px; border-radius: 2px; margin-bottom: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .bar {
  max-width: var(--wrap); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand img { width: 38px; height: 38px; }
.brand .brand-word {
  font-family: "Space Grotesk", sans-serif; font-weight: 500;
  font-size: 18px; letter-spacing: 0.06em; color: var(--brand-gray);
}
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a:not(.btn) { color: var(--ink); font-size: 15px; font-weight: 500; }
.main-nav a:not(.btn):hover { color: var(--blue-ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--blue-ink); color: #fff !important;
  padding: 15px 28px; border-radius: 999px;
  font-weight: 600; font-size: 17px; line-height: 1.2;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.btn:hover { background: var(--blue); transform: translateY(-1px); box-shadow: 0 10px 30px rgba(0, 141, 212, 0.25); }
.btn--small { padding: 10px 20px; font-size: 15px; }
.btn--ghost {
  background: transparent; color: var(--blue-ink) !important;
  border: 1px solid var(--line);
}
.btn--ghost:hover { background: var(--bg-soft); box-shadow: none; }

/* ---------- Scrub-Sektionen (Canvas-Frame-Scrub) ---------- */
.scrub { position: relative; height: 520vh; }
.scrub--short { height: 340vh; }
.scrub .sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  width: 100%; overflow: hidden;
  display: grid; place-items: center;
  background: var(--bg);
}
.scrub canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.overlay { position: relative; z-index: 10; text-align: center; padding: 0 24px; width: 100%; }
.line {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: max-content; max-width: 92vw;
  opacity: 0; will-change: opacity, transform;
}
/* weicher Studio-Lichthalo hinter dem Text — hält Kontrast auf dem Chrom */
.line::before {
  content: ""; position: absolute; inset: -22% -14%; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%,
    rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.62) 55%, rgba(255, 255, 255, 0) 100%);
}
.overline {
  font-size: 13px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 18px;
}
.line h1, .line .statement {
  font-family: "Space Grotesk", sans-serif; font-weight: 600;
  font-size: clamp(2.3rem, 6.2vw, 5.4rem);
  line-height: 1.04; color: var(--ink); text-wrap: balance;
}
.line h1 em, .line .statement em { font-style: normal; color: var(--blue); }
.line .statement .dim { color: var(--ink-faint); }
.line .services-teaser {
  font-family: "Space Grotesk", sans-serif; font-weight: 500;
  font-size: clamp(1.15rem, 2.6vw, 1.9rem); color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.line .services-teaser b { color: var(--ink); font-weight: 600; }

.scrub-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: rgba(29, 29, 31, 0.07); z-index: 12;
}
.scrub-progress span { display: block; height: 100%; width: 0%; background: var(--blue); }

.scroll-hint {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 12; font-size: 12px; font-weight: 600; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--ink-faint);
  animation: bob 2s ease-in-out infinite; transition: opacity 0.4s;
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ---------- Inhalts-Sektionen ---------- */
.section { padding: 118px 0; }
.section--soft { background: var(--bg-soft); }
.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--blue-ink); margin-bottom: 16px;
}
.section h2 {
  font-size: clamp(1.9rem, 4.4vw, 3.4rem); font-weight: 600;
  line-height: 1.08; margin-bottom: 22px; max-width: 21ch; text-wrap: balance;
}
.section .lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--ink-soft); max-width: 62ch; }
.lead--strong { color: var(--ink); font-weight: 550; } /* dezente Hervorhebung: halbfett, dunkle Tinte */

/* Intro / Positionierung */
.intro-facts { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 42px; }
.fact-chip {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 20px; font-size: 15px; font-weight: 500; color: var(--ink-soft);
  background: #fff;
}
.fact-chip b { color: var(--ink); font-weight: 600; }

/* Leistungsblöcke */
.service {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px);
  align-items: center; padding: 66px 0; border-top: 1px solid var(--line);
}
.service:first-of-type { border-top: 0; padding-top: 24px; }
.service .num {
  font-family: "Space Grotesk", sans-serif; font-weight: 300;
  font-size: 15px; letter-spacing: 0.18em; color: var(--ink-faint); margin-bottom: 12px;
}
.service h3 { font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 600; line-height: 1.12; margin-bottom: 16px; text-wrap: balance; }
.service p { color: var(--ink-soft); margin-bottom: 20px; max-width: 54ch; }
.service ul { list-style: none; display: grid; gap: 10px; }
.service li { padding-left: 26px; position: relative; color: var(--ink); font-size: 16px; }
.service li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 14px; height: 2px; background: var(--blue); border-radius: 1px;
}
.service .diff-chip {
  display: inline-block; margin-bottom: 14px;
  background: rgba(0, 141, 212, 0.1); color: var(--blue-ink);
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  padding: 6px 14px; border-radius: 999px;
}
.media-card {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid #ececea; background: var(--bg-soft);
  box-shadow: 0 24px 70px rgba(29, 29, 31, 0.09);
}
.media-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service.flip .service-text { order: 2; }
.service.flip .media-card { order: 1; }

/* GEO-Erklärsektion */
.geo-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.geo-cards { display: grid; gap: 16px; }
.geo-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 24px 26px;
}
.geo-card h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 6px; }
.geo-card p { color: var(--ink-soft); font-size: 15px; }

/* Arbeitsweise */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 54px; }
.step { border-top: 2px solid var(--ink); padding-top: 26px; }
.step .step-num {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: 52px; line-height: 1; color: var(--blue); margin-bottom: 14px;
}
.step h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 15.5px; }

/* Haltung: ohne Cookies / ohne Tracking */
.haltung { text-align: center; }
.haltung .kicker { margin-bottom: 20px; }
.haltung-line {
  font-size: clamp(2.2rem, 5.6vw, 4.4rem) !important;
  max-width: 22ch !important;
  margin: 0 auto 24px !important;
}
.haltung-line em { font-style: normal; color: var(--blue); }
.haltung .lead { margin: 0 auto; }

/* Kontakt */
.contact { text-align: center; }
.contact h2 { margin-left: auto; margin-right: auto; }
.contact .lead { margin: 0 auto 38px; }
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 46px; }
.contact-rows { display: flex; gap: 12px 44px; justify-content: center; flex-wrap: wrap; color: var(--ink-soft); font-size: 16px; }
.contact-rows a { font-weight: 600; }
.contact-rows .sep { color: var(--line); }

/* Footer */
.site-footer { background: #fff; }
.site-footer .inner { padding: 54px 24px 40px; max-width: var(--wrap); margin: 0 auto; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 36px; flex-wrap: wrap; }
.footer-logo img { width: 190px; height: auto; }
.footer-col h3 { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; margin-bottom: 12px; font-family: "Inter", sans-serif; }
.footer-col ul { list-style: none; display: grid; gap: 8px; font-size: 15px; }
.footer-col a { color: var(--ink-soft); }
.footer-col a:hover { color: var(--blue-ink); }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--ink-faint); font-size: 14px;
}

/* Rechtsseiten */
.legal { max-width: 780px; margin: 0 auto; padding: 150px 24px 90px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; margin-bottom: 34px; }
.legal h2 { font-size: 1.35rem; font-weight: 600; margin: 38px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal address { font-style: normal; color: var(--ink-soft); }
/* Hervorgehobener Hinweiskasten (Art. 21 DSGVO: getrennte Darstellung) */
.ds-hinweisbox {
  border-left: 4px solid var(--blue);
  background: #f2f9fd;
  border-radius: 0 14px 14px 0;
  padding: 20px 22px;
  margin: 36px 0;
}
.ds-hinweisbox h2 { margin: 0 0 10px; font-size: 1.15rem; }
.ds-hinweisbox p { margin: 0; }

/* ---------- KI-Chat-Widget ---------- */
.uk-chat-btn {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--blue-ink); color: #fff; border: 0; border-radius: 999px;
  padding: 13px 20px; font: 600 15px/1 "Inter", sans-serif; cursor: pointer;
  box-shadow: 0 12px 34px rgba(0, 60, 90, 0.28);
  transition: background 0.25s, transform 0.25s;
}
.uk-chat-btn:hover { background: var(--blue); transform: translateY(-1px); }
.uk-chat-btn svg { width: 18px; height: 18px; }
.uk-chat-panel {
  position: fixed; right: 22px; bottom: 84px; z-index: 201;
  width: 372px; max-width: calc(100vw - 24px);
  height: min(560px, calc(100dvh - 120px));
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 30px 80px rgba(29, 29, 31, 0.18);
  display: flex; flex-direction: column; overflow: hidden;
}
.uk-chat-panel[hidden] { display: none; }
.uk-chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.uk-chat-head b { font: 600 15px "Space Grotesk", sans-serif; color: var(--ink); }
.uk-chat-close { margin-left: auto; background: none; border: 0; font-size: 22px; line-height: 1; color: var(--ink-faint); cursor: pointer; padding: 4px 10px; border-radius: 8px; }
.uk-chat-close:hover { color: var(--ink); background: var(--bg-soft); }
.uk-chat-note { padding: 10px 16px; font-size: 12px; line-height: 1.5; color: var(--ink-faint); background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.uk-chat-note a { color: var(--blue-ink); text-decoration: underline; }
/* Einwilligungs-Schritt vor der ersten Nachricht */
.uk-chat-gate { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.uk-chat-gate[hidden], .uk-chat-msgs[hidden] { display: none; }
.uk-chat-gate p {
  font-size: 13.5px; line-height: 1.6; color: var(--ink);
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px; margin: 0;
}
.uk-chat-gate a { color: var(--blue-ink); text-decoration: underline; }
.uk-chat-start {
  align-self: center; border: 0; cursor: pointer;
  background: var(--blue-ink); color: #fff; border-radius: 999px;
  padding: 12px 26px; font: 600 15px "Inter", sans-serif;
  transition: background 0.2s;
}
.uk-chat-start:hover { background: var(--blue); }
.uk-chat-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.uk-msg {
  max-width: 85%; padding: 10px 14px; border-radius: 16px;
  font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: break-word;
}
.uk-msg--user { align-self: flex-end; background: var(--blue-ink); color: #fff; border-bottom-right-radius: 6px; }
.uk-msg--bot { align-self: flex-start; background: var(--bg-soft); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.uk-msg--error { align-self: flex-start; background: #fff5f5; border: 1px solid #f3c2c8; color: #8f1626; }
.uk-typing span { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: var(--ink-faint); animation: uk-blink 1.2s infinite; }
.uk-typing span:nth-child(2) { animation-delay: 0.2s; }
.uk-typing span:nth-child(3) { animation-delay: 0.4s; margin-right: 0; }
@keyframes uk-blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.uk-chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.uk-chat-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; font: 400 14.5px "Inter", sans-serif; color: var(--ink); background: #fff; }
.uk-chat-form input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.uk-chat-form button { border: 0; border-radius: 999px; background: var(--blue-ink); color: #fff; font: 600 14.5px "Inter", sans-serif; padding: 0 18px; cursor: pointer; transition: background 0.2s; }
.uk-chat-form button:hover { background: var(--blue); }
.uk-chat-form button:disabled { opacity: 0.5; cursor: default; }
@media (max-width: 480px) {
  .uk-chat-panel { right: 12px; left: 12px; bottom: 78px; width: auto; }
  .uk-chat-btn { right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .uk-chat-btn { transition: none; }
  .uk-typing span { animation: none; opacity: 0.6; }
}
.reduced-motion .uk-chat-btn { transition: none; }
.reduced-motion .uk-typing span { animation: none; opacity: 0.6; }

/* Scroll-Reveals */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.rd-1 { transition-delay: 0.08s; }
.rd-2 { transition-delay: 0.16s; }
.rd-3 { transition-delay: 0.24s; }

/* ---------- Reduced Motion: statisches Hero-Frame, normales Scrollen ---------- */
.reduced-motion .scrub, .reduced-motion .scrub--short { height: auto; }
.reduced-motion .scrub .sticky { position: relative; height: 100vh; height: 100svh; }
.reduced-motion .overlay { display: grid; gap: 18px; justify-items: center; }
.reduced-motion .line { display: none; }
.reduced-motion .line[data-static] { display: block; position: static; opacity: 1 !important; transform: none !important; }
.reduced-motion .scroll-hint, .reduced-motion .scrub-progress { display: none; }
.reduced-motion .reveal { opacity: 1; transform: none; transition: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scrub, .scrub--short { height: auto; }
  .scrub .sticky { position: relative; height: 100vh; height: 100svh; }
  .overlay { display: grid; gap: 18px; justify-items: center; }
  .line { display: none; }
  .line[data-static] { display: block; position: static; opacity: 1 !important; transform: none !important; }
  .scroll-hint, .scrub-progress { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .service, .geo-grid { grid-template-columns: 1fr; }
  .service.flip .service-text { order: 1; }
  .service.flip .media-card { order: 2; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 720px) {
  .section { padding: 78px 0; }
  .main-nav a:not(.btn) { display: none; } /* mobil: Marke + CTA */
  .brand .brand-word { font-size: 16px; }
  .line h1, .line .statement { font-size: clamp(2rem, 9vw, 2.9rem); }
  .footer-grid { flex-direction: column; }
}
