/* IT-Check Kontakt – Design nach Flyer "Unser IT-Check" (SELECT-IT & ahakon)
   Aufbau der Startseite nach dem Golden Circle: Warum -> Wie -> Was (mit Buchung als Abschluss). */
@font-face { font-family: "IBM Plex Sans"; font-weight: 300; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-300-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: 700; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Serif"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Serif"; font-weight: 700; font-style: italic; font-display: swap; src: url("../fonts/ibm-plex-serif-latin-700-italic.woff2") format("woff2"); }

:root {
  --navy: #00365d;
  --navy-2: #0b4a78;
  --accent: #2a6f9e;
  --sky: #eff5fa;
  --sky-2: #e3f0f8;
  --circle: #dceaf4;
  --ink: #111418;
  --muted: #5d6670;
  --line: #c9d6e0;
  --rule: #a9cde4;
  --white: #ffffff;
  --danger: #b3261e;
  --ok: #1e7b3c;
  --radius: 3px;
  --serif: "IBM Plex Serif", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--sky); line-height: 1.45; }
a { color: var(--navy); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
img { max-width: 100%; height: auto; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------------ Seitengerüst (US-07/US-08/US-10)
   Ziel: auf 1920 x 950 px (Full HD abzüglich Browserleisten) ohne Scrollen vollständig sichtbar,
   auch mit allen Fehlermeldungen. */
.page {
  max-width: 1880px; margin: 0 auto; min-height: 100vh;
  padding: 12px 40px 8px; display: flex; flex-direction: column;
  background: var(--white) radial-gradient(ellipse 60% 70% at 100% 0, var(--sky-2) 0, rgba(227,240,248,0) 100%) no-repeat;
}
.page > main { flex: 1; display: flex; flex-direction: column; }

.topbar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.brands { display: flex; align-items: center; gap: 30px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img.si { height: 44px; width: auto; }
.brand img.ah { height: 26px; width: auto; }
.brand-note { font-size: .74rem; font-weight: 300; line-height: 1.3; color: var(--ink); }
.brand-note::first-line { color: var(--accent); }
.tagline { margin: 0; text-align: center; color: var(--accent); font-weight: 300; letter-spacing: .34em; font-size: .8rem; }
.tagline span { margin: 0 .6em; }
.top-contact { margin: 0; display: flex; gap: 24px; }
.top-contact a { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; color: var(--ink); white-space: nowrap; font-size: 1rem; }
.top-contact img { width: 17px; height: 17px; }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .74rem; color: var(--muted); font-weight: 300; padding-top: 7px; border-top: 1px solid var(--line); }
.foot nav a { margin-left: 14px; color: var(--muted); }

/* Typografie nach Flyer: Headlines Serif Bold Italic, gesperrte Versalien für Abschnittstitel */
h1 { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: clamp(2.6rem, 4.4vw, 5.4rem); line-height: .98; letter-spacing: -.01em; margin: 6px 0 18px; }
h1::after { content: ""; display: block; width: 96px; height: 3px; background: var(--accent); margin-top: 18px; }
h2 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.2; margin: 0 0 8px; }
h2 em, h3 em { font-weight: 700; }
.section-title { display: flex; align-items: center; gap: 16px; font-family: var(--sans); letter-spacing: .3em; font-weight: 400; font-size: .84rem; line-height: 1.3; text-transform: uppercase; margin: 0 0 12px; width: 100%; color: var(--ink); }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

/* ------------------------------------------------------------------ Golden Circle: drei Spalten */
.gc { flex: 1; display: grid; grid-template-columns: minmax(0, .74fr) minmax(0, 1.16fr) minmax(0, 1.14fr); gap: 52px; padding: 14px 0 10px; align-items: stretch; }
.gc > section { min-width: 0; }

/* Warum */
.gc-why { display: flex; flex-direction: column; }
.slogan { margin: 4px 0 6px; font-weight: 300; letter-spacing: .32em; font-size: 1.15rem; line-height: 1.5; max-width: 16em; }
.mission-title { font-size: 1.75rem; margin: 0 0 10px; }
.mission { margin: 0; font-size: 1.04rem; line-height: 1.6; font-weight: 400; max-width: 34em; }
.mission strong { font-weight: 700; }
/* „Unser“ / „IT-Check“ auf zwei Zeilen wie im Flyer, nie am Bindestrich trennen */
.nobr { white-space: nowrap; }
.gc-why h1 { font-size: clamp(2.6rem, 3.9vw, 4.6rem); }
.gc-why h1 .nobr { display: block; }
.why-visual { flex: 1; min-height: 140px; margin: 22px 0 0 -40px; border-top-right-radius: 100% 38%; background: url("../img/hero.jpg") 78% 100% / cover no-repeat; }

/* Wie */
.kicker { font-family: var(--sans); font-weight: 500; font-size: .98rem; letter-spacing: .24em; line-height: 1.6; text-transform: uppercase; color: var(--accent); margin: 4px 0 12px; max-width: 24em; }
.lead { font-size: 1.1rem; line-height: 1.5; margin: 0 0 20px; font-weight: 300; }
.lead strong { font-weight: 700; }
.modules, .benefits { list-style: none; margin: 0; padding: 0; }
.modules { display: grid; gap: 12px; margin-bottom: 20px; }
.gc-how .modules { flex: 1; align-content: space-evenly; }
.module { display: grid; grid-template-columns: 58px 176px 1fr; gap: 16px; align-items: center; }
.module .ic { width: 58px; height: 58px; border-radius: 50%; background: var(--circle); display: grid; place-items: center; }
.module .ic img { width: 30px; }
.module .t { font-weight: 700; font-size: 1.2rem; line-height: 1.15; }
.module .t small { display: block; font-weight: 400; font-size: .88rem; margin-top: 2px; }
.module .d { font-weight: 300; font-size: .93rem; line-height: 1.4; }

.gc-how { display: flex; flex-direction: column; }
.steps {
  margin-top: auto; color: var(--white); padding: 18px 20px 20px;
  background: linear-gradient(180deg, rgba(0, 54, 93, .15) 0, rgba(6, 22, 36, .55) 55%, rgba(6, 22, 36, .78) 100%), url("../img/berge.jpg") center 30% / cover no-repeat var(--navy);
}
.steps-title { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 1.7rem; line-height: 1.1; margin: 0 0 16px; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.25fr); gap: 12px; }
.steps li { position: relative; display: flex; flex-direction: column; gap: 4px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 21px; left: 54px; right: -8px; height: 2px; background: var(--white); opacity: .85; }
.steps .num { width: 42px; height: 42px; border-radius: 50%; background: var(--sky-2); color: var(--ink); display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 1.35rem; margin-bottom: 6px; }
.steps b { font-weight: 700; font-size: .98rem; line-height: 1.2; }
.steps li > span:last-child { font-size: .82rem; line-height: 1.35; color: var(--sky); overflow-wrap: break-word; }

/* Was */
.gc-what { display: flex; flex-direction: column; }
.gc-what > .section-title { margin-top: 8px; }
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; margin-bottom: 16px; }
.benefits li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; font-weight: 400; font-size: .96rem; line-height: 1.3; }
.benefits li b { font-weight: 700; display: block; }
.tick { width: 40px; height: 40px; border-radius: 50%; background: var(--circle); display: grid; place-items: center; }
.tick::before { content: ""; width: 14px; height: 7px; border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(-45deg) translate(1px, -2px); }

.booking { flex: 1; display: flex; flex-direction: column; background: var(--white); border: 1px solid #d7e3ec; box-shadow: 0 12px 32px rgba(0, 54, 93, .12); }
.booking-head { background: var(--navy); color: var(--white); padding: 11px 22px 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 6px 18px; flex-wrap: wrap; }
.booking-head h2 { font-style: italic; font-weight: 700; font-size: 1.65rem; margin: 0; }
.price { margin: 0; font-size: 1rem; font-weight: 300; }
.price b { white-space: nowrap; font-weight: 700; font-size: 1.15rem; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.booking form { flex: 1; display: flex; flex-direction: column; padding: 11px 22px 16px; }
.booking .form-grid { flex: 1; grid-template-rows: auto auto auto minmax(0, 1fr) auto auto; }
.booking .field textarea { flex: 1; max-height: 260px; }

/* Formularelemente (auch CRM) */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 18px; }
.field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 4px; }
label, legend, .label { font-weight: 500; font-size: .9rem; }
.req { color: var(--accent); }
.opt { font-weight: 300; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=password], textarea, select {
  font: inherit; font-size: .98rem; padding: 7px 11px; border: 1px solid #b7c7d4; border-radius: var(--radius); background: var(--white); color: var(--ink); width: 100%;
}
textarea { resize: vertical; min-height: 46px; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(42,111,158,.35); border-color: var(--accent); }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.check { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; line-height: 1.4; }
input[type=radio], input[type=checkbox] { accent-color: var(--navy); width: 18px; height: 18px; margin-top: 2px; flex: none; }
input[type=checkbox]:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.error { color: var(--danger); font-size: .8rem; line-height: 1.25; }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.alert { padding: 6px 12px; border-radius: var(--radius); background: #fdecea; color: var(--danger); margin: 0 0 8px; font-size: .9rem; border-left: 3px solid var(--danger); }
.alert.ok { background: #e8f5ec; color: var(--ok); border-left-color: var(--ok); }

/* Kontaktweg als Umschalter (radios, ohne JavaScript) */
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 3px; background: var(--sky); width: max-content; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented label { padding: 4px 18px; border-radius: 999px; cursor: pointer; font-weight: 500; font-size: .9rem; color: var(--muted); }
.segmented input:checked + label { background: var(--navy); color: var(--white); }
.segmented input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.toggle { flex-direction: row; align-items: center; gap: 16px; }
.toggle legend { float: left; margin: 0 16px 0 0; padding-top: 5px; }

.captcha altcha-widget { display: block; max-width: 360px; --altcha-max-width: 360px; }

/* Primäre Call to Action: ein Button, Weiß auf Navy ca. 12,5:1 (WCAG AAA), volle Breite */
.btn { font: inherit; font-weight: 500; border: 0; cursor: pointer; border-radius: var(--radius); padding: 10px 22px; background: var(--navy); color: var(--white); text-decoration: none; display: inline-block; }
.btn:hover { background: var(--navy-2); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn.cta { width: 100%; margin-top: 12px; padding: 13px 22px; font-size: 1.28rem; font-weight: 700; letter-spacing: .02em; min-height: 54px; box-shadow: 0 6px 16px rgba(0, 54, 93, .25); }
.btn.ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn.danger { background: var(--danger); }
.btn.small { padding: 6px 12px; font-size: .9rem; }
.cta-jump { display: none; }

/* Unterseiten (Danke, Datenschutz, Fehler, Pause) */
main:has(> .content) { background: url("../img/hero.jpg") right bottom / auto 62% no-repeat; }
.content { max-width: 780px; padding: 34px 0 40px; }
.content h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.content h2 { margin-top: 22px; }
.content .section-title { margin-top: 26px; }
.content p { line-height: 1.6; }
.content .lead { font-size: 1.15rem; }
.content ol { list-style: none; counter-reset: step; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.content ol li { counter-increment: step; position: relative; min-height: 40px; padding: 9px 0 0 56px; line-height: 1.45; }
.content ol li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--sky-2); display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 1.25rem; }

/* ------------------------------------------------------------------ Responsiv: unter 1100 px gestapelt */
@media (max-width: 1500px) {
  .brand-note { display: none; }
  .module { grid-template-columns: 54px 1fr; row-gap: 4px; }
  .module .ic { width: 54px; height: 54px; }
  .module .d { grid-column: 2; }
}
@media (max-width: 1100px) {
  .topbar { grid-template-columns: 1fr auto; }
  .tagline { grid-column: 1 / -1; grid-row: 2; }
  .gc { grid-template-columns: 1fr; gap: 34px; }
  .why-visual { flex: none; height: 200px; margin: 18px -40px 0; border-top-right-radius: 0; border-top-left-radius: 70% 60%; }
  .booking { flex: none; }
  .gc-how .modules { flex: none; }
  .cta-jump { display: block; text-align: center; font-weight: 700; font-size: 1.1rem; padding: 12px; margin: 18px 0 0; }
  main:has(> .content) { background-size: auto 40%; }
}
@media (max-width: 640px) {
  .page { padding: 10px 16px; }
  .topbar { grid-template-columns: 1fr; gap: 8px; }
  .brands { gap: 18px; }
  .brand img.si { height: 40px; }
  .brand img.ah { height: 22px; }
  .tagline { grid-row: auto; letter-spacing: .12em; font-size: .74rem; }
  .tagline span { margin: 0 .3em; }
  .top-contact { flex-wrap: wrap; gap: 6px 18px; }
  h1 { font-size: 3rem; }
  .why-visual { margin: 14px -16px 0; height: 150px; }
  .steps { margin: 0 -16px; padding: 18px 16px; background: linear-gradient(180deg, rgba(0, 54, 93, .35) 0, rgba(6, 22, 36, .72) 45%, rgba(6, 22, 36, .85) 100%), url("../img/berge.jpg") 70% 0 / auto 60% no-repeat var(--navy); }
  .steps ol { grid-template-columns: 1fr; gap: 14px; }
  .steps li { display: grid; grid-template-columns: 42px 1fr; column-gap: 14px; row-gap: 2px; }
  .steps .num { grid-row: 1 / span 2; margin: 0; }
  .steps li:not(:last-child)::after { top: 46px; bottom: -14px; left: 20px; right: auto; width: 2px; height: auto; }
  .form-grid, .benefits { grid-template-columns: 1fr; }
  .booking { margin: 0 -16px; border-left: 0; border-right: 0; }
  .booking-head, .booking form { padding-left: 16px; padding-right: 16px; }
  .toggle { flex-direction: column; align-items: flex-start; gap: 4px; }
  .foot nav a { margin: 0 14px 0 0; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* ------------------------------------------------------------------ CRM */
.crm-top { background: var(--navy); color: var(--white); }
.crm-top .bar { max-width: 1200px; margin: 0 auto; padding: 12px 20px; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.crm-top .brand { font-family: "IBM Plex Serif", serif; font-style: italic; font-weight: 700; font-size: 1.3rem; color: var(--white); text-decoration: none; margin-right: auto; }
.crm-top a { color: var(--white); text-decoration: none; }
.crm-top form { margin: 0; }
.crm-top .who { font-weight: 300; font-size: .9rem; }
.crm-main { max-width: 1200px; margin: 0 auto; padding: 24px 20px 60px; }
.card { background: var(--white); border: 1px solid #dde6ee; border-radius: 6px; padding: 20px 22px; margin-bottom: 20px; }
.narrow { max-width: 460px; margin: 60px auto; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; margin-bottom: 16px; }
.toolbar .field { min-width: 180px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { padding: 4px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .9rem; }
.chip.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--white); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e4ebf1; vertical-align: top; font-size: .95rem; }
th { font-weight: 500; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; background: var(--sky-2); color: var(--navy); white-space: nowrap; }
.badge.neu { background: #fff4d6; color: #7a5600; }
.badge.termin { background: #e1f3e6; color: var(--ok); }
.badge.abgelehnt { background: #f3e1e1; color: var(--danger); }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.notes { list-style: none; padding: 0; margin: 0 0 16px; }
.notes li { border-left: 3px solid var(--line); padding: 4px 12px; margin-bottom: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.notes small { color: var(--muted); display: block; }
.two { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.qr svg { width: 220px; height: 220px; }
code.secret { font-size: 1rem; letter-spacing: .1em; background: var(--sky); padding: 4px 8px; overflow-wrap: anywhere; }
.inline { display: inline; }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; } .kv { grid-template-columns: 1fr; } }
.btn.on-dark { color: var(--white); border-color: var(--white); }
.section-title { font-family: "IBM Plex Sans", system-ui, sans-serif; width: 100%; }
legend.section-title { display: flex; }
