/* ==================================================================
   TOKENS
================================================================== */
:root{
  --primary:   #0D233E;
  --secondary: #183A63;
  --accent:    #4D89C7;
  --bg:        #F8FAFC;
  --text:      #202124;
  --border:    #E6EBF2;

  --white: #FFFFFF;
  --text-muted: #5B6472;

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

  --container-max: 1180px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-soft: 0 8px 30px rgba(13, 35, 62, 0.06);
  --shadow-lift: 0 16px 48px rgba(13, 35, 62, 0.10);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ==================================================================
   RESET / BASE
================================================================== */
*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4{
  font-family: var(--font-head);
  color: var(--primary);
  margin: 0;
  letter-spacing: -0.01em;
}

p{ margin: 0 0 1rem; color: var(--text); }
p:last-child{ margin-bottom: 0; }

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

ul, ol{ margin:0; padding:0; list-style:none; }

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

section{ position: relative; }

/* Focus visibility (a11y) */
a:focus-visible,
button:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 999;
}
.skip-link:focus{
  left: 24px;
  top: 24px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ==================================================================
   TYPE SCALE
================================================================== */
.eyebrow{
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.section-head{ max-width: 640px; margin-bottom: 56px; }
.section-head h2{ font-size: clamp(1.8rem, 2.6vw, 2.5rem); font-weight: 700; }
.section-intro{ margin-top: 16px; color: var(--text-muted); font-size: 1.05rem; }
.section-head.light .eyebrow{ color: #8FB6DD; }
.section-head.light h2{ color: #fff; }
.section-head.light .section-intro{ color: rgba(255,255,255,0.72); }

/* ==================================================================
   MOTION — subtle fade/slide-up on scroll
================================================================== */
.fade-up{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--delay, 0s);
}
.fade-up.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* ==================================================================
   BUTTONS
================================================================== */
.btn-primary,
.btn-secondary{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 26px;
  border-radius: var(--radius-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}

.btn-primary{
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover{
  background: var(--secondary);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.btn-secondary{
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover{
  border-color: var(--accent);
  color: var(--accent);
}

.btn-large{ padding: 18px 34px; font-size: 1rem; margin-top: 8px; }

.btn-nav-cta{
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  background: var(--primary);
  color: #fff;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  transition: background .2s var(--ease);
}
.btn-nav-cta:hover{ background: var(--secondary); }

/* ==================================================================
   ORIENTATION RAIL (signature element)
================================================================== */
.orientation-rail{
  position: fixed;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  flex-direction: column;
  align-items: center;
}
.rail-line{
  position: relative;
  width: 1px;
  height: 260px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
}
.rail-progress{
  position: absolute;
  top:0; left:0;
  width: 100%;
  height: 0%;
  background: var(--accent);
  transition: height .2s linear;
}
.rail-marks{
  position: absolute;
  top:0; left:0;
  height: 260px;
  width: 1px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.rail-marks li{ position: relative; }
.rail-marks a{
  display: block;
  width: 9px;
  height: 9px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.rail-marks a:hover{ transform: scale(1.3); }
.rail-marks a.active{
  background: var(--accent);
  border-color: var(--accent);
}

/* ==================================================================
   HEADER
================================================================== */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  background: rgba(248, 250, 252, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled{
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(13,35,62,0.04);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand{ display: flex; align-items: center; gap: 12px; }
.brand-mark{
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0.01em;
}
.brand-name{
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--primary);
}

.main-nav{ gap: 34px; }
.main-nav a{
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 6px 0;
  transition: color .2s var(--ease);
}
.main-nav a::after{
  content:"";
  position:absolute;
  left:0; bottom:0;
  width:0; height: 1px;
  background: var(--accent);
  transition: width .25s var(--ease);
}
.main-nav a:hover{ color: var(--primary); }
.main-nav a:hover::after{ width: 100%; }

.nav-toggle{
  width: 40px; height: 40px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span{
  width: 22px; height: 2px;
  background: var(--primary);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.mobile-nav{
  max-height: 0;
  overflow: hidden;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: max-height .35s var(--ease);
  display: flex;
  flex-direction: column;
}
.mobile-nav.open{ max-height: 480px; }
.mobile-nav a{
  padding: 16px 32px;
  border-top: 1px solid var(--border);
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--primary);
}
.mobile-nav .btn-nav-cta{
  margin: 16px 32px 20px;
  text-align: center;
  justify-content: center;
}

/* ==================================================================
   HERO
================================================================== */
.hero{
  padding: 168px 0 120px;
}

.hero-grid{
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 72px;
  align-items: center;
}

.hero-headline{
  font-size: clamp(2.4rem, 4.6vw, 3.85rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 26px;
}

.hero-sub{
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-actions{ display: flex; gap: 16px; flex-wrap: wrap; }

.hero-portrait{ position: relative; }
.portrait-frame{
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: var(--radius-lg);
  background: var(--primary);
  box-shadow: var(--shadow-lift);
  position: relative;
  overflow: hidden;
}
.portrait-frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.portrait-frame::after{
  content:"";
  position:absolute;
  inset:0;
  box-shadow: inset 0 -60px 80px -40px rgba(13, 35, 62, 0.35);
  pointer-events: none;
}
.portrait-caption{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}
.caption-line{
  width: 28px; height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.portrait-caption p{
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

/* ==================================================================
   ABOUT
================================================================== */
.about{ padding: 100px 0; }

.about-grid{
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
}

.lead-quote{
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.38;
  border-left: 2px solid var(--accent);
  padding-left: 24px;
  position: sticky;
  top: 140px;
}

.about-body p{ color: var(--text-muted); font-size: 1.03rem; }

.philosophy-block{
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.philosophy-block h3{
  font-size: 1rem;
  margin-bottom: 18px;
}
.philosophy-list li{
  position: relative;
  padding-left: 22px;
  margin-bottom: 14px;
  color: var(--text);
  font-size: 1rem;
}
.philosophy-list li::before{
  content:"";
  position:absolute;
  left:0; top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.philosophy-list li:last-child{ margin-bottom: 0; }

/* ==================================================================
   SERVICES
================================================================== */
.services{ padding: 100px 0; background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.services-list{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
}

.service-row{
  display: flex;
  gap: 20px;
  padding: 30px 0;
  border-top: 1px solid var(--border);
}
.services-list .service-row:nth-child(1),
.services-list .service-row:nth-child(2){ border-top: none; }

.service-icon{
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.service-icon i{ width: 21px; height: 21px; }

.service-content h3{
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.service-content p{
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ==================================================================
   APPROACH (dark, contrasting section)
================================================================== */
.approach{
  padding: 100px 0;
  background: var(--primary);
}

.approach-steps{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.14);
}

.approach-step{
  padding: 32px 28px 0 0;
  border-right: 1px solid rgba(255,255,255,0.14);
}
.approach-step:last-child{ border-right: none; padding-right: 0; }

.step-index{
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.approach-step h3{
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.approach-step p{
  color: rgba(255,255,255,0.68);
  font-size: 0.96rem;
}

/* ==================================================================
   WHY
================================================================== */
.why{ padding: 100px 0; }

.why-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.why-item i{
  width: 26px; height: 26px;
  color: var(--accent);
  margin-bottom: 20px;
}
.why-item h3{
  font-size: 1.08rem;
  margin-bottom: 10px;
}
.why-item p{
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* ==================================================================
   CONTACT
================================================================== */
.contact{ padding: 120px 0; }

.contact-inner{
  max-width: 640px;
}

.contact-inner h2{
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin-bottom: 20px;
}
.contact-sub{
  color: var(--text-muted);
  font-size: 1.08rem;
  margin-bottom: 40px;
}

.contact-methods{
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}
.contact-method{
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.contact-method:hover{
  border-color: var(--accent);
  background: var(--white);
}
.contact-method i{ width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.contact-method span{ display: flex; flex-direction: column; }
.method-label{
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.method-value{
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--primary);
  font-size: 1rem;
}

/* ==================================================================
   FOOTER
================================================================== */
.site-footer{
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.footer-inner{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.footer-links a{
  color: var(--text-muted);
  transition: color .2s var(--ease);
}
.footer-links a:hover{ color: var(--primary); }

/* ==================================================================
   LEGAL PAGES (Impressum / Datenschutz)
================================================================== */
.legal-page{ padding: 160px 0 100px; min-height: 60vh; }

.legal-inner{ max-width: 720px; }

.legal-inner h1{
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  font-weight: 800;
  margin-bottom: 44px;
}

.legal-inner h2{
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 14px;
}
.legal-inner h2:first-of-type{ margin-top: 0; }

.legal-inner p{
  color: var(--text-muted);
  font-size: 1rem;
}

.legal-inner a{
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-list{ margin: 0 0 1rem; padding-left: 22px; list-style: disc; }
.legal-list li{
  color: var(--text-muted);
  margin-bottom: 8px;
}

.legal-placeholder{
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 0.92rem;
  font-style: italic;
}

.legal-back{ margin-top: 48px; }

/* ==================================================================
   RESPONSIVE
================================================================== */
@media (max-width: 1200px){
  .orientation-rail{ display: none !important; }
  .main-nav{ gap: 22px; }
  .brand-name{ font-size: 0.92rem; }
}

@media (max-width: 991px){
  .hero{ padding: 140px 0 90px; }
  .hero-grid{ grid-template-columns: 1fr; gap: 52px; }
  .hero-portrait{ max-width: 340px; }

  .about-grid{ grid-template-columns: 1fr; gap: 36px; }
  .lead-quote{ position: static; }

  .services-list{ grid-template-columns: 1fr; }
  .services-list .service-row:nth-child(2){ border-top: 1px solid var(--border); }

  .approach-steps{ grid-template-columns: 1fr 1fr; }
  .approach-step{ border-right: none; border-bottom: 1px solid rgba(255,255,255,0.14); padding: 28px 0 24px; }
  .approach-step:nth-child(odd){ padding-right: 20px; }

  .why-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 576px){
  .container{ padding: 0 20px; }
  .header-inner{ height: 72px; }
  .hero{ padding: 120px 0 70px; }
  .hero-headline{ font-size: 2.1rem; }
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .why-grid{ grid-template-columns: 1fr; }
  .approach-steps{ grid-template-columns: 1fr; }
  .approach-step{ padding-right: 0 !important; }
  .footer-inner{ flex-direction: column; }
}
