/* ==========================================================================
   1) BASIS / VARIABLEN
   ========================================================================== */

:root{
  --bg-main: #f8f9f9;
  --bg-header: #eaeaea;
  --bg-cards: #ffffff;
  --bg-footer: #222222;
  --text-dark: #0c1220;
  --text-light: #5c6167;
  --muted: #566074;
  --brand: #0e315d;
  --border: rgba(14,49,93,.12);
  --shadow: 0 10px 26px rgba(0,0,0,.08);

  --radius: 4px;
  --container: 1120px;

  /* Sticky Header Höhe: wichtig für Anker-Scroll (Kicker sichtbar) */
  --header-offset: 84px;

  /* Dotnav Marker: wird per JS gesetzt */
  --active-y: 0px;
}

/* SONDEREINSTELLUNGEN FÜR MOBILE ANSICHT IM QUERFORMAT */
@media (max-height: 500px) and (orientation: landscape){
  :root{
    --header-offset: 60px; /* etwas weniger Platzverlust */
  }
}

/* Alle Anker-Ziele bekommen Offset unter dem Sticky Header */
section[id],
.anchor{
  scroll-margin-top: var(--header-offset);
}

/* Reset-ish */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text-dark);
  text-align: justify;
  background: var(--bg-main);
  line-height: 1.55;
}

img{
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Accessibility helpers */

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

/* ==========================================================================
   2) HEADER / NAV
   ========================================================================== */

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
}

.brand{
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: inherit;
}
.brand-logo{
  height: 56px;
  width: auto;
}

.site-nav{
  display: flex;
  align-items: center;
  gap: .9rem;
}

.site-nav a{
  text-decoration: none;
  color: var(--brand);
  font-weight: 600;
  font-size: .95rem;
  text-transform: uppercase;
  padding: .4rem .55rem;
  border-radius: var(--radius);
}
.site-nav a:hover{
  background: rgba(14,49,93,.08);
}

.nav-cta{
  border: 1px solid rgba(14,49,93,.25);
}

/* Mobile nav toggle button (Burger) */
.nav-toggle{
  display: none;
  border: 1px solid rgba(14,49,93,.25);
  background: transparent;
  border-radius: var(--radius);
  padding: .55rem .65rem;
  color: var(--brand);
}

.nav-toggle-bars{
  width: 20px;
  height: 14px;
  position: relative;
  display: block;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 999px;
}
.nav-toggle-bars::before{ top: 2px; }
.nav-toggle-bars::after{ bottom: 2px; }

/* SONDEREINSTELLUNGEN FÜR MOBILE ANSICHT BIS 900PX BREITE */
@media (max-width: 900px){

  .site-nav{
    position: absolute;
    right: 1rem;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .65rem;
    box-shadow: var(--shadow);
    min-width: 240px;
  }

  .site-nav.is-open{
    display: flex;
  }

  .nav-toggle{
    display: inline-flex;
    align-items: center;
  }
}

/* ==========================================================================
   3) HERO
   ========================================================================== */

   /* Hero-Hinterungr für alternative Design-Variante */

/* Hero-Hintergrund: Bild (unten) */
.hero--bg{
  position: relative;
  overflow: hidden;
}

.hero--bg::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("bilder/Kanzleifoto-RA-Alexander-Zyrewitz-ohne-Gemaelde.png");
  background-size: cover;
  background-position: center 14%;
  background-repeat: no-repeat;
  filter: grayscale(100%); /* Mit Filter wird Hintergrundbild schwarz-weiß */ 
  z-index: 0;
}

/* Hero-Hintergrund: Overlay (oben) – sorgt für gleichmäßige Transparenz */
.hero--bg::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.2); /* Desktop-Transparenz */
  z-index: 1;
}

/* Inhalt darüber */
.hero--bg > *{
  position: relative;
  z-index: 2;
}

/* <=1100px, um Überschneidung von Text und Gesicht zu vermeiden: Overlay stärker + Bildausschnitt hoch */
@media (max-width: 1100px){
  .hero--bg::before{
    background-position: center calc(14% - 55px);
  }
  .hero--bg::after{
    background: rgba(255,255,255,0.6);
  }
}

.hero.hero--center{
  background: var(--bg-main);

  /* exakt Viewport (abzgl. Sticky Header) */
  min-height: calc(100dvh - var(--header-offset));
  min-height: calc(100svh - var(--header-offset));
  min-height: calc(100vh - var(--header-offset));

  display: flex;
  align-items: center;
  justify-content: center;

  /* kein vertikales Padding, sonst wird der Hero größer als der Viewport */
  padding: 0;
}

.hero-content{
  text-align: left;
  max-width: 1060px;   /* etwas schmaler wirkt edler linksbündig */
  margin: 0 auto;
  transform: none;    /* ganz wichtig */
}

.hero-eyebrow{
  margin: 0 0 .6rem 0;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: clamp(1rem, 1.8vw , 3.1rem); /* VORHER: 1.8rem, 3.2vw, 3.1rem */ 
  color: var(--text-dark);
  text-shadow:
    0 0 0.55em rgba(0,0,0,.10),
    0 0 0.15em rgba(0,0,0,.12);
}

.hero-headline{
  margin: 0 0 1.1rem 0;
  line-height: 1;
  perspective: 900px;
  overflow: visible;
  display: block;
}

/* Zentriert auch dann "optisch", wenn der Rotator breiter als der Container ist */
.hero-rotator-wrap{
  display: block;              /* wichtig: Block beginnt am linken Rand */
  width: auto;
  position: static;
  left: auto;
  transform: none;
  margin: 0;
}

.hero-rotator{
  display: block;
  line-height:1;
  font-weight: 900;
  letter-spacing: .03em;
  /* OPTISCHE KANTENKORREKTUR */
  text-indent: -0.03em;
  overflow: visible; /* sicherstellen, dass links nichts abgeschnitten wird */
  text-align:left; 
  text-transform: uppercase;
  font-size: clamp(3.2rem, 3.3vw, 6.2rem);
  color: var(--brand);
  text-shadow:
    0 0 0.55em rgba(0,0,0,.10),
    0 0 0.15em rgba(0,0,0,.12);
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  -webkit-hyphens:none;
  white-space: nowrap;
  /* 3D clean */
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

/* sehr kurzes "weg" */
.hero-rotator.fade{
  opacity: 0;
  transform: perspective(900px) rotateX(90deg);
  transition: opacity 80ms linear, transform 80ms linear;
}

/* Einblend-Flip */
.hero-rotator.flip-in{
  animation: heroFlipInX 900ms both;
}

@keyframes heroFlipInX{
  0%{
    opacity: 0;
    transform: perspective(900px) rotateX(90deg);
    animation-timing-function: ease-in;
  }
  38%{
    transform: perspective(900px) rotateX(-30deg);
    animation-timing-function: ease-in;
  }
  60%{
    opacity: 1;
    transform: perspective(900px) rotateX(16deg);
  }
  78%{ transform: perspective(900px) rotateX(-10deg); }
  90%{ transform: perspective(900px) rotateX(6deg); }
  100%{
    opacity: 1;
    transform: perspective(900px) rotateX(0deg);
  }
}

@media (prefers-reduced-motion: reduce){
  .hero-rotator.fade,
  .hero-rotator.flip-in{
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

.hero-text{
  margin: 20px auto 50px 0; /* VORHER: 50px auto 50px auto */
  max-width: 980px;
  text-align:left;
}

.hero-text p{
  font-weight: 400;
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  color: var(--text-dark);
  line-height: 1.5;
}

/* Buttons (OnePress-Style) */
.hero-actions--onepress{
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.1rem;
}

.btn-onepress{
  border-radius: var(--radius);
  padding: .85rem 1.6rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: 0 2px 0 rgba(0,0,0,.12);
}

.btn-onepress--dark{
  background: var(--brand);
  color: #fff;
}
.btn-onepress--blue{
  background: #2f7de1;
  color: #fff;
}

.btn-onepress--dark:hover,
.btn-onepress--blue:hover{
  filter: brightness(.90);
}

/* SONDEREINSTELLUNGEN FÜR MOBILE ANSICHT BIS 900PX BREITE */
@media (max-width: 900px){

  .hero-content{
    transform: none;
    text-align: center;
  }
  
  .hero-rotator-wrap{
    left: 0;
    transform: none;
    width: auto;
  }
  
  /* Rotator auf Mobile passt Größe an, um immer in 2 Zeilen angezeigt zu werden */
  .hero-rotator{
    display: block;              /* wichtig für sauberen Zeilenumbruch */
    max-width: 90vw;             /* begrenzt die Breite, damit 2 Zeilen entstehen */
    margin: 0 auto;              /* zentriert */
    text-align: center;
    line-height: 1.05;           /* kompakter, aber noch gut lesbar */
    overflow-wrap: anywhere;
    word-break: break-word;
    /* 👉 NEU (wichtig als Gegenstück zu Desktop) */
    white-space: normal;
    hyphens: manual; /* optional; da du <br> manuell setzt */
  }

  .hero-text{
    text-align: center;
  }

  .hero-text p{
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.5;
  }

  .hero-actions--onepress{
  display: flex;
  justify-content: center;
  }
}

/* SONDEREINSTELLUNGEN FÜR MOBILE ANSICHT IM QUERFORMAT */
@media (max-height: 500px) and (orientation: landscape){

  /* Hero kompakter, damit mehr Inhalt sichtbar bleibt */
  .hero.hero--center{
    min-height: calc(100vh - var(--header-offset));
    padding: 1.2rem 0;
    align-items: flex-start;
  }

  .hero-eyebrow{
    margin-bottom: .35rem;
    font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  }

  /* Rotator nicht zu riesig in flacher Höhe */
  .hero-rotator{
    font-size: clamp(2.4rem, 4.8vw, 3.6rem);
  }

  /* Fließtext etwas kleiner und weniger Zeilenhöhe */
  .hero-text p{
    margin: .5rem 0;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  /* Buttons kompakter */
  .hero-actions--onepress{
    margin-top: 1rem;
    gap: .6rem;
  }

  .btn-onepress{
    padding: .65rem 1.1rem;
    font-size: .92rem;
  }
}

/* ==========================================================================
   4) SECTIONS (deine "Plain"-Sektionen + Überschriften/Lead)
   ========================================================================== */

.section{
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section--plain{
  background: var(--bg-main);
}

.section--centerhead .section-headline{
  text-align: center;
  margin-bottom: 1.6rem;
}

.kicker{
  margin: 0;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: #aaaaaa;
  font-size: .9rem;
}

.title{
  margin: 0;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dark);
  font-size: clamp(2.1rem, 2.6vw, 3.1rem);
}

.lede{
  max-width: 1120px;
  margin: 1.35rem auto 0 auto;
  font-size: 1.15rem;
  line-height: 1.7;
  /* Silbentrennung */ 
  hyphens: auto;
  -webkit-hyphens: auto; /* Safari */
  -ms-hyphens: auto;     /* ältere Edge-Versionen */
}

.lede .hl{
  font-weight: 900;
}

.lede .lede-line{
  margin-top: 1.2rem;
}

/* SONDEREINSTELLUNGEN FÜR MOBILE ANSICHT BIS 900PX BREITE */
@media (max-width:900px){
  .title{
    white-space: nowrap;
    font-size: clamp(1.8rem, 6.6vw, 2.3rem);
    letter-spacing: .04em;
  }

  .lede{
    font-size: 1.0rem;
    padding: 0 0.75rem;
  }
}

/* SONDEREINSTELLUNGEN FÜR MOBILE ANSICHT IM QUERFORMAT */
@media (max-height: 500px) and (orientation: landscape){

  /* Sections etwas weniger vertikaler Abstand */
  .section{
    padding: 2.2rem 0;
  }

  .lede{
    max-width: 900px;
    font-size: 1.05rem;
  }
}

/* ==========================================================================
   5) FEATURE CARDS (genutzt in Abschnitten Beratungsangebot und Erfahrung)
   ========================================================================== */

.feature-cards{
  margin: 4rem 1.8rem 0 1.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
  align-items:start;
}

.feature-card{
  background: var(--bg-cards);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 1.9rem 2rem;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: #fff;
}

.feature-icon{
  float: none;
  margin: 0 0 .75rem 0;
  text-align: center;
  color: var(--brand);
  font-size: 4rem;
  line-height: 1;
}

.feature-body{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-title{
  margin: 0 0 1rem 0;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
}

.feature-toggle{
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 10px 0 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.feature-chevron{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: var(--brand);
}

.feature-chevron i{
  display: block;
  font-size: 1.1rem;
  line-height: 1;
}

/* Chevron-States */
.feature-chevron .chevron-up{ display: none; }
.feature-card.is-open .feature-chevron .chevron-down{ display: none; }
.feature-card.is-open .feature-chevron .chevron-up{ display: block; }

/* Details: standardmäßig zu */
.feature-card .feature-details{
  display: none;
  width: 100%;
  padding-top: 0;
}

.feature-card.is-open .feature-details{
  display: block;
}

.feature-body p{
  margin: .55rem 0 0 0;
  color: var(--text-light);
  line-height: 1.5;
  font-size: .9rem;
}

.feature-details .hl{ 
  font-weight: 900; 
}

.feature-details p{
  /* Silbentrennung */
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

.feature-details ul {
  margin: .55rem 0 0 0;
  color: var(--text-light);
  line-height: 1.5;
  font-size: .9rem;
  padding-left:1rem;
  /* Silbentrennung */
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

/* --- Responsive: Cards untereinander --- */
@media (max-width: 900px){
  .feature-cards{
    margin: 4rem .6rem 0 .6rem;
    grid-template-columns: 1fr;
    gap: 1.6rem;
    padding: 0 0.75rem;
    justify-items: center; /* Cards zentrieren */
  }

  .feature-card{
    width: 100%;
    max-width: 520px; 
  }

  /* optional: Icon minimal kleiner auf schmaleren Screens */
  .feature-icon{
    font-size: 4.0rem;
  }
}

/* ==========================================================================
   FEATURE CARDS: Desktop-Hover-Hervorhebung (nur Geräte mit Maus/Hover)
   ========================================================================== */

/* Nur Desktop/Pointer-Geräte: keine Effekte auf Touch/Mobile */
@media (hover: hover) and (pointer: fine) and (min-width: 981px){

  .feature-card{
    /* Ausgangszustand */
    transition:
      transform 220ms cubic-bezier(.22,1,.36,1),
      border-color 220ms ease,
      box-shadow 220ms ease,
      background-color 220ms ease;
    transform: translateY(0);
  }

  .feature-card:hover{
    /* Eleganter "Lift" + klarer interaktiv */
    transform: translateY(-4px);
    border-color: rgba(14,49,93,.28);
    box-shadow: 0 18px 40px rgba(0,0,0,.12);
    background-color: #fff;
  }

  /* Optional: Icon/Title leicht betonen */
  .feature-card:hover .feature-icon{
    transform: translateY(-1px);
  }

  .feature-icon{
    transition: transform 220ms cubic-bezier(.22,1,.36,1);
  }

  /* Chevron als Interaktionshinweis minimal "poppen" lassen */
  .feature-chevron{
    transition: transform 220ms cubic-bezier(.22,1,.36,1), opacity 220ms ease;
    opacity: .85;
  }

  .feature-card:hover .feature-chevron{
    transform: translateY(1px);
    opacity: 1;
  }

  /* Fokus per Tastatur ebenfalls hervorheben */
  .feature-card:focus-within{
    border-color: rgba(14,49,93,.35);
    box-shadow: 0 0 0 4px rgba(14,49,93,.14), 0 18px 40px rgba(0,0,0,.12);
  }
}

/* ==========================================================================
   6) ALL-IN-ONE (Detail-Erläuterungen im 3-Spalten-Look) 
   ========================================================================== */

.aio-grid{
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3.2rem;
  align-items: start;
}

.aio-item{
  margin-top: 0rem;
  text-align: center;
}

.aio-icon{
  width: 112px;
  height: 112px;
  border-radius: 999px;
  background: var(--brand);
  margin: 0 auto 1.1rem auto;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 3.5rem;
}

.aio-title{
  margin: 0 0 .8rem 0;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
}

.aio-text{
  margin: 0;
  color: var(--text-light);
  line-height: 1.5;
  font-size: .9rem;
  text-align: justify;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  /* Silbentrennung */ 
  hyphens: auto;
  -webkit-hyphens: auto; /* Safari */
  -ms-hyphens: auto;     /* ältere Edge-Versionen */
}

/* SONDEREINSTELLUNGEN FÜR MOBILE ANSICHT BIS 900PX BREITE */
@media (max-width: 900px){
  .aio-grid{
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }
  .aio-text{
    max-width: 520px;
    padding: 0 2rem;
  }
}

/* SONDEREINSTELLUNGEN FÜR MOBILE ANSICHT IM QUERFORMAT */
@media (max-height: 500px) and (orientation: landscape){

  .aio-text{
    max-width: 520px;
  }
}

/* ==========================================================================
   7) KONTAKT
   ========================================================================== */

.contact{
  display: grid;
  grid-template-columns: 420px 420px;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.contact-photo{
  width: 350px;
  justify-self: end;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-card{
  background: var(--bg-cards);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem;
  width: 100%;
  max-width: 420px;
}

.contact-name{
  margin: 0 0 1.5rem 0;
  font-weight: 800;
  color: var(--brand);
}

.contact-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .3rem;
}

.contact-list li{
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
}

.contact-list a{
  color: var(--brand);
  text-decoration: none;
}
.contact-list a:hover{
  text-decoration: underline;
}

.contact-logo{
  margin-top: 1.5rem;
  height: 56px;
  width: auto;
}

/* SONDEREINSTELLUNGEN FÜR MOBILE ANSICHT BIS 900PX BREITE */
@media (max-width: 900px){
  
  .contact{
    grid-template-columns: 1fr;
    justify-items: center;   /* <- zentriert ALLE Grid-Items (Foto + Karte) */
    align-items: start;
  }

  .contact-photo{
    justify-self: center;
    max-width: 100%;
    margin: 0 auto;
  }

  .contact-card{
    justify-self: center;              /* <- extra sicher */
    width: min(420px, calc(100% - 2rem)); /* <- bleibt in deinem Look, aber schön zentriert */
    margin: 0 auto;                    /* <- falls Browser/Grid zickt */
  }
}

/* SONDEREINSTELLUNGEN FÜR MOBILE ANSICHT IM QUERFORMAT */
@media (max-height: 500px) and (orientation: landscape){

  .contact{
    grid-template-columns: 1fr; /* erzwingt: Foto oben, Karte darunter */
    gap: 1rem;
    align-items: start;
  }

  .contact-photo{
    justify-self: center;
    width: min(320px, 90vw);  /* Foto nicht zu breit, bleibt zentriert */
    margin: 0 auto;
  }

  .contact-card{
    justify-self: center;
    width: min(520px, 92vw);  /* Karte zentriert und nicht zu breit */
    margin: 0 auto;
  }
}

/* ==========================================================================
   8) FOOTER
   ========================================================================== */

.site-footer{
  background: var(--bg-footer);
  border-top: 1px solid var(--border);
  padding: 2rem 0 3rem 0;
}

.footer-inner{
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  align-items: center;
  text-align: center;
}

.footer-nav{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;

  /* Abstand zwischen Links – vertikal/horizontal */
  row-gap: .15rem;
  column-gap: .35rem;
}

.footer-nav a{
  color: #eaeaea;
  font-size: 0.9rem;
  text-decoration: none;
  position: relative;
  padding: 0 .25rem;
}

/* Punkt grundsätzlich vor jedem Link außer dem ersten */
.footer-nav a + a::before{
  content: "·";
  position: absolute;
  left: -0.35rem;
  top: 50%;
  transform: translateY(-50%);
  color: #eaeaea;
  font-size: .9rem;
}

/* Für den allerersten Link: kein Punkt */
.footer-nav a:first-child::before{
  content: none;
}

/* WICHTIG: Links am Zeilenanfang sollen auch keinen Punkt bekommen
   (Die Klasse .is-row-start setzt gleich ein kleines JS) */
.footer-nav a.is-row-start::before{
  content: none;
}

.footer-nav a:hover{
  text-decoration: underline;
}

.footer-copy{
  margin: 0.5rem 0 0 0;
  color: #bbbbbb;
  font-size: .9rem;
}

/* ==========================================================================
   9) LEGAL-SEITEN: IMPRESSUM & DATENSCHUTZ
   --------------------------------------------------------------------------
   Diese Styles gelten ausschließlich für:
   - impressum.html
   - datenschutz.html
   Sie verändern NICHT das Design der OnePager-Startseite.
   ========================================================================== */

/* Wrapper: gleiche „ruhige“ Breite wie deine Lede-/Hero-Textbereiche */
.legal-wrap{
  max-width: 980px;
  margin: 2.2rem auto 0 auto;
}

/* Einspaltige Content-Box: passend zu deinem Gesamtlook (Card/Shadow/Border) */
.legal-card{
  background: var(--bg-cards);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(.1rem, 2.2vw, 1.6rem);
}

/* Überschriften innerhalb der Legal-Box */
.legal-card h3{
  margin: 1.5rem 1rem 0 1rem;
  color: var(--brand);
  font-size: .95rem;
  letter-spacing: .02em;
  text-align:left;
    /* Silbentrennung */ 
  hyphens: auto;
  -webkit-hyphens: auto; /* Safari */
  -ms-hyphens: auto;     /* ältere Edge-Versionen */
}

.legal-card h3:first-child{
  margin-top: 1.95rem;
}

/* Fließtext in der Legal-Box (optisch wie AIO/Feature Texte) */
.legal-card p{
  margin: .5rem 1rem 0 1rem;
  color: var(--text-light);
  font-size: .95rem;
  /* Silbentrennung */ 
  hyphens: auto;
  -webkit-hyphens: auto; /* Safari */
  -ms-hyphens: auto;     /* ältere Edge-Versionen */
}

/* Links innerhalb der Legal-Box */
.legal-card a{
  color: var(--brand);
  text-decoration: none;
}

.legal-card a:hover{
  text-decoration: underline;
}

/* Listen (z.B. berufsrechtliche Angaben / externe Dienste / Rechte) */
.legal-list{
  margin: .5rem 0 0 0;
  padding-left: 3rem;
  color: var(--text-light);
  font-size: .95rem;
  /* Silbentrennung */ 
  hyphens: auto;
  -webkit-hyphens: auto; /* Safari */
  -ms-hyphens: auto;     /* ältere Edge-Versionen */
}


/* ==========================================================================
   10) DOT NAV (rechte Punktenavigation)
   ========================================================================== */

.dotnav{
  position: fixed;
  right: 34px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;

  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Animierter aktiver Punkt (Marker) */
.dotnav::before{
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--brand);
  transform: translateY(var(--active-y));
  transition: transform 420ms cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}

.dotnav__item{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-decoration: none;
  outline: none;
}

.dotnav__dot{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid var(--brand);
  background: transparent;
  box-shadow: 0 1px 0 rgba(0,0,0,.12);
}

/* aktiv = Marker übernimmt */
.dotnav__item.is-active .dotnav__dot{
  background: transparent;
}

.dotnav__label{
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;

  background: var(--brand);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: .82rem;

  padding: 6px 10px;
  border-radius: var(--radius);

  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease, transform .12s ease;
}

.dotnav__item:hover .dotnav__label,
.dotnav__item:focus-visible .dotnav__label{
  opacity: 1;
  transform: translateY(-50%) translateX(-2px);
}

.dotnav__item:focus-visible .dotnav__dot{
  box-shadow: 0 0 0 4px rgba(14,49,93,.18);
}

/* SONDEREINSTELLUNGEN FÜR MOBILE ANSICHT BIS 900PX BREITE */
/* Auf kleinen Screens ausblenden */
@media (max-width: 900px){
  .dotnav{ display: none; }
}

/* ==========================================================================
   11) RESPONSIVE (Nav + Layout)
   ========================================================================== */

/* Kein horizontaler Overflow, ohne Sticky zu gefährden */
html{ overflow-x: clip !important; }
body{ overflow-x: clip !important; }

/* Sticky Header immer sauber über die volle Breite */
.site-header{
  left: 0;
  right: 0;
  width: 100%;
}