/* Wittmann EDV-Systeme GmbH – Stylesheet
   Farben aus dem Logo: Blau #336699, Petrol #339999 */
:root {
  --blue: #336699;
  --blue-dark: #234a70;
  --blue-deep: #1b3956;
  --teal: #339999;
  --teal-dark: #267878;
  --ink: #1d2733;
  --text: #33404d;
  --muted: #5f6d7a;
  --line: #dbe2ea;
  --bg-soft: #f3f6f9;
  --bg-blue: #e6eef5;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 40, 60, .06), 0 4px 16px rgba(20, 40, 60, .06);
  --wrap: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: .15em; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6em 1em; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Kopfbereich ---------- */
.site-header { background: var(--white); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.brand { display: block; line-height: 0; }
.brand img { width: 220px; height: auto; }
.main-nav { background: var(--blue); }
.main-nav ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0 auto; gap: 2px; }
.main-nav a {
  display: block; padding: .8rem 1rem; color: #fff; text-decoration: none;
  font-weight: 600; font-size: .95rem; letter-spacing: .02em;
}
.main-nav a:hover { background: var(--blue-dark); color: #fff; }
.main-nav a[aria-current="page"] { background: var(--teal); }
.nav-toggle { display: none; }

/* ---------- Seitenkopf (Hero) ---------- */
.hero { background: linear-gradient(90deg, var(--bg-blue) 0%, var(--bg-blue) 60%, #d3e1ee 100%); border-bottom: 1px solid var(--line); }
.hero-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; min-height: 150px; }
.hero-text { padding: 22px 0 26px; min-width: 0; }
.hero h1 { margin: .1em 0 0; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.2; color: var(--blue-deep); font-weight: 700; hyphens: auto; }
.hero-img { width: 308px; height: 113px; object-fit: cover; display: block; border-radius: var(--radius) var(--radius) 0 0; opacity: .95; flex-shrink: 0; }
.eyebrow { margin: 0; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-dark); }

.breadcrumb ol { list-style: none; margin: 0 0 .6rem; padding: 0; display: flex; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin: 0 .45em; color: #8a98a6; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); text-decoration: underline; }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 36px; padding-bottom: 64px; }
.layout.has-sub { grid-template-columns: 270px minmax(0, 1fr); }
.content { min-width: 0; }

/* Bereichsnavigation */
.subnav { align-self: start; position: sticky; top: 140px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 0; }
.subnav summary { list-style: none; font-weight: 700; color: var(--blue-deep); padding: 6px 18px 10px; cursor: default; font-size: .95rem; }
.subnav summary::-webkit-details-marker { display: none; }
.subnav ul { list-style: none; margin: 0; padding: 0; }
.subnav ul ul { margin: 2px 0 6px 14px; border-left: 2px solid var(--line); }
.subnav a { display: block; padding: .42rem 18px; color: var(--text); text-decoration: none; font-size: .95rem; line-height: 1.35; border-left: 3px solid transparent; }
.subnav ul ul a { padding-left: 14px; font-size: .9rem; }
.subnav a:hover { color: var(--blue); background: #fff; }
.subnav a[aria-current="page"] { color: var(--blue); font-weight: 700; border-left-color: var(--teal); background: #fff; }

/* ---------- Fließtext ---------- */
.prose { max-width: 72ch; }
.prose::after { content: ""; display: table; clear: both; }
.prose h2 { font-size: 1.5rem; line-height: 1.3; color: var(--blue-deep); margin: 1.6em 0 .5em; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; color: var(--blue-deep); margin: 1.5em 0 .4em; }
.prose p { margin: 0 0 1em; }
.prose ul { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--teal); }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.5em 0; padding: .8em 1.2em; border-left: 4px solid var(--teal); background: var(--bg-soft); font-style: italic; border-radius: 0 var(--radius) var(--radius) 0; }
.prose p.kontakt { display: inline-block; margin-top: .6em; padding: .7em 1.1em; background: var(--bg-blue); border-radius: var(--radius); font-weight: 600; color: var(--blue-deep); }
.prose p.meta { color: var(--muted); font-size: .95rem; }

.media { margin: .3em 0 1.2em; display: flex; flex-direction: column; gap: 12px; }
.media img { border-radius: 6px; display: block; }
.media.right { float: right; clear: right; margin: .3em 0 1em 1.6em; max-width: 45%; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; align-items: start; margin: 0 0 1.4em; clear: both; }
.split .media { margin: 0; }
.split-text p { margin: 0 0 .6em; }
.media.center { align-items: center; }
.media.logos { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 24px; }
.media.logos img { border-radius: 0; }
.media a.zoom { display: block; position: relative; }
.media a.zoom::after { content: "⤢"; position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.55); color: #fff; font-size: .8rem; line-height: 1; padding: 4px 6px; border-radius: 4px; }

/* ---------- Karten ---------- */
.section-title { font-size: 1.35rem; color: var(--blue-deep); margin: 2.2em 0 1em; }
.prose + .section-title, .prose .section-title { margin-top: 2em; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; max-width: none; }
.card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 20px 18px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .15s, border-color .15s;
  border-top: 4px solid var(--blue);
}
.card:hover { transform: translateY(-2px); border-color: #bccbd9; border-top-color: var(--teal); color: var(--text); }
.card h3 { margin: 0 0 .4em; font-size: 1.08rem; color: var(--blue-deep); line-height: 1.3; }
.card p { margin: 0 0 .8em; font-size: .94rem; color: var(--muted); }
.card-more { margin-top: auto; font-size: .9rem; font-weight: 600; color: var(--blue); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: .7em 1.3em; border-radius: 999px; background: var(--blue); color: #fff; text-decoration: none; font-weight: 600; border: 2px solid var(--blue); line-height: 1.2; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; }
.btn-light { background: #fff; color: var(--blue-deep); border-color: #fff; }
.btn-light:hover { background: var(--bg-blue); border-color: var(--bg-blue); color: var(--blue-deep); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 0; }

/* ---------- Startseite ---------- */
.home-hero { background: linear-gradient(120deg, var(--blue-deep) 0%, var(--blue) 65%, var(--teal) 130%); color: #fff; }
.home-hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: 56px; padding-bottom: 60px; }
.home-hero .eyebrow { color: #a9e0dc; }
.home-hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); line-height: 1.1; margin: .25em 0 .4em; color: #fff; }
.home-hero .lead { font-size: 1.15rem; max-width: 46ch; color: #e3edf6; margin: 0; }
.home-hero .btn { background: #fff; color: var(--blue-deep); border-color: #fff; }
.home-hero .btn:hover { background: var(--bg-blue); }
.home-hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.home-hero .btn-ghost:hover { background: rgba(255,255,255,.12); }
.home-hero-img { width: 308px; height: auto; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.25); flex-shrink: 0; }
.home-section { padding-top: 8px; padding-bottom: 16px; }
.home-section .section-title { margin-top: 1.8em; }
.cards-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.section-head a { font-weight: 600; text-decoration: none; }
.news-teaser { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.news-teaser .news-item { background: var(--bg-soft); border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--line); }
.contact-band { background: var(--blue-deep); color: #e3edf6; margin-top: 56px; }
.contact-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 36px; padding-bottom: 36px; }
.contact-band h2 { color: #fff; margin: 0 0 .2em; font-size: 1.5rem; }
.contact-band p { margin: 0; }
.contact-band .actions { margin: 0; }

/* ---------- News ---------- */
.news-item time { font-size: .85rem; font-weight: 600; color: var(--teal-dark); }
.news-item h3 { margin: .15em 0 .35em; font-size: 1.1rem; line-height: 1.35; }
.news-item h3 a { text-decoration: none; color: var(--blue-deep); }
.news-item h3 a:hover { color: var(--blue); text-decoration: underline; }
.news-item p { margin: 0; font-size: .95rem; color: var(--muted); }
.year-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 1.4em 0 .5em; }
.year-nav a { padding: .25em .7em; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .9rem; background: var(--bg-soft); }
.year-nav a:hover { border-color: var(--blue); }
h2.year { font-size: 1.3rem; color: var(--blue-deep); border-bottom: 2px solid var(--line); padding-bottom: .3em; margin: 1.8em 0 .8em; scroll-margin-top: 150px; }
.news-list { display: grid; gap: 20px; max-width: 72ch; }
.pager { display: flex; justify-content: space-between; gap: 20px; margin-top: 2.5em; padding-top: 1.2em; border-top: 1px solid var(--line); font-size: .93rem; }
.pager a { text-decoration: none; max-width: 48%; }
.pager .next { text-align: right; margin-left: auto; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.contact-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.contact-card h2 { margin: 0 0 .6em; font-size: 1.2rem; color: var(--blue-deep); }
.contact-card .label { display: inline-block; min-width: 4.6em; color: var(--muted); font-size: .9rem; }

/* ---------- Fußbereich ---------- */
.site-footer { background: #1a2633; color: #c7d2dd; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; padding-top: 40px; padding-bottom: 28px; }
.footer-title { color: #fff; font-weight: 700; margin: 0 0 .4em; }
.site-footer p { margin: 0; }
.site-footer a { color: #e3edf6; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; padding-bottom: 18px; font-size: .85rem; color: #93a3b3; }
.contact-band + .site-footer { margin-top: 0; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .layout.has-sub { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .subnav { position: static; padding: 0; }
  .subnav summary { cursor: pointer; padding: 12px 18px; display: flex; justify-content: space-between; align-items: center; }
  .subnav summary::after { content: "▾"; transition: transform .2s; }
  .subnav[open] summary::after { transform: rotate(180deg); }
  .subnav nav { padding-bottom: 10px; }
  .hero-img { display: none; }
  .hero-inner { min-height: 0; }
  .home-hero-img { display: none; }
  .home-hero-inner { padding-top: 40px; padding-bottom: 44px; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .header-inner { min-height: 64px; }
  .brand img { width: 180px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; background: none; border: 1px solid var(--line);
    border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 600; color: var(--blue-deep); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, opacity .2s; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 6px 0; }
  .main-nav a { padding: .85rem 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .media.right { float: none; max-width: 100%; margin: 0 0 1em; }
  .split { grid-template-columns: 1fr; }
  .hero-text { padding: 18px 0 20px; }
  .pager { flex-direction: column; }
  .pager a { max-width: 100%; }
  .pager .next { text-align: left; margin-left: 0; }
}

@media print {
  .site-header, .subnav, .site-footer, .hero-img, .pager, .contact-band { display: none !important; }
  .layout.has-sub { grid-template-columns: 1fr; }
  body { font-size: 11pt; }
}
