/* OnStash – statische Website */

@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("../fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 600; font-display: swap; src: url("../fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("../fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --ink: #17262C;
  --text: #24353B;
  --muted: #56666C;
  --line: #D8E2E6;
  --mist: #EEF4F6;
  --paper: #FFFFFF;
  --night: #13242A;
  --night-text: #C2D0D5;
  --cyan: #4CC5DE;
  --teal: #0B7285;
  --teal-dark: #08586A;
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1180px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); letter-spacing: -0.015em; margin: 0; hyphens: auto; overflow-wrap: break-word; }
h1 { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.04; font-weight: 600; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; font-weight: 600; }
h3 { font-size: 21px; line-height: 1.3; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--paper); padding: 8px 14px; }

/* Buttons – absichtlich ohne Funktion, wo type="button" */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-cyan { background: var(--cyan); color: var(--night); }
.btn-cyan:hover { background: #7AD6E8; color: var(--night); }
.btn-ghost { background: transparent; color: #fff; border-color: #3B5560; }
.btn-ghost:hover { border-color: var(--cyan); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; min-height: 72px; padding-top: 8px; padding-bottom: 8px; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 15px; font-weight: 500; }
.nav > a, .nav-group > button { color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 8px; background: none; border: 0; font: inherit; cursor: pointer; }
.nav > a:hover, .nav-group > button:hover, .nav > a[aria-current="page"] { background: var(--mist); color: var(--ink); }
.nav > a.btn { margin-left: 8px; min-height: 44px; padding: 0 18px; font-size: 15px; font-weight: 600; background: var(--teal); color: #fff; }
.nav > a.btn:hover { background: var(--teal-dark); color: #fff; }
.nav-group { position: relative; }
.nav-group > button::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.nav-menu { position: absolute; left: 0; top: 100%; min-width: 320px; padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(19,36,42,0.12); display: none; }
.nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu { display: block; }
.nav-menu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.nav-menu a:hover { background: var(--mist); }
.nav-menu small { display: block; color: var(--muted); font-size: 13px; }

/* Breadcrumb */
.crumbs { font-size: 14px; color: var(--night-text); margin-bottom: 28px; }
.crumbs a { color: var(--night-text); }
.crumbs span[aria-current] { color: #fff; }

/* Hero (Startseite) */
.hero { background: var(--night); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.hero h1 { color: #fff; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero-copy p { font-size: 19px; color: var(--night-text); max-width: 34em; }
.hero-stack { position: relative; min-height: 420px; }
.hero-stack figure { margin: 0; position: absolute; background: #fff; border-radius: 12px; padding: 6px; box-shadow: 0 24px 60px rgba(0,0,0,0.35); }
.hero-stack .shot-a { top: 0; right: -60px; width: 108%; }
.hero-stack .shot-b { bottom: 0; left: 0; width: 64%; }
.hero-stack img { border-radius: 8px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; color: var(--night-text); padding-top: 4px; }
.hero-note span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--cyan); }

/* Page hero (Unterseiten) */
.page-hero { background: var(--night); color: #fff; }
.page-hero .wrap { padding-top: 64px; padding-bottom: 72px; }
.page-hero h1 { color: #fff; max-width: 15em; }
.page-hero .lede { font-size: 19px; color: var(--night-text); max-width: 40em; margin-top: 20px; }
.page-hero .btn-row { margin-top: 32px; }
.product-tag { display: inline-block; font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--cyan); margin-bottom: 14px; }

/* Sections */
.section { padding: 96px 0; }
.section-mist { background: var(--mist); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 46em; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* Produktliste Startseite */
.product-list { border-top: 1px solid var(--line); }
.product-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.product-row:hover { background: linear-gradient(90deg, var(--mist), transparent); }
.product-row strong { font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--ink); }
.product-row .title { font-family: var(--display); font-size: 19px; font-weight: 500; color: var(--ink); }
.product-row .desc { color: var(--muted); font-size: 16px; margin-top: 4px; }
.product-row .more { color: var(--teal); font-weight: 600; font-size: 15px; white-space: nowrap; }

/* Split-Blöcke */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 64px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split + .split { margin-top: 112px; }
.split .copy { display: flex; flex-direction: column; gap: 18px; }
.split .copy p { color: var(--muted); }
.frame { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
.frame img { border-radius: 8px; width: 100%; }
.frame figcaption { font-size: 14px; color: var(--muted); padding: 10px 6px 2px; }
.plain-figure { margin: 0; }
.plain-figure img { margin: 0 auto; }

/* Listen */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--cyan); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 9px; width: 8px; height: 5px; border-left: 2px solid var(--night); border-bottom: 2px solid var(--night); transform: rotate(-45deg); }
.questions { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.questions li { padding: 18px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; font-weight: 500; color: var(--ink); }

/* Praxisbeispiel */
.case { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.case > div { padding: 40px; display: flex; flex-direction: column; gap: 14px; }
.case > div + div { border-left: 1px solid var(--line); background: #F7FBFC; }
.case .label { font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--teal); }
.case p { color: var(--muted); }

/* Kacheln (Hosting, Vorteile) */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.tile { padding: 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.tile p { color: var(--muted); font-size: 16px; }

/* Dunkles Band */
.band { background: var(--night); color: #fff; padding: 88px 0; }
.band h2, .band h3 { color: #fff; }
.band .tiles { gap: 36px; }
.band .pillar { border-top: 2px solid var(--cyan); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.band .pillar p { color: var(--night-text); font-size: 16px; }

/* CTA */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: 48px; border-radius: 18px; background: var(--mist); border: 1px solid var(--line); }
.cta .copy { display: flex; flex-direction: column; gap: 10px; flex: 1 1 420px; max-width: 36em; }
.cta .btn-row { flex: 0 1 auto; }
.section.flush { padding-top: 0; }
.cta p { color: var(--muted); }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.faq-toc { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.faq-toc a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 8px; }
.faq-toc a:hover { background: var(--mist); }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { font-size: 28px; margin-bottom: 20px; scroll-margin-top: 100px; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--ink); }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 8px; top: 26px; width: 10px; height: 10px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: rotate(-135deg); top: 31px; }
@media (prefers-reduced-motion: reduce) { summary::after { transition: none; } }
details .answer { padding: 0 0 24px; color: var(--muted); display: flex; flex-direction: column; gap: 12px; max-width: 46em; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.contact-grid .tile strong { color: var(--ink); }
dl.facts { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 20px; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; color: var(--ink); }

/* Rechtstexte */
.legal { max-width: 46em; }
.legal h2 { font-size: 26px; margin: 48px 0 14px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 19px; margin: 28px 0 10px; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0; padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal address { font-style: normal; }

/* Footer */
.site-footer { background: var(--night); color: var(--night-text); font-size: 15px; }
.site-footer .wrap { padding-top: 64px; padding-bottom: 32px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-top img { height: 36px; width: auto; margin-bottom: 16px; }
.footer-top h3 { font-family: var(--body); font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 12px; letter-spacing: 0; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--night-text); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid #284049; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap, .split, .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .split.flip > :first-child { order: 0; }
  .hero-stack { min-height: 0; display: grid; gap: 16px; }
  .hero-stack figure, .hero-stack .shot-a { position: static; width: 100%; }
  .hero-stack .shot-b { display: none; }
  .faq-toc { position: static; flex-direction: row; flex-wrap: wrap; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-header { position: static; }
  .nav > a.btn { margin-left: 0; }
  .section { padding: 64px 0; }
  .product-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .checks.two, .case { grid-template-columns: minmax(0, 1fr); }
  .case > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .case > div, .cta { padding: 28px; }
  .nav-menu { position: static; box-shadow: none; min-width: 0; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
}
