:root {
  --color-primary: rgb(110, 0, 0);
  --color-primary-dark: rgb(70, 0, 0);
  --color-accent: rgb(110, 0, 0);

  --color-bg: #ffffff;
  --color-bg-alt: #f4f5f7;
  --color-text: #272626;
  --color-text-light: #ffffff;

  --max-width: 1100px;
  --radius-card: 10px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);

  /* NEW: Offset für Sprungmarken bei Sticky Header */
  --scroll-offset: 30px;
}

* { box-sizing: border-box; }

/* NEW: Scroll-Offset für Anker berücksichtigen */
html {
  scroll-behavior: smooth;
/*  scroll-padding-top: var(--scroll-offset); */
}

/* NEW: robust für Section-Anker */
section[id]{
  scroll-margin-top: var(--scroll-offset);
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-primary); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.3;
}

p { margin: 0 0 1em; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.section--alt { background-color: var(--color-bg-alt); }

.section__title {
  font-size: 1.65rem;
  color: var(--color-primary);
  letter-spacing: 0.01em;
  margin-bottom: 0.6rem;
}

.section__subtitle { margin-bottom: 2rem; color: #555; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 2000;
  border-radius: 6px;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.muted-note { font-size: 0.95rem; color: #555; }
.muted-small { font-size: 0.9rem; color: #666; margin-top: 0.9rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e2e2;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo img { height: 48px; }
.logo span { font-weight: 700; font-size: 1rem; color: var(--color-primary); letter-spacing: 0.05em; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-size: 0.9rem;
  cursor: pointer;
}
.nav-toggle:focus { outline: 2px solid var(--color-primary); outline-offset: 2px; }

.nav { display: flex; align-items: center; gap: 1.5rem; }

/* Kundenportal im Menü als CTA (analog Button-Optik) */
.nav__linkred {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.45rem 0.95rem;
  border-radius: 999px;

  background: var(--color-primary);
  border: 1px solid var(--color-primary);

  color: var(--color-text-light);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;

  text-decoration: none;
  line-height: 1;
}

.nav__linkred:hover,
.nav__linkred:focus {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  text-decoration: none;
}

.nav__linkred:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
}
.nav__link:hover, .nav__link:focus { color: var(--color-primary); }

.nav__list > li {
  display: flex;
  align-items: center;
}

/* Hero */
.hero {
  position: relative;
  color: var(--color-text-light);
  min-height: 60vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(12, 0, 0, 0.72), rgba(12, 0, 0, 0.72)),
    url("https://www.euler-projektbetreuung.de/pics/Background_Test.png")
    center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.35));
}

.hero__content { position: relative; z-index: 1; max-width: var(--max-width); margin: 0 auto; padding: 4rem 1.25rem 5rem; }
.hero__kicker { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.8rem; opacity: 0.9; margin-bottom: 0.75rem; }
.hero__title { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 0.6rem; color: #fff; }
.hero__subtitle { font-size: 1.1rem; max-width: 40rem; margin-bottom: 1.8rem; opacity: 0.98; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn--primary { background: var(--color-primary); color: var(--color-text-light); border-color: var(--color-primary); }
.btn--primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); text-decoration: none; }

.btn--ghost { background: transparent; border-color: #fff; color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); text-decoration: none; }

.btn--secondary { background: #fff; color: var(--color-primary); border-color: #fff; }
.btn--secondary:hover { background: rgba(255, 255, 255, 0.92); text-decoration: none; }

/* Layout */
.grid-2 { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 2rem; }

.card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
}

.card--bordered { border-top: 4px solid var(--color-primary); }

.list-clean { padding-left: 0; list-style: none; margin: 0; }
.list-clean li { margin-bottom: 0.5rem; }

/* Haken vor "Wofür wir stehen" */
.about__facts .list-clean li{
  position: relative;
  padding-left: 1.6rem;  /* Platz für den Haken */
}

.about__facts .list-clean li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;           /* ggf. 0.15em–0.35em anpassen */
  width: 1.05rem;
  height: 1.05rem;
  background: url("https://www.euler-projektbetreuung.de/pics/Haken.svg") no-repeat center / contain;
}


.list-bullets { margin: 0 0 1rem 1.1rem; }
.list-bullets li { margin-bottom: 0.4rem; }

.about__facts { font-size: 0.95rem; }
.about__facts strong { color: var(--color-primary); }

.locations__item { margin-bottom: 1rem; }
.locations__name { font-weight: 800; }

.spacer-top { margin-top: 1.25rem; }

.quote-banner {
  background: linear-gradient(135deg, var(--color-primary-dark), #000);
  color: var(--color-text-light);
  text-align: center;
  padding: 3rem 1.25rem;
}
.quote-banner p { margin: 0; }
.quote-banner__text { font-size: 1.5rem; margin-bottom: 0.5rem; }
.quote-banner__author { opacity: 0.85; font-size: 0.95rem; }

/* Services */
.service-block + .service-block { margin-top: 3rem; }
.service-block__title { font-size: 1.25rem; color: var(--color-primary); margin-bottom: 0.6rem; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 2rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }

/* Footer */
.footer { background: #121212; color: var(--color-text-light); padding: 1.5rem 0; font-size: 0.9rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer a { color: var(--color-text-light); }
.footer__links { display: flex; gap: 1.5rem; }

[hidden] { display: none !important; }

/* Slider */
.slider { border-radius: var(--radius-card); }
.slider__viewport {
  border-radius: var(--radius-card);
  overflow: hidden;
  outline: none;
  box-shadow: var(--shadow-soft);
  background: #fff;
}
.slider__track { display: flex; width: 100%; transform: translateX(0); transition: transform 420ms ease; }
.slider__slide { flex: 0 0 100%; padding: 0; }

.slider__controls {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.slider__btn {
  height: 44px;
  width: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.slider__btn:hover { border-color: rgba(0,0,0,0.35); }
.slider__btn:focus { outline: 2px solid var(--color-primary); outline-offset: 2px; }

.slider__dots { display: flex; justify-content: center; align-items: center; gap: 0.5rem; }
.slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.25);
  background: transparent;
  cursor: pointer;
}
.slider__dot.is-active { background: var(--color-primary); border-color: var(--color-primary); }

.slider__hint { text-align: center; margin-top: 0.75rem; }
.slider__error code { padding: 0.1rem 0.3rem; background: #f2f2f2; border-radius: 6px; }

/* Projektlayout: Inhalt links, Foto rechts – Foto zentriert + abgerundet */
.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
}

.project__content { padding: 1.5rem 1.5rem 1.25rem; }

.project__title {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 0.2rem;
}

.project__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.project__subtitle { font-size: 0.95rem; color: #666; margin: 0; }

.project__period {
  margin: 0;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.15);
  font-size: 0.85rem;
  color: var(--color-primary);
  background: rgba(110, 0, 0, 0.04);
}

.project__media {
  padding: 1.25rem 1.5rem 1.25rem 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project__media-frame {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);
}

.project__media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fallback falls kein Foto */
.project__media-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 1rem;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, rgba(110,0,0,0.85), rgba(0,0,0,0.85));
}

/* Responsiv */
@media (max-width: 900px) {
  .grid-2, .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
  /* Header ist mobil meist höher -> größerer Scroll-Offset */
  :root { --scroll-offset: 30px; }

  .nav-toggle { display: inline-flex; align-items: center; gap: 0.25rem; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #e2e2e2;
    padding: 0.5rem 1.25rem 1rem;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.18s ease-out;
  }

  .nav--open { transform: translateY(0); opacity: 1; pointer-events: auto; }

  /* NEW: Mobile-Menü linksbündig statt zentriert */
  .nav__list {
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-start; /* wichtig */
    width: 100%;
  }

  .nav__list > li {
    width: 100%;
    justify-content: flex-start; /* wichtig, da li bei Ihnen display:flex ist */
  }

  .nav__link,
  .nav__linkred {
    text-align: left;
  }

  .header-inner { padding-inline: 1rem; }

  .hero { min-height: 70vh; }
  .hero__content { padding-top: 5rem; }

  /* Mobile: Foto oben, Inhalt unten */
  .project { grid-template-columns: minmax(0, 1fr); }
  .project__media { padding: 1.1rem 1.1rem 0; }
  .project__content { padding: 1.1rem 1.1rem 1rem; }
  .project__media-frame { max-width: 100%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .slider__track { transition: none; }
}
