/* HCTS – Hildwein Computer Training & Services */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #eef2f6;
  --text: #16202c;
  --muted: #5a6878;
  --line: #dde3ea;
  --accent: #1a6fc4;
  --accent-strong: #135799;
  --accent-soft: #e4f1fe;
  --hero-from: #0c1f35;
  --hero-to: #143a63;
  --radius: 14px;
  --max: 1120px;
  --shadow: 0 1px 2px rgba(16, 32, 48, .06), 0 8px 24px rgba(16, 32, 48, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e141b;
    --surface: #151d26;
    --surface-2: #1b2530;
    --text: #e6ecf2;
    --muted: #9aa8b6;
    --line: #26323f;
    --accent: #4caafc;
    --accent-strong: #7cc2fd;
    --accent-soft: #14283f;
    --hero-from: #08131c;
    --hero-to: #0f2b3b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .6em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 800; font-size: .95rem; letter-spacing: .02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.02rem; }
.brand-text span { font-size: .78rem; color: var(--muted); }
.menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a {
  display: block; padding: 8px 14px; border-radius: 8px; text-decoration: none;
  color: var(--text); font-weight: 500; font-size: .96rem;
}
.menu a:hover { background: var(--surface-2); color: var(--text); }
.menu .cta { background: var(--accent); color: #fff; }
.menu .cta:hover { background: var(--accent-strong); color: #fff; }
.menu-toggle { display: none; }
.menu-btn { display: none; }
@media (max-width: 820px) {
  .menu-btn {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
    border: 1px solid var(--line); cursor: pointer; background: var(--surface);
  }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after {
    content: ""; display: block; width: 20px; height: 2px; background: var(--text); position: relative;
  }
  .menu-btn span::before { position: absolute; top: -6px; }
  .menu-btn span::after { position: absolute; top: 6px; }
  .menu {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 16px 16px;
  }
  .menu a { padding: 12px 14px; }
  .menu-toggle:checked ~ .menu { display: flex; }
}

/* Hero */
.hero {
  background: radial-gradient(1200px 500px at 85% -10%, rgba(76, 170, 252, .25), transparent 60%),
              linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: #eef5f9; padding: 88px 0 96px;
}
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: #a6d4fe; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: #7cc2fd; }
.hero p.lead { font-size: 1.15rem; color: #c9dbe6; max-width: 38em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 10px;
  font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: background .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #4caafc; color: #06213d; }
.btn-primary:hover { background: #7cc2fd; color: #06213d; }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.portrait {
  justify-self: end; width: 100%; max-width: 340px; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden;
  background: linear-gradient(160deg, #1d5571, #0b2a3b); box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  position: relative; display: grid; place-items: center;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.portrait .initials { font-size: 4.5rem; font-weight: 800; color: rgba(255, 255, 255, .25); }
.stats { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .15); }
.stats div strong { display: block; font-size: 1.8rem; color: #fff; }
.stats div span { font-size: .9rem; color: #a9c2d1; }
@media (max-width: 820px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .portrait { justify-self: start; max-width: 220px; order: -1; }
}

/* Sections */
section { padding: 88px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head .kicker { color: var(--accent); font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
@media (max-width: 820px) { section { padding: 64px 0; } }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
section.alt .card { background: var(--bg); }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card h3 { display: flex; align-items: center; gap: 10px; }
.icon {
  width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
}
.icon svg { width: 20px; height: 20px; }
.card p { color: var(--muted); margin: 0; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding: 12px 14px 12px 44px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
section.alt .checklist li { background: var(--bg); }
.checklist li::before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.quote {
  border-left: 4px solid var(--accent); padding: 6px 0 6px 20px; margin: 0 0 24px;
  font-size: 1.2rem; font-style: italic; color: var(--text);
}
.callout {
  margin-top: 28px; padding: 22px 24px; border-radius: var(--radius); background: var(--accent-soft);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.callout p { margin: 0; font-weight: 600; }
.callout .btn { background: var(--accent); color: #fff; }
.callout .btn:hover { background: var(--accent-strong); color: #fff; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 28px 40px; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--accent);
}
.timeline .when { font-weight: 700; color: var(--accent); font-size: .92rem; }
.timeline h3 { margin: 2px 0 4px; font-size: 1.05rem; }
.timeline p { color: var(--muted); margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .label { display: block; font-size: .82rem; color: var(--muted); }
.contact-list a { font-weight: 600; text-decoration: none; }

/* Footer */
.site-footer { padding: 36px 0; color: var(--muted); font-size: .92rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--muted); }

/* Legal page */
.legal { padding: 56px 0 72px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.6em; }
.legal ul { padding-left: 1.2em; }

/* Utilities (keine Inline-Styles -> strenge CSP möglich) */
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: 24px; }
.mt-lg { margin-top: 48px; }
.muted { color: var(--muted); }
.portrait img { color: transparent; }
.menu-static, .menu-toggle:checked ~ .menu-static {
  display: flex !important; position: static; padding: 0; border: 0; background: none; flex-direction: row;
}

/* Original-Logo */
.nav { height: 76px; }
.brand-logo { height: 54px; width: auto; }
@media (max-width: 820px) { .menu { top: 76px; } .brand-logo { height: 46px; } }
@media (prefers-color-scheme: dark) {
  /* Logo hat schwarze Schrift -> heller Hintergrund im Dark Mode */
  .brand-logo { background: #fff; border-radius: 10px; padding: 4px 8px; }
}
@media (prefers-color-scheme: dark) {
  .menu .cta, .menu .cta:hover, .callout .btn, .callout .btn:hover { color: #06213d; }
}
