/* ============================================================
   IT Servicegroup – Stylesheet (zurückhaltend / klassisch)
   ============================================================ */
@import url("assets/fonts/fonts.css");

:root {
  --navy:      #0e1b2e;
  --navy-2:    #16273d;
  --blue:      #15558d;
  --blue-dark: #114571;
  --text:      #232c38;
  --muted:     #5d6877;
  --bg:        #ffffff;
  --bg-alt:    #f3f6f9;
  --line:      #e1e7ee;
  --radius:    8px;
  --shadow:    0 1px 3px rgba(20, 40, 70, .08);
  --shadow-md: 0 6px 18px rgba(20, 40, 70, .10);
  --shadow-lg: 0 16px 40px rgba(20, 40, 70, .16);
  --container: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  font-family: "Open Sans", Arial, "Segoe UI", Helvetica, sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.7; font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: min(var(--container), 92%); margin-inline: auto; }
section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }

h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; color: var(--navy); }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.18rem; }

.section-head { max-width: 740px; margin-bottom: 42px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { position: relative; padding-bottom: 16px; }
.section-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: var(--blue); }
.section-head.center h2::after { left: 50%; transform: translateX(-50%); }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 1.04rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 12px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: .97rem; cursor: pointer; border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s; }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { background: transparent; border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-light:hover { border-color: var(--blue); color: var(--blue); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: #eaf1f8; }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy); color: rgba(255,255,255,.82); font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; }
.topbar .tb-left { display: flex; align-items: center; gap: 9px; }
.topbar .tb-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.topbar a:hover { color: #cfe0f0; }
.topbar svg { width: 15px; height: 15px; vertical-align: -3px; margin-right: 6px; }
.topbar .badge { color: #cfe0f0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 20px; }
.brand img { height: 42px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-menu > li { position: relative; }
.nav-menu a { display: block; padding: 10px 13px; border-radius: var(--radius); font-weight: 600; font-size: .94rem;
  color: var(--text); white-space: nowrap; transition: color .2s, background .2s; }
.nav-menu a:hover, .nav-menu a.active { color: var(--blue); background: var(--bg-alt); }
.nav-menu .caret { display: inline-block; margin-left: 4px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }

/* Dropdown */
.has-dropdown > .dropdown { position: absolute; top: calc(100% + 4px); left: 0; min-width: 230px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.has-dropdown:hover > .dropdown, .has-dropdown:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { font-weight: 600; font-size: .92rem; }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 44px; height: 40px; border: 1px solid var(--line); cursor: pointer; background: #fff;
  border-radius: var(--radius); position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle span:nth-child(1) { top: 13px; } .nav-toggle span:nth-child(2) { top: 19px; } .nav-toggle span:nth-child(3) { top: 25px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, #f7fafd, var(--bg-alt)); border-bottom: 1px solid var(--line); padding: 64px 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 18px; }
.hero h1 span { color: var(--blue); }
.hero p { color: var(--muted); font-size: 1.08rem; margin-bottom: 18px; max-width: 540px; }
.hero-emergency { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 26px;
  font-weight: 600; color: var(--navy); box-shadow: var(--shadow); }
.hero-emergency svg { width: 20px; height: 20px; color: var(--blue); flex: none; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-md);
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px;
  transition: border-color .2s, box-shadow .2s, transform .2s; display: flex; flex-direction: column; }
.service:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service .ic { width: 50px; height: 50px; border-radius: var(--radius); display: grid; place-items: center; margin-bottom: 16px;
  background: #eaf1f8; color: var(--blue); flex: none; }
.service .ic svg { width: 26px; height: 26px; }
.service h3 { font-size: 1.05rem; line-height: 1.35; margin-bottom: 8px; }
.service p { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.service .more { margin-top: auto; font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.service .more svg { width: 15px; height: 15px; }

/* ---------- Über uns ---------- */
.about-concept { display: grid; gap: 16px; margin-bottom: 36px; max-width: 820px; }
.concept-item { display: flex; gap: 16px; }
.concept-item .tag { flex: none; width: 84px; height: 40px; display: grid; place-items: center; border-radius: var(--radius);
  background: var(--navy); color: #fff; font-weight: 700; font-size: .95rem; }
.concept-item p { color: var(--muted); font-size: .97rem; }
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.founder { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.founder-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.founder-head img { width: 74px; height: 92px; object-fit: cover; border-radius: var(--radius); flex: none; border: 1px solid var(--line); }
.founder h4 { color: var(--navy); font-size: 1.1rem; margin-bottom: 2px; }
.founder .role { color: var(--blue); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.cv { display: grid; gap: 10px; }
.cv li { display: grid; grid-template-columns: 116px 1fr; gap: 12px; font-size: .9rem; color: var(--muted); align-items: start; }
.cv .yr { font-weight: 700; color: var(--navy); }

/* ---------- Online-Hilfe ---------- */
.help-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: stretch; }
.help-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.help-card.primary { background: var(--navy); color: rgba(255,255,255,.85); border-color: var(--navy); }
.help-card.primary h3 { color: #fff; }
.help-card .pcvisit-logo { background: #fff; border-radius: 6px; padding: 10px 14px; display: inline-block; margin-bottom: 18px; }
.help-card .pcvisit-logo img { height: 30px; width: auto; }
.help-card h3 { margin-bottom: 12px; }
.help-card p { color: var(--muted); margin-bottom: 18px; }
.help-card.primary p { color: rgba(255,255,255,.8); }
.help-steps { display: grid; gap: 12px; margin: 0 0 24px; }
.help-steps li { display: flex; gap: 13px; align-items: flex-start; }
.help-steps .n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: .85rem; background: var(--blue); color: #fff; }
.help-card.primary .help-steps li { color: rgba(255,255,255,.88); }
.help-card.primary .help-steps .n { background: #fff; color: var(--navy); }
.help-sec { display: grid; gap: 12px; }
.help-note { font-size: .85rem; color: var(--muted); margin-top: 16px; }
.help-card.primary .help-note { color: rgba(255,255,255,.6); }
.help-security { margin-top: 18px; border-top: 1px solid rgba(255,255,255,.16); padding-top: 16px; }
.help-security > strong { display: block; color: #fff; font-size: .95rem; margin-bottom: 10px; }
.help-security ul { display: grid; gap: 9px; }
.help-security li { position: relative; padding-left: 18px; color: rgba(255,255,255,.82); font-size: .88rem; line-height: 1.55; }
.help-security li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 2px; background: rgba(255,255,255,.5); }
.help-security li b { color: #fff; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; padding: 70px 0; color: #fff; text-align: center; background-size: cover; background-position: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(14,27,46,.86), rgba(14,27,46,.92)); }
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.82); margin: 14px auto 26px; max-width: 620px; }
.cta-band .cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Referenzen ---------- */
.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ref { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; border-top: 3px solid var(--blue); }
.ref h3 { font-size: 1.02rem; line-height: 1.3; margin-bottom: 10px; }
.ref p { color: var(--muted); font-size: .92rem; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; }
.contact-info { display: grid; gap: 14px; align-content: start; }
.ci { display: flex; gap: 15px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.ci .ic { flex: none; width: 44px; height: 44px; border-radius: var(--radius); display: grid; place-items: center; background: #eaf1f8; color: var(--blue); }
.ci .ic svg { width: 22px; height: 22px; }
.ci .lbl { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.ci .val { font-weight: 600; color: var(--navy); }
.ci .val a { color: var(--navy); } .ci .val a:hover { color: var(--blue); }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; color: var(--text); background: #fff; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,85,141,.12); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; color: var(--muted); line-height: 1.55;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; }
.consent input { margin: 2px 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--blue); cursor: pointer; }
.consent a { font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 12px; }
.form-status { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 18px; font-weight: 600; font-size: .92rem; }
.form-status.ok { background: #e8f5ec; color: #1d6b34; border: 1px solid #b6dcc1; }
.form-status.err { background: #fdecea; color: #9a2820; border: 1px solid #f3c2bd; }

/* ---------- Karte (DSGVO Klick-zum-Laden) ---------- */
.contact-map { margin-top: 28px; }
.map-consent { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt);
  min-height: 280px; display: grid; place-items: center; text-align: center; padding: 28px; }
.map-consent .ic { width: 52px; height: 52px; border-radius: var(--radius); display: grid; place-items: center;
  background: #eaf1f8; color: var(--blue); margin: 0 auto 14px; }
.map-consent .ic svg { width: 26px; height: 26px; }
.map-consent h3 { font-size: 1.1rem; margin-bottom: 8px; }
.map-consent p { color: var(--muted); font-size: .9rem; max-width: 420px; margin: 0 auto 16px; }
.map-consent iframe { width: 100%; height: 320px; border: 0; display: block; border-radius: var(--radius); }
.map-loaded { padding: 0; min-height: 0; background: none; border: none; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.faq-item summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--navy);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--blue); line-height: 1; flex: none; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item .faq-a { padding: 0 20px 18px; color: var(--muted); }
.faq-item .faq-a ul { display: grid; gap: 8px; margin-top: 12px; }
.faq-item .faq-a li { position: relative; padding-left: 18px; line-height: 1.55; }
.faq-item .faq-a li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 2px; background: var(--blue); }
.faq-item .faq-a li b { color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); padding: 56px 0 24px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 32px; margin-bottom: 36px; }
.site-footer img.flogo { height: 38px; margin-bottom: 16px; }
.site-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 9px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.f-contact li { display: flex; gap: 9px; align-items: flex-start; margin-bottom: 9px; }
.f-contact svg { width: 16px; height: 16px; flex: none; margin-top: 4px; opacity: .7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 12px; font-size: .85rem; }
.footer-bottom .legal { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-bottom .credit { color: rgba(255,255,255,.55); }
.footer-bottom .credit a { color: rgba(255,255,255,.8); font-weight: 600; }
.footer-bottom .credit a:hover { color: #fff; text-decoration: underline; }

/* Mobile-CTA im Menü (nur mobil sichtbar) */
.nav-mobile-cta { display: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Desktop/Mobil-Sichtbarkeit (z. B. Fernwartung) ---------- */
.mobile-only { display: none; }
.desk-badge { display: inline-block; font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255,255,255,.18); color: #fff; padding: 3px 9px; border-radius: 999px; vertical-align: middle; margin-left: 8px; }
.help-hint { font-size: .9rem; color: rgba(255,255,255,.88); background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; }
@media (max-width: 860px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: block; }
}

/* ---------- Cookie-Banner ---------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 300; background: #fff;
  border-top: 3px solid var(--blue); box-shadow: 0 -10px 34px rgba(14,27,46,.18); padding: 18px 20px; display: none; }
.cookie-banner.show { display: block; }
.cookie-inner { width: min(1120px, 94%); margin-inline: auto; display: flex; gap: 20px 28px; align-items: center;
  flex-wrap: wrap; justify-content: space-between; }
.cookie-text { flex: 1 1 440px; font-size: .9rem; color: var(--muted); line-height: 1.6; }
.cookie-text strong { display: block; color: var(--navy); font-size: 1rem; margin-bottom: 3px; }
.cookie-text a { font-weight: 600; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cookie-actions .btn { padding: 11px 20px; font-size: .92rem; }
.cookie-link { background: none; border: none; color: var(--blue); font: inherit; font-weight: 600;
  cursor: pointer; text-decoration: underline; padding: 4px 6px; }
.cookie-settings { width: 100%; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; display: none; }
.cookie-banner.settings-open .cookie-settings { display: block; }
.cookie-opt { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; }
.cookie-opt input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--blue); cursor: pointer; }
.cookie-opt input:disabled { cursor: default; opacity: .7; }
.cookie-opt .lbl b { display: block; color: var(--navy); font-size: .95rem; }
.cookie-opt .lbl span { font-size: .85rem; color: var(--muted); }
.cookie-save { margin-top: 12px; }
.cookie-close { position: absolute; top: 10px; right: 14px; width: 34px; height: 34px; border: none; background: none;
  font-size: 1.7rem; line-height: 1; color: var(--muted); cursor: pointer; display: none; border-radius: 8px; }
.cookie-close:hover { background: var(--bg-alt); color: var(--navy); }
.cookie-banner.reopened .cookie-close { display: block; }

/* Permanenter Button unten links */
.cookie-fab { position: fixed; left: 18px; bottom: 18px; z-index: 290; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--blue); box-shadow: var(--shadow-md); cursor: pointer;
  display: none; place-items: center; transition: background .2s, transform .2s; }
.cookie-fab.show { display: grid; }
.cookie-fab:hover { background: var(--bg-alt); transform: translateY(-2px); }
.cookie-fab svg { width: 24px; height: 24px; }
@media (max-width: 560px) { .cookie-fab { left: 14px; bottom: 14px; width: 44px; height: 44px; } }
@media (max-width: 640px) {
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
}

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 46px; height: 46px; border-radius: var(--radius);
  border: none; cursor: pointer; background: var(--blue); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-md); opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s; pointer-events: none; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--blue-dark); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Sub-page banner & content ---------- */
.page-banner { position: relative; color: #fff; padding: 64px 0; background-size: cover; background-position: center; }
.page-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(14,27,46,.82), rgba(14,27,46,.9)); }
.page-banner .container { position: relative; }
.page-banner .crumb { font-size: .88rem; color: rgba(255,255,255,.7); margin-bottom: 10px; }
.page-banner .crumb a { color: rgba(255,255,255,.9); }
.page-banner h1 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.content-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: start; }
.prose h2 { font-size: 1.4rem; margin: 28px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; margin: 22px 0 8px; }
.prose p { color: var(--muted); margin-bottom: 14px; }
.prose ul { list-style: none; display: grid; gap: 9px; margin: 12px 0 18px; }
.prose ul li { position: relative; padding-left: 26px; color: var(--muted); }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }
.course-block { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px; }
.course-block h3 { margin: 0 0 10px; color: var(--navy); font-size: 1.05rem; }
.course-block .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.course-block .tags span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: .85rem; color: var(--text); }
.aside-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 130px; }
.aside-card img { border-radius: var(--radius); margin-bottom: 16px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.aside-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.aside-card p { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
figure.inline-img { margin: 18px 0; }
figure.inline-img img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; }
figure.inline-img figcaption { font-size: .8rem; color: var(--muted); margin-top: 8px; }

/* ---------- Legal pages ---------- */
.legal-page { padding: 50px 0 70px; }
.legal-page .container { max-width: 800px; }
.legal-page h1 { font-size: 2rem; margin-bottom: 8px; }
.legal-page .updated { color: var(--muted); margin-bottom: 34px; }
.legal-page h2 { font-size: 1.3rem; margin: 32px 0 10px; }
.legal-page h3 { margin: 22px 0 8px; font-size: 1.12rem; }
.legal-page h4 { margin: 16px 0 6px; font-size: 1rem; }
.legal-page p, .legal-page li { color: var(--muted); margin-bottom: 12px; }
.legal-page ul { list-style: disc; padding-left: 22px; }
.legal-page a:hover { text-decoration: underline; }
.legal-page .note { background: #fff8ec; border: 1px solid #f0d49b; color: #6b4e16; padding: 14px 18px; border-radius: var(--radius); font-size: .92rem; margin: 18px 0; }
.back-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; margin-bottom: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } .ref-grid { grid-template-columns: repeat(2, 1fr); } .content-grid { grid-template-columns: 1fr; } .aside-card { position: static; } }
@media (max-width: 860px) {
  html { scroll-padding-top: 80px; }
  .hero-grid, .about-grid, .help-grid, .contact-grid, .footer-grid, .founders { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { max-width: 480px; }
  /* --- Topbar mobil: kompakt & zentriert --- */
  .topbar .tb-left { display: none; }
  .topbar .container { justify-content: center; }
  .topbar .tb-right { gap: 8px 22px; justify-content: center; flex-wrap: wrap; }

  /* --- Mobiles Menü: aufklappendes Panel unter dem Header (ohne Abdunkeln) --- */
  .nav-toggle { display: block; }
  .site-header .nav { position: relative; }
  .nav-cta .btn { display: none; }
  body.nav-open { overflow: hidden; }

  .nav-menu { display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(14,27,46,.16); max-height: calc(100vh - 116px); overflow-y: auto; padding: 6px 5% 20px; }
  .nav-menu.open { display: flex; }
  .nav-menu > li { border-bottom: 1px solid var(--line); }
  .nav-menu > li:last-child { border-bottom: none; }
  .nav-menu > li > a { display: block; padding: 14px 4px; font-size: 1.05rem; font-weight: 600; }
  .has-dropdown > .dropdown { display: none; position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: none; padding: 0 0 10px 16px; min-width: 0; }
  .has-dropdown.open > .dropdown { display: block; }
  .dropdown a { padding: 9px 4px; font-size: .98rem; color: var(--muted); }
  .nav-menu .caret { display: inline-block; margin-left: 6px; transition: transform .2s; }
  .has-dropdown.open > a .caret { transform: rotate(180deg); }
  .nav-mobile-cta { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-bottom: none !important; }
  .nav-mobile-cta .btn { width: 100%; justify-content: center; padding: 13px; }
}
@media (max-width: 560px) {
  section { padding: 52px 0; } h2 { font-size: 1.55rem; }
  .services-grid, .ref-grid, .form-row { grid-template-columns: 1fr; }
  .cv li { grid-template-columns: 1fr; gap: 2px; }
  .cv .yr { color: var(--blue); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .topbar { font-size: .82rem; }
  .topbar .tb-mail { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } }
