/* Legacy-Variablen auf Barkowski-Tokens gemappt (damit rechner.css mitzieht) */
:root {
  --navy: #141210; --blue: #2A2521; --light: #F7F1E6; --white: #FBFAF7;
  --accent: #A8204E; --accent-dark: #A8204E; --accent-light: #EBCBD3; --text: #141210; --muted: #57504A;
  --line: #CFC2AB; --shadow: 6px 6px 0 #141210; --radius: 10px; --header-height: 72px;
  --font-sans: "Instrument Sans", system-ui, sans-serif; --font-display: "Bricolage Grotesque", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); overflow-x: hidden; }
body { margin: 0; padding-top: var(--header-height); color: var(--text); background: var(--white); font-family: var(--font-sans); line-height: 1.6; overflow-x: hidden; }
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 20; padding: 10px 14px; background: var(--accent); color: var(--navy); font-weight: 700; transition: top .2s ease; }
.skip-link:focus { top: 16px; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-header .container { width: min(1500px, calc(100% - 40px)); }
.site-header { position: fixed; top: 0; right: 0; left: 0; z-index: 10; min-height: var(--header-height); border-bottom: 1px solid rgba(225, 231, 239, .84); background: rgba(255, 255, 255, .96); backdrop-filter: blur(18px); box-shadow: 0 12px 34px rgba(20,18,16, .08); }
.site-header.is-scrolled { box-shadow: 0 12px 34px rgba(20,18,16, .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-height); gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--navy); flex: 0 0 auto; min-width: 0; margin-right: 20px; }
.brand-logo-image { display: block; width: clamp(300px, 25vw, 470px); height: auto; max-height: 62px; object-fit: contain; object-position: left center; }
.brand-service { display: grid; gap: 1px; padding-left: 12px; border-left: 1px solid rgba(20,18,16, .16); }
.brand-service strong { color: var(--navy); font-family: var(--font-display); font-size: 1.13rem; font-weight: 400; line-height: 1.08; }
.brand-service small { color: var(--muted); font-size: .75rem; font-weight: 700; }
.main-nav { display: flex; align-items: center; justify-content: flex-end; flex: 1 1 auto; min-width: 0; gap: 18px; color: var(--blue); font-size: .98rem; font-weight: 600; }
.main-nav a { position: relative; }
.nav-group { position: relative; display: flex; align-items: center; }
.nav-group-link { gap: 6px; }
.nav-group-link > a { display: inline-flex; align-items: center; }
.nav-group-label { position: relative; display: inline-flex; align-items: center; gap: 0; padding: 0; border: 0; background: transparent; color: var(--blue); cursor: pointer; }
.nav-group-label::after { display: none; content: none; }
.nav-group.is-open .nav-group-label::after { display: none; }
.nav-group-toggle { display: none; width: 0; height: 0; padding: 0; border: 0; background: transparent; color: var(--blue); cursor: pointer; align-items: center; justify-content: center; }
.nav-group-toggle::before { display: none; content: none; }
.nav-group.is-open .nav-group-toggle::before { display: none; }
.nav-submenu { position: absolute; top: calc(100% + 4px); left: 50%; display: grid; min-width: 220px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.98); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(6px); transition: opacity .18s ease, transform .18s ease; }
.nav-submenu::before { position: absolute; left: 0; right: 0; top: -10px; height: 10px; content: ""; }
.nav-submenu a { padding: 10px 12px; border-radius: 6px; white-space: nowrap; }
.nav-submenu a:hover, .nav-submenu a:focus-visible, .nav-submenu a[aria-current="page"] { background: rgba(168,32,78,.1); color: var(--navy); }
.nav-group:hover .nav-submenu, .nav-group:focus-within .nav-submenu, .nav-group.is-open .nav-submenu { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-group-link .nav-submenu { top: calc(100% + 8px); left: auto; right: -12px; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(680px, calc(100vw - 36px)); min-width: 0; padding: 14px; background: rgba(255,255,255,.94); backdrop-filter: blur(18px); transform: translateY(8px); }
.nav-group-link .nav-submenu a { padding: 12px 14px; white-space: normal; line-height: 1.35; }
.nav-group-link:hover .nav-submenu, .nav-group-link:focus-within .nav-submenu, .nav-group-link.is-open .nav-submenu { transform: translateY(0); }
.main-nav a:not(.btn)::after { position: absolute; right: 0; bottom: -7px; left: 0; height: 2px; background: var(--accent); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--navy); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent); color: #ffffff; font-weight: 800; line-height: 1.2; box-shadow: 0 14px 30px rgba(168,32,78, .20); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover, .btn:focus-visible { background: #A8204E; box-shadow: 0 18px 38px rgba(168,32,78, .24); transform: translateY(-2px); }
.btn-secondary { border-color: rgba(255, 255, 255, .44); background: rgba(255, 255, 255, .1); color: var(--white); box-shadow: none; }
.btn-secondary:hover, .btn-secondary:focus-visible { background: rgba(255, 255, 255, .16); box-shadow: none; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: .9rem; white-space: nowrap; margin-left: 18px; }
.section { padding: 108px 0; }
.section-muted { background: var(--light); }
#leistungen { position: relative; overflow: hidden; background: linear-gradient(120deg, rgba(11,11,10, .86), rgba(11,11,10, .74)); color: var(--white); }
#leistungen .container { position: relative; z-index: 1; }
#leistungen .section-heading h2 { color: var(--white); }
#leistungen .section-heading p:not(.eyebrow) { color: rgba(255, 255, 255, .82); }
#leistungen .service-card { border-color: rgba(255, 255, 255, .28); border-top-color: var(--accent); background: rgba(255, 255, 255, .92); box-shadow: 0 24px 70px rgba(0, 0, 0, .18); backdrop-filter: blur(10px); }
#leistungen .service-card h3 { color: var(--navy); }
#leistungen .service-card p { color: #57504A; }

.hero { position: relative; overflow: hidden; padding: 104px 0 92px; background: linear-gradient(120deg, rgba(20,18,16, .97), rgba(42,37,33, .93)), radial-gradient(circle at 84% 18%, rgba(168,32,78, .18), transparent 30%), var(--navy); color: var(--white); }
.hero::after { position: absolute; right: 0; bottom: 0; width: 46%; height: 72%; background: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 36px 36px; content: ""; opacity: .55; mask-image: linear-gradient(90deg, transparent, #000 36%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(300px, .84fr); align-items: center; column-gap: 56px; row-gap: 46px; }
.eyebrow { margin: 0 0 16px; color: var(--accent-light); font-size: .82rem; font-weight: 800; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 900px; margin-bottom: 28px; font-family: var(--font-sans); font-size: clamp(2.2rem, 3.25vw, 3.65rem); font-weight: 800; line-height: 1.05; }
h2 { margin-bottom: 18px; color: var(--navy); font-family: var(--font-sans); font-size: clamp(2rem, 3vw, 3rem); font-weight: 800; line-height: 1.12; }
h3 { color: var(--navy); font-size: 1.14rem; line-height: 1.28; }
.hero-text { max-width: 740px; margin-bottom: 34px; color: rgba(255, 255, 255, .88); font-family: var(--font-display); font-size: clamp(1.3rem, 1.48vw, 1.58rem); font-weight: 300; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 0; }
.trust-list { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 34px; width: 100%; margin: 4px 0 0; padding: 0; list-style: none; }
.trust-list li { position: relative; flex: 0 0 auto; padding: 0 0 0 18px; border: 0; border-radius: 0; background: transparent; color: rgba(255,255,255,.9); font-size: .95rem; font-weight: 700; white-space: nowrap; }
.trust-list li::before { position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); content: ""; box-shadow: 0 0 0 4px rgba(168,32,78,.14); }
.trust-list li:last-child { grid-column: auto; }
.hero-payroll-scene { position: relative; min-height: 470px; display: grid; place-items: center; }
.hero-payroll-scene-image { display: block; width: min(100%, 600px); height: auto; filter: drop-shadow(0 34px 70px rgba(0,0,0,.22)); }
.hero-check-draw { position: absolute; left: 246px; top: 208px; width: 150px; height: 122px; overflow: visible; transform: rotate(-4deg); filter: drop-shadow(0 10px 18px rgba(61,149,39,.28)); pointer-events: none; }
.hero-check-draw path { fill: none; stroke: #6ad13b; stroke-width: 24; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 280; stroke-dashoffset: 280; animation: heroCheckWrite 4.6s ease-in-out infinite; }
@keyframes heroCheckWrite {
  0%, 14% { opacity: 0; stroke-dashoffset: 280; }
  18% { opacity: 1; }
  18%, 54% { stroke-dashoffset: 0; opacity: 1; }
  78% { stroke-dashoffset: 0; opacity: 1; }
  100% { opacity: 0; stroke-dashoffset: 0; }
}

.section-heading { max-width: 730px; margin-bottom: 52px; }
.section-heading p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.section-heading.light h2, .section-heading.light p:not(.eyebrow) { color: var(--white); }
.section-heading.light p:not(.eyebrow) { color: rgba(255,255,255,.78); }
.card-grid { display: grid; gap: 28px; }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, .service-card, .blog-card { min-height: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover, .service-card:hover, .blog-card:hover { border-color: rgba(168,32,78,.42); box-shadow: var(--shadow); transform: translateY(-5px); }
.card { padding: 26px; }
.card-icon { display: inline-grid; width: 42px; height: 42px; margin-bottom: 22px; place-items: center; border-radius: var(--radius); background: rgba(168,32,78,.12); color: var(--blue); font-weight: 800; }
.card p, .service-card p { margin-bottom: 0; color: var(--muted); }
.service-card { padding: 28px; border-top: 4px solid var(--accent); }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.step { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.step span { display: grid; width: 38px; height: 38px; margin-bottom: 20px; place-items: center; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 800; }
.step p { margin-bottom: 0; color: var(--muted); font-size: .95rem; }
.section-navy { background: var(--navy); color: var(--white); }
.advantages-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr); align-items: start; gap: 68px; }
.advantage-list { display: grid; gap: 18px; }
.advantage-list div { position: relative; padding: 18px 20px 18px 48px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(255,255,255,.07); color: rgba(255,255,255,.92); font-weight: 700; }
.advantage-list div::before { position: absolute; left: 18px; top: 20px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); content: ""; }
.blog-card { display: flex; min-height: 166px; padding: 24px; flex-direction: column; justify-content: space-between; }
.blog-card span { color: var(--accent); font-size: .82rem; font-weight: 800; text-transform: uppercase; }
.blog-card h3 { margin-bottom: 0; }
.blog-card p { margin: 14px 0 0; color: var(--muted); font-size: .98rem; }

.article-hero { position: relative; overflow: hidden; padding: 110px 0 84px; background: linear-gradient(120deg, rgba(20,18,16, .97), rgba(42,37,33, .93)), radial-gradient(circle at 82% 16%, rgba(168,32,78, .18), transparent 28%), var(--navy); color: var(--white); }
.article-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr); gap: 54px; align-items: center; }
.article-hero-copy p:not(.eyebrow) { max-width: 760px; color: rgba(255,255,255,.84); font-size: 1.08rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.article-meta span { padding: 9px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.92); font-weight: 700; }
.article-hero-panel { padding: 28px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); background: rgba(255,255,255,.08); box-shadow: 0 18px 48px rgba(0,0,0,.16); backdrop-filter: blur(10px); }
.article-hero-panel strong { display: block; margin-bottom: 12px; color: var(--white); font-size: 1.1rem; }
.article-hero-panel p { margin: 0; color: rgba(255,255,255,.82); }
.article-body { display: grid; grid-template-columns: minmax(0, .72fr) minmax(260px, .28fr); gap: 44px; align-items: start; }
.article-content { display: grid; gap: 34px; }
.article-section { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 16px 44px rgba(20,18,16,.06); }
.article-section h2 { margin-bottom: 16px; font-size: clamp(1.55rem, 2vw, 2rem); }
.article-section p:last-child, .article-section ul:last-child, .article-section ol:last-child { margin-bottom: 0; }
.article-section ul, .article-section ol { margin: 0; padding-left: 22px; color: var(--muted); }
.article-section li + li { margin-top: 10px; }
.article-highlight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.article-highlight { padding: 22px; border-radius: var(--radius); background: linear-gradient(145deg, #f9fcfe, #f3fbfb); border: 1px solid rgba(168,32,78,.18); }
.article-highlight strong { display: block; margin-bottom: 8px; color: var(--navy); font-size: 1.05rem; }
.article-side { display: grid; gap: 20px; position: sticky; top: calc(var(--header-height) + 28px); }
.article-side-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 16px 44px rgba(20,18,16,.06); }
.article-side-card strong { display: block; margin-bottom: 12px; color: var(--navy); font-size: 1.02rem; }
.article-side-card p, .article-side-card li { color: var(--muted); }
.article-side-card ul { margin: 0; padding-left: 20px; }
.article-side-card li + li { margin-top: 10px; }
.article-backlink { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 800; }
.article-backlink::before { width: 8px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; content: ""; transform: rotate(45deg); }
.article-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

.knowledge-hero { position: relative; overflow: hidden; padding: 88px 0 78px; background: linear-gradient(120deg, rgba(20,18,16, .98), rgba(42,37,33, .94)), radial-gradient(circle at 84% 12%, rgba(168,32,78, .2), transparent 30%), var(--navy); color: var(--white); }
.knowledge-hero::after { position: absolute; right: 0; bottom: 0; width: 44%; height: 82%; background: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 34px 34px; content: ""; opacity: .5; mask-image: linear-gradient(90deg, transparent, #000 38%); }
.knowledge-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(280px, .62fr); align-items: center; gap: 54px; }
.knowledge-hero-copy h1 { margin-bottom: 22px; }
.knowledge-hero-card { padding: 28px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); background: rgba(255,255,255,.08); box-shadow: 0 18px 48px rgba(0,0,0,.16); backdrop-filter: blur(10px); }
.knowledge-hero-card strong { display: block; margin-bottom: 12px; color: var(--white); font-size: 1.14rem; }
.knowledge-hero-card p { margin: 0; color: rgba(255,255,255,.82); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 28px; color: rgba(255,255,255,.74); font-size: .88rem; font-weight: 700; }
.breadcrumb a { color: var(--accent-light); }
.breadcrumb span { display: inline-flex; align-items: center; gap: 9px; }
.breadcrumb span::before { width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; content: ""; transform: rotate(-45deg); opacity: .72; }
.knowledge-section { background: linear-gradient(180deg, var(--light), var(--white) 34%); }
.knowledge-layout { display: grid; grid-template-columns: minmax(0, .72fr) minmax(260px, .28fr); gap: 44px; align-items: start; }
.knowledge-main { display: grid; gap: 28px; min-width: 0; }
.knowledge-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 16px 44px rgba(20,18,16,.06); }
.knowledge-card h2 { margin-bottom: 14px; font-size: clamp(1.55rem, 2vw, 2rem); }
.knowledge-card p { color: var(--muted); }
.knowledge-card p:last-child { margin-bottom: 0; }
.knowledge-tip { border-color: rgba(168,32,78,.24); background: linear-gradient(145deg, #f9fcfe, #f2fbfb); }
.checklist-box { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: checklist; }
.checklist-box li { position: relative; min-height: 48px; padding: 12px 14px 12px 60px; border: 1px solid rgba(168,32,78,.16); border-radius: var(--radius); background: #f8fcfd; color: var(--muted); counter-increment: checklist; }
.checklist-box li::before { position: absolute; left: 14px; top: 11px; display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--accent); color: var(--white); content: counter(checklist); font-size: .84rem; font-weight: 800; }
.mistake-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.mistake-list li { position: relative; padding: 14px 14px 14px 44px; border: 1px solid #e9d8d8; border-radius: var(--radius); background: #fffafa; color: #6f3a3a; }
.mistake-list li::before { position: absolute; left: 16px; top: 18px; width: 11px; height: 11px; border-radius: 50%; background: #d65f5f; content: ""; box-shadow: 0 0 0 4px rgba(214,95,95,.12); }
.cta-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; padding: 32px; border-radius: var(--radius); background: linear-gradient(120deg, var(--navy), var(--blue)); color: var(--white); box-shadow: var(--shadow); }
.cta-box h2 { color: var(--white); font-size: clamp(1.55rem, 2vw, 2.2rem); }
.cta-box p:not(.eyebrow) { margin-bottom: 0; color: rgba(255,255,255,.82); }
.related-articles { display: grid; gap: 22px; }
.related-articles .section-heading { margin-bottom: 0; }
.related-articles .blog-card p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.knowledge-side { display: grid; gap: 20px; position: sticky; top: calc(var(--header-height) + 28px); }
.legal-note { margin: 2px 0 0; color: var(--muted); font-size: .86rem; }

.faq-visual-image { display: block; width: min(100%, 330px); max-width: 330px; height: auto; margin: 34px 0 0; filter: drop-shadow(0 26px 42px rgba(20,18,16,.18)); animation: faqImageFloat 5.8s ease-in-out infinite; transform-origin: center; }
@keyframes faqImageFloat { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
.faq-grid { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr); gap: 62px; }
.faq-list { display: grid; gap: 16px; }
.faq-item { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.faq-item button { position: relative; width: 100%; min-height: 68px; padding: 18px 54px 18px 20px; border: 0; background: transparent; color: var(--navy); cursor: pointer; font-weight: 800; text-align: left; }
.faq-item button::after { position: absolute; right: 20px; top: 50%; width: 14px; height: 14px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); content: ""; transform: translateY(-65%) rotate(45deg); transition: transform .2s ease; }
.faq-item.is-open button::after { transform: translateY(-35%) rotate(225deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .24s ease; }
.faq-answer p { min-height: 0; margin: 0; overflow: hidden; color: var(--muted); }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-item.is-open .faq-answer p { padding: 0 20px 20px; }
.contact-section { background: linear-gradient(90deg, rgba(247,248,251,.96), rgba(255,255,255,.98)), var(--white); }
.contact-grid { display: grid; grid-template-columns: minmax(280px,.78fr) minmax(0,1.22fr); gap: 64px; align-items: start; }
.contact-copy { position: sticky; top: calc(var(--header-height) + 28px); }
.contact-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.contact-note { display: grid; gap: 6px; margin-top: 30px; padding: 20px; border-left: 4px solid var(--accent); border-radius: var(--radius); background: var(--white); box-shadow: 0 16px 44px rgba(20,18,16,.08); }
.contact-note strong { color: var(--navy); }
.contact-note span { color: var(--muted); }
.contact-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.form-row { display: grid; gap: 7px; }
.form-row-full { grid-column: 1 / -1; }
label { color: var(--navy); font-size: .9rem; font-weight: 800; }
input, select, textarea { width: 100%; min-height: 48px; border: 1px solid #d5dee9; border-radius: var(--radius); background: var(--white); color: var(--text); outline: none; padding: 11px 13px; transition: border-color .2s ease, box-shadow .2s ease; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(168,32,78,.14); }
.checkbox-row { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 12px; color: var(--muted); font-size: .9rem; font-weight: 500; }
.checkbox-row input { width: 18px; min-height: 18px; margin-top: 4px; accent-color: var(--accent); }
.form-feedback { grid-column: 1 / -1; min-height: 24px; margin: 0; color: var(--blue); font-weight: 700; }
.site-footer { padding: 32px 0; background: #141210; color: rgba(255,255,255,.76); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; gap: 20px; font-weight: 700; }
.footer-inner a:hover, .footer-inner a:focus-visible { color: var(--white); }
/* Absicherung & Datensicherheit */
.security-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.security-bar div { position: relative; padding: 16px 18px 16px 46px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--light); color: var(--navy); font-size: .95rem; font-weight: 700; }
.security-bar div::before { position: absolute; left: 18px; top: 20px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); content: ""; box-shadow: 0 0 0 4px rgba(168,32,78,.14); }
.security-note { max-width: 860px; margin: 22px 0 0; color: var(--muted); font-size: .92rem; }

/* Über uns */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.about-side { display: grid; gap: 26px; }
.about-portrait { width: 168px; height: 168px; margin-left: auto; border: 5px solid var(--white); border-radius: 50%; object-fit: cover; object-position: center top; box-shadow: 0 16px 44px rgba(20,18,16,.16); }
.about-grid .section-heading { margin-bottom: 0; }
.about-facts { display: grid; gap: 18px; }
.about-facts div { display: grid; gap: 6px; padding: 18px 20px; border-left: 4px solid var(--accent); border-radius: var(--radius); background: var(--white); box-shadow: 0 16px 44px rgba(20,18,16,.08); }
.about-facts strong { color: var(--navy); }
.about-facts span { color: var(--muted); font-size: .97rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .56s ease, transform .56s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } .faq-visual-image { animation: none !important; } }
@media (max-width: 1040px) { .main-nav { gap: 16px; } .hero-grid, .advantages-grid, .contact-grid, .article-hero-grid, .article-body, .knowledge-hero-grid, .knowledge-layout, .about-grid { grid-template-columns: 1fr; } .about-grid { gap: 36px; } .security-bar { grid-template-columns: repeat(2,minmax(0,1fr)); } .hero { padding-top: 86px; } .contact-copy, .article-side, .knowledge-side { position: static; } .card-grid.four, .steps, .article-highlight-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 920px) { .brand-logo-crop { width: 265px; height: 52px; background-size: 455px auto; } }
@media (max-width: 1360px) { .site-header .container { width: min(1440px, calc(100% - 40px)); } .brand-logo-image { width: 500px; max-height: 66px; } .main-nav { gap: 16px; font-size: .92rem; } }
@media (max-width: 1180px) { .site-header .container { width: min(1240px, calc(100% - 32px)); } .brand-logo-image { width: 420px; max-height: 60px; } .main-nav { gap: 12px; font-size: .88rem; } }
@media (max-width: 1040px) { .brand-logo-image { width: 350px; max-height: 54px; } }
@media (max-width: 940px) { .brand-logo-image { width: 300px; max-height: 48px; } }
@media (max-width: 900px) { .trust-list { flex-direction: column; align-items: flex-start; gap: 12px; } .trust-list li { white-space: normal; } .container { width: min(100% - 28px,1120px); } .nav-toggle { display: block; } .main-nav { position: fixed; top: var(--header-height); right: 14px; left: 14px; display: grid; gap: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease; } .main-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); } .main-nav a, .nav-group-label { padding: 13px 10px; } .nav-group { display: grid; } .nav-group-link { grid-template-columns: 1fr; align-items: center; gap: 0; } .nav-group-link > a { padding: 13px 10px; } .nav-group-toggle { display: none; width: 0; height: 0; justify-self: end; } .nav-group-label { justify-content: space-between; width: 100%; } .nav-submenu, .nav-group-link .nav-submenu { position: static; width: auto; min-width: 0; max-height: 0; grid-template-columns: 1fr; padding: 0 0 0 12px; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; opacity: 1; pointer-events: auto; overflow: hidden; transform: none; transition: max-height .2s ease, padding .2s ease; } .nav-group.is-open .nav-submenu, .nav-group:focus-within .nav-submenu { max-height: 760px; padding: 0 0 8px 12px; } .nav-submenu a { padding: 10px; white-space: normal; } .main-nav .btn { margin-top: 8px; } .section { padding: 72px 0; } .hero-grid { gap: 40px; } .hero-actions { align-items: stretch; flex-direction: column; } .hero-actions .btn { width: 100%; } .hero-payroll-scene { min-height: 390px; } .hero-check-draw { left: 224px; top: 194px; width: 126px; height: 102px; } .hero-check-draw path { stroke-width: 20; } .card-grid.three, .faq-grid, .article-highlight-grid, .security-bar { grid-template-columns: 1fr; } .contact-form { grid-template-columns: 1fr; padding: 22px; } .article-hero, .knowledge-hero { padding: 90px 0 68px; } .article-section, .article-side-card, .knowledge-card { padding: 22px; } .cta-box { grid-template-columns: 1fr; } }
@media (max-width: 560px) { :root { --header-height: 74px; } .faq-visual-image { max-width: 260px; } .trust-list { gap: 10px; } .brand-logo-crop { width: 230px; height: 48px; background-size: 405px auto; } .hero { padding: 62px 0 70px; } h1 { font-size: 2.25rem; } h2 { font-size: 1.9rem; } .accounting-symbol { min-height: 330px; } .symbol-document { left: 18px; top: 40px; width: 176px; height: 232px; padding: 28px 22px; } .symbol-calculator { right: 18px; bottom: 34px; width: 168px; padding: 18px; } .symbol-check { right: 118px; top: 116px; width: 54px; height: 54px; } .trust-list, .footer-inner, .footer-inner nav { align-items: flex-start; flex-direction: column; } .trust-list li { width: 100%; white-space: normal; } }
.contact-direct { display: grid; gap: 8px; margin-top: 18px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 16px 44px rgba(20,18,16,.06); }
.contact-direct strong { color: var(--navy); }
.contact-direct a { color: var(--accent-dark); font-weight: 800; }
.checkbox-row a { color: var(--accent-dark); font-weight: 800; }
/* Mobile Feinschliff Startseite und Menü */
@media (max-width: 900px) {
  .site-header .container { width: min(100% - 24px, 1120px); }
  .header-inner { gap: 12px; }
  .brand { margin-right: 0; }
  .brand-logo-image { width: clamp(210px, 58vw, 300px); max-height: 46px; }
  .main-nav {
    right: 12px;
    left: 12px;
    max-height: calc(100dvh - var(--header-height) - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .main-nav a,
  .nav-group-label,
  .nav-group-link > a {
    width: 100%;
    min-width: 0;
    line-height: 1.28;
    overflow-wrap: anywhere;
    overflow-wrap: anywhere;
  }
  .nav-submenu,
  .nav-group-link .nav-submenu {
    width: 100%;
    padding-left: 10px;
  }
  .nav-group.is-open .nav-submenu,
  .nav-group:focus-within .nav-submenu {
    max-height: 60vh;
    overflow-y: auto;
  }
  .hero { padding: 52px 0 62px; }
  .hero::after { width: 72%; opacity: .28; }
  .hero-grid { gap: 28px; }
  .hero-copy { min-width: 0; }
  .hero-copy h1 { max-width: 100%; overflow-wrap: anywhere; }
  .hero-text { max-width: 100%; }
  .hero-visual { max-width: 100%; overflow: hidden; }
  .hero-payroll-scene { min-height: clamp(240px, 76vw, 360px); }
  .hero-payroll-scene-image { width: min(100%, 430px); }
}

@media (max-width: 560px) {
  .container { width: min(100% - 24px, 1120px); }
  .brand-logo-image { width: clamp(178px, 55vw, 230px); max-height: 40px; }
  .nav-toggle { width: 42px; height: 42px; flex: 0 0 42px; }
  .main-nav { right: 10px; left: 10px; padding: 10px; border-radius: 8px; }
  .main-nav a,
  .nav-group-label,
  .nav-group-link > a { padding: 11px 8px; font-size: .96rem; }
  .nav-submenu a { padding: 9px 8px; font-size: .92rem; }
  .hero { padding: 46px 0 56px; }
  h1 { font-size: clamp(2rem, 9.2vw, 2.35rem); line-height: 1.08; }
  .hero-text { margin-bottom: 26px; font-size: 1.08rem; line-height: 1.55; }
  .hero-actions { gap: 10px; }
  .btn { min-height: 46px; padding: 0 16px; }
  .hero-payroll-scene { min-height: 255px; }
  .hero-payroll-scene-image { width: min(100%, 330px); }
}

@media (max-width: 380px) {
  .brand-logo-image { width: 172px; }
  h1 { font-size: 1.95rem; }
  .hero-text { font-size: 1rem; }
}


/* =====================================================================
   BARKOWSKI BUCHHALTUNG – Designsystem (Papier, Tinte, Himbeer)
   Überschreibt das frühere Layout; Klassen und Inhalte bleiben gleich.
   ===================================================================== */
:root {
  --paper: #F6F0E6; --grid: #E8DECD; --card: #FBFAF7; --ink: #141210; --ink-2: #57504A;
  --night: #0B0B0A; --red: #A8204E; --hl: #EBCBD3; --rule: #CFC2AB;
  --header-height: 72px;
  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
html { background: var(--paper); }
body { background-color: var(--paper); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 36px 36px; color: var(--ink); font-size: 17px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; color: var(--ink); }
h1 { font-weight: 700; font-size: clamp(2.3rem, 4.6vw, 4rem); line-height: 1; letter-spacing: -.03em; }
h2 { font-weight: 700; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.02; letter-spacing: -.03em; }
h3 { font-weight: 700; letter-spacing: -.01em; }
.skip-link { background: var(--ink); color: #fff; }
.container, .wrap { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.site-header .container { width: min(1280px, calc(100% - 40px)); }

/* Eyebrow */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); }

/* Header */
.site-header { background: rgba(239,231,218,.94); border-bottom: 2px solid var(--ink); box-shadow: none; backdrop-filter: blur(10px); }
.site-header.is-scrolled { box-shadow: 0 6px 0 rgba(20,18,16,.06); }
.header-inner { min-height: var(--header-height); gap: 18px; }
.brand { margin-right: 12px; color: var(--ink); }
.brand-logo-image { width: auto; height: 46px; max-height: none; }
.main-nav { gap: 22px; color: var(--ink-2); font-size: 15px; font-weight: 500; }
.main-nav a:hover, .main-nav a[aria-current="page"], .nav-group-label:hover { color: var(--ink); }
.main-nav a[aria-current="page"]:not(.btn) { color: var(--ink); }
.nav-group-label, .nav-group-link > a { color: inherit; font: inherit; }
.main-nav > a:not(.btn)::after, .nav-submenu a::after { display: none !important; }
.nav-group.has-sub > a::after, .nav-group > .nav-group-label::after { content: ""; display: inline-block !important; position: static; width: 6px; height: 6px; margin: 0 0 3px 9px; border: 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; background: none; transform: rotate(45deg); transform-origin: center; transition: transform .2s; }
.nav-group.is-open > .nav-group-label::after, .nav-group.is-open.has-sub > a::after { transform: translateY(2px) rotate(225deg); }
.brand-logo-image { width: auto !important; max-height: none !important; }

.nav-submenu { border: 2px solid var(--ink); border-radius: 12px; background: var(--card); box-shadow: 6px 6px 0 var(--ink); backdrop-filter: none; }
.nav-group-link .nav-submenu { background: var(--card); backdrop-filter: none; }
.nav-submenu a { border-radius: 8px; color: var(--ink); font-weight: 500; }
.nav-submenu a::after { display: none; }
.nav-submenu a:hover, .nav-submenu a:focus-visible, .nav-submenu a[aria-current="page"] { background: var(--hl); color: var(--ink); }
.nav-toggle { border: 2px solid var(--ink); border-radius: 10px; background: var(--card); }
.nav-toggle span { background: var(--ink); }

/* Buttons */
.btn { min-height: 0; padding: 16px 24px; border: 2px solid var(--ink); border-radius: 10px; background: var(--ink); color: #fff; font: 600 16px/1 var(--font-sans); box-shadow: 4px 4px 0 var(--red); }
.btn:hover, .btn:focus-visible { background: var(--ink); color: #fff; box-shadow: 6px 6px 0 var(--red); transform: translate(-2px, -2px); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--red); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none; }
.btn-secondary:hover, .btn-secondary:focus-visible { background: var(--hl); color: var(--ink); box-shadow: none; transform: none; }
.btn-small { padding: 12px 16px; font-size: 14px; box-shadow: 3px 3px 0 var(--red); margin-left: 8px; }
.main-nav a.btn { color: #fff; }
.main-nav a.btn:hover { color: #fff; }
.main-nav a.btn::after { display: none; }

/* Sektionen */
.section { padding: clamp(64px, 9vw, 116px) 0; }
.section-muted { background: rgba(251,250,247,.55); border-block: 2px solid var(--ink); }
.section-heading { max-width: 760px; }
.section-heading p:not(.eyebrow) { color: var(--ink-2); }
.section-heading h2 { margin-top: 14px; }

/* Hero */
.hero { background: transparent; color: var(--ink); padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 84px); }
.hero::after { display: none; }
.hero h1 { color: var(--ink); }
.hero-text { color: var(--ink-2); font-family: var(--font-sans); font-weight: 400; font-size: 1.18rem; line-height: 1.6; }
.hero-payroll-scene { min-height: 0; }
..hero-payroll-scene-image-x, .faq-visual-image-x { border: 2px solid var(--ink); border-radius: 14px; background: var(--card); box-shadow: 10px 10px 0 var(--red); filter: none; }
.hero-payroll-scene-image { width: min(100%, 560px); }
.faq-visual-image { box-shadow: 8px 8px 0 var(--red); max-width: 300px; animation: none; }
.hero-check-draw { display: none; }
.trust-list { justify-content: flex-start; flex-wrap: wrap; gap: 12px; }
.trust-list li { padding: 8px 14px 8px 30px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card); color: var(--ink); font: 500 12px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.trust-list li::before { left: 12px; top: 50%; transform: translateY(-50%); width: 9px; height: 9px; background: var(--red); box-shadow: none; }

/* Karten */
.card, .service-card, .blog-card, .step { border: 2px solid var(--ink); border-radius: 12px; background: var(--card); box-shadow: 5px 5px 0 var(--ink); }
.card:hover, .service-card:hover, .blog-card:hover { border-color: var(--ink); box-shadow: 8px 8px 0 var(--red); transform: translate(-3px, -3px); }
.card-icon { border: 1.5px solid var(--ink); border-radius: 8px; background: var(--hl); color: var(--ink); font: 600 .9rem var(--font-mono); }
.card p, .service-card p, .step p, .blog-card p { color: var(--ink-2); }
.service-card { border-top: 2px solid var(--ink); position: relative; }
.service-card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 6px; background: var(--red); border-radius: 10px 10px 0 0; }
.service-card { padding-top: 34px; }
.step span { border-radius: 8px; background: var(--ink); color: var(--paper); font: 500 .95rem var(--font-mono); }
.blog-card span { color: var(--red); font: 500 12px var(--font-mono); letter-spacing: .14em; }

/* Leistungen (früher dunkel) */
#leistungen { background: transparent; color: var(--ink); }
#leistungen .section-heading h2 { color: var(--ink); }
#leistungen .section-heading p:not(.eyebrow) { color: var(--ink-2); }
#leistungen .service-card { border-color: var(--ink); border-top-color: var(--ink); background: var(--card); backdrop-filter: none; box-shadow: 5px 5px 0 var(--ink); }
#leistungen .service-card h3 { color: var(--ink); }
#leistungen .service-card p { color: var(--ink-2); }

/* Dunkle Raster-Sektionen */
.section-navy, .cta-box, .site-footer { background-color: var(--night); background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 36px 36px; color: var(--paper); }
.section-navy h2, .section-navy h3, .cta-box h2 { color: #fff; }
.section-navy .eyebrow, .cta-box .eyebrow { color: #E9A9BF; }
.section-navy .eyebrow::before, .cta-box .eyebrow::before { background: #E9A9BF; }
.section-heading.light h2 { color: #fff; }
.section-heading.light p:not(.eyebrow) { color: rgba(239,231,218,.8); }
.advantage-list div { border: 1.5px solid rgba(239,231,218,.35); border-radius: 10px; background: rgba(251,250,247,.06); color: var(--paper); }
.advantage-list div::before { background: var(--red); box-shadow: 0 0 0 3px rgba(235,203,211,.3); border-radius: 2px; }
.cta-box { border: 2px solid var(--ink); border-radius: 14px; box-shadow: 8px 8px 0 var(--red); }
.cta-box p:not(.eyebrow) { color: rgba(239,231,218,.84); }
.cta-box .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); box-shadow: 4px 4px 0 var(--red); }
.cta-box .btn:hover { color: var(--ink); background: #fff; }
.cta-box .btn-secondary { background: transparent; color: var(--paper); border-color: var(--paper); }

/* Sicherheit & Über uns */
.security-bar div { border: 2px solid var(--ink); border-radius: 10px; background: var(--card); color: var(--ink); }
.security-bar div::before { border-radius: 2px; background: var(--red); box-shadow: none; }
.security-note { color: var(--ink-2); }
.about-portrait { border: 2px solid var(--ink); border-radius: 14px; box-shadow: 6px 6px 0 var(--red); object-position: center top; }
.about-facts div { border: 2px solid var(--ink); border-left: 6px solid var(--red); border-radius: 10px; background: var(--card); box-shadow: 4px 4px 0 var(--ink); }
.about-facts strong { color: var(--ink); }
.about-facts span { color: var(--ink-2); }

/* FAQ */
.faq-list { gap: 0; border-top: 2px solid var(--ink); }
.faq-item { border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: transparent; }
.faq-item button { min-height: 76px; padding: 22px 60px 22px 4px; color: var(--ink); font: 700 1.12rem var(--font-display); letter-spacing: -.01em; }
.faq-item button::after { right: 8px; width: 22px; height: 22px; border: 0; background: linear-gradient(var(--red), var(--red)) center / 100% 2px no-repeat, linear-gradient(var(--red), var(--red)) center / 2px 100% no-repeat; transform: translateY(-50%); transition: transform .25s; }
.faq-item.is-open button::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer p { color: var(--ink-2); }
.faq-item.is-open .faq-answer p { padding: 0 4px 24px; }

/* Kontakt & Formular */
.contact-section { background: transparent; }
.contact-copy p:not(.eyebrow) { color: var(--ink-2); }
.contact-note { border: 2px solid var(--ink); border-left: 6px solid var(--red); border-radius: 10px; background: var(--card); box-shadow: 4px 4px 0 var(--ink); }
.contact-note strong { color: var(--ink); }
.contact-note span { color: var(--ink-2); }
.contact-note a { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.contact-form { border: 2px solid var(--ink); border-radius: 14px; background: var(--card); box-shadow: 8px 8px 0 var(--ink); }
label { color: var(--ink); font-weight: 600; }
input, select, textarea { border: 2px solid var(--ink); border-radius: 8px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 4px var(--hl); }
.checkbox-row { color: var(--ink-2); }
.checkbox-row input { accent-color: var(--red); }
.checkbox-row a { color: var(--red); text-decoration: underline; }
.form-feedback { color: var(--red); }

/* Artikel / Wissen */
.article-hero, .knowledge-hero { background: transparent; color: var(--ink); border-bottom: 2px solid var(--ink); }
.article-hero::after, .knowledge-hero::after { display: none; }
.article-hero-copy p:not(.eyebrow), .knowledge-hero-copy p:not(.eyebrow) { color: var(--ink-2); }
.article-meta span { border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card); color: var(--ink); font: 500 12px var(--font-mono); letter-spacing: .06em; }
.article-hero-panel, .knowledge-hero-card { border: 2px solid var(--ink); border-radius: 14px; background: var(--card); box-shadow: 8px 8px 0 var(--red); backdrop-filter: none; }
.article-hero-panel strong, .knowledge-hero-card strong { color: var(--ink); font-family: var(--font-display); }
.article-hero-panel p, .knowledge-hero-card p { color: var(--ink-2); }
.breadcrumb { color: var(--ink-2); font: 500 12px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.breadcrumb a { color: var(--red); }
.knowledge-section { background: transparent; }
.article-section, .article-side-card, .knowledge-card { border: 2px solid var(--ink); border-radius: 12px; background: var(--card); box-shadow: 5px 5px 0 var(--ink); }
.knowledge-card p, .article-section ul, .article-section ol, .article-side-card p, .article-side-card li { color: var(--ink-2); }
.knowledge-card a:not(.btn), .article-section a:not(.btn), .article-side-card a:not(.btn) { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.article-highlight, .knowledge-tip { border: 2px solid var(--ink); border-radius: 12px; background: var(--hl); }
.article-highlight strong, .article-side-card strong { color: var(--ink); }
.article-backlink { color: var(--red); font-weight: 600; }
.checklist-box li { border: 1.5px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink-2); }
.checklist-box li::before { border-radius: 6px; background: var(--ink); color: var(--paper); font-family: var(--font-mono); }
.mistake-list li { border: 1.5px solid var(--red); border-radius: 10px; background: #fff; color: var(--ink); }
.mistake-list li::before { border-radius: 2px; background: var(--red); box-shadow: none; }
.legal-note { color: var(--ink-2); }

/* Footer */
.site-footer { padding: 64px 0 28px; border-top: 2px solid var(--ink); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(239,231,218,.25); }
.footer-brand img { display: block; height: 46px; width: auto; padding: 8px 12px; border-radius: 10px; background: var(--paper); }
.footer-brand p { margin: 18px 0 0; max-width: 24rem; color: rgba(239,231,218,.78); font-size: .97rem; }
.footer-col h4 { margin: 0 0 14px; color: #E9A9BF; font: 500 12px var(--font-mono); letter-spacing: .18em; text-transform: uppercase; }
.footer-col ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.footer-col a { color: rgba(239,231,218,.86); font-size: .97rem; }
.footer-col a:hover, .footer-col a:focus-visible { color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.footer-col address { font-style: normal; color: rgba(239,231,218,.86); font-size: .97rem; line-height: 1.7; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; padding-top: 24px; color: rgba(239,231,218,.65); font: 400 12px var(--font-mono); letter-spacing: .06em; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom a:hover { color: #fff; }
.footer-cookie-button { border: 0; background: none; padding: 0; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; }
.footer-cookie-button:hover { color: #fff; }
.footer-inner { color: rgba(239,231,218,.75); }

/* Reveal */
.reveal { transition: opacity .6s cubic-bezier(.2,.8,.2,1), transform .6s cubic-bezier(.2,.8,.2,1); }

/* Responsive: Navigation klappt ab 1080px ein */
@media (max-width: 1240px) { .main-nav { gap: 16px; font-size: 14px; } .brand-logo-image { height: 42px; } }
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .main-nav { position: fixed; top: var(--header-height); right: 14px; left: 14px; display: grid; gap: 0; max-height: calc(100vh - var(--header-height) - 24px); overflow-y: auto; padding: 12px; border: 2px solid var(--ink); border-radius: 14px; background: var(--card); box-shadow: 8px 8px 0 var(--ink); color: var(--ink); font-size: 16px; opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease; }
  .main-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .main-nav a, .nav-group-label { padding: 13px 10px; }
  .nav-group { display: grid; }
  .nav-group-link { grid-template-columns: 1fr; gap: 0; }
  .nav-group-label { justify-content: space-between; width: 100%; }
  .nav-submenu, .nav-group-link .nav-submenu { position: static; width: auto; min-width: 0; max-height: 0; grid-template-columns: 1fr; padding: 0 0 0 12px; border: 0; border-radius: 0; background: transparent; box-shadow: none; opacity: 1; pointer-events: auto; overflow: hidden; transform: none; transition: max-height .2s ease, padding .2s ease; }
  .nav-group:hover .nav-submenu { max-height: 0; }
  .nav-group.is-open .nav-submenu { max-height: 900px; padding: 0 0 8px 12px; }
  .nav-group-link .nav-submenu a, .nav-submenu a { padding: 10px; white-space: normal; }
  .main-nav .btn { margin: 8px 0 0; }
  .main-nav a:not(.btn)::after { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) { .hero-payroll-scene-image { width: min(100%, 460px); } }
@media (max-width: 640px) {
  :root { --header-height: 64px; }
  body { font-size: 16px; }
  .brand-logo-image { height: 36px; }
  .btn { padding: 15px 18px; min-height: 0; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; }
  .hero-payroll-scene-image, .faq-visual-image { box-shadow: 6px 6px 0 var(--red); }
}

/* Mobile-Feinschliff Barkowski */
.article-content, .knowledge-main, .article-body > *, .knowledge-layout > * { min-width: 0; }
.article-section, .knowledge-card, .article-side-card { overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .card-grid.four, .card-grid.three, .steps, .article-highlight-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(1.5rem, 6.4vw, 2.1rem); line-height: 1.06; overflow-wrap: break-word; hyphens: auto; }
  h2 { font-size: clamp(1.7rem, 7vw, 2.1rem); }
  .hero-copy h1 { overflow-wrap: break-word; }
}

/* ===== Lohnlauf-Animation (Startseite, rechts im Hero) ===== */
.hero-visual { display: grid; place-items: center; }
.payroll-anim { position: relative; width: min(100%, 500px); padding: 0 14px 18px 0; }
.pa-sheet { position: absolute; inset: 18px 0 0 18px; border: 2px solid var(--ink); border-radius: 14px; background: var(--hl); transform: rotate(2.4deg); animation: paFloat 7s ease-in-out infinite; }
.pa-card { position: relative; border: 2px solid var(--ink); border-radius: 14px; background: var(--card); box-shadow: 8px 8px 0 var(--red); padding: 20px 22px 16px; overflow: hidden; }
.pa-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); font: 500 12px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.pa-head b { font-weight: 500; }
.pa-month { margin-left: auto; color: var(--ink-2); }
.pa-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: paBlink 1.4s ease-in-out infinite; }
.pa-card.is-done .pa-dot { animation: none; }
.pa-rows { list-style: none; margin: 0; padding: 0; }
.pa-row { display: grid; grid-template-columns: 38px minmax(0, 1.2fr) minmax(40px, .8fr) auto 22px; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); opacity: .28; transform: translateX(-10px); transition: opacity .4s ease, transform .4s ease; }
.pa-row.is-on { opacity: 1; transform: none; }
.pa-av { display: grid; place-items: center; width: 38px; height: 38px; border: 2px solid var(--ink); border-radius: 50%; background: var(--paper); font: 600 12px var(--font-mono); letter-spacing: .04em; }
.pa-row.is-on .pa-av { background: var(--ink); color: var(--paper); transition: background .3s, color .3s .2s; }
.pa-name { display: grid; line-height: 1.2; font-weight: 600; font-size: .95rem; min-width: 0; }
.pa-name small { color: var(--ink-2); font: 400 11px var(--font-mono); letter-spacing: .02em; }
.pa-bar { height: 8px; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; overflow: hidden; }
.pa-bar i { display: block; height: 100%; width: 0; background: var(--red); }
.pa-net { font: 700 1rem var(--font-display); font-variant-numeric: tabular-nums; text-align: right; min-width: 6.4ch; }
.pa-check { width: 22px; height: 22px; fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.pa-row.is-done .pa-check { animation: paDraw .45s ease forwards; }
.pa-steps { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0 4px; }
.pa-step { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; font: 500 11px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; opacity: .35; transition: opacity .3s, background .3s; }
.pa-step::before { content: ""; width: 8px; height: 8px; border: 1.5px solid var(--ink); border-radius: 50%; transition: background .3s, border-color .3s; }
.pa-step.is-on { opacity: 1; background: var(--hl); }
.pa-step.is-on::before { background: var(--red); border-color: var(--red); }
.pa-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 14px 16px; border-radius: 10px; background: var(--night); color: var(--paper); }
.pa-label { display: block; font: 500 11px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: #E9A9BF; }
.pa-sum { font: 700 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.pa-count { font: 400 12px var(--font-mono); color: rgba(239,231,218,.8); white-space: nowrap; }
.pa-count b { color: #fff; font-weight: 500; }
.pa-stamp { position: absolute; right: 22px; bottom: 74px; padding: .35em .7em .35em .85em; border: 4px solid var(--red); border-radius: 8px; background: rgba(251,250,247,.82); color: var(--red); font: 500 clamp(1rem, 2.2vw, 1.5rem)/1 var(--font-mono); letter-spacing: .2em; transform: rotate(-9deg) scale(1.8); opacity: 0; pointer-events: none; transition: transform .38s cubic-bezier(.2,1.5,.4,1), opacity .2s; }
.pa-card.is-done .pa-stamp { opacity: .96; transform: rotate(-9deg) scale(1); }
.pa-note { margin: 10px 0 0; text-align: right; color: var(--ink-2); font: 400 10px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
@keyframes paDraw { to { stroke-dashoffset: 0; } }
@keyframes paBlink { 50% { opacity: .25; } }
@keyframes paFloat { 0%, 100% { transform: rotate(2.4deg) translateY(0); } 50% { transform: rotate(1.4deg) translateY(-7px); } }
@media (prefers-reduced-motion: reduce) { .pa-sheet, .pa-dot { animation: none; } .pa-row, .pa-step { transition: none; } }
@media (max-width: 640px) { .pa-card { padding: 16px 14px 12px; } .pa-row { grid-template-columns: 34px minmax(0, 1fr) auto 20px; gap: 9px; } .pa-bar { display: none; } .pa-av { width: 34px; height: 34px; } }

.hero h1 { font-size: clamp(2.1rem, 3.4vw, 3.3rem); }
.hero-copy { min-width: 0; }
.pa-stamp { right: 14px; bottom: 80px; border-width: 3px; font-size: clamp(.78rem, 1.4vw, 1rem); letter-spacing: .14em; }
.pa-sum { white-space: nowrap; }
@media (max-width: 640px) { .pa-sum { font-size: 1.45rem; } .pa-stamp { bottom: 84px; right: 10px; font-size: .74rem; } .pa-total { align-items: flex-end; } }

/* ===== Zurück zur Hauptseite (schwebender Button auf den Lohnseiten) ===== */
.back-main { position: fixed; left: 20px; bottom: 20px; z-index: 1050; display: inline-flex; align-items: center; gap: 12px; padding: 7px 18px 7px 7px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); color: var(--ink); box-shadow: 4px 4px 0 var(--red); animation: bmIn .7s cubic-bezier(.2,.9,.3,1.2) .8s both; transition: transform .2s, box-shadow .2s, background .2s; }
.back-main:hover, .back-main:focus-visible { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--red); background: var(--hl); }
.back-main:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--red); }
.bm-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: var(--paper); transition: transform .5s cubic-bezier(.2,.9,.3,1.3); }
.bm-ic img { display: block; width: 100%; height: 100%; }
.back-main:hover .bm-ic { transform: rotate(-360deg); }
.bm-tx { display: grid; line-height: 1.15; text-align: left; }
.bm-tx small { font: 500 10px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.bm-tx b { font: 700 .98rem var(--font-display); letter-spacing: -.01em; }
.bm-ar { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.back-main:hover .bm-ar { transform: translateX(-5px); }
@keyframes bmIn { from { opacity: 0; transform: translateY(30px) scale(.9); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .back-main { left: 12px; bottom: 12px; padding-right: 14px; } .bm-tx small { display: none; } }
@media (prefers-reduced-motion: reduce) { .back-main { animation: none; } .back-main:hover .bm-ic { transform: none; } }

/* ===== Rechtliche Seiten (Barkowski-Design) ===== */
.legal-hero { padding: 64px 0 44px; border-bottom: 2px solid var(--ink); background: var(--card); }
.legal-hero .container, .legal-layout.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.legal-hero h1 { max-width: 960px; hyphens: auto; overflow-wrap: anywhere; }
.legal-business { margin-top: 14px; font: 500 13px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.legal-intro { max-width: 760px; margin-top: 10px; color: var(--ink-2); }
.legal-draft { display: flex; align-items: flex-start; gap: 14px; margin-top: 22px; }
.status-label { flex-shrink: 0; padding: 4px 10px; border: 2px solid var(--ink); background: var(--hl); font: 500 12px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.legal-draft p, .legal-portal-note { max-width: 800px; font-size: .86rem; color: var(--ink-2); }
.legal-portal-note { margin-top: 14px; }
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; padding-block: 48px 90px; }
.legal-sidebar nav { position: sticky; top: calc(var(--header-height) + 20px); }
.legal-sidebar .eyebrow { margin-bottom: 10px; }
.legal-sidebar a { display: block; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: .9rem; line-height: 1.4; overflow-wrap: anywhere; }
.legal-sidebar a[aria-current="page"] { color: var(--red); font-weight: 700; }
.legal-sidebar a:hover { color: var(--red); }
.legal-document { min-width: 0; padding: clamp(20px, 3vw, 44px); border: 2px solid var(--ink); background: var(--card); box-shadow: 6px 6px 0 var(--red); }
.legal-toc { border-bottom: 1px solid var(--rule); margin-bottom: 34px; }
.legal-toc summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 16px; cursor: pointer; list-style: none; font: 500 13px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc[open] summary span { transform: rotate(45deg); }
.legal-toc ol { margin: 0 0 20px; padding-left: 22px; }
.legal-toc li { margin-block: 7px; font-size: .92rem; }
.legal-toc a, .legal-copy a { text-decoration: underline; text-underline-offset: 3px; }
.legal-toc a:hover, .legal-copy a:hover { color: var(--red); }
.legal-copy { line-height: 1.8; overflow-wrap: anywhere; }
.legal-copy section + section { margin-top: 40px; }
.legal-copy h2 { margin-bottom: 14px; font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.2; }
.legal-copy h3 { margin: 24px 0 8px; font-size: 1.15rem; line-height: 1.35; }
.legal-copy p + p, .legal-copy p + ul, .legal-copy ul + p, .legal-copy address + p { margin-top: 14px; }
.legal-copy ul { padding-left: 22px; }
.legal-copy li + li { margin-top: 6px; }
.legal-copy address { font-style: normal; }
.legal-placeholder { background: var(--hl); border-bottom: 1px dotted var(--red); padding: .1em .25em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.legal-note { margin-block: 22px; padding-left: 16px; border-left: 3px solid var(--red); color: var(--ink-2); font-size: .92rem; }
.legal-brand-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; list-style: none; padding: 0 !important; }
.legal-brand-list li { margin: 0 !important; padding-block: 14px; border-bottom: 1px solid var(--rule); }
.legal-brand-list span, .legal-brand-list a { display: block; }
.legal-table-wrap { overflow-x: auto; margin-block: 20px; overscroll-behavior-inline: contain; }
.legal-copy table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .9rem; }
.legal-copy caption { text-align: left; font-weight: 700; margin-bottom: 10px; }
.legal-copy th, .legal-copy td { padding: 12px; border: 1px solid var(--rule); vertical-align: top; text-align: left; }
.legal-copy th { background: var(--hl); font-weight: 600; }
.legal-back { margin-top: 44px; }
.legal-back .button, .legal-copy .button { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px; border: 2px solid var(--ink); background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; }
.legal-back .button-outline, .legal-copy .button-outline { background: transparent; color: var(--ink); }
.legal-copy .button:hover { color: #fff; background: var(--red); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; gap: 28px; padding-block: 32px 60px; }
  .legal-sidebar nav { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .legal-sidebar .eyebrow { grid-column: 1 / -1; }
  .legal-draft { flex-direction: column; gap: 10px; }
}
@media (max-width: 480px) { .legal-brand-list, .legal-sidebar nav { grid-template-columns: 1fr; } .legal-document { padding: 18px; box-shadow: 4px 4px 0 var(--red); } .legal-hero { padding: 44px 0 32px; } }
@media print { .site-header, .legal-sidebar, .legal-toc, .legal-back, .site-footer, .back-main, .skip-link { display: none !important; } body { background: #fff; padding-top: 0; } .legal-layout { display: block; } .legal-document { border: 0; box-shadow: none; padding: 0; } }

.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.legal-sidebar a { hyphens: auto; font-size: .86rem; } .legal-layout { grid-template-columns: 275px minmax(0,1fr); }
.footer-wordmark { display: inline-block; font: 800 clamp(1.3rem, 2.4vw, 1.7rem)/1.1 var(--font-display, "Bricolage Grotesque", sans-serif); letter-spacing: .06em; color: #fff; }
.footer-wordmark:hover { color: var(--hl); }
