/* maschinenbau.digital – Zentrales Stylesheet */
/* Reines HTML/CSS – kein Framework, kein Build-Schritt */

/* ===================================================
   0. Lokal gehostete Schriften (@font-face)
   =================================================== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/lora-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/lora-latin-400-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/lora-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/lora-latin-700-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===================================================
   1. Design-Tokens (CSS Custom Properties)
   =================================================== */
:root {
  --mb-navy:    #0D1E33;
  --mb-orange:  #F97316;
  --mb-blue:    #0EA5E9;
  --mb-green:   #059669;
  --mb-red:     #DC2626;
  --mb-bg:      #F8FAFC;
  --mb-card:    #FFFFFF;
  --mb-border:  #E2E8F0;
  --mb-muted:   #64748B;
  --mb-text:    #1E293B;

  --font-sans:  'Inter', system-ui, sans-serif;
  --font-serif: 'Lora', Georgia, serif;
  --radius:     8px;
  --shadow:     0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.06);
}

/* ===================================================
   2. Reset
   =================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--mb-text);
  background: var(--mb-bg);
}
a { color: var(--mb-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ===================================================
   3. Demo-Bars
   =================================================== */
.demo-bar {
  background: #111;
  color: #fff;
  font-size: 0.8rem;
  text-align: center;
  padding: 0.5rem 1rem;
}
.demo-bar__inner { max-width: 1200px; margin: 0 auto; }
.demo-bar a { color: var(--mb-orange); text-decoration: underline; }

.demo-data-bar {
  background: #1a1a1a;
  color: #fff;
  font-size: 0.75rem;
  text-align: center;
  padding: 0.3rem 1rem;
}

/* ===================================================
   4. Site-Header (sticky, Navy)
   =================================================== */
.site-header {
  background: var(--mb-navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.site-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-logo span { color: var(--mb-orange); }

.site-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.site-nav a {
  color: rgba(255,255,255,0.82);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a.active {
  color: #fff;
  border-bottom-color: var(--mb-orange);
  text-decoration: none;
}

/* ===================================================
   5. Layout-Utilities
   =================================================== */
.container        { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container--prose { max-width: 800px;  margin: 0 auto; padding: 0 1.5rem; }

.section       { padding: 3.5rem 0; }
.section--alt  { background: #fff; }
.section--dark { background: var(--mb-navy); color: #fff; }
.section--slim { padding: 2rem 0; }

/* ===================================================
   6. Hero
   =================================================== */
.hero {
  background: var(--mb-navy);
  color: #fff;
  padding: 4rem 0 3rem;
}
.hero__label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--mb-orange);
  margin-bottom: 0.9rem;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 1.25rem;
}
.hero h1 em { font-style: normal; color: var(--mb-orange); }
.hero__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}
.hero__cta-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero--small { padding: 2.5rem 0 2rem; }
.hero--small h1 { font-size: clamp(1.4rem, 3vw, 2rem); }

/* ===================================================
   7. Breadcrumb (auf dunklem Hero)
   =================================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb__sep { color: rgba(255,255,255,0.35); }
.breadcrumb span[aria-current] { color: rgba(255,255,255,0.88); }

/* ===================================================
   8. Cards & Grid
   =================================================== */
.cards--2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.cards--3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.cards--4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }

.card {
  background: var(--mb-card);
  border: 1px solid var(--mb-border);
  border-radius: var(--radius);
  border-left: 3px solid transparent;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: block;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, border-left-color .15s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,.13);
  border-left-color: var(--mb-orange);
  text-decoration: none;
}
.card__tag  { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--mb-orange); margin-bottom: 0.45rem; }
.card h3    { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700; color: var(--mb-navy); margin-bottom: 0.5rem; }
.card p     { font-size: 0.875rem; color: var(--mb-muted); line-height: 1.55; }
.card__meta { font-size: 0.72rem; color: var(--mb-muted); margin-top: 0.75rem; }

/* Navy-Card – Override MUSS nach den allgemeinen Card-Regeln stehen */
.card--navy { background: var(--mb-navy); border-color: var(--mb-navy); color: #fff; }
.card--navy .card__tag { color: var(--mb-orange); }
.card--navy h3   { color: #fff; }
.card--navy p    { color: rgba(255,255,255,0.82); }
.card--navy .card__meta { color: rgba(255,255,255,0.6); }
.card--navy:hover { border-left-color: var(--mb-orange); }

/* ===================================================
   9. Section-Headings
   =================================================== */
.section__label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mb-orange);
  margin-bottom: 0.4rem;
  display: block;
}
.section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: var(--mb-navy);
  margin-bottom: 0.75rem;
}
.section--dark h2 { color: #fff; }
.section h2 em    { font-style: normal; color: var(--mb-orange); }
.section__lead {
  font-size: 1rem;
  color: var(--mb-muted);
  max-width: 640px;
  margin-bottom: 2.25rem;
  line-height: 1.65;
}
.section--dark .section__lead { color: rgba(255,255,255,0.72); }

/* ===================================================
   10. Prose / Artikel-Inhalt
   =================================================== */
.prose { line-height: 1.78; }
.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--mb-navy);
  margin: 2.25rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--mb-border);
}
.prose h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--mb-navy);
  margin: 1.75rem 0 0.5rem;
}
.prose p          { margin-bottom: 1.1rem; color: var(--mb-text); }
.prose ul, .prose ol { margin: 0.75rem 0 1.1rem 1.5rem; }
.prose li         { margin-bottom: 0.45rem; }
.prose strong     { color: var(--mb-navy); font-weight: 600; }
.prose a          { color: var(--mb-blue); }
.prose code {
  background: #EFF6FF;
  color: #1D4ED8;
  padding: 0.15em 0.45em;
  border-radius: 4px;
  font-size: 0.875em;
}

/* ===================================================
   11. Tag / Badge
   =================================================== */
.tag {
  display: inline-block;
  padding: 0.2em 0.65em;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
}
.tag--tech   { background: #EFF6FF; color: #1D4ED8; }
.tag--norm   { background: #FEF3C7; color: #92400E; }
.tag--iot    { background: #ECFDF5; color: #065F46; }
.tag--ki     { background: #F5F3FF; color: #5B21B6; }
.tag--sicher { background: #FEF2F2; color: #991B1B; }
.tag--vdma   { background: #E0F2FE; color: #075985; }

/* ===================================================
   12. Buttons
   =================================================== */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .15s;
  text-decoration: none;
  line-height: 1;
}
.btn--primary       { background: var(--mb-orange); color: #fff; border-color: var(--mb-orange); }
.btn--primary:hover { background: #EA6B0A; color: #fff; text-decoration: none; }
.btn--ghost         { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn--ghost:hover   { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }
.btn--outline       { background: transparent; color: var(--mb-navy); border-color: var(--mb-border); }
.btn--outline:hover { border-color: var(--mb-orange); color: var(--mb-orange); text-decoration: none; }

/* ===================================================
   13. Infobox
   =================================================== */
.infobox {
  background: #EFF6FF;
  border-left: 4px solid var(--mb-blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}
.infobox--warn    { background: #FEF3C7; border-left-color: var(--mb-orange); }
.infobox--success { background: #ECFDF5; border-left-color: var(--mb-green); }
.infobox--danger  { background: #FEF2F2; border-left-color: var(--mb-red); }
.infobox p        { margin: 0; font-size: 0.9rem; color: var(--mb-text); }
.infobox strong   { color: var(--mb-navy); }

/* ===================================================
   14. Tabelle
   =================================================== */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th {
  background: var(--mb-navy);
  color: #fff;
  text-align: left;
  padding: 0.7rem 1rem;
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
}
td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--mb-border); vertical-align: top; }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: #F8FAFC; }

/* ===================================================
   15. Feature-Liste
   =================================================== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature__icon {
  width: 2.5rem; height: 2.5rem;
  background: rgba(249,115,22,0.12);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0; color: var(--mb-orange);
}
.feature__text h4 { font-size: 0.92rem; font-weight: 600; color: var(--mb-navy); margin-bottom: 0.25rem; }
.feature__text p  { font-size: 0.84rem; color: var(--mb-muted); line-height: 1.5; }

/* ===================================================
   16. Stats / Kennzahlen
   =================================================== */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.stat { text-align: center; padding: 1.5rem 1rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 3px solid var(--mb-orange); }
.stat__value { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: var(--mb-navy); line-height: 1; }
.stat__label { font-size: 0.8rem; color: var(--mb-muted); margin-top: 0.4rem; }

/* ===================================================
   17. Partner-Karte (B2B)
   =================================================== */
.partner-card {
  background: #fff;
  border: 1px solid var(--mb-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.partner-card__header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.partner-card h3 { font-family: var(--font-serif); font-size: 1.1rem; color: var(--mb-navy); margin-bottom: 0.3rem; }
.partner-card__region { font-size: 0.78rem; color: var(--mb-muted); }
.partner-card p { font-size: 0.875rem; color: var(--mb-text); line-height: 1.6; }
.partner-card__footer { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--mb-border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
.partner-card__skills { display: flex; gap: 0.4rem; flex-wrap: wrap; }

/* ===================================================
   18. Footer (Navy, weißer Text)
   =================================================== */
.site-footer {
  background: var(--mb-navy);
  color: rgba(255,255,255,0.78);
  padding: 1.75rem 0;
  margin-top: 4rem;
}
.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
}
.site-footer__links { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; }
.site-footer__links a    { color: rgba(255,255,255,0.68); text-decoration: none; }
.site-footer__links a:hover { color: #fff; }
.site-footer__consent    { cursor: pointer; color: rgba(255,255,255,0.68); }
.site-footer__consent:hover { color: #fff; }
.site-footer__consent-btn {
  background: none; border: none; padding: 0; margin: 0;
  cursor: pointer; font: inherit; font-size: inherit;
  color: rgba(255,255,255,0.68);
}
.site-footer__consent-btn:hover { color: #fff; }

/* ===================================================
   19. Consent-Banner (fixed bottom)
   =================================================== */
.consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--mb-navy);
  color: #fff;
  padding: 1.25rem 1.5rem;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0,0,0,.25);
}
.consent-banner p { font-size: 0.875rem; margin-bottom: 1rem; color: rgba(255,255,255,0.88); max-width: 700px; }
.consent-banner__btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===================================================
   20. Responsive
   =================================================== */
@media (max-width: 640px) {
  .site-nav { display: none; }
  .hero      { padding: 2.5rem 0 2rem; }
  .section   { padding: 2.5rem 0; }
  .stats     { grid-template-columns: repeat(2, 1fr); }
  .features  { grid-template-columns: 1fr; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .consent-banner { padding: 1rem; }
}
@media (max-width: 480px) {
  .hero h1   { font-size: 1.6rem; }
  .cards--3, .cards--4 { grid-template-columns: 1fr; }
}
