/* Robiné Consulting – Website
   Farben und Schriften passend zu Briefkopf und Vorlagen */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #14233a;
  --navy: #1e3a5f;
  --navy-deep: #152b47;
  --paper: #f6f7f9;
  --white: #ffffff;
  --line: #d8dee6;
  --mist: #e9eef4;
  --muted: #5b6878;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- Typografie ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0; }
h1 {
  font-size: clamp(2.7rem, 6.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 72;
  max-width: 13ch;
}
h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 48;
}
h3 {
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 24;
}
p { margin: 0 0 1em; max-width: 38em; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: #2a3a50; max-width: 34em; }
.muted { color: var(--muted); }

/* ---------- Akzent: kurzer dicker Strich auf feiner Linie (wie im Briefkopf) ---------- */
.akzent { position: relative; height: 1px; background: var(--navy); opacity: 1; }
.akzent::before {
  content: ""; position: absolute; left: 0; top: -2px;
  width: 64px; height: 5px; background: var(--navy);
}

/* ---------- Kopfzeile ---------- */
.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: baseline; gap: 0; text-decoration: none; color: var(--ink); }
.wordmark .mark { position: relative; display: inline-block; line-height: 0; margin-right: 2px; }
.wordmark .mark canvas { display: none; }
.wordmark .mark-fallback { font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--navy); }
.logo-ready .wordmark .mark canvas { display: inline-block; vertical-align: baseline; }
.logo-ready .wordmark .mark-fallback { display: none; }
.wordmark .suffix { margin-left: 9px; }

/* ---------- Ladeanimation (Thinking Orb -> R) ---------- */
.intro { display: none; }
.intro-on .intro {
  display: block; position: fixed; inset: 0; z-index: 1000;
  background: var(--paper); cursor: pointer;
}
.intro canvas { display: block; width: 100%; height: 100%; }
.intro-on .site-header .mark canvas { visibility: hidden; }
.wordmark .name { font-family: var(--serif); font-size: 1.7rem; letter-spacing: -0.01em; font-variation-settings: "opsz" 30; }
.wordmark .suffix { font-size: 0.95rem; color: var(--muted); letter-spacing: 0.01em; }
.nav { display: flex; gap: 28px; font-size: 0.97rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--navy); text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 10vw, 120px) 0 clamp(56px, 8vw, 96px); }
.hero h1 { margin-bottom: 32px; }
.hero .lead { margin-bottom: 36px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.btn {
  display: inline-block; background: var(--navy); color: var(--white);
  padding: 15px 26px; border-radius: 3px; text-decoration: none; font-weight: 500;
  font-size: 1rem; transition: background-color .15s ease;
}
.btn:hover { background: var(--navy-deep); color: var(--white); text-decoration: none; }
.link-quiet { color: var(--ink); font-weight: 500; }
.hero-foot { margin-top: clamp(56px, 8vw, 96px); }
.hero-foot .akzent { margin-bottom: 18px; }
.hero-foot p { font-size: 0.97rem; color: var(--muted); max-width: none; margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  .hero-foot .akzent { transform-origin: left; animation: draw 1.1s cubic-bezier(.2,.7,.2,1) .25s both; }
  .hero-foot .akzent::before { animation: bar .6s cubic-bezier(.2,.7,.2,1) 1.1s both; }
  @keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes bar { from { width: 0; } to { width: 64px; } }
}

/* ---------- Abschnitte ---------- */
section { scroll-margin-top: 24px; }
.block { padding: clamp(64px, 9vw, 112px) 0; border-top: 1px solid var(--line); }
.block-head { margin-bottom: clamp(32px, 5vw, 56px); }
.block-head h2 { margin-bottom: 16px; max-width: 18ch; }

/* ---------- Vorher / nachher ---------- */
.compare { width: 100%; border-collapse: collapse; }
.compare th {
  text-align: left; font-weight: 500; font-size: 0.9rem; color: var(--muted);
  padding: 0 24px 14px 0; border-bottom: 1px solid var(--ink);
}
.compare td { padding: 22px 24px 22px 0; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare td:first-child { font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; width: 22%; font-variation-settings: "opsz" 24; }
.compare td.before { color: var(--muted); width: 36%; }
.compare td.after { width: 42%; }
.compare td.after strong { font-weight: 600; color: var(--navy); }
.note { margin-top: 28px; padding-left: 18px; border-left: 5px solid var(--navy); max-width: 44em; }

/* ---------- Leistungen ---------- */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.split .side { position: sticky; top: 32px; align-self: start; }
.services { list-style: none; margin: 0; padding: 0; }
.services li { padding: 30px 0; border-bottom: 1px solid var(--line); }
.services li:first-child { padding-top: 0; }
.services h3 { margin-bottom: 10px; }
.services p { margin-bottom: 10px; }
.services .result { font-size: 0.97rem; color: var(--navy); margin: 0; }
.services .result b { font-weight: 600; }

/* ---------- Ablauf (echte Reihenfolge) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 0 28px 0 0; }
.steps li::before {
  content: counter(s); display: block; font-family: var(--serif); font-size: 3.2rem; line-height: 1;
  color: var(--navy); font-variation-settings: "opsz" 72; margin-bottom: 18px;
}
.steps h3 { font-size: 1.25rem; margin-bottom: 8px; padding-top: 16px; border-top: 1px solid var(--ink); }
.steps p { font-size: 0.98rem; margin: 0; }

/* ---------- Über mich ---------- */
.about { background: var(--navy); color: #e8eef6; border-top: 0; }
.about h2 { color: var(--white); }
.about a { color: var(--white); }
.about .split { align-items: start; }
.about p { color: #d6e0ec; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.28); }
.facts li { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.18); font-size: 0.98rem; color: #e8eef6; }
.facts li span { display: block; color: #9fb3cb; font-size: 0.9rem; }
.about .akzent { background: rgba(255,255,255,.5); margin: 28px 0 0; max-width: 220px; }
.about .akzent::before { background: var(--white); }

/* ---------- FAQ ---------- */
.faq { max-width: 52em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; font-variation-settings: "opsz" 24;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 12px; height: 12px;
  border-right: 1.5px solid var(--navy); border-bottom: 1.5px solid var(--navy);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 22px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Kontakt ---------- */
.contact h2 { margin-bottom: 18px; }
.mail {
  display: inline-block; margin: 18px 0 28px; font-family: var(--serif);
  font-size: clamp(1.6rem, 4.2vw, 3rem); letter-spacing: -0.015em; line-height: 1.1;
  font-variation-settings: "opsz" 48; color: var(--navy); word-break: break-word;
}
.address { font-style: normal; color: var(--muted); line-height: 1.6; }

/* ---------- Fußzeile ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 0.92rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { color: var(--ink); }

/* ---------- Rechtstexte ---------- */
.legal { padding: clamp(40px, 7vw, 88px) 0 96px; }
.legal h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 36px; max-width: none; }
.legal h2 { font-size: 1.5rem; margin: 40px 0 12px; font-variation-settings: "opsz" 24; }
.legal p, .legal li { max-width: 42em; }
.legal ul { padding-left: 20px; }

/* ---------- Responsiv ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split .side { position: static; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}
@media (max-width: 720px) {
  .nav a:not(:last-child) { display: none; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare td { display: block; width: 100% !important; }
  .compare tr { padding: 22px 0; border-bottom: 1px solid var(--line); }
  .compare td { border: 0; padding: 0 0 8px; }
  .compare td:first-child { margin-bottom: 6px; }
  .compare td.before::before { content: "Bisher: "; font-weight: 500; }
  .compare td.after::before { content: "Mit KI: "; font-weight: 600; color: var(--navy); }
  .steps { grid-template-columns: 1fr; }
}
/* ---------- Rechtstexte: Zwischenüberschriften ---------- */
.legal h3 { font-size: 1.2rem; margin: 28px 0 8px; font-variation-settings: "opsz" 24; }
.legal h4 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 20px 0 6px; }
.legal li { margin-bottom: 6px; }
.legal h1 { hyphens: manual; overflow-wrap: break-word; }
