/* terraserver websolutions – Entwurf Relaunch 2026
   Ohne jQuery/Parallax. Farben als Variablen.
   Graustufen nach alter Seite und Logo (#333, #2b2b2b, #454545, #939393). */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --text: #333333;
  --muted: #6c6c6c;
  --line: #e4e4e4;
  --accent: #454545;
  --accent-strong: #2b2b2b;
  --accent-soft: #efefef;
  --hero-1: #2b2b2b;
  --hero-2: #454545;
  --footer: #333333;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16,32,42,.06), 0 8px 24px rgba(16,32,42,.06);
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Dosis", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1b1b; --bg-alt: #232323; --text: #e8e8e8; --muted: #aeaeae;
    --line: #383838; --accent: #cfcfcf; --accent-strong: #ffffff; --accent-soft: #2e2e2e;
    --footer: #111111;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 106px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--accent-strong); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .6em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--bg); padding: 8px 12px; }

/* Kopf */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 98px; gap: 16px; }
.brand { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; color: var(--text); line-height: 1.1; }
.brand img { height: 65px; width: auto; max-width: none; object-fit: contain; }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; }
.claim { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--accent); }
.nav .nav-call { background: var(--accent-strong); color: #fff; padding: 9px 16px; border-radius: 999px; }
.nav .nav-call:hover { background: var(--accent); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .2s; }

/* Hero: Tiefeneffekt per CSS statt parallax.js */
.hero { position: relative; overflow: hidden; color: #fff; isolation: isolate; }
.hero-bg { position: absolute; inset: -20% 0 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 85% 20%, rgba(147,147,147,.35), transparent 60%),
    radial-gradient(50% 60% at 10% 90%, rgba(95,95,95,.45), transparent 60%),
    linear-gradient(140deg, var(--hero-1), #363636 55%, var(--hero-2));
}
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000 30%, transparent 90%); }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-bg { animation: drift linear both; animation-timeline: scroll(); animation-range: 0 100vh; }
    @keyframes drift { to { transform: translateY(18%); } }
  }
}
.hero-inner { padding: clamp(80px, 14vw, 150px) 0 clamp(70px, 10vw, 120px); max-width: 820px; margin-left: max(16px, (100% - 1120px) / 2); }
.hero .eyebrow { color: #d6d6d6; }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: rgba(255,255,255,.88); max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 18px; }
.hero-note { font-size: 1rem; color: rgba(255,255,255,.7); margin: 0; }
.btn { display: inline-block; padding: 13px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700; }
.btn-primary { background: var(--accent); color: #fff; }
.hero .btn-primary { background: #fff; color: #2b2b2b; }
.btn-primary:hover { background: var(--accent-strong); color: #fff; }
.hero .btn-primary:hover { background: #e4e4e4; color: #2b2b2b; }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }

/* Abschnitte */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--bg-alt); }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.checks { list-style: none; padding: 0; margin: 1.2em 0 0; }
.checks li { position: relative; padding-left: 32px; margin-bottom: .7em; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.checks li::after { content: ""; position: absolute; left: 7px; top: .62em; width: 5px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tool-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.tags { list-style: none; padding: 0; margin: 0 0 1em; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: var(--accent-soft); color: var(--accent-strong); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .9rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card p { color: var(--muted); margin: 0; }
.card:first-child { background: var(--accent-soft); border-color: var(--accent); }
.icon { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.card:first-child .icon { fill: var(--accent); }
.network-note { margin-top: 32px; padding: 18px 22px; border-left: 4px solid var(--accent); background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0; color: var(--muted); }
.network-note strong { color: var(--text); }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--bg); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; }

/* Kontakt */
.contact-direct { font-size: 1.25rem; font-weight: 700; line-height: 1.9; }
.contact-direct a { text-decoration: none; }
.form { display: grid; gap: 14px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form input, .form textarea { font: inherit; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .85rem; color: var(--muted); }
.form .check input { margin-top: 4px; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.form-msg { padding: 12px 14px; border-radius: 10px; margin: 0; }
.form-msg.ok { background: #e3f6e8; color: #17602b; }
.form-msg.err { background: #fbe6e6; color: #8a1f1f; }

/* Fuß */
.site-footer { background: var(--footer); color: rgba(255,255,255,.8); padding: 48px 0 24px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; font-size: .85rem; color: rgba(255,255,255,.55); }

/* Einblenden */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsiv */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 98px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .nav-call { margin-top: 12px; text-align: center; border: 0; }
  .split, .cards, .steps, .footer-grid { grid-template-columns: 1fr; }
}

/* Über mich / Trust-Elemente (02.11.2026) */
.section-stats { background: var(--hero-1); color: #fff; padding: clamp(48px, 7vw, 80px) 0; }
.stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stats li { border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 28px 16px; text-align: center; background: rgba(255,255,255,.04); }
.stats strong { display: block; font-family: var(--font-head); font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.stats span { display: block; font-size: .95rem; color: rgba(255,255,255,.75); margin-top: 8px; letter-spacing: .02em; }
@media (max-width: 560px) { .stats { gap: 10px; } .stats li { padding: 18px 6px; } .stats span { font-size: .8rem; } }

/* Unterseiten: Impressum, Datenschutz (02.11.2026) */
.page-hero { position: relative; overflow: hidden; color: #fff; isolation: isolate; padding: clamp(44px, 7vw, 80px) 0; }
.page-hero-bg { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 90% at 85% 10%, rgba(147,147,147,.35), transparent 60%), linear-gradient(140deg, var(--hero-1), #363636 55%, var(--hero-2)); }
.page-hero h1 { margin: 0; }
.legal-inner { max-width: 820px; }
.legal h4, .legal h5 { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; margin: 2em 0 .5em; line-height: 1.2; }
.legal h6 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; margin: 1.6em 0 .4em; }
.legal-inner > :first-child { margin-top: 0; }
.legal p, .legal li { color: var(--text); }
.legal a { word-break: break-word; }

.legal ul { padding-left: 1.3em; margin: 0 0 1em; }
.legal li { margin-bottom: .3em; }
