/* itbos.eu – Layout. Farben, Größen und Abstände kommen aus design/tokens.css */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-latin-700.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; font-family: var(--font-sans); font-size: var(--fs-body); line-height: var(--lh-body); color: var(--color-ink); background: var(--color-white); }
img { max-width: 100%; height: auto; }
a { color: var(--color-blue); }
a:hover { color: var(--color-blue-hover); }
:focus-visible { outline: 3px solid var(--color-blue); outline-offset: 2px; }
.hero :focus-visible, .site-footer :focus-visible { outline-color: var(--color-blue-on-dark); }
h1, h2, h3 { line-height: var(--lh-heading); margin: 0; font-weight: 700; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

.container { max-width: var(--content-max); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 12px 16px; background: var(--color-ink); color: var(--color-white); border-radius: var(--radius-button); }
.skip-link:focus { top: 8px; }

.matrix .dot { fill: var(--color-blue); }
.matrix .dot-red { fill: var(--color-red); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border-radius: var(--radius-button); border: 1.5px solid transparent; font: 500 17px/1 var(--font-sans); text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--color-blue); color: var(--color-white); font-weight: 700; }
.btn-primary:hover { background: var(--color-blue-hover); color: var(--color-white); }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-light { background: var(--color-blue-on-dark); color: var(--color-ink); font-weight: 700; }
.btn-light:hover { background: var(--color-white); color: var(--color-ink); }
.btn-outline-light { border-color: var(--color-text-on-dark); color: var(--color-white); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: var(--color-white); }
.btn-outline { border-color: var(--color-blue); color: var(--color-blue); }
.btn-outline:hover { background: var(--color-blue); color: var(--color-white); }

/* Kopfzeile */
.site-header { background: var(--color-white); border-bottom: 1px solid var(--color-border); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; }
.brand img { display: block; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.main-nav a { display: inline-flex; align-items: center; min-height: var(--tap-min); padding: 0 14px; color: var(--color-ink); text-decoration: none; font-size: 16px; font-weight: 500; border-radius: var(--radius-button); }
.main-nav a:hover { color: var(--color-blue); }
.main-nav a.btn-nav { margin-left: 8px; padding: 0 22px; background: var(--color-blue); color: var(--color-white); }
.main-nav a.btn-nav:hover { background: var(--color-blue-hover); color: var(--color-white); }
.nav-toggle { display: none; }

/* Startbereich */
.hero { background: var(--color-ink); color: var(--color-white); }
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: var(--section-y); padding-bottom: var(--section-y); }
.hero-text { flex: 1 1 520px; min-width: 0; }
.hero h1 { font-size: var(--fs-h1); line-height: 1.1; }
.hero-slogan { margin-top: 20px; font-size: var(--fs-slogan); line-height: 1.4; font-weight: 500; color: var(--color-blue-on-dark); }
.hero-lead { margin-top: 20px; max-width: 600px; font-size: var(--fs-lead); color: var(--color-text-on-dark); }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero-symbol { flex: 0 1 340px; min-width: 220px; display: flex; justify-content: center; }
.hero-symbol img { width: 100%; max-width: 340px; }

/* Abschnitte */
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section-tight { padding-top: 0; }
.section h2 { font-size: var(--fs-h2); }
.section .h2-medium { font-size: calc(var(--fs-h2) * .8); }
.section .h2-small { font-size: calc(var(--fs-h2) * .7); }
.intro { margin-top: 16px; max-width: 640px; font-size: var(--fs-lead); color: var(--color-muted); }

.cards { margin-top: 48px; display: grid; gap: 24px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 32px; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-white); }
.card h3 { margin-top: 24px; font-size: var(--fs-h3); }
.card p { margin-top: 12px; flex-grow: 1; color: var(--color-muted); }
.card-product h3 { margin-top: 12px; }
.card-meta { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.card-tag { font-size: 14px; font-weight: 500; color: var(--color-blue); }
.chip-status { padding: 3px 10px; border: 1px solid var(--color-placeholder-border); border-radius: var(--radius-pill); font-size: 13px; font-weight: 500; }
.card-link { display: inline-flex; align-items: center; min-height: var(--tap-min); margin-top: 8px; font-weight: 500; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* Helles Band */
.band { background: var(--color-surface); }
.band-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-top: calc(var(--section-y) * .75); padding-bottom: calc(var(--section-y) * .75); }
.band-text { flex: 1 1 360px; min-width: 0; }
.band-text h2 { font-size: calc(var(--fs-h2) * .8); line-height: 1.2; }
.band-text p { margin-top: 12px; max-width: 480px; font-size: var(--fs-lead); color: var(--color-muted); }
.chips { flex: 1 1 420px; min-width: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chips li { padding: 14px 24px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-pill); font-size: var(--fs-lead); font-weight: 500; }

/* Privatkunden */
.panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 40px; background: var(--color-surface); border-radius: 16px; }
.panel > div { flex: 1 1 420px; min-width: 0; }
.panel p { margin-top: 12px; max-width: 640px; font-size: var(--fs-lead); color: var(--color-muted); }

/* Kontakt */
.band-surface { background: var(--color-surface); }
.section.band-surface { padding-top: var(--section-y); }
.contact { display: flex; flex-wrap: wrap; gap: 56px; }
.contact-text { flex: 1 1 360px; min-width: 0; }
.contact-text .intro { margin-top: 20px; max-width: 460px; }
address { margin-top: 32px; font-style: normal; font-size: var(--fs-lead); line-height: 1.7; }
.form { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; padding: 32px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-card); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 500; }
.field input, .field textarea, .field select { width: 100%; padding: 0 14px; border: 1.5px solid var(--color-input-border); border-radius: var(--radius-button); font: 400 16px var(--font-sans); color: var(--color-ink); background: var(--color-white); }
.field input, .field select { height: 48px; }
.field textarea { min-height: 140px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--color-blue); outline-offset: 1px; border-color: var(--color-blue); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 14px; color: var(--color-muted); }
.form-status:empty { display: none; }
.form-status { padding: 12px 16px; border-radius: var(--radius-button); font-weight: 500; }
.form-status.is-success { background: #E6F4EA; color: #14532D; border: 1px solid #86C79A; }
.form-status.is-error { background: #FDECEC; color: #7A1A1D; border: 1px solid #E49A9C; }

/* Fußzeile */
.site-footer { background: var(--color-ink); color: var(--color-text-on-dark); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand img { display: block; max-width: 100%; }
.footer-brand p { font-size: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: var(--tap-min); padding: 0 12px; color: var(--color-white); text-decoration: none; font-size: 15px; }
.footer-nav a:hover { text-decoration: underline; color: var(--color-white); }

/* Textseiten (Impressum, Datenschutz) */
.legal { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.legal .container { max-width: 840px; }
.legal h1 { font-size: var(--fs-h2); }
.legal h2 { margin-top: 40px; font-size: var(--fs-h3); }
.legal h3 { margin-top: 24px; font-size: var(--fs-lead); }
.legal p, .legal ul { margin-top: 12px; color: var(--color-muted); }
.legal ul { list-style: disc; padding-left: 24px; }
.legal address { margin-top: 12px; font-size: inherit; color: var(--color-muted); }
.legal .todo { background: #FFF6D6; padding: 0 4px; border-radius: 3px; color: var(--color-ink); }

/* Smartphone */
@media (max-width: 768px) {
  .cards-2, .cards-3 { grid-template-columns: 1fr; }
  .hero-inner { gap: 32px; }
  .hero-actions { margin-top: 28px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-symbol { flex-basis: 100%; min-width: 0; justify-content: flex-start; }
  .hero-symbol img { max-width: 140px; }
  .contact { gap: 32px; }
  .form { padding: 20px; }
  .panel { padding: 24px; }
  .panel .btn { width: 100%; }
  .chips li { padding: 10px 16px; }
  .footer-brand img { width: 240px; height: auto; }

  /* Leistungen und Produkte als Liste mit Trennlinien */
  .cards { margin-top: 24px; gap: 0; }
  .card { padding: 24px 0; border: 0; border-bottom: 1px solid var(--color-border); border-radius: 0; background: transparent; }
  .cards .card:first-child { border-top: 1px solid var(--color-border); }
  .matrix { width: 32px; height: 32px; }

  /* Menü-Knopf */
  .js .nav-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap-min); padding: 0 14px; background: var(--color-white); color: var(--color-ink); border: 1.5px solid var(--color-input-border); border-radius: var(--radius-button); font: 500 16px var(--font-sans); cursor: pointer; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; content: ""; position: relative; }
  .nav-toggle-bars::before { position: absolute; top: -6px; }
  .nav-toggle-bars::after { position: absolute; top: 6px; }
  .js .main-nav { display: none; flex-direction: column; align-items: stretch; width: 100%; gap: 0; padding-top: 8px; border-top: 1px solid var(--color-border); }
  .js .main-nav.is-open { display: flex; }
  .main-nav a { min-height: 48px; padding: 0 4px; border-bottom: 1px solid var(--color-border-soft); border-radius: 0; }
  .main-nav a.btn-nav { margin: 16px 0 8px; justify-content: center; border-radius: var(--radius-button); }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Produktseite */
.product-title { margin-top: 8px; font-size: var(--fs-h1); line-height: 1.1; }
.product-actions { margin-top: 32px; }
.card-tag a { color: inherit; }
.shot { margin: 40px 0 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: var(--radius-card); border: 1px solid var(--color-border); }
.shot figcaption { margin-top: 8px; font-size: 14px; color: var(--color-muted); }
.overview { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.overview .prose { flex: 1 1 400px; min-width: 0; }
.overview-art { flex: 0 1 245px; width: 245px; height: auto; margin: 0 auto; }
@media (max-width: 768px) { .overview-art { display: none; } .shot { margin-top: 28px; } }
.product-head { margin-top: 8px; display: flex; align-items: center; gap: 20px; }
.product-head img { flex: none; width: 64px; height: 64px; }
.product-head .product-title { margin-top: 0; }
@media (max-width: 768px) { .product-head img { width: 44px; height: 44px; } }
.phone { flex: 0 1 260px; margin: 0 auto; }
.phone img { display: block; width: 100%; max-width: 260px; height: auto; border-radius: 24px; border: 1px solid var(--color-border); }
.phone figcaption { margin-top: 8px; font-size: 14px; color: var(--color-muted); text-align: center; }
.callout { padding: 12px 16px; border-left: 4px solid var(--color-blue); background: var(--color-surface); color: var(--color-ink) !important; font-weight: 500; border-radius: 0 var(--radius-button) var(--radius-button) 0; }
.band-surface .card { background: var(--color-white); }
.package-cards { margin-top: 24px; margin-bottom: 8px; }
.package-cards .card h3 { margin-top: 0; }
.package-for { flex-grow: 0 !important; }
.package-cards dl { margin: 16px 0 0; width: 100%; }
.package-cards dt { margin-top: 12px; font-size: 13px; font-weight: 500; color: var(--color-muted); text-transform: uppercase; letter-spacing: .04em; }
.package-cards dd { margin: 2px 0 0; font-weight: 500; }

/* Produktseite: Text, Navigation, Zeitleiste */
.product-hero { padding-bottom: calc(var(--section-y) * .6); }
.product-hero + .subnav-bar { margin-top: 0; }
.subnav-bar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); backdrop-filter: blur(6px); }
.subnav { display: flex; gap: 4px; padding-top: 8px; padding-bottom: 8px; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
.subnav a { display: inline-flex; align-items: center; flex: none; min-height: var(--tap-min); padding: 0 14px; border-radius: var(--radius-pill); text-decoration: none; font-weight: 500; font-size: 15px; color: var(--color-ink); }
.subnav a:hover { background: var(--color-surface); color: var(--color-blue); }
.subnav a[aria-current="true"] { background: var(--color-blue); color: var(--color-white); }
html:has(.subnav-bar) { scroll-padding-top: 72px; }
.prose { max-width: 840px; }
.prose-section { padding-top: 0; }
.prose h2 { font-size: var(--fs-h2); }
.prose h3 { margin-top: 28px; font-size: var(--fs-h3); }
.prose p, .prose ul, .prose ol { margin-top: 14px; font-size: var(--fs-lead); color: var(--color-muted); }
.prose ul:not(.cards):not(.checklist) { list-style: disc; padding-left: 24px; }
.prose li + li { margin-top: 6px; }
.prose .note { font-size: var(--fs-body); font-style: italic; }
.prose .chip-status, .card h3 .chip-status { font-size: 13px; vertical-align: middle; margin-left: 6px; color: var(--color-ink); }
.checklist li { position: relative; padding-left: 28px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .6em; width: 12px; height: 12px; border-radius: 50%; background: var(--color-blue); }
.timeline { list-style: none; margin-top: 24px; border-left: 3px solid var(--color-blue); padding-left: 24px; }
.timeline li { position: relative; padding-bottom: 20px; }
.timeline li::before { content: ""; position: absolute; left: -33px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--color-red); }
.timeline strong { color: var(--color-ink); font-size: var(--fs-h3); }
.timeline p { margin-top: 4px; font-size: var(--fs-body); }
.todo { background: #FFF6D6; padding: 0 4px; border-radius: 3px; color: var(--color-ink); }
.prose address { font-size: var(--fs-lead); }
.prose .callout { color: var(--color-ink); }
.card-tag a { color: inherit; }

/* Produktseite: Einleitung links, Anmeldeseite klein rechts */
.product-hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.product-hero-text { flex: 1 1 400px; min-width: 0; }
.hero-shot { flex: 0 1 420px; margin: 0; min-width: 0; }
.hero-shot img { display: block; width: 100%; height: auto; border-radius: var(--radius-card); border: 1px solid var(--color-border); box-shadow: 0 8px 24px rgba(26,32,44,.12); }
.hero-shot figcaption { margin-top: 8px; font-size: 14px; color: var(--color-muted); }
@media (max-width: 768px) { .product-hero-inner { gap: 28px; } .hero-shot { flex-basis: 100%; } }
.side-shot { flex: 0 1 460px; margin: 0; min-width: 0; }
.side-shot img { display: block; width: 100%; height: auto; border-radius: var(--radius-card); border: 1px solid var(--color-border); box-shadow: 0 8px 24px rgba(26,32,44,.12); }
.side-shot figcaption { margin-top: 8px; font-size: 14px; color: var(--color-muted); }
@media (max-width: 768px) { .side-shot { flex-basis: 100%; } }

/* Statusmarken (EmSimCenter) */
.badge { display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 500; border: 1px solid transparent; }
.badge-ok { background: #E6F4EA; color: #14532D; border-color: #86C79A; }
.badge-dev { background: #FFF3D6; color: #6B4600; border-color: #E0B861; }
.badge-plan { background: #EDF0F4; color: #3D4654; border-color: #B8C1CC; }
.prose h3 .badge { margin-right: 8px; vertical-align: middle; }
.callout { margin-top: 14px; }

/* Tabelle Voraussetzungen */
.spec { width: 100%; margin-top: 24px; border-collapse: collapse; }
.spec th, .spec td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-border); }
.spec th { width: 200px; font-weight: 700; white-space: nowrap; }
.spec td { color: var(--color-muted); }
.spec code { font-size: .92em; color: var(--color-ink); }
@media (max-width: 768px) { .spec th, .spec td { display: block; width: auto; padding: 4px 0; border: 0; } .spec th { padding-top: 14px; } .spec tr { display: block; border-bottom: 1px solid var(--color-border); padding-bottom: 12px; } }

.panel-list { margin-top: 16px; padding-left: 24px; list-style: disc; font-size: var(--fs-lead); color: var(--color-muted); }
.panel-list li + li { margin-top: 4px; }

.legal.ueber h2 { margin-top: 40px; font-size: calc(var(--fs-h2) * .7); }
.legal.ueber .prose p, .legal.ueber .prose ul { font-size: var(--fs-lead); }

/* Kopfzeile bleibt auf großen Bildschirmen beim Scrollen oben */
@media (min-width: 1024px) {
  :root { --header-h: 78px; }
  .site-header { position: sticky; top: 0; z-index: 30; }
  .subnav-bar { top: var(--header-h); }
  html { scroll-padding-top: calc(var(--header-h) + 16px); }
  html:has(.subnav-bar) { scroll-padding-top: calc(var(--header-h) + 72px); }
}
