/* cloud97.eu – Website-Styles. Keine externen Ressourcen, Systemschriften. */

:root {
  --navy: #08162d;    /* cloud97-Hintergrund dunkel (Brand-Sheet) */
  --navy-2: #101c4f;  /* cloud97-Logo-Navy */
  --brand: #4848ff;
  --brand-hi: #6b6bff;
  --brand-ink: #3a3ae6;
  --bg: #ffffff;
  --bg-2: #f5f6fb;
  --card: #ffffff;
  --ink: #0d1628;
  --muted: #586179;
  --line: #e3e6ef;
  --brand-soft: #eeeeff;
  --link: #3a3ae6;
  --ok: #12a150;
  --warn: #d97706;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(16 28 79 / 6%), 0 8px 24px rgb(16 28 79 / 6%);
  --shadow-hi: 0 2px 4px rgb(16 28 79 / 8%), 0 18px 40px rgb(16 28 79 / 12%);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08162d;
    --bg-2: #0b1c38;
    --card: #0f2242;
    --ink: #e7ebf5;
    --muted: #9ba5bf;
    --line: #1c2f52;
    --brand-soft: rgb(72 72 255 / 16%);
    --link: #9a9aff;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
    --shadow-hi: 0 2px 4px rgb(0 0 0 / 35%), 0 18px 40px rgb(0 0 0 / 35%);
    color-scheme: dark;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand-hi); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .wrap { padding-inline: 28px; } }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--brand); color: #fff; padding: .6em 1em; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 16px; }

/* ---------- Kopfbereich ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgb(72 72 255 / 45%), transparent 60%),
    radial-gradient(40rem 26rem at -10% 110%, rgb(72 72 255 / 28%), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
}
.hero::before {
  /* feines Punktraster */
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgb(255 255 255 / 9%) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero-mark {
  position: absolute; z-index: -1;
  right: -6rem; bottom: -5rem; width: min(46rem, 80vw);
  opacity: .07;
  pointer-events: none;
}

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.topbar .logo img { height: 30px; width: auto; }
@media (min-width: 640px) { .topbar .logo img { height: 34px; } }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: rgb(255 255 255 / 82%); text-decoration: none; font-size: .95rem;
  padding: .45em .8em; border-radius: 999px;
}
.nav a:hover { color: #fff; background: rgb(255 255 255 / 9%); }
.nav .nav-link { display: none; }
@media (min-width: 760px) { .nav .nav-link { display: inline-block; } }

.hero-body { padding-block: clamp(48px, 9vw, 112px) clamp(56px, 10vw, 128px); max-width: 46rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: #c9c9ff; background: rgb(72 72 255 / 22%); border: 1px solid rgb(140 140 255 / 30%);
  padding: .35em .85em; border-radius: 999px; margin-bottom: 1.4rem;
}
.hero h1 { font-size: clamp(2.2rem, 5.6vw, 3.9rem); font-weight: 800; margin-bottom: .45em; }
.hero h1 .accent {
  background: linear-gradient(90deg, #a5a5ff, #6b6bff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgb(255 255 255 / 78%); max-width: 38rem; margin-bottom: 2rem; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1;
  padding: .95em 1.35em; border-radius: 12px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 24px rgb(72 72 255 / 35%); }
.btn-primary:hover { background: var(--brand-ink); }
.btn-ghost { color: #fff; background: rgb(255 255 255 / 8%); border-color: rgb(255 255 255 / 18%); }
.btn-ghost:hover { background: rgb(255 255 255 / 14%); }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- Abschnitte ---------- */

.section { padding-block: clamp(56px, 8vw, 96px); }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 40rem; margin-bottom: 2.25rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 750; }
.section-head p { color: var(--muted); margin: 0; }
.kicker { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: .6rem; }
@media (prefers-color-scheme: dark) { .kicker { color: var(--link); } }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

@media (max-width: 420px) { .card { padding: 20px; } .kv dt { padding-right: 12px; } }

/* Dienste */
.service { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow-hi); border-color: rgb(72 72 255 / 40%); }
.service h3 { font-size: 1.3rem; margin: 6px 0 0; }
.service p { color: var(--muted); margin: 0; flex: 1; }
.service .go { font-weight: 600; color: var(--link); display: inline-flex; align-items: center; gap: .35em; margin-top: 8px; }
.service .go svg { width: 1em; height: 1em; transition: transform .2s ease; }
.service:hover .go svg { transform: translateX(3px); }
.service-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
@media (prefers-color-scheme: dark) { .icon { color: var(--link); } }
.icon svg { width: 24px; height: 24px; }

.status {
  display: inline-flex; align-items: center; gap: .45em;
  font-size: .8rem; font-weight: 600; color: var(--muted);
  padding: .3em .7em; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line);
  white-space: nowrap;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9aa3b5; }
.status[data-state="ok"] { color: var(--ok); }
.status[data-state="ok"]::before { background: var(--ok); box-shadow: 0 0 0 3px rgb(18 161 80 / 20%); }
.status[data-state="down"] { color: var(--warn); }
.status[data-state="down"]::before { background: var(--warn); }

/* Mail-Einstellungen */
.settings h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin-bottom: 14px; }
.badge { font-size: .72rem; font-weight: 700; letter-spacing: .05em; padding: .25em .6em; border-radius: 6px; background: var(--brand-soft); color: var(--brand); }
@media (prefers-color-scheme: dark) { .badge { color: var(--link); } }
.kv { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0; }
.kv dt, .kv dd { margin: 0; padding: 11px 0; border-top: 1px solid var(--line); }
.kv dt { color: var(--muted); padding-right: 18px; font-size: .95rem; }
.kv dd { font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; text-align: right; }
.kv code { white-space: nowrap; }
.kv dt:first-of-type, .kv dd:first-of-type { border-top: 0; }
code, .mono { font-family: var(--mono); font-size: .95em; }

.copy {
  font: inherit; font-size: .78rem; font-weight: 600;
  color: var(--muted); background: transparent; border: 1px solid var(--line);
  border-radius: 8px; padding: .25em .55em; cursor: pointer; white-space: nowrap;
}
.copy:hover { color: var(--ink); border-color: var(--muted); }
.copy[data-done] { color: var(--ok); border-color: var(--ok); }

.hint { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: var(--brand-soft); color: var(--ink); font-size: .97rem; }
.hint svg { flex: none; width: 22px; height: 22px; color: var(--brand); margin-top: 2px; }
@media (prefers-color-scheme: dark) { .hint svg { color: var(--link); } }
.hint p { margin: 0; }

/* Referenzen */
.refs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.ref { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 10px; }
.ref figure {
  margin: 0; aspect-ratio: 1; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; padding: 18%;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ref img { width: 100%; height: 100%; object-fit: contain; }
.ref:hover figure { transform: translateY(-3px); box-shadow: var(--shadow-hi); }
.ref span { font-weight: 600; font-size: .95rem; }
.ref small { display: block; color: var(--muted); font-weight: 400; font-size: .85rem; }

/* Kontakt */
.cta {
  border-radius: 24px; padding: clamp(28px, 5vw, 48px);
  color: #fff;
  background:
    radial-gradient(30rem 16rem at 100% 0%, rgb(255 255 255 / 14%), transparent 60%),
    linear-gradient(135deg, var(--brand) 0%, #2e2ec4 100%);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
}
.cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .3em; }
.cta p { margin: 0; color: rgb(255 255 255 / 85%); }
.cta .btn { background: #fff; color: var(--brand-ink); }
.cta .btn:hover { background: #f0f0ff; }

.section.tight-top { padding-top: 0; }

/* Fußbereich */
.footer { padding-block: 36px 44px; color: var(--muted); font-size: .93rem; border-top: 1px solid var(--line); }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer .brand { display: flex; align-items: center; gap: 10px; }
.footer .brand img { width: 34px; height: auto; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .logo-light { display: none; } .logo-dark { display: block; } }

/* Rechtstexte */
.page-hero { padding-block: 8px 44px; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 800; margin: 26px 0 0; }
.prose { max-width: 46rem; padding-block: 48px 72px; }
.prose h2 { font-size: 1.45rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.12rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose address { font-style: normal; margin-bottom: 1em; }
.prose .meta { color: var(--muted); font-size: .92rem; }

/* Einrichtungsseite */
.muted { color: var(--muted); }
.setup { padding-top: 48px; }
.setup .card { display: flex; flex-direction: column; gap: 14px; }
.setup-title { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; margin: 0; }
.setup p { margin: 0; }
.setup-form { display: grid; gap: 8px; margin-top: 6px; }
.setup-form label { font-weight: 600; font-size: .95rem; margin-top: 6px; }
.setup-form input {
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: .8em .95em; width: 100%;
}
.setup-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgb(72 72 255 / 22%); }
.setup-form .btn { margin-top: 10px; justify-self: start; }
.steps { margin: 4px 0 0; padding-left: 1.25em; display: grid; gap: 6px; }
.note { font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.setup-cta { margin-top: 18px; }

/* 404 */
.notfound { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; text-align: center; }
.notfound .hero-body { margin-inline: auto; padding-block: 48px; }
.notfound .lead { margin-inline: auto; }
.notfound .actions { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
