/* ============================================================
   mindset-IT — shared chrome (nav + footer) and language switch
   Loaded globally from app/layout.tsx, after fonts.css and before
   each page's inline styles. Selectors here carry enough
   specificity to win over the per-page footer/nav rules.
   ============================================================ */

/* ---- Language pairs ---------------------------------------
   Since 2026-11-13 each language has its own URL and html[lang]
   is set by the layout. These rules remain for the few places
   that still carry both languages (the 404 page). */
.t-en { display: none; }
html[lang="en"] .t-en { display: inline; }
html[lang="en"] .t-de { display: none; }

/* ---- Nav ------------------------------------------------- */
nav.top .lang {
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: rgba(255,255,255,0.5);
}
nav.top .lang .sep { opacity: .5; }
nav.top .lang b { color: #fff; }

/* ---- Footer ---------------------------------------------- */
footer.site-footer .grid {
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr;
  gap: 40px;
}
footer.site-footer .brand p { max-width: 320px; }
footer.site-footer .brand .claim {
  margin-top: 18px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--orange-500, #94b49c);
}
footer.site-footer .nerv42 { font-size: 14px; color: rgba(255,255,255,0.7); }
footer.site-footer .tv-link { color: var(--orange-500, #94b49c); }
footer.site-footer .bot a { color: inherit; }
footer.site-footer .bot a:hover { color: var(--orange-500, #94b49c); }

@media (max-width: 900px) {
  footer.site-footer .grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  footer.site-footer .brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  footer.site-footer .grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ---- Site-wide fixes (Änderungsliste 12.11.2026) --------- */
/* Footer column headings are <h2> now (were h5 after h3). */
footer.site-footer h2 {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--orange-500, #94b49c); letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 16px; font-weight: 500;
}
/* Keyboard focus: the browser default ring is 1 px and invisible on ink. */
:focus-visible { outline: 3px solid #F57D27; outline-offset: 2px; }
/* Skip link for screen readers and keyboard users. */
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: #F57D27; color: #0A0A0A; padding: 12px 18px; font-weight: 800; font-size: 14px; font-family: 'Archivo', sans-serif; }
.skip-link:focus { top: 12px; }
/* Small mono labels: 11 px was below the readable minimum on phones (13 px since 13.11.2026). */
.mono, .section-tag, .page-hero .breadcrumb, .f-item .n, .feat .n, .val .n,
.member .role, .partner-lockup span, .field label, .form-success .mark,
.emergency .mark, .map-band .map-pin, .info-card .row span:first-child,
.legal aside h5, .story .attr, .case .meta, footer .bot { font-size: 13px !important; }
/* Mint as text colour on light backgrounds: darker shade for contrast. */
.diag-card .fix, .story .attr, .tl-year, .consent a, .info-card .row span:first-child,
.info-card .row a:hover, .legal article a, .vorlage strong { color: #3F6B4E; }
/* Mobile overflow: long display words and bordered grid items must wrap
   inside the viewport (seen on /legacy/, /leistungen/lightspeed/,
   /leistungen/ki-beratung/ and /datenschutz/ at 375 px). */
html { overflow-x: clip; }  /* only html: set on body too, body becomes the scroll container and window.scrollY stays 0 */
.feat-grid3 > *, .faq-grid > *, .card-grid > *, .how-steps > *, .val-grid > * { min-width: 0; overflow-wrap: anywhere; }
/* Headings (Änderungsliste 13.11.2026, 1.1): never split a word without a
   hyphen. Long words carry &shy; in the copy; the size cap keeps the longest
   word ("Kassensicherungsverordnung") inside the viewport at 390 px. */
body h1, body h2, body h3 { overflow-wrap: normal; word-break: normal; hyphens: manual; -webkit-hyphens: manual; }
@media (max-width: 900px) {
  body .page-hero h1, body .hero h1 { font-size: clamp(40px, 9.5vw, 100px); }
  body h2.display, body .cta-band h2 { font-size: clamp(36px, 8.5vw, 84px); }
}
@media (max-width: 480px) {
  body .page-hero h1, body .hero h1 { font-size: clamp(34px, 9.5vw, 72px); letter-spacing: -0.04em; }
  body h2.display, body .cta-band h2 { font-size: clamp(30px, 9vw, 60px); }
  body .abschluss .huge { font-size: clamp(34px, 9.5vw, 72px); }
}
/* Tap targets: links and buttons at least 44 px high. */
.page-hero .meta a, .client-filter button, .cta-band .btn-big, .chip, .submit, .btn, .btn-primary, .btn-secondary, .btn-dark, .btn-outline { min-height: 44px; }
.chip { display: inline-flex; align-items: center; }
/* Support CTA on /leistungen/support/: phone, TeamViewer, contact side by side. */
.cta-links { display: flex; gap: 8px; flex-wrap: wrap; }
.cta-band .btn-tv { background: #fff; color: #0A0A0A; }
/* Contact form: per-field error text (kontakt-1.js). */
.field-error { font-size: 13px; color: #c0392b; font-weight: 600; }
[aria-invalid="true"] { border-color: #c0392b !important; }

/* ---- Header: one component on every page (Änderungsliste 13.11.2026, 1.2)
   The markup comes from lib/chrome.ts; these rules are the homepage header
   styles and carry a `body` prefix so they beat the per-page copies that
   the HTML-string pages still inline. Desktop menu down to 1240 px, the
   hamburger drawer (public/shared/mobile-nav.js) below. ---------------- */
body nav.top { position: sticky; top: 0; z-index: 50; background: #0A0A0A; border-bottom: 2px solid var(--orange-500, #94b49c); }
body nav.top .row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; flex-wrap: nowrap; }
body nav.top .brand { flex-shrink: 0; }
body nav.top .brand img { height: 81px; width: auto; }
body nav.top .row > ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; }
body nav.top ul a { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.75); letter-spacing: 0.01em; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }
body nav.top ul a:hover, body nav.top ul a.active { color: var(--orange-500, #94b49c); }
body nav.top .actions { display: flex; align-items: center; gap: 16px; margin-top: 0; flex-wrap: nowrap; flex-shrink: 0; }
body nav.top .support { font-family: 'JetBrains Mono', monospace; font-size: 12px !important; letter-spacing: 0.04em; color: rgba(255,255,255,0.6); white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }
body nav.top .support:hover { color: var(--orange-500, #94b49c); }
body nav.top .lang { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: rgba(255,255,255,0.5); background: none; border: none; padding: 0; cursor: pointer; line-height: 1; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
body nav.top .lang b { color: #fff; }
body nav.top .cta { background: #F57D27; color: #0A0A0A; padding: 10px 20px; font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
body nav.top .cta:hover { background: #fff; }
body nav.top .nav-hamburger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; background: none; border: 2px solid rgba(255,255,255,0.25); cursor: pointer; padding: 0; flex-shrink: 0; margin-left: 8px; }
body nav.top .nav-hamburger span { display: block; width: 20px; height: 2px; background: #fff; transition: transform 0.22s ease, opacity 0.22s ease; }
body nav.top.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body nav.top.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
body nav.top.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body nav.top .nav-drawer { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #0A0A0A; border-bottom: 2px solid var(--orange-500, #94b49c); z-index: 200; padding: 8px 0 24px; }
body nav.top.nav-open .nav-drawer { display: block; }
body nav.top .nav-drawer ul { display: flex; flex-direction: column; list-style: none; gap: 0; }
body nav.top .nav-drawer ul li a { display: block; padding: 15px 24px; font-size: 17px; font-weight: 700; color: rgba(255,255,255,0.8); border-bottom: 1px solid rgba(255,255,255,0.07); letter-spacing: -0.01em; white-space: normal; }
body nav.top .nav-drawer ul li:last-child a { border-bottom: none; }
body nav.top .nav-drawer ul li a:hover { color: var(--orange-500, #94b49c); }
body nav.top .nav-drawer .drawer-support { padding: 16px 24px 0; display: grid; gap: 10px; }
body nav.top .nav-drawer .drawer-support a { font-size: 15px; font-weight: 700; color: rgba(255,255,255,0.8); display: inline-flex; align-items: center; min-height: 44px; }
body nav.top .nav-drawer .drawer-support a:hover { color: var(--orange-500, #94b49c); }
body nav.top .nav-drawer .drawer-foot { padding: 20px 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,0.07); margin-top: 8px; }
body nav.top .nav-drawer .drawer-cta { display: none; background: #F57D27; color: #0A0A0A; padding: 13px 20px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
body nav.top .nav-drawer .drawer-lang { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: rgba(255,255,255,0.5); background: none; border: none; cursor: pointer; padding: 0; }
body nav.top .nav-drawer .drawer-lang b { color: #fff; }
/* The support link has a long and a short label; the drawer always shows the long one. */
body nav.top .support .short { display: none; }
body nav.top .nav-drawer .drawer-support .short { display: none !important; }
body nav.top .nav-drawer .drawer-support .long { display: inline !important; }
/* Laptop widths: the full menu needs about 1450 px, so down to 1240 px it runs compact. */
@media (max-width: 1500px) {
  body nav.top .row > ul { gap: 12px; }
  body nav.top .actions { gap: 12px; }
  body nav.top .cta { padding: 10px 14px; }
  body nav.top .support .long { display: none; }
  body nav.top .support .short { display: inline; }
}
@media (max-width: 1240px) {
  body nav.top .row > ul { display: none !important; }
  body nav.top .nav-drawer ul { display: flex !important; }
  body nav.top .support { display: none !important; }
  body nav.top .actions { gap: 8px; margin-left: auto; }
  body nav.top .cta { padding: 8px 12px; font-size: 12px; letter-spacing: 0.02em; }
  body nav.top .nav-hamburger { display: flex; }
}
@media (max-width: 480px) {
  body nav.top .brand img { height: 64px; }
  body nav.top .actions .cta { display: none !important; }
  body nav.top .nav-drawer .drawer-cta { display: inline-block; }
}

/* ---- Footer B2B / price notice (Prüfbericht 04 D). */
footer.site-footer .b2b { font-size: 12px; line-height: 1.6; color: rgba(255,255,255,0.45); max-width: 720px; margin: 24px 0 0; }

/* ---- Feature tiles: less empty space between number and title on phones (4). */
@media (max-width: 600px) {
  body .f-item { min-height: 0; gap: 10px; }
  body .f-item h3 { margin-top: 0; }
  body .feat .n { margin-bottom: 10px; }
}
