/* ============================================================
   RU-SERVICES · Website (Unternehmen, Rechnungen, Vereine)
   Design nach dem gemeinsamen Regelwerk Ru-Design/DESIGN.md
   Tokens 1:1 aus templates/html-vorlage/styles.css
   Abweichung von DESIGN.md: Schriften liegen lokal unter /fonts
   (kein Google-Fonts-Abruf, keine Datenübertragung an Dritte).
   ============================================================ */

@font-face{ font-family:'Manrope'; font-style:normal; font-weight:500; font-display:swap; src:url('/fonts/manrope-latin-500-normal.woff2') format('woff2'); }
@font-face{ font-family:'Manrope'; font-style:normal; font-weight:600; font-display:swap; src:url('/fonts/manrope-latin-600-normal.woff2') format('woff2'); }
@font-face{ font-family:'Manrope'; font-style:normal; font-weight:700; font-display:swap; src:url('/fonts/manrope-latin-700-normal.woff2') format('woff2'); }
@font-face{ font-family:'Manrope'; font-style:normal; font-weight:800; font-display:swap; src:url('/fonts/manrope-latin-800-normal.woff2') format('woff2'); }
@font-face{ font-family:'Inter'; font-style:normal; font-weight:400; font-display:swap; src:url('/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face{ font-family:'Inter'; font-style:normal; font-weight:500; font-display:swap; src:url('/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face{ font-family:'Inter'; font-style:normal; font-weight:600; font-display:swap; src:url('/fonts/inter-latin-600-normal.woff2') format('woff2'); }

:root{
  --bg: #FFFFFF;
  --bg-soft: #F6F7FA;
  --bg-soft-2: #EEF1F6;
  --ink: #12141C;
  --ink-soft: #5B6270;
  --ink-faint: #8A909C;
  --line: #E6E8EE;

  --primary: #2A4CE0;
  --primary-dark: #1B34A8;
  --primary-tint: #EDF0FD;
  --success: #12965A;
  --success-tint: #E9F8F0;
  --amber: #B7791F;
  --amber-tint: #FBF3E4;
  --danger: #DC4C3F;
  --danger-tint: #FBEAE8;

  --font-display: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;

  --maxw: 1180px;
  --edge: clamp(20px, 5vw, 64px);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(18,20,28,0.05);
  --shadow-md: 0 8px 24px rgba(18,20,28,0.08);
  --shadow-lg: 0 24px 64px rgba(18,20,28,0.12);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: 88px; }
html.has-subnav{ scroll-padding-top: 136px; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; }
img{ max-width: 100%; display: block; }

:focus-visible{
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- layout shell ---------- */
.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--edge);
}

/* ---------- topbar ---------- */
.topbar{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.wordmark .dot{
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
}
.wordmark small{
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--ink-soft);
  letter-spacing: 0;
}

.nav{
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav a{
  text-decoration: none;
  color: var(--ink-soft);
  padding: 9px 14px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav a:hover{ color: var(--ink); background: var(--bg-soft); }
.nav a[aria-current="page"]{ color: var(--primary); background: var(--primary-tint); font-weight: 600; }
.nav a.nav-cta{
  color: #fff;
  background: var(--primary);
  margin-left: 6px;
}
.nav a.nav-cta:hover{ background: var(--primary-dark); color: #fff; }
.nav-toggle{ display: none; }

/* Unterreiter (z. B. Rechnungen: E-Rechnung, Preise, Pflichtangaben …) */
.subnav{
  border-top: 1px solid var(--line);
}
.subnav-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px var(--edge);
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  font-size: 0.86rem;
  font-weight: 500;
}
.subnav-inner::-webkit-scrollbar{ display: none; }
.subnav a{
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.subnav a:hover{ color: var(--ink); background: var(--bg-soft); }
.subnav a[aria-current="page"]{ color: var(--primary); background: var(--primary-tint); font-weight: 600; }
.subnav .sub-label{
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  padding: 6px 12px 6px 0;
  margin-right: 4px;
  border-right: 1px solid var(--line);
  white-space: nowrap;
}

/* ---------- eyebrow ---------- */
.eyebrow{
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--primary);
  margin: 0 0 14px;
  text-transform: none;
}

/* ---------- hero ---------- */
.hero{
  position: relative;
  padding: clamp(56px, 9vw, 104px) 0 clamp(44px, 7vw, 72px);
  overflow: hidden;
}
.hero-glow{
  position: absolute;
  top: -180px;
  right: -160px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(42,76,224,0.16), rgba(42,76,224,0) 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner{ position: relative; z-index: 1; max-width: 760px; }

.badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--success);
  background: var(--success-tint);
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.badge .dot{
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
}

h1.hero-title{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 5.2vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--ink);
}
h1.hero-title .accent{ color: var(--primary); }

.hero-sub{
  max-width: 56ch;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  margin: 0 0 32px;
}

.hero-actions{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}
.hero-note{
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0 0 44px;
}
.hero-note strong{ color: var(--ink); font-weight: 600; }

.hero-stats{
  display: flex;
  gap: clamp(22px, 5vw, 52px);
  flex-wrap: wrap;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.hero-stats .stat b{
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
}
.hero-stats .stat span{
  font-size: 0.86rem;
  color: var(--ink-soft);
}

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}
.btn svg{ width: 18px; height: 18px; }
.btn-primary{
  color: #fff;
  background: var(--primary);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover{ background: var(--primary-dark); transform: translateY(-1px); }
.btn-secondary{
  color: var(--ink);
  background: var(--bg);
  border-color: var(--line);
}
.btn-secondary:hover{ border-color: var(--ink-faint); background: var(--bg-soft); }

.btn-xl{
  font-size: 1.08rem;
  padding: 18px 34px;
}
.btn-xl svg{ width: 22px; height: 22px; }
.btn-ghost-light{
  color: #fff;
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost-light:hover{ background: rgba(255,255,255,0.2); }

/* ---------- sections ---------- */
section{ padding: clamp(56px, 8vw, 84px) 0; position: relative; }
section.tight{ padding: 48px 0; }
section.on-soft{ background: var(--bg-soft); }

.section-head{ margin-bottom: 40px; max-width: 62ch; }
h2.section-title{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
.section-head .eyebrow{ margin-bottom: 10px; }
.lede{
  max-width: 62ch;
  font-size: 1.06rem;
  color: var(--ink-soft);
  margin: 14px 0 0;
}

/* ---------- E-Rechnung timeline ---------- */
.timeline{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.tl-item{
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.tl-item .year{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary);
  margin: 0 0 6px;
}
.tl-item p{ margin: 0; font-size: 0.94rem; color: var(--ink-soft); }
.tl-item.is-now{ border-color: var(--primary); box-shadow: var(--shadow-md); }

/* ---------- video ---------- */
.video-frame{
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
  background: var(--bg-soft-2);
}
.video-frame iframe{ width: 100%; height: 100%; border: 0; display: block; }
.video-placeholder{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  color: var(--ink-soft);
  padding: 24px;
}
.video-placeholder .play{
  width: 66px; height: 66px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.video-placeholder .play svg{ width: 26px; height: 26px; margin-left: 3px; }

/* ---------- screenshot walkthrough ---------- */
.shot{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding: clamp(28px, 5vw, 44px) 0;
  border-top: 1px solid var(--line);
}
.shot:first-of-type{ border-top: 0; }
.shot.flip .shot-text{ order: 2; }
.shot-num{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--primary);
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}
.shot-text h3{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 0 10px;
  color: var(--ink);
}
.shot-text p{ margin: 0 0 14px; color: var(--ink-soft); font-size: 0.98rem; }
.shot-text ul{
  margin: 0;
  padding-left: 0;
  list-style: none;
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.shot-text li{
  position: relative;
  padding-left: 26px;
  margin-bottom: 7px;
}
.shot-text li::before{
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 15px; height: 15px;
  background: var(--success-tint);
  border-radius: 50%;
}
.shot-text li::after{
  content: "";
  position: absolute;
  left: 4.5px; top: 10px;
  width: 6px; height: 4px;
  border-left: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: rotate(-45deg);
}
.shot-media{
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: var(--bg-soft-2);
  cursor: zoom-in;
}
.shot-media img{ width: 100%; }
.shot-media.empty{
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 0.88rem;
  cursor: default;
  text-align: center;
  padding: 20px;
}

/* ---------- benefit grid ---------- */
.cap-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.cap{
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.cap:hover{ box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cap-icon{
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.cap-icon svg{ width: 22px; height: 22px; }
.cap h3{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: var(--ink);
}
.cap p{ margin: 0; font-size: 0.94rem; color: var(--ink-soft); }

/* ---------- feature columns ---------- */
.feature-cols{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
.feature-box{
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px clamp(22px, 4vw, 34px);
}
.feature-box.pro{ border-color: var(--primary); box-shadow: var(--shadow-md); }
.feature-box h3{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.feature-box > p{ margin: 0 0 18px; font-size: 0.9rem; color: var(--ink-soft); }
.feature-box ul{
  margin: 0; padding: 0; list-style: none;
  font-size: 0.94rem; color: var(--ink-soft);
}
.feature-box li{
  position: relative;
  padding-left: 24px;
  margin-bottom: 9px;
}
.feature-box li::before{
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
}
.mini-pill{
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.mini-pill.free{ color: var(--ink-soft); background: var(--bg-soft-2); }
.mini-pill.pro{ color: var(--primary); background: var(--primary-tint); }

/* ---------- compare table ---------- */
.compare-wrap{ overflow-x: auto; margin-top: 32px; }
table.compare{
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 0.94rem;
}
table.compare th, table.compare td{
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
table.compare thead th{
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}
table.compare th.col-free, table.compare td.col-free,
table.compare th.col-pro, table.compare td.col-pro{
  text-align: center;
  width: 22%;
}
table.compare td.col-pro{ background: var(--primary-tint); }
table.compare th.col-pro{ background: var(--primary-tint); color: var(--primary); border-radius: 10px 10px 0 0; }
table.compare tbody td:first-child{ color: var(--ink-soft); }
.yes{ color: var(--success); font-weight: 700; }
.no{ color: var(--ink-faint); }
.price-row td{ font-family: var(--font-display); font-weight: 800; color: var(--ink); }

/* ---------- steps ---------- */
.steps{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
  counter-reset: step;
}
.step{
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.step::before{
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.step h3{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 6px;
}
.step p{ margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.step a{ color: var(--primary); text-decoration: none; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq{ margin-top: 28px; max-width: 800px; }
.faq details{
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.faq summary{
  cursor: pointer;
  list-style: none;
  padding: 16px 40px 16px 0;
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}
.faq summary::-webkit-details-marker{ display: none; }
.faq summary::after{
  content: "+";
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 400;
}
.faq details[open] summary::after{ content: "\2212"; }
.faq details p{
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

/* ---------- CTA band ---------- */
.cta-band{
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary) 70%);
  color: #fff;
  padding: clamp(36px, 6vw, 56px) clamp(28px, 6vw, 56px);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h3{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 10px;
}
.cta-band p{
  margin: 0 auto 26px;
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  max-width: 52ch;
}
.cta-band .btn-secondary{ background: transparent; }

/* ---------- footer ---------- */
footer{
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.footer-inner{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
footer a{ color: var(--ink-soft); text-decoration: none; }
footer a:hover{ color: var(--ink); }
footer nav{ display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- lightbox ---------- */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(18,20,28,0.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
  cursor: zoom-out;
}
.lightbox.open{ display: flex; }
.lightbox img{
  max-width: 100%;
  max-height: 92vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* ---------- legal pages ---------- */
.legal{ padding: clamp(40px, 7vw, 72px) 0; }
.legal h1{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 8px;
}
.legal h2{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 32px 0 8px;
}
.legal p, .legal li{ color: var(--ink-soft); }
.legal .wrap{ max-width: 760px; }
.legal address{ font-style: normal; }


/* ============================================================
   Ergänzungen: Unternehmensseite, Rechtliches, Werkzeug
   ============================================================ */

/* ---------- Brotkrumen ---------- */
.crumbs{
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin: 0 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.crumbs a{ color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover{ color: var(--primary); }
.crumbs span[aria-hidden]{ color: var(--ink-faint); }

/* ---------- Flaggen ---------- */
.flag{
  display: inline-block;
  height: 1em;
  width: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(18,20,28,0.12);
  vertical-align: -0.12em;
}
.flags{ display: inline-flex; gap: 6px; align-items: center; }
.badge.neutral{ color: var(--ink); background: var(--bg-soft-2); }
.flag-pair{
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 0 0 18px;
}
.flag-pair .flag{ height: 48px; border-radius: 4px; }

/* ---------- Status-Pillen (DESIGN.md) ---------- */
.pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.pill::before{
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.pill-active{ color: var(--success); background: var(--success-tint); }
.pill-dev{ color: var(--amber); background: var(--amber-tint); }

/* ---------- Bereichs-Karten ---------- */
.area-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.area{
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 36px);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.area:hover{ box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--primary); }
.area-top{ display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.area h3{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  margin: 0 0 8px;
}
.area p{ margin: 0 0 18px; color: var(--ink-soft); font-size: 0.96rem; }
.area .more{ margin-top: auto; color: var(--primary); font-weight: 600; font-size: 0.94rem; }
.area .path{ font-family: var(--font-body); font-size: 0.82rem; color: var(--ink-faint); margin: 0 0 4px; }

/* ---------- Steckbrief ---------- */
.facts{
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  margin: 0;
  border-top: 1px solid var(--line);
}
.facts dt, .facts dd{
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
}
.facts dt{ color: var(--ink-soft); padding-right: 16px; }
.facts dd{ color: var(--ink); }
.facts a{ color: var(--primary); }

.two-col{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

/* ---------- Hinweis-Kästen ---------- */
.notice{
  border-radius: var(--radius);
  padding: 18px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 24px 0 0;
}
.notice strong{ color: var(--ink); }
.notice.amber{ background: var(--amber-tint); border-color: transparent; color: var(--ink); }
.notice.blue{ background: var(--primary-tint); border-color: transparent; color: var(--ink); }
.notice p{ margin: 0 0 8px; }
.notice p:last-child{ margin-bottom: 0; }
.notice a{ color: var(--primary); }

/* ---------- Video mit Zwei-Klick-Lösung ---------- */
.video-consent{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: clamp(18px, 4vw, 40px);
  background: linear-gradient(135deg, var(--bg-soft-2), var(--primary-tint));
  color: var(--ink-soft);
}
.video-consent h3{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: var(--ink);
  margin: 0;
}
.video-consent p{ margin: 0; max-width: 56ch; font-size: 0.9rem; }
.video-consent a{ color: var(--primary); }
.video-consent .btn svg{ width: 18px; height: 18px; }
.video-consent .play{
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.video-consent .play svg{ width: 24px; height: 24px; margin-left: 3px; }
.video-consent .small{ font-size: 0.82rem; }

/* ---------- FeRD / ZUGFeRD ---------- */
.ferd-box{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
}
.ferd-box h3{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  margin: 0 0 10px;
}
.ferd-box p{ margin: 0 0 12px; color: var(--ink-soft); font-size: 0.96rem; }
.ferd-box ul{ margin: 0 0 16px; padding-left: 20px; color: var(--ink-soft); font-size: 0.94rem; }
.ferd-links{ display: flex; flex-wrap: wrap; gap: 10px; }
/* Logo laut FeRD-Vorgaben nur auf weißem Grund, mit Schutzraum, nur proportional skaliert */
.ferd-logo{
  display: block;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.ferd-logo img{ width: 220px; height: auto; }

/* ---------- Pflichtangaben / Textseiten ---------- */
.prose{ max-width: 780px; }
.prose h2{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  margin: 48px 0 10px;
  scroll-margin-top: 140px;
}
.prose h3{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  margin: 28px 0 8px;
}
.prose p, .prose li{ color: var(--ink-soft); }
.prose a{ color: var(--primary); }
.prose strong{ color: var(--ink); }
.law-list{
  list-style: none;
  counter-reset: law;
  padding: 0;
  margin: 18px 0 0;
}
.law-list > li{
  counter-increment: law;
  position: relative;
  padding: 14px 0 14px 48px;
  border-bottom: 1px solid var(--line);
}
.law-list > li::before{
  content: counter(law);
  position: absolute;
  left: 0; top: 13px;
  width: 30px; height: 30px;
  border-radius: 999px;
  background: var(--primary-tint);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.law-list b{ color: var(--ink); display: block; }
.law-list .ref{ font-size: 0.82rem; color: var(--ink-faint); }
.toc{
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 8px 0 0;
}
.toc p{ margin: 0 0 8px; font-weight: 600; color: var(--ink); }
.toc ol{ margin: 0; padding-left: 20px; }
.toc a{ text-decoration: none; }
.source-list{ font-size: 0.9rem; }

/* ---------- Werkzeug: E-Rechnung lesen ---------- */
.dropzone{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  padding: clamp(28px, 6vw, 56px) 20px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone:hover, .dropzone.drag{ border-color: var(--primary); background: var(--primary-tint); }
.dropzone svg{ width: 40px; height: 40px; color: var(--primary); }
.dropzone b{ font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); }
.dropzone span{ font-size: 0.9rem; color: var(--ink-soft); }
.dropzone input{ position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.tool-msg{ margin: 18px 0 0; }
.result{ margin-top: 32px; }
.result[hidden]{ display: none; }
.result-head{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.result-head h2{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  margin: 0;
}
.profile{
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 0.94rem;
}
.profile b{ font-family: var(--font-display); }
.profile.ok{ background: var(--success-tint); color: var(--ink); }
.profile.warn{ background: var(--amber-tint); color: var(--ink); }
.profile.bad{ background: var(--danger-tint); color: var(--ink); }
.profile p{ margin: 4px 0 0; color: var(--ink-soft); }
.card-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.card{
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.card h3{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 10px;
}
.kv{ display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 0.92rem; }
.kv dt{ color: var(--ink-soft); }
.kv dd{ margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.lines-wrap{ overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
table.lines{ width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 560px; }
table.lines th, table.lines td{ padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.lines th{ font-family: var(--font-display); font-weight: 700; background: var(--bg-soft); }
table.lines td.num, table.lines th.num{ text-align: right; white-space: nowrap; }
table.lines tr:last-child td{ border-bottom: 0; }
.totals{ margin: 16px 0 0 auto; max-width: 360px; }
.totals .kv{ grid-template-columns: 1fr max-content; }
.totals .kv dd{ text-align: right; font-variant-numeric: tabular-nums; }
.totals .kv .grand{ font-weight: 700; font-family: var(--font-display); }
details.raw{ margin-top: 20px; }
details.raw summary{ cursor: pointer; font-weight: 600; color: var(--primary); }
pre.xml{
  max-height: 420px;
  overflow: auto;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 0.78rem;
  line-height: 1.5;
  white-space: pre;
}

/* ---------- Vereine: Vorlage ---------- */
.topic-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.topic{
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.topic h3{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  margin: 0 0 6px;
}
.topic p{ margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.placeholder{
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--ink-faint);
  font-size: 0.92rem;
  text-align: center;
}

/* ---------- Fußzeile mit Sitz ---------- */
.footer-seat{ display: inline-flex; align-items: center; gap: 8px; }
.footer-seat .flag{ height: 0.9em; }

/* ---------- responsive ---------- */
@media (max-width: 900px){
  .timeline{ grid-template-columns: 1fr; }
  .topic-grid{ grid-template-columns: 1fr 1fr; }
  .feature-cols{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px){
  .cap-grid{ grid-template-columns: 1fr; }
  .area-grid, .two-col, .card-grid{ grid-template-columns: 1fr; }
  .ferd-box{ grid-template-columns: 1fr; }
  .shot{ grid-template-columns: 1fr; }
  .shot.flip .shot-text{ order: 0; }
}
@media (max-width: 980px){
  .wordmark small{ display: none; }
}

@media (max-width: 640px){
  .topic-grid{ grid-template-columns: 1fr; }
  .facts{ grid-template-columns: 1fr; }
  .facts dt{ border-bottom: 0; padding-bottom: 0; }
  .kv{ grid-template-columns: 1fr; gap: 0 16px; }
  .kv dd{ margin-bottom: 6px; }
}

@media (max-width: 820px){
  .steps{ grid-template-columns: 1fr; }
  .nav{
    position: fixed;
    inset: 60px 12px auto 12px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.15s ease;
  }
  .nav a{ padding: 12px 14px; }
  .nav a.nav-cta{ margin-left: 0; text-align: center; }
  body.nav-open .nav{ transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg);
    cursor: pointer;
    font-size: 1.1rem;
  }
  .hero-glow{ display: none; }
  .footer-inner{ flex-direction: column; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ transition: none !important; animation: none !important; }
}

@media (prefers-color-scheme: dark){
  :root{
    --bg: #12141C;
    --bg-soft: #1B1E28;
    --bg-soft-2: #252935;
    --ink: #F2F4F8;
    --ink-soft: #A2A8B6;
    --ink-faint: #767D8C;
    --line: #2E3340;
    --primary: #5B78F0;
    --primary-dark: #3F5AD8;
    --primary-tint: #20264A;
  }
  .topbar{ background: rgba(18,20,28,0.85); }
  table.compare td.col-pro, table.compare th.col-pro{ background: var(--primary-tint); }
}

/* ---------- kleine Ergänzungen ---------- */
.cap-link{ display: block; text-decoration: none; color: inherit; }
.cap-link:hover{ border-color: var(--primary); }
.cap a{ color: var(--primary); }
.btn-on-band{ background: #fff; color: var(--primary-dark); }
.btn-on-band:hover{ background: var(--primary-tint); color: var(--primary-dark); }
@media (max-width: 640px){
  .video-frame.is-consent{ aspect-ratio: auto; }
  .video-frame.is-consent .video-consent{ position: relative; }
}
