/* =========================================================
   # GLOBAL / DESIGN TOKENS
========================================================= */
:root{
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;

  --brand: #1A42A2;
  --anth: #111827;

  --line: rgba(15, 23, 42, .12);

  --radius: 18px;
  --shadow: 0 10px 30px rgba(2, 6, 23, .10);

  --container: 1120px;

  /* Header (Dark) */
  --header-bg: rgba(11, 18, 32, .92);
  --header-line: rgba(255,255,255,.10);
  --header-text: rgba(255,255,255,.92);
  --header-muted: rgba(255,255,255,.72);
}

/* =========================================================
   # RESET / BASICS
========================================================= */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }

body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a{ color: inherit; text-decoration:none; }
a:hover{ text-decoration: underline; }

.container{
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.muted{ color: var(--muted); }

.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;
}

/* =========================================================
   # ACCESSIBILITY
========================================================= */
.skip-link{
  position:absolute;
  left:-999px;
  top:10px;
  background: var(--brand);
  color:#fff;
  padding:.6rem .9rem;
  border-radius:10px;
}
.skip-link:focus{ left:10px; z-index:9999; }

/* =========================================================
   # LAYOUT / SHARED COMPONENTS
========================================================= */
.section{ padding: 2.4rem 0; }
.section h2{ margin: 0 0 1rem; font-size: 1.55rem; }

.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card .card-pad{ padding:1.25rem; }
.card h3{ margin:.1rem 0 .5rem; }

.grid-2{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.list{
  margin: .6rem 0 0;
  padding-left: 1.1rem;
}
.list li{ margin:.25rem 0; }

/* =========================================================
   # BUTTONS (global) + Ripple Support
========================================================= */
.btn{
  position: relative;
  overflow: hidden;

  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;

  padding: .75rem 1.05rem;
  border-radius: 14px;

  border: 1px solid var(--line);
  background: var(--brand);
  color: #fff;

  font-weight: 700;
  text-decoration: none !important;

  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  will-change: transform;
}

.btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(2, 6, 23, .14);
  filter: brightness(1.06);
  text-decoration:none;
}

.btn:active{
  transform: translateY(0);
  box-shadow: 0 10px 24px rgba(2, 6, 23, .12);
  filter: brightness(1.03);
}

.btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(26, 66, 162, .22), 0 14px 34px rgba(2, 6, 23, .14);
}

.btn-small{
  padding: .55rem .85rem;
  border-radius: 12px;
  box-shadow: none;
}

/* Ripple element (JS adds <span class="ripple">) */
.ripple{
  position:absolute;
  border-radius: 999px;
  transform: scale(0);
  animation: ripple .6s ease-out;
  background: rgba(255,255,255,.45);
  pointer-events:none;
}
@keyframes ripple{
  to { transform: scale(4); opacity: 0; }
}

/* =========================================================
   # PREMIUM HEADER & NAVIGATION (NEU)
========================================================= */

/* --- 1. Allgemeiner Header-Container --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--header-line);
  color: var(--header-text);
  transition: background .2s ease; /* Sanfter Übergang beim Scrollen */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  height: 80px; /* Feste Höhe für Stabilität */
}

/* --- 2. Logo / Marke --- */
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand-full {
  height: 100px;
  width: auto;
  display: block; /* Standard: Desktop-Logo sichtbar */
}
.brand-mark {
  height: 60px;
  width: auto;
  display: none; /* Standard: Mobiles Logo versteckt */
}

/* --- 3. Geteilte Navigations-Listen-Stile --- */
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.nav-list a {
  text-decoration: none;
  font-weight: 700;
  transition: background .2s ease, color .2s ease;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.nav-sep {
  height: 24px;
  width: 1px;
  background: var(--header-line);
  margin: 0 .5rem;
}

/* --- 4. Desktop-Navigation --- */
.nav-desktop {
  display: block; /* Standard: Sichtbar */
}
.nav-desktop .nav-list {
  gap: .9rem;
}
.nav-desktop a:not(.btn) {
  color: var(--header-text);
  padding: .55rem .65rem;
  border-radius: 12px;
  position: relative;
}
.nav-desktop a:not(.btn)::after {
  content: "";
  position: absolute;
  left: .65rem;
  right: .65rem;
  bottom: .35rem;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-desktop a:not(.btn):hover {
  background: rgba(255, 255, 255, .08);
}
.nav-desktop a:not(.btn):hover::after,
.nav-desktop a:not(.btn).is-active::after {
  transform: scaleX(1);
}
.nav-desktop a.is-active {
  color: #fff; /* Aktiven Link hervorheben */
}

/* --- 5. Mobile Navigation (komplett getrennt) --- */
.mobile-nav-container {
  display: none; /* Standard: Versteckt */
}

/* =========================================================
   # RESPONSIVE & MOBILE NAVIGATION (NEU)
========================================================= */
@media (max-width: 920px) { /* Breakpoint anpassen, falls nötig */

  /* --- Layout-Anpassungen --- */
  .brand-full { display: none; }
  .brand-mark { display: block; }
  .nav-desktop { display: none; }
  .mobile-nav-container { display: block; }

  /* --- Burger-Button --- */
  .nav-toggle {
    position: fixed;
    top: 15px;
    right: 1rem;
    z-index: 1300;
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
  }
  .nav-toggle:active { transform: scale(.95); }

  .nav-toggle-icon {
    width: 22px;
    height: 14px;
    position: relative;
  }
  .nav-toggle-icon::before,
  .nav-toggle-icon::after,
  .nav-toggle-icon span {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 99px;
    background: #fff;
    transition: transform .22s ease, top .22s ease, opacity .22s ease;
  }
  .nav-toggle-icon::before { top: 0; }
  .nav-toggle-icon span { top: 6px; }
  .nav-toggle-icon::after { top: 12px; }

  /* Burger -> X Animation */
  .nav-toggle.is-open .nav-toggle-icon::before { top: 6px; transform: rotate(45deg); }
  .nav-toggle.is-open .nav-toggle-icon::after { top: 6px; transform: rotate(-45deg); }
  .nav-toggle.is-open .nav-toggle-icon span { opacity: 0; }

  /* --- Backdrop --- */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
  }
  .nav-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  /* --- Mobiles Menü-Panel --- */
  .nav-mobile {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(300px, 80vw); /* Breite des Menüs */
    z-index: 1200;
    padding: 80px 1rem 2rem;
    background: #0f172a; /* Dunkler Hintergrund */
    border-right: 1px solid var(--header-line);
    overflow-y: auto;
    transform: translateX(-100%); /* Standard: aus dem Bild geschoben */
    transition: transform .3s cubic-bezier(0.22, 1, 0.36, 1); /* Smoothe Animation */
  }
  .nav-mobile.is-open {
    transform: translateX(0);
  }

  .nav-mobile .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
  }
  .nav-mobile li {
    width: 100%;
  }
  .nav-mobile a {
    display: block;
    width: 100%;
    padding: .75rem 1rem;
    border-radius: 12px;
    color: var(--header-muted);
  }
  .nav-mobile a:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
  }
  .nav-mobile a.is-active {
    background: var(--brand);
    color: #fff;
  }
  .nav-mobile .nav-sep {
    width: 100%;
    height: 1px;
    margin: .75rem 0;
  }
  .nav-mobile .nav-cta {
    flex-direction: column;
    width: 100%;
    gap: .75rem;
    padding-top: .5rem;
  }
  .nav-mobile .nav-cta .btn {
    width: 100%;
    justify-content: center;
  }
}


/* =========================================================
   # HERO (Homepage / Leistungen / Elektro / Kontakt)
========================================================= */
.hero{
  padding: 3.2rem 0 2.4rem;
  background:
    radial-gradient(900px 380px at 18% 10%, rgba(26, 66, 162, .16), transparent 60%),
    radial-gradient(900px 380px at 80% 0%, rgba(17, 24, 39, .10), transparent 55%);
  border-bottom: 1px solid var(--line);
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: center; /* <<< Fix: vertikal zentriert */
}

.hero h1{
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero p{
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions{
  display:flex;
  gap:.8rem;
  flex-wrap:wrap;
}

.badges{
  display:flex;
  flex-wrap:wrap;
  gap:.55rem;
  margin-top: 1.2rem;
}

.badge{
  display:inline-flex;
  padding:.45rem .7rem;
  border: 1px solid var(--line);
  border-radius:999px;
  background: rgba(255,255,255,.75);
  color: var(--muted);
  font-size: .92rem;
}

/* Hero media (Symbol/Logo rechts) */
.hero-media{
  display:grid;
  place-items:center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #0b1220;
  min-height: 340px;
  overflow:hidden;
}

.hero-symbol{
  width: min(360px, 80%);
  height: auto;
  display:block;
  object-fit: contain;
  transform: translate3d(0,0,0);
  will-change: transform;
}
/* =========================================================
   # ELEKTROTECHNIK – Extra Sections
========================================================= */

/* Soft section background */
.section-soft{
  background: rgba(26, 66, 162, .04);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* KPI mini in hero card */
.kpi-grid{
  margin-top: 1rem;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}
.kpi-mini{
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .75rem .85rem;
  background: rgba(26, 66, 162, .04);
}
.kpi-mini strong{ display:block; }
.kpi-mini span{ display:block; color: var(--muted); font-size: .95rem; }

/* Mini CTA row in hero card */
.mini-cta{
  margin-top: 1rem;
  display:flex;
  gap:.6rem;
  flex-wrap: wrap;
}

/* Chips in cards (instead of bullet lists) */
.chip-grid{
  display:flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .7rem;
}
.chip{
  display:inline-flex;
  padding: .45rem .65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(26, 66, 162, .04);
  color: var(--text);
  font-size: .95rem;
}

/* Steps */
.steps{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.step-num{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  background: var(--brand);
  color:#fff;
  font-weight: 800;
  margin-bottom: .75rem;
}

/* FAQ */
.faq{
  display:grid;
  gap: .75rem;
  margin-top: 1rem;
}
.faq-item{ overflow:hidden; }
.faq-q{
  cursor:pointer;
  padding: 1.1rem 1.25rem;
  font-weight: 800;
  list-style:none;
}
.faq-q::-webkit-details-marker{ display:none; }
.faq-item[open] .faq-q{
  border-bottom: 1px solid var(--line);
}
.faq-q::after{
  content:"+";
  float:right;
  opacity:.75;
}
.faq-item[open] .faq-q::after{
  content:"–";
}

/* CTA row helpers */
.cta-row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.cta-actions{
  display:flex;
  gap: .6rem;
  flex-wrap: wrap;
}

.btn-ghost{
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.18) !important;
  color: rgba(255,255,255,.92) !important;
  box-shadow: none !important;
}
.btn-ghost:hover{
  background: rgba(255,255,255,.10) !important;
}

/* Responsive */
@media (max-width: 920px){
  .steps{ grid-template-columns: 1fr; }
}

/* =========================================================
   # LEISTUNGEN – Details (modern, ohne Stichpunkt-Look)
========================================================= */
.section-details .details-grid{
  display:grid;
  gap: 1rem;
}

.detail-card{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  scroll-margin-top: 120px; /* damit Anker nicht unter Header hängen */
}

.detail-head h3{
  margin: 0 0 .35rem;
}

.detail-head p{
  margin: 0;
}

.detail-body{
  margin-top: 1rem;
  display:flex;
  gap: 1rem;
  align-items:flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.detail-features{
  flex: 1 1 520px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem .75rem;
}

.feature{
  position: relative;
  padding: .55rem .75rem .55rem 2.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(26, 66, 162, .04);
}

.feature::before{
  content:"✓";
  position:absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.15rem;
  height: 1.15rem;
  display:grid;
  place-items:center;
  border-radius: 999px;
  background: var(--brand);
  color:#fff;
  font-weight: 800;
  font-size: .8rem;
}



.detail-actions{
  flex: 0 0 auto;
  display:flex;
  gap: .6rem;
  flex-wrap: wrap;
}

.btn-ghost{
  background: transparent;
  color: var(--brand);
  border-color: rgba(26, 66, 162, .35);
  box-shadow: none;
}

.btn-ghost:hover{
  background: rgba(26, 66, 162, .10);
  filter: none;
}

/* Responsive */
@media (max-width: 760px){
  .detail-features{ grid-template-columns: 1fr; }
  .detail-actions{ width: 100%; }
  .detail-actions .btn{ width: 100%; }
}


/* =========================================================
   # HOMEPAGE (Info-Strip)
========================================================= */
.info-strip{
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}
.info-strip-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.kpi{
  display:flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.kpi-item strong{
  display:block;
  font-size: 1.1rem;
}
.kpi-item span{
  display:block;
  color: var(--muted);
  font-size: .95rem;
}

/* =========================================================
   # LEISTUNGEN (Cards)
========================================================= */
.services-grid{ margin-top: 1rem; }

.service-card{
  overflow:hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:#fff;
  box-shadow: var(--shadow);
  position: relative;
}

.service-link{ display:block; text-decoration:none; }

.service-card img{
  width:100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display:block;
  transform: translateZ(0);
  transition: transform .25s ease; /* smoother */
}

.service-body{ padding: 1rem 1.1rem 1.2rem; }
.service-body h3{ margin:.1rem 0 .35rem; }

.service-card:hover img{
  transform: scale(1.02);
}

.service-badge{
  position:absolute;
  top: 12px;
  left: 12px;
  background: rgba(17,24,39,.88);
  color:#fff;
  padding: .35rem .55rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
}

.link-hint{
  display:inline-block;
  margin-top: .35rem;
  font-weight: 700;
  color: rgba(26, 66, 162, .95);
}

/* =========================================================
   # KONTAKT (Formular)
========================================================= */
.form-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .9rem;
}

.field label{
  display:block;
  font-weight: 700;
  margin-bottom: .35rem;
}

.field input,
.field select,
.field textarea{
  width:100%;
  padding: .75rem .85rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.9);
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus{
  border-color: rgba(26, 66, 162, .45);
}
/* =========================================================
   # KONTAKT – Google Maps Embed
========================================================= */
.map-embed{
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  border-radius: var(--radius);
}

.map-embed iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}

@media (max-width: 920px){
  .map-embed{ height: 320px; }
}

/* =========================================================
   # FOOTER
========================================================= */
.site-footer{
  margin-top: 2.6rem;
  border-top: 1px solid var(--line);
  background: #0b1220;
  color: rgba(255,255,255,.92);
}

.footer-inner{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.2rem;
  padding: 2rem 0;
}

.footer-list{
  list-style:none;
  padding:0;
  margin:.6rem 0 0;
}
.footer-list li{ margin:.35rem 0; }
.footer-list a{ color: rgba(255,255,255,.92); }

.footer-bottom{
  padding: .9rem 0 1.2rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.site-footer .muted{ color: rgba(255,255,255,.72); }

/* =========================================================
   # ANIMATIONEN (Reveal)
========================================================= */
.reveal{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible{
  opacity: 1;
  transform: none;
}
.reveal-delay-1{ transition-delay: .08s; }
.reveal-delay-2{ transition-delay: .16s; }
.reveal-delay-3{ transition-delay: .24s; }

@media (prefers-reduced-motion: reduce){
  .reveal, .reveal.is-visible{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =========================================================
   # MICRO-INTERACTIONS (optional Lift)
========================================================= */
.lift{
  transition: transform .25s ease, box-shadow .25s ease;
  will-change: transform;
}
.lift:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(2, 6, 23, .14);
}

/* =========================================================
   # STICKY CTA (nur Mobile)
========================================================= */
.mobile-cta{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;

  display:none;
  padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}

.mobile-cta-inner{
  width: min(100% - 0rem, var(--container));
  margin-inline: auto;
  display:flex;
  gap: .7rem;
}

.mobile-cta .btn{
  width: 100%;
  box-shadow: none;
}

/* =========================================================
   # RESPONSIVE (global)
========================================================= */
@media (max-width: 920px){
  .hero-grid{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr; }
  .form-grid{ grid-template-columns: 1fr; }
  .hero-media{ min-height: 260px; }
  .hero-symbol{ width: min(260px, 80%); }
}


/* =========================================================
   # ÜBER UNS – Kurzprofil Layout
========================================================= */
.profile-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.profile-item{
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .9rem 1rem;
  background: rgba(26, 66, 162, .04);
}

.profile-item strong{
  display:block;
  margin-bottom: .35rem;
}

.profile-item span{
  display:block;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 920px){
  .profile-grid{ grid-template-columns: 1fr; }
}


/* =========================================================
   # HOMEPAGE – Core Grid spacing (optional)
========================================================= */
.core-grid{
  margin-top: 1rem;
}


/* =========================================================
   # LEGAL PAGES (Impressum / Datenschutz)
   -> <main id="main" class="legal">
========================================================= */

.legal .card{
  overflow: hidden; /* damit z.B. linke Akzente sauber bleiben */
}

.legal .card-pad{
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
}

/* Headings */
.legal h1{
  margin: 0 0 .35rem;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.15;
}

.legal h2{
  margin: 1.35rem 0 .55rem;
  font-size: 1.18rem;
  line-height: 1.25;
}

.legal h3{
  margin: 1.1rem 0 .45rem;
  font-size: 1.05rem;
  line-height: 1.25;
}

/* Paragraph rhythm */
.legal p{
  margin: .5rem 0;
  line-height: 1.65;
}

.legal .muted{
  line-height: 1.55;
}

/* Better link style for legal text */
.legal a{
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.legal a:hover{
  filter: brightness(1.05);
}

/* Lists */
.legal ul,
.legal ol{
  margin: .5rem 0 .75rem;
  padding-left: 1.2rem;
}

.legal li{
  margin: .25rem 0;
}

/* Subtle separators */
.legal hr{
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.25rem 0;
}

/* Highlight blocks (optional helpers) */
.legal .legal-note,
.legal .legal-box{
  margin-top: .9rem;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(26, 66, 162, .04);
}

.legal .legal-note{
  border-left: 4px solid rgba(26, 66, 162, .55);
}

/* Definition-style blocks (nice for address / contact) */
.legal .legal-block{
  margin: .65rem 0;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.8);
}

.legal .legal-block strong{
  display: inline-block;
  margin-bottom: .15rem;
}

/* Optional: small meta line under title */
.legal .legal-meta{
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: .98rem;
}

/* Optional: table styling (falls du später mal was tabellarisch brauchst) */
.legal table{
  width: 100%;
  border-collapse: collapse;
  margin: .75rem 0 1rem;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.legal th,
.legal td{
  text-align: left;
  padding: .7rem .8rem;
  border-bottom: 1px solid var(--line);
}

.legal th{
  background: rgba(26, 66, 162, .06);
  font-weight: 800;
}

.legal tr:last-child td{
  border-bottom: 0;
}

/* Mobile tweak */
@media (max-width: 760px){
  .legal h2{ margin-top: 1.15rem; }
  .legal .legal-note,
  .legal .legal-box,
  .legal .legal-block{ padding: .85rem .9rem; }
}
