/* itschulte.de – globale Styles
   Die Seiten-Layouts stehen als Inline-Styles im HTML (aus dem Design übernommen).
   Diese Datei liefert Schriften, Grundwerte, Fokus, Formular-Status, Assessments und Mobil-Anpassungen. */

@font-face { font-family: 'IBM Plex Sans'; font-style: normal; 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-style: normal; 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-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-serif-latin-400-italic.woff2') format('woff2'); }

:root { --navy: #10233F; --ink: #0B1626; --muted: #4A5568; --line: #DDE2EA; --soft: #F3F5F8; --accent: #B45309; --amber: #F5B971; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; background: #FFFFFF; color: var(--ink); }
img { max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--navy); }
a[style*="background: #10233F"]:hover { background: #1B3253 !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #FFFFFF; color: var(--ink); padding: 10px 16px; border-radius: 6px; font-weight: 600; }
.skip-link:focus { left: 16px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Formular-Rückmeldung */
.form-status { margin: 0; font-size: 15px; min-height: 1px; }
.form-status.is-ok { color: #0F5F55; background: #E6F4F1; padding: 12px 16px; border-radius: 8px; }
.form-status.is-error { color: #9F1239; background: #FDECEF; padding: 12px 16px; border-radius: 8px; }
button[disabled] { opacity: 0.6; cursor: wait; }

/* Rechtstexte */
.legal h2 { font-size: 24px; margin: 40px 0 12px; }
.legal h3 { font-size: 19px; margin: 28px 0 8px; }
.legal p, .legal li { color: #2D3748; }
.legal ul { padding-left: 22px; }

/* Assessments */
.as-progress { position: sticky; top: 0; z-index: 5; background: #FFFFFF; border-bottom: 1px solid var(--line); }
.as-progress-bar { height: 6px; background: #E7EBF1; border-radius: 3px; overflow: hidden; }
.as-progress-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.as-group { background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; padding: 28px; margin: 0 0 20px; }
.as-group legend { font-weight: 700; font-size: 20px; padding: 0 6px; }
.as-group > p { margin: 4px 0 18px; color: var(--muted); font-size: 15px; }
.as-q { border: 0; margin: 0 0 22px; padding: 0; scroll-margin-top: 100px; }
.as-q:last-child { margin-bottom: 0; }
.as-q legend { font-weight: 600; font-size: 17px; margin-bottom: 4px; padding: 0; }
.as-q .as-hint { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.as-options { display: flex; flex-wrap: wrap; gap: 8px; }
.as-options label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #A0AEC0; border-radius: 8px; padding: 10px 14px; min-height: 44px; box-sizing: border-box; cursor: pointer; font-size: 15px; background: #FFFFFF; }
.as-options label:has(input:checked) { border-color: var(--navy); background: #EEF2F7; box-shadow: inset 0 0 0 1px var(--navy); }
.as-options.is-stacked { flex-direction: column; }
.as-options.is-stacked label { width: 100%; align-items: flex-start; }
.as-options input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--navy); }
.as-result { scroll-margin-top: 90px; background: #FFFFFF; border: 2px solid var(--navy); border-radius: 16px; padding: 32px; margin-top: 32px; }
.as-result h2 { margin-top: 0; }
.as-score { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; margin: 20px 0; }
.as-score > div { background: var(--soft); border-radius: 10px; padding: 14px 16px; }
.as-bar { height: 8px; background: #E7EBF1; border-radius: 4px; margin-top: 8px; overflow: hidden; }
.as-bar span { display: block; height: 100%; border-radius: 4px; }
.as-pill { display: inline-block; border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 700; }
.as-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.as-btn { font: inherit; font-weight: 600; border-radius: 6px; padding: 14px 22px; min-height: 48px; cursor: pointer; border: 1px solid #A0AEC0; background: #FFFFFF; color: var(--navy); text-decoration: none; display: inline-flex; align-items: center; }
.as-btn.is-primary { background: var(--navy); color: #FFFFFF; border-color: var(--navy); }
.as-note { font-size: 14px; color: var(--muted); }

/* Navigation auf kleinen Bildschirmen: Menüzeile seitlich wischbar */
@media (max-width: 760px) {
  .navlinks { width: 100%; flex-wrap: nowrap !important; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .navlinks a { white-space: nowrap; }
}

/* Mobile Typografie und Abstände */
@media (max-width: 640px) {
  h1 { font-size: 34px !important; }
  h2 { font-size: 27px !important; }
  section > div[style*="padding: 104px"] { padding-top: 64px !important; padding-bottom: 64px !important; }
  section > div[style*="padding: 96px"], section > div[style*="padding: 88px"] { padding-top: 56px !important; padding-bottom: 56px !important; }
  div[style*="padding: 48px"] { padding: 28px !important; }
  [style*="font-size: 56px"], [style*="font-size: 54px"], [style*="font-size: 52px"] { font-size: 34px !important; }
  [style*="font-size: 44px"], [style*="font-size: 40px"], [style*="font-size: 38px"] { font-size: 27px !important; }
  [style*="left: -24px"] { left: 12px !important; bottom: -20px !important; }
  .as-group, .as-result { padding: 20px; }
}

@media print {
  header, footer, nav, .as-progress, .as-actions, .no-print { display: none !important; }
  body { font-size: 12pt; }
  .as-result { border: 0; padding: 0; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Datenschutz-Banner */
.cc-banner { position: fixed; z-index: 1000; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: center; pointer-events: none; font-family: 'IBM Plex Sans', system-ui, sans-serif; }
.cc-inner { pointer-events: auto; width: 100%; max-width: 760px; background: #FFFFFF; color: var(--ink); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 14px; box-shadow: 0 24px 64px rgba(11, 22, 38, 0.28); padding: 22px 24px; box-sizing: border-box; }
.cc-title { margin: 0 0 6px; font-size: 18px !important; line-height: 1.3; }
.cc-text { margin: 0 0 16px; font-size: 15px; line-height: 1.55; color: #2D3748; }
.cc-text a { color: var(--navy); font-weight: 600; }
.cc-details { display: flex; flex-direction: column; gap: 10px; margin: 0 0 16px; padding: 14px; background: var(--soft); border-radius: 10px; }
.cc-cat { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.cc-cat input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--navy); }
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-btn { font: inherit; font-weight: 600; font-size: 15px; min-height: 44px; padding: 10px 18px; border-radius: 6px; cursor: pointer; border: 1px solid #A0AEC0; background: #FFFFFF; color: var(--navy); }
.cc-btn.is-primary { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.cc-btn:hover { filter: brightness(1.1); }
.cc-link { background: none; border: 0; padding: 0; font: inherit; color: #B8C4D6; cursor: pointer; text-align: left; }
.cc-link:hover { color: #FFFFFF; text-decoration: underline; }
@media (max-width: 520px) { .cc-banner { left: 8px; right: 8px; bottom: 8px; } .cc-actions .cc-btn { flex: 1 1 100%; } }
@media print { .cc-banner { display: none !important; } }
.cc-details[hidden] { display: none; }

/* Spamschutz-Anzeige */
.captcha-badge { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: #FFFFFF; font-size: 14px; color: var(--muted); }
.captcha-icon { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid #A0AEC0; box-sizing: border-box; }
.captcha-badge[data-state="busy"] .captcha-icon { border-color: #A0AEC0; border-top-color: var(--navy); animation: cc-spin 0.8s linear infinite; }
.captcha-badge[data-state="ok"] { color: #0F5F55; border-color: #9ED3C9; background: #F1FAF8; }
.captcha-badge[data-state="ok"] .captcha-icon { border-color: #0F766E; background: #0F766E url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.captcha-badge[data-state="error"] { color: #9F1239; border-color: #F3B6C2; background: #FDECEF; }
@keyframes cc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .captcha-badge[data-state="busy"] .captcha-icon { animation: none; } }
