/* ============================================================
   DriveX — Legal pages (Impressum / AGB / Datenschutz)
   Shared chrome (nav · annbar · footer) + legal content layout.
   Loads on top of colors_and_type.css.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--acadia);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--honeysuckle); color: var(--acadia); }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: var(--font-display); font-weight: 800; font-size: 12px;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--hs-deep);
}
em.acc { font-style: normal; color: var(--hs-deep); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 800; font-size: 15px;
  padding: 13px 22px; border-radius: var(--radius-full); cursor: pointer;
  border: none; transition: transform .12s ease, box-shadow .2s ease, background .15s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-hs { background: var(--honeysuckle); color: var(--acadia); box-shadow: var(--shadow-hs-pill); }
.btn-hs:hover { transform: translateY(-2px); box-shadow: var(--shadow-hs); }
.btn-ghost { background: transparent; color: var(--acadia); border: 1.5px solid var(--acadia); }
.btn-ghost:hover { background: var(--acadia); color: #fff; }

/* ============ NAV ============ */
header.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(243,243,241,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--g100);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; }
.logo svg { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: var(--radius-full);
  font-size: 15px; font-weight: 600; color: var(--acadia);
  cursor: pointer; transition: background .15s ease;
}
.nav-link:hover { background: var(--g100); }
.nav-link svg { width: 15px; height: 15px; transition: transform .2s ease; }
.nav-item:hover .nav-link svg.chev { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  background: #fff; border: 1px solid var(--g100); border-radius: var(--radius-lg);
  box-shadow: 0 18px 44px rgba(25,28,0,0.12);
  padding: 10px; min-width: 230px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .18s ease; z-index: 70;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dd-label { font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
  color: var(--g300); padding: 8px 12px 4px; font-family: var(--font-display); }
.dd-link { display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; }
.dd-link:hover { background: var(--hs-subtle); color: var(--acadia); }
.dd-link svg { width: 14px; height: 14px; color: var(--g300); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  display: grid; place-items: center; border: 1px solid var(--g150);
  background: #fff; color: var(--acadia); transition: all .15s ease;
}
.icon-btn:hover { background: var(--acadia); color: #fff; border-color: var(--acadia); }
.icon-btn svg { width: 19px; height: 19px; }

/* ---- Language toggle ---- */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--g150); background: #fff;
  border-radius: var(--radius-full); padding: 3px; position: relative;
}
.lang-toggle .globe { width: 16px; height: 16px; margin: 0 4px 0 7px; color: var(--g300); flex: 0 0 auto; }
.lang-opt {
  border: none; background: transparent; cursor: pointer;
  font-family: var(--font-display); font-weight: 800; font-size: 13px;
  letter-spacing: .4px; color: var(--g400);
  padding: 7px 11px; border-radius: var(--radius-full);
  transition: color .15s ease, background .15s ease;
}
.lang-opt:hover { color: var(--acadia); }
.lang-opt.active { background: var(--acadia); color: #fff; }

.burger { display: none; }
.mobile-menu { display: none; }

/* ============ ANNOUNCEMENT BAR ============ */
.annbar { background: var(--honeysuckle); color: var(--acadia); }
.annbar-inner { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 46px; padding: 8px 52px; text-align: center; }
.annbar .ann-x { width: 16px; height: 16px; flex: 0 0 auto; }
.annbar .ann-text { font-size: 14.5px; font-weight: 600; }
.annbar .ann-text b { font-family: var(--font-display); font-weight: 800; }
.annbar .ann-cta { font-family: var(--font-display); font-weight: 800; font-size: 14.5px; display: inline-flex; align-items: center; gap: 5px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.annbar .ann-cta svg { width: 14px; height: 14px; transition: transform .18s; }
.annbar .ann-cta:hover svg { transform: translateX(3px); }
.annbar .ann-close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: none; background: transparent; color: var(--acadia); border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: background .15s; }
.annbar .ann-close:hover { background: rgba(25,28,0,0.12); }
.annbar .ann-close svg { width: 16px; height: 16px; }
@media (max-width: 600px) {
  .annbar-inner { gap: 9px; min-height: 36px; padding: 5px 38px 5px 14px; }
  .annbar .ann-x { display: none; }
  .annbar .ann-text { font-size: 12.5px; line-height: 1.2; }
  .annbar .ann-sub { display: none; }
  .annbar .ann-cta { font-size: 12.5px; }
  .annbar .ann-close { right: 8px; width: 26px; height: 26px; }
  .annbar .ann-close svg { width: 14px; height: 14px; }
}
body.ann-hidden .annbar { display: none; }

/* ============ LEGAL PAGE LAYOUT ============ */
.legal-hero { padding: 56px 0 36px; }
.legal-hero .crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--g400); margin-bottom: 22px; }
.legal-hero .crumbs a { color: var(--g400); transition: color .15s; }
.legal-hero .crumbs a:hover { color: var(--acadia); }
.legal-hero .crumbs svg { width: 13px; height: 13px; color: var(--g300); }
.legal-hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(34px, 5vw, 56px); letter-spacing: -1.4px; line-height: 1.02;
  margin-top: 14px; max-width: 18ch;
}
.legal-hero h1 em { font-style: normal; color: var(--hs-deep); }
.legal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 22px; font-size: 14px; color: var(--g500); }
.legal-meta .chip { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--g100); border-radius: var(--radius-full); padding: 7px 14px; font-weight: 600; }
.legal-meta .chip svg { width: 14px; height: 14px; color: var(--hs-deep); }

/* binding-language note (shown in EN) */
.binding-note {
  display: none; align-items: flex-start; gap: 12px;
  background: var(--terracotta-soft); border: 1px solid var(--terracotta-bg);
  color: var(--terracotta); border-radius: var(--radius-lg);
  padding: 14px 18px; margin: 26px 0 0; font-size: 14px; font-weight: 500; line-height: 1.5;
  box-shadow: var(--shadow-terracotta);
}
.binding-note svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }
html[lang="en"] .binding-note { display: flex; }

/* layout: content + sticky TOC */
.legal-body { display: grid; grid-template-columns: 1fr 250px; gap: 56px; align-items: start; padding-bottom: 40px; }
.legal-main { min-width: 0; max-width: 760px; }

/* table of contents */
.toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; }
.toc-label { font-family: var(--font-display); font-weight: 800; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--g300); margin-bottom: 12px; }
.toc-group { margin-bottom: 16px; }
.toc-grouplink { display: block; font-family: var(--font-display); font-weight: 800; font-size: 13.5px; letter-spacing: .3px; color: var(--acadia); padding: 6px 12px; border-radius: 9px; transition: background .14s; }
.toc-grouplink:hover { background: var(--hs-subtle); }
.toc ol { list-style: none; display: flex; flex-direction: column; gap: 1px; margin-top: 2px; }
.toc a {
  display: block; padding: 7px 12px; border-radius: 9px;
  font-size: 13.5px; font-weight: 500; color: var(--g500);
  line-height: 1.35; transition: background .14s, color .14s; border-left: 2px solid transparent;
}
.toc a:hover { background: var(--hs-subtle); color: var(--acadia); }
.toc a.active { color: var(--acadia); font-weight: 700; background: var(--hs-subtle); border-left-color: var(--hs-deep); }

/* group dividers (combined page: Impressum / AGB / Datenschutz) */
.legal-group { scroll-margin-top: 90px; }
.legal-group-head { padding: 14px 0 6px; margin-top: 30px; }
.legal-group:first-of-type .legal-group-head { margin-top: 0; }
.legal-group-head .lg-kicker {
  display: inline-block; font-family: var(--font-display); font-weight: 800;
  font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--acadia);
  background: var(--honeysuckle); border-radius: var(--radius-full); padding: 6px 13px; box-shadow: var(--shadow-hs-pill);
}
.legal-group-head h2 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: -1px; line-height: 1.05; margin-top: 16px; padding-bottom: 18px;
  border-bottom: 3px solid var(--acadia);
}
.legal-intro p { font-size: 17px; color: var(--g500); }
.legal-intro { padding-top: 22px !important; }

/* sections */
.legal-sec { padding: 30px 0; border-top: 1px solid var(--g100); scroll-margin-top: 90px; }
.legal-sec.legal-intro { border-top: none; }
.legal-group .legal-sec:first-of-type:not(.legal-intro) { border-top: none; }
.legal-sec > h2 {
  font-family: var(--font-display); font-weight: 800; font-size: 24px;
  letter-spacing: -0.4px; line-height: 1.15; margin-bottom: 16px;
  display: flex; gap: 14px; align-items: baseline;
}
.legal-sec > h2 .num {
  flex: 0 0 auto; font-size: 15px; font-weight: 800; color: var(--hs-deep);
  font-family: var(--font-display); min-width: 1.6em;
}
.legal-sec h3 {
  font-family: var(--font-display); font-weight: 800; font-size: 16.5px;
  letter-spacing: -0.2px; margin: 26px 0 10px; color: var(--acadia);
}
.legal-sec p { font-size: 16px; line-height: 1.65; color: var(--g500); margin: 0 0 14px; text-wrap: pretty; }
.legal-sec p:last-child { margin-bottom: 0; }
.legal-sec strong { color: var(--acadia); font-weight: 700; }
.legal-sec a.inline { color: var(--acadia); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hs-deep); }
.legal-sec a.inline:hover { color: var(--hs-deep); }

/* bulleted lists with the brand X marker */
.legal-sec ul { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 4px 0 16px; }
.legal-sec ul li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.6; color: var(--g500); }
.legal-sec ul li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 9px; height: 9px;
  background: var(--hs-deep);
  clip-path: polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);
}
.legal-sec ul li strong { color: var(--acadia); }

/* definition / tariff box */
.tariff { background: #fff; border: 1px solid var(--g100); border-radius: var(--radius-lg); padding: 8px 22px; margin: 6px 0 18px; }
.tariff .row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--g100); }
.tariff .row:last-child { border-bottom: none; }
.tariff .row .t-label { font-size: 15.5px; font-weight: 500; color: var(--g500); }
.tariff .row .t-val { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--acadia); white-space: nowrap; }

/* callout card (cross-reference to other legal page) */
.callout {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--hs-bg); border: 1px solid var(--hs-deep);
  border-radius: var(--radius-lg); padding: 18px 22px; margin: 8px 0 16px;
}
.callout .ct { flex: 1 1 260px; }
.callout .ct h4 { font-family: var(--font-display); font-weight: 800; font-size: 16px; margin-bottom: 4px; }
.callout .ct p { font-size: 14px; color: #3c4413; line-height: 1.5; margin: 0; }
.callout .btn { flex: 0 0 auto; }

/* contact mini-card inside legal */
.legal-contact { background: var(--acadia); color: #fff; border-radius: var(--radius-xl); padding: 30px 32px; margin: 12px 0 8px; position: relative; overflow: hidden; }
.legal-contact h4 { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: #fff; }
.legal-contact h4 em { font-style: normal; color: var(--honeysuckle); }
.legal-contact p { color: rgba(255,255,255,0.7) !important; font-size: 14.5px; margin: 8px 0 18px !important; }
.legal-contact .lc-links { display: flex; flex-wrap: wrap; gap: 10px; }
.legal-contact .lc-link { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); color: #fff; border-radius: var(--radius-full); padding: 10px 16px; font-size: 14px; font-weight: 600; transition: background .15s; }
.legal-contact .lc-link:hover { background: rgba(255,255,255,0.16); }
.legal-contact .lc-link svg { width: 16px; height: 16px; color: var(--honeysuckle); }
.legal-contact .foot-watermark { position: absolute; right: -30px; top: -24px; width: 150px; opacity: 0.1; transform: rotate(-10deg); }

/* ============ FOOTER ============ */
footer { background: var(--acadia); color: #fff; border-radius: 40px 40px 0 0; margin-top: 56px; padding: 64px 0 36px; position: relative; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.foot-brand .logo svg { height: 30px; }
.foot-brand p { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.6; margin-top: 18px; max-width: 26ch; }
.foot-col h5 { font-family: var(--font-display); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--honeysuckle); margin-bottom: 16px; }
.foot-col a { display: block; color: rgba(255,255,255,0.74); font-size: 14.5px; padding: 6px 0; transition: color .15s; }
.foot-col a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 48px; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.foot-bottom span { font-size: 13px; color: rgba(255,255,255,0.5); }
.foot-watermark { position: absolute; right: -40px; top: -30px; width: 260px; opacity: 0.08; transform: rotate(-10deg); }

/* ============ RESPONSIVE ============ */
@media (max-width: 940px) {
  .nav-links { display: none; }
  .burger { display: grid; }
  .mobile-menu.open { display: flex; flex-direction: column; gap: 4px; padding: 12px 20px 18px; background: #fff; border-bottom: 1px solid var(--g100); }
  .mobile-menu a { padding: 13px 14px; border-radius: 12px; font-size: 16px; font-weight: 600; }
  .mobile-menu a:hover, .mobile-menu a.active { background: var(--hs-subtle); }
  .legal-body { grid-template-columns: 1fr; gap: 8px; }
  .toc { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .legal-hero { padding: 36px 0 24px; }
  .foot-grid { grid-template-columns: 1fr; }
  .legal-sec p, .legal-sec ul li { font-size: 15.5px; }
}
