/* cloudpol – Stylesheet
   Schriften lokal eingebunden (keine Verbindung zu Google, DSGVO-freundlich) */

@font-face { font-family: "Bricolage"; src: url("/fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("/fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --navy: #16324f;      /* Förde bei Nacht – Hauptfarbe, Nähe zum bisherigen #1e3a5f */
  --navy-deep: #0d2136;
  --ink: #122130;
  --muted: #53667a;
  --line: #d3dde6;
  --paper: #ffffff;
  --mist: #eef3f7;      /* kühles Hellgrau statt Creme */
  --signal: #f2c230;    /* Seezeichen-Gelb, sparsam für Handlungen */
  --signal-ink: #3b2c00;
  --ok: #2f7d54;
  --warn: #b5541c;

  --display: "Bricolage", "Segoe UI", system-ui, sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::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: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-weight: 800; font-size: clamp(2.4rem, 6.4vw, 4.6rem); }
h2 { font-weight: 800; font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 64ch; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--muted); max-width: 52ch; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: #e7eef5; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .lead, .section--navy p { color: #c3d2e0; }
.section__head { margin-bottom: clamp(28px, 5vw, 48px); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--signal); color: var(--signal-ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- Kopfzeile ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 1.45rem; color: var(--navy); text-decoration: none; letter-spacing: -0.03em; display: flex; align-items: center; gap: 9px; }
.brand__mark { width: 14px; height: 14px; background: var(--signal); border-radius: 50%; box-shadow: 0 0 0 4px var(--navy); margin-left: 4px; }
.nav { display: flex; gap: clamp(12px, 2.4vw, 28px); align-items: center; }
.nav a { white-space: nowrap; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--signal); }
.nav .nav__cta { display: none; }

@media (max-width: 720px) {
  .nav { gap: 14px; }
  .nav a { font-size: .92rem; }
  .nav .nav__hide-sm { display: none; }
}
@media (max-width: 420px) {
  .brand { font-size: 1.25rem; }
  .brand__mark { width: 11px; height: 11px; box-shadow: 0 0 0 3px var(--navy); }
  .nav { gap: 12px; }
  .nav a { font-size: .88rem; }
  .nav .nav__hide-xs { display: none; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--body); font-weight: 600; font-size: 1rem; padding: 14px 22px; border-radius: 6px; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2; }
.btn--signal { background: var(--signal); color: var(--signal-ink); }
.btn--signal:hover { background: #e4b21c; color: var(--signal-ink); }
.btn--ghost { border-color: currentColor; color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--mist); }
.section--navy .btn--ghost, .door--navy .btn--ghost { color: #fff; }
.section--navy .btn--ghost:hover, .door--navy .btn--ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Startseite: Hero mit zwei Türen ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 0; }
.hero h1 { max-width: 15ch; color: var(--navy); }
.hero .lead { margin-bottom: 0; }

.doors { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.door { padding: clamp(28px, 4.5vw, 56px) clamp(20px, 4vw, 48px) clamp(32px, 5vw, 56px); display: flex; flex-direction: column; }
.door--navy { background: var(--navy); color: #dfe8f1; }
.door--navy h2 { color: #fff; }
.door--mist { background: var(--mist); }
.door h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.door p { max-width: 42ch; }
.door ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; }
.door li { padding-left: 22px; position: relative; }
.door li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--signal); }
.door--mist li::before { background: var(--navy); }
.door .btn-row { margin-top: auto; padding-top: 28px; }
.door__price { font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin: 18px 0 0; }
.door--navy .door__price { color: var(--signal); }

.doors--lead { grid-template-columns: 1.55fr 1fr; }
.doors--lead .door--mist { justify-content: flex-start; }
@media (max-width: 760px) { .doors, .doors--lead { grid-template-columns: 1fr; } }

/* ---------- Drei Gründe ---------- */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }
.reason { border-top: 3px solid var(--navy); padding-top: 18px; }
.reason p { color: var(--muted); margin: 0; }
@media (max-width: 820px) { .reasons { grid-template-columns: 1fr; } }

/* ---------- Über mich ---------- */
.about { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.about__photo { aspect-ratio: 4 / 5; background: var(--mist) repeating-linear-gradient(135deg, transparent 0 12px, rgba(22,50,79,.06) 12px 13px); border-radius: 4px; display: flex; align-items: flex-end; padding: 12px; font-size: .85rem; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 18px 0 0; list-style: none; font-weight: 600; color: var(--navy); }
@media (max-width: 640px) { .about { grid-template-columns: 1fr; } .about__photo { max-width: 180px; } }

/* ---------- Landingpage Websites ---------- */
.lp-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 96px); display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.lp-hero h1 { color: var(--navy); font-size: clamp(2.2rem, 5.4vw, 3.9rem); }
@media (max-width: 900px) { .lp-hero { grid-template-columns: 1fr; } }

/* Der Website-Check als Beispielbericht – das Herzstück der Seite */
.report { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(13,33,54,.45); overflow: hidden; font-size: .96rem; }
.report__bar { background: var(--navy); color: #fff; padding: 14px 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.report__bar strong { font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.report__bar span { color: #b9c9d9; font-size: .85rem; }
.report__score { display: flex; align-items: center; gap: 16px; padding: 18px; border-bottom: 1px solid var(--line); }
.report__num { font-family: var(--display); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--warn); }
.report__num small { font-size: 1.1rem; color: var(--muted); font-weight: 600; }
.report__score p { margin: 0; color: var(--muted); font-size: .92rem; }
.report ol { list-style: none; margin: 0; padding: 0; }
.report li { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.report li:last-child { border-bottom: 0; }
.report__tag { font-size: .78rem; font-weight: 600; padding: 3px 0; border-radius: 3px; text-align: center; height: fit-content; }
.report__tag--bad { background: #fbe7dc; color: #8a3a0f; }
.report__tag--mid { background: #fdf3cf; color: #6b5200; }
.report__tag--good { background: #dff1e6; color: #1d5a3a; }
.report li b { display: block; font-weight: 600; }
.report li span { color: var(--muted); font-size: .9rem; }
.report__note { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }

/* Pakete */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper); }
.package { padding: clamp(24px, 3vw, 36px); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.package:last-child { border-right: 0; }
.package--main { background: var(--navy); color: #dfe8f1; }
.package--main h3 { color: #fff; }
.package__for { color: var(--muted); font-size: .95rem; min-height: 3em; }
.package--main .package__for { color: #b9c9d9; }
.package__price { font-family: var(--display); font-weight: 800; font-size: 2.5rem; line-height: 1; margin: 8px 0 20px; color: var(--navy); }
.package--main .package__price { color: var(--signal); }
.package ul { margin: 0 0 24px; padding-left: 1.1em; display: grid; gap: 6px; }
.package .btn { margin-top: auto; }
.packages--two { grid-template-columns: repeat(2, 1fr); max-width: 880px; }
.package__price small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.package--main .package__price small { color: #b9c9d9; }
.package__badge { align-self: flex-start; font-size: .8rem; font-weight: 600; background: var(--signal); color: var(--signal-ink); padding: 3px 9px; border-radius: 3px; margin-bottom: 12px; }
.fineprint { font-size: .88rem; color: var(--muted); margin-top: 18px; max-width: none; }
@media (max-width: 900px) {
  .packages, .packages--two { grid-template-columns: 1fr; }
  .package { border-right: 0; border-bottom: 1px solid var(--line); }
  .package:last-child { border-bottom: 0; }
  .package__for { min-height: 0; }
}

/* Ablauf – echte Reihenfolge, daher nummeriert */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.steps li { counter-increment: step; padding: 0 20px 0 0; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--signal); color: var(--signal-ink); font-family: var(--display); font-weight: 800; font-size: 1.1rem; margin-bottom: 16px; position: relative; z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 20px; left: 40px; right: 0; height: 2px; background: rgba(255,255,255,.22); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.15rem; }
.steps p { font-size: .96rem; }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps li { padding: 0 0 0 58px; }
  .steps li::before { position: absolute; left: 0; top: -4px; }
  .steps li::after { left: 19px; top: 40px; bottom: -26px; right: auto; width: 2px; height: auto; }
}

/* Referenzen / Konzepte */
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 28px); }
.work__item { text-decoration: none; color: inherit; display: block; }
.work__shot { aspect-ratio: 4 / 3; border-radius: 6px; border: 1px solid var(--line); overflow: hidden; position: relative; margin-bottom: 12px; }
.work__shot i { position: absolute; left: 10%; right: 10%; height: 8%; border-radius: 2px; }
.work__item h3 { font-size: 1.1rem; margin-bottom: 2px; }
.work__item p { color: var(--muted); font-size: .93rem; margin: 0; }
.tag-konzept { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 1px 7px; margin-left: 6px; vertical-align: 2px; }
@media (max-width: 820px) { .work { grid-template-columns: 1fr; max-width: 420px; } }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 32px 18px 0; list-style: none; position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-family: var(--display); font-size: 1.5rem; color: var(--navy); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 12px; }

/* IT-Betreuung */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(24px, 5vw, 64px); }
.service { padding: 24px 0; border-top: 1px solid var(--line); }
.service p { color: var(--muted); margin: 0; }
@media (max-width: 720px) { .services { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); }
.split ul { padding-left: 1.1em; display: grid; gap: 8px; margin: 0; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.contact__card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 8px; padding: 24px; }
.contact__card dl { margin: 0; display: grid; gap: 14px; }
.contact__card dt { font-size: .85rem; color: #9fb4c8; }
.contact__card dd { margin: 0; font-weight: 600; }
.contact__card a { color: #fff; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

/* Rechtstexte */
.legal { max-width: 760px; padding: clamp(40px, 7vw, 80px) 0; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); color: var(--navy); }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal .todo { background: #fdf3cf; padding: 1px 5px; border-radius: 3px; }
.notice { background: var(--mist); border-left: 4px solid var(--signal); padding: 14px 18px; margin: 0 0 28px; }

/* Fußzeile */
.site-footer { background: var(--navy-deep); color: #9fb4c8; padding: 36px 0; font-size: .92rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: #dfe8f1; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer p { margin: 0; }
