/* Udo Stähling …alles fürs Büro – Stylesheet
   Keine externen Schriften oder Dienste: alles lokal, DSGVO-freundlich. */

:root {
  --teal: #00787d;
  --teal-dark: #005a5e;
  --teal-light: #e6f2f2;
  --red: #e2231a;
  --ink: #1d2426;
  --text: #3d4a4d;
  --muted: #6b7a7d;
  --line: #dde5e6;
  --bg: #ffffff;
  --bg-soft: #f5f8f8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 40, 42, .06), 0 8px 24px rgba(16, 40, 42, .08);
  --max: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 750; }
.h1-sub { display: block; margin-top: .35em; font-size: .52em; font-weight: 600; color: var(--teal); letter-spacing: 0; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 720; }
h3 { font-size: 1.2rem; font-weight: 680; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 10px; top: 10px; color: #fff; }

/* ---------- Kopfzeile ---------- */
.topbar { background: var(--teal); color: #e7f5f5; font-size: .85rem; }
.topbar .container { display: flex; gap: 22px; justify-content: flex-end; align-items: center; min-height: 36px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar svg { width: 15px; height: 15px; }
.topbar .hint { margin-right: auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 20px; }
.brand { display: block; line-height: 0; flex-shrink: 0; }
.brand img { width: 220px; height: auto; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav a {
  display: block; padding: 10px 12px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 560; font-size: .95rem;
}
.nav a { white-space: nowrap; }
@media (min-width: 1021px) and (max-width: 1320px) {
  .brand img { width: 180px; }
  .nav ul { gap: 0; }
  .nav a { padding: 10px 8px; font-size: .9rem; }
  .nav .btn { margin-left: 4px; }
}
.nav a:hover { background: var(--teal-light); color: var(--teal-dark); }
.nav a[aria-current="page"] { color: var(--teal); }
.nav .has-sub { position: relative; }
.nav .sub {
  position: absolute; top: 100%; left: 0; min-width: 250px;
  display: none; flex-direction: column; align-items: stretch; gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px;
}
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub, .nav .has-sub.open .sub { display: flex; }
.nav .sub-toggle {
  display: flex; align-items: center; gap: 4px; padding: 10px 12px; border: 0; border-radius: 8px; background: none; cursor: pointer;
  font: inherit; color: var(--ink); font-weight: 560; font-size: .95rem;
}
.nav .sub-toggle svg { width: 16px; height: 16px; transition: transform .15s ease; }
.nav .sub-toggle:hover { background: var(--teal-light); color: var(--teal-dark); }
.nav .sub-toggle.is-current { color: var(--teal); }
.nav .has-sub:hover .sub-toggle svg, .nav .has-sub.open .sub-toggle svg { transform: rotate(180deg); }
.nav .sub a { font-weight: 500; }
.nav .btn { margin-left: 8px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 46px; height: 46px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.nav a.btn, .btn-primary { background: var(--teal); color: #fff; }
.nav a.btn:hover, .btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-ghost { border-color: currentColor; color: var(--teal); background: transparent; }
.btn-ghost:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-light { background: #fff; color: var(--teal-dark); }
.btn-light:hover { background: var(--teal-light); color: var(--teal-dark); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(180deg, var(--bg-soft), #fff); overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; color: var(--teal); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: 14px; }
.squares { display: inline-flex; gap: 4px; }
.squares i { width: 9px; height: 9px; display: block; }
.squares i:nth-child(1) { background: var(--red); }
.squares i:nth-child(2) { background: var(--teal); }
.squares i:nth-child(3) { background: var(--ink); }
.page-head .squares i:nth-child(2) { background: #fff; }
.hero .lead { font-size: 1.2rem; color: var(--text); max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-media { position: relative; }
.hero-media img { border-radius: 20px; box-shadow: var(--shadow); aspect-ratio: 5 / 3.4; object-fit: cover; width: 100%; }
.hero-badge {
  position: absolute; left: -18px; bottom: -18px; background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  padding: 14px 18px; display: flex; gap: 12px; align-items: center; max-width: 280px;
}
.hero-badge strong { display: block; font-size: 1.6rem; color: var(--teal); line-height: 1; }
.hero-badge span { font-size: .9rem; color: var(--muted); line-height: 1.3; }

/* Seitenkopf für Unterseiten */
.page-head { background: var(--teal); color: #e7f5f5; padding: 56px 0 48px; position: relative; overflow: hidden; }
.page-head::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 70%);
}
.page-head h1 { color: #fff; margin-bottom: .3em; }
.page-head p { font-size: 1.15rem; max-width: 40em; margin: 0; }
@media (min-width: 1021px) { .page-head.wide p { max-width: none; } }
@media (min-width: 1200px) { .page-head.wide p { white-space: nowrap; } }
.page-head .eyebrow { color: #c8ecec; }
.crumbs { font-size: .85rem; margin-bottom: 18px; color: #cde9ea; }
.crumbs a { color: #fff; }

/* ---------- Sektionen ---------- */
section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 46em; margin-bottom: 36px; }
.section-head p { font-size: 1.1rem; color: var(--muted); }
.section-head.wide { max-width: none; }
@media (min-width: 1021px) { .section-head.wide h2 { white-space: nowrap; } }
@media (min-width: 1200px) { .section-head.wide p { font-size: 1rem; } }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s, border-color .15s;
}
a.card { text-decoration: none; color: var(--text); }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; color: var(--text); }
.card h3 { margin-bottom: .4em; }
.card p { margin-bottom: 0; }
.card .more svg { width: 18px; height: 18px; flex-shrink: 0; }
.card .more { margin-top: auto; padding-top: 16px; font-weight: 650; color: var(--teal); display: inline-flex; gap: 6px; align-items: center; }
.icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--teal-light); color: var(--teal);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; flex-shrink: 0;
}
.icon svg { width: 26px; height: 26px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.feature h3 { font-size: 1.05rem; }
.feature p { font-size: .97rem; color: var(--muted); margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: 18px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 5 / 3.2; object-fit: cover; }
.split.reverse > :first-child { order: 2; }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-size: .95rem; font-weight: 550; color: var(--ink); }

/* Herstellerlogos: grau, beim Darüberfahren farbig */
.logos { list-style: none; margin: 0; padding: 22px 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 10px; }
.logos li { display: flex; align-items: center; justify-content: center; height: 74px; }
.logos img { max-width: 100%; height: auto; filter: grayscale(1); opacity: .6; transition: filter .25s ease, opacity .25s ease, transform .25s ease; }
.logos li:hover img { filter: none; opacity: 1; transform: scale(1.04); }
@media (max-width: 640px) {
  .logos { grid-template-columns: repeat(3, 1fr); gap: 4px 6px; padding: 12px 8px; }
  .logos li { height: 54px; }
  .logos img { max-width: 88%; max-height: 34px; width: auto; }
}
@media (prefers-reduced-motion: reduce) { .logos img { transition: none; } .logos li:hover img { transform: none; } }

/* Inhaltsseiten */
.content-layout { display: grid; grid-template-columns: 250px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 104px; background: var(--bg-soft); border-radius: var(--radius); padding: 18px; }
.toc strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px 10px; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 7px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .95rem; }
.toc a:hover { background: #fff; color: var(--teal); }
.prose { max-width: 46em; }
.prose h2 { margin-top: 1.6em; padding-top: .2em; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; scroll-margin-top: 100px; }
.prose .sub { font-size: 1.1rem; color: var(--teal); font-weight: 600; margin-top: -.4em; }
.block { padding: 34px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.block:first-child { padding-top: 0; }
.block:last-child { border-bottom: 0; }
.block h2 { margin-top: 0; }

.note { background: var(--teal-light); border-left: 4px solid var(--teal); padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 1.4em 0; }
.note p:last-child { margin: 0; }

.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal h3 { font-size: 1.08rem; }
.legal p, .legal li { font-size: .98rem; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .icon { margin: 0; width: 46px; height: 46px; }
.contact-list small { display: block; color: var(--muted); font-size: .85rem; }
.contact-list a, .contact-list span.val { font-size: 1.1rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--teal); }
.map-card { background: var(--ink); color: #dfe8e9; border-radius: var(--radius); padding: 30px; }
.map-card h3 { color: #fff; }
.map-card .btn { margin-top: 10px; }

/* CTA-Band */
.cta { background: var(--teal); color: #e7f5f5; padding: 56px 0; }
.cta .container { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .2em; }
.cta p { margin: 0; font-size: 1.1rem; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta .btn-ghost { color: #fff; }
.cta .btn-ghost:hover { background: #fff; color: var(--teal-dark); border-color: #fff; }

/* ---------- Fußzeile ---------- */
.site-footer { background: var(--ink); color: #b6c4c6; font-size: .95rem; padding: 56px 0 0; }
.site-footer a { color: #e3ecec; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-logo { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; }
.footer-logo img { width: 170px; height: auto; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 44px; padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; }
.footer-bottom ul { display: flex; gap: 20px; }
.to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { color: #fff; background: var(--teal-dark); }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Responsiv ---------- */
@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    max-height: calc(100vh - 120px); overflow-y: auto; display: none; box-shadow: var(--shadow);
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 2px; }
  .nav a { padding: 12px; font-size: 1.05rem; }
  .nav .sub { position: static; display: flex; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
  .nav .sub-toggle { width: 100%; padding: 12px; font-size: 1.05rem; cursor: default; }
  .nav .sub-toggle svg { display: none; }
  .nav .sub-toggle:hover { background: none; color: var(--ink); }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
  .hero .container, .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse > :first-child { order: 0; }
  .grid-3, .grid-4, .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-layout { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
  .toc ul { display: flex; flex-wrap: wrap; gap: 4px; }
  .toc a { background: #fff; }
  .hero-badge { left: 12px; bottom: -16px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 52px 0; }
  .container { padding: 0 16px; }
  .grid-3, .grid-2, .grid-4, .features, .footer-grid { grid-template-columns: 1fr; }
  .topbar .hint { display: none; }
  .topbar .container { justify-content: center; }
  .brand img { width: 175px; }
  .hero .container { padding-top: 40px; padding-bottom: 56px; }
  .page-head { padding: 40px 0 36px; }
  .cta .container { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .topbar, .site-header, .site-footer, .cta, .to-top, .toc { display: none !important; }
  .page-head { background: none; color: #000; padding: 0; }
  .page-head h1 { color: #000; }
}
.partner-badge { margin: 1.8em 0 .4em; }
.partner-badge img { display: block; width: 300px; max-width: 80%; height: auto; }
.partner-badge.utax img { width: 190px; }
.chips-note { margin: 18px 0 0; color: var(--muted); font-size: .97rem; }
.prod-fig { margin: 0 0 1.4em; }
.prod-fig img { width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow); }
.prod-fig.portrait { max-width: 460px; }
.fig-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 1.4em; }
.fig-pair .prod-fig { margin: 0; }
.fig-pair .prod-fig img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 640px) { .fig-pair { grid-template-columns: 1fr; } }
.fig-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 1.4em 0; }
.fig-row3 figure { margin: 0; text-align: center; }
.fig-row3 img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.fig-row3 figcaption { margin-top: 8px; font-size: .9rem; color: var(--muted); }
@media (max-width: 480px) { .fig-row3 { gap: 10px; } .fig-row3 figcaption { font-size: .8rem; } }
