/* MBe – Unternehmen digitalisieren
   Statische Website, ohne externe Schriften/Tracking (DSGVO-freundlich) */

:root {
  --violet: #9b51e0;
  --violet-dark: #7a32c2;
  --navy: #2d364c;
  --navy-dark: #222a3c;
  --green: #61a229;
  --ink: #2f3032;
  --muted: #6d7078;
  --bg-soft: #f5f3f9;
  --line: #e4e0ec;
  --radius: 8px;
  --max: 1440px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --head: Bahnschrift, "Segoe UI", "Arial Narrow", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.7; color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--violet-dark); }
a:hover { color: var(--green); }
h1, h2, h3, h4, h5, h6 { font-family: var(--head); line-height: 1.25; color: var(--navy); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.hero h1 { max-width: none !important; }

/* Kopf */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 56px; height: 56px; }
.brand span { font-family: var(--head); font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .06em; font-size: 14px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav a { display: block; white-space: nowrap; padding: 8px 10px; text-decoration: none; color: var(--navy); font-weight: 600; font-size: 15px; border-radius: 6px; }
.nav a:hover { background: var(--bg-soft); color: var(--violet-dark); }
.nav a[aria-current="page"] { color: var(--violet); box-shadow: inset 0 -3px 0 var(--violet); border-radius: 0; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; font-weight: 600; cursor: pointer; color: var(--navy); font-size: 15px; }
@media (max-width: 1180px) { .brand span { display: none; } }
.content a[href$=".pdf"] { display: inline-block; margin: 4px 12px 4px 0; padding: 8px 16px; border: 2px solid var(--violet); border-radius: 999px; text-decoration: none; font-weight: 600; }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 20px 16px; }
}

/* Hero */
.hero { position: relative; background: var(--navy) center/cover no-repeat; color: #fff; min-height: 420px; display: flex; align-items: flex-end; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(34,42,60,.88), rgba(45,54,76,.35)); }
.hero .wrap { position: relative; z-index: 1; padding: 64px 20px 40px; width: 100%; }
.hero h1 { color: #fff; margin: 0; font-size: clamp(26px, 4.2vw, 44px); text-transform: uppercase; letter-spacing: .03em; max-width: 900px; }
@media (max-width: 820px) { .hero { min-height: 260px; } }
.hero-sub { margin: 10px 0 0; font-size: 18px; opacity: .9; }

main { padding: 48px 0 64px; }
.meta { color: var(--muted); font-size: 15px; margin: 0 0 24px; }

/* Inhalt */
.content { max-width: none; margin: 0; }
.content h2 { font-size: 30px; margin: 40px 0 14px; }
.content h3 { font-size: 24px; margin: 34px 0 12px; }
.content h4, .content h5 { font-size: 21px; margin: 28px 0 10px; }
.content h6 { font-size: 19px; font-style: italic; color: var(--violet-dark); margin: 16px 0; }
.content figure { margin: 24px 0; }
.content figure img { display: block; border-radius: var(--radius); margin: 0 auto; }
.content figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 6px; }
.content hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.content blockquote { border-left: 4px solid var(--violet); margin: 24px 0; padding: 4px 20px; background: var(--bg-soft); }
.content table { border-collapse: collapse; width: 100%; margin: 20px 0; font-size: 15px; display: block; overflow-x: auto; }
.content th, .content td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.content th { background: var(--bg-soft); }
.content pre, .content code { background: #f3f3f6; border-radius: 4px; font-size: 14px; }
.content pre { padding: 12px; overflow-x: auto; }
.content ul, .content ol { padding-left: 1.3em; }

/* Startseite */
.home h3:first-of-type { text-align: center; color: var(--violet); letter-spacing: .25em; text-transform: uppercase; font-size: 30px; margin-top: 0; }
.home h3:first-of-type + p { text-align: center; font-size: 19px; border-left: 6px solid var(--violet); border-right: 6px solid var(--violet); padding: 4px 24px; }
.home h1 { font-size: 20px; text-align: center; color: #fff; background: var(--navy); padding: 18px 20px; border-radius: var(--radius); letter-spacing: .04em; line-height: 1.6; }
.home figure img[src*="Passbild"] { max-width: 220px; border-radius: 50%; }
.home figure img[src*="Cover"] { max-width: 300px; box-shadow: 0 8px 28px rgba(0,0,0,.18); border-radius: 4px; }
.home h5, .home h4 { color: var(--violet-dark); }

/* Buttons */
.btn { display: inline-block; background: var(--violet); color: #fff; text-decoration: none; padding: 11px 24px; border-radius: 999px; font-weight: 700; }
.btn:hover { background: var(--green); color: #fff; }

/* Karten */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; margin: 24px 0; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); background: #fff; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 10px 30px rgba(45,54,76,.14); transform: translateY(-2px); color: var(--ink); }
.card img, .card .ph { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; display: block; background: var(--navy); }
.card .ph { display: flex; align-items: center; justify-content: center; color: var(--violet); font-family: var(--head); font-size: 40px; font-weight: 700; }
.card .body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 20px; }
.card p { margin: 0; font-size: 15px; color: var(--muted); }
.card .date { font-size: 13px; color: var(--violet-dark); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.card .cats { margin-top: auto; padding-top: 8px; font-size: 12px; color: var(--green); font-weight: 600; }
.latest { margin: 56px 0 0; border-top: 1px solid var(--line); padding-top: 24px; }

/* Kunden & Partner */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.logos figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; background: #fff; }
.logos figure img { max-height: 100%; width: auto; object-fit: contain; }

/* Beitrag */
.author { margin: 48px 0 0; display: flex; gap: 18px; align-items: center; background: var(--bg-soft); padding: 18px 22px; border-radius: var(--radius); font-size: 15px; }
.author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.postnav { margin: 28px 0 12px; display: flex; justify-content: space-between; gap: 20px; font-size: 15px; }
.postnav a { text-decoration: none; max-width: 48%; }


/* Fuß */
.site-footer { background: var(--navy-dark); color: #cfd4de; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; padding: 40px 20px; }
.site-footer h4 { color: #fff; margin: 0 0 8px; font-size: 17px; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--green); }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.12); text-align: center; padding: 14px; font-size: 13px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 100; display: none; align-items: center; justify-content: center; padding: 40px 60px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 100%; border-radius: 6px; }
.lightbox .cap { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #eee; font-size: 15px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 24px; cursor: pointer; }
.lightbox .close { top: 14px; right: 14px; }
.lightbox .prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 10px; top: 50%; transform: translateY(-50%); }
