/* =========================================================
   1) RESET / BASE
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --primary: #1f5fa8;
  --primary-dark: #184a82;

  --bg: #ffffff;
  --bg-alt: #f5f7fa;

  --text: #1f2933;
  --text-muted: #5f6b7a;

  --border: #e1e6ee;

  --radius: 6px;
  --max-width: 1200px;

  /* spacing scale */
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;

  /* sticky offsets */
  --header-offset: 80px;
  --header-offset-mobile: 125px;
  --service-nav-offset: 80px;
  --header-h: var(--header-offset);
  --anchor-offset: calc(var(--header-offset) + var(--service-nav-offset));
}

@media (max-width: 900px) {
  :root {
    --service-nav-offset: 100px;
    --header-h: var(--header-offset-mobile);
    --anchor-offset: calc(var(--header-offset-mobile) + var(--service-nav-offset));
  }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Accessibility focus */
:focus-visible {
  outline: 3px solid var(--primary);
  outline: 3px solid color-mix(in srgb, var(--primary) 55%, white);
  outline-offset: 3px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #000;
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}

/* =========================================================
   2) LAYOUT / UTILITIES
========================================================= */

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 0 1.25rem;
}

.section {
  padding: var(--space-7) 0;
}

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

.section-head {
  max-width: 700px;
  margin-bottom: var(--space-6);
}

.section-head h2 {
  margin: 0 0 0.5rem;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.section-actions {
  margin-top: var(--space-5);
}

/* =========================================================
   3) BUTTONS
========================================================= */

.btn {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
}

a.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
}

/* =========================================================
   4) HEADER
========================================================= */

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1.5rem;
}

/* Brand */

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: -8px;
}

.brand-logo {
  height: 38px;
}

.brand-since {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
}

.brand-since::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  background: var(--border);
  margin-right: 0.4rem;
}

/* Desktop nav */

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  font-weight: 500;
  color: var(--text);
}

.site-nav a:hover {
  color: var(--primary);
}

/* Call label swap */

.call-desktop { display: none; }

@media (min-width: 901px) {
  .call-mobile { display: none; }
  .call-desktop { display: inline; }
}

/* =========================================================
   5) MOBILE NAV (UNDER HEADER)
========================================================= */

.nav-toggle {
  display: none;
  width: 100%;
  justify-content: center;
  padding: 0.75rem;
  border: 0;
  border-top: 1px solid var(--border);
  background: #fff;
  font-weight: 600;
}

/* Hamburger */

.nav-toggle-icon {
  width: 18px;
  height: 12px;
  position: relative;
  display: inline-block;
  margin-left: 0.4rem;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after,
.nav-toggle-icon span {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
}

.nav-toggle-icon::before { top: 0; }
.nav-toggle-icon span { top: 50%; transform: translateY(-50%); }
.nav-toggle-icon::after { bottom: 0; }

/* Dropdown panel */

.mobile-nav {
  display: none;
  background: #fff;
  padding: 0.25rem 0 0.75rem;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 0.7rem 0.25rem;
  font-weight: 600;
  color: var(--text);
}

.mobile-nav a:hover {
  color: var(--primary);
  background: var(--bg-alt);
  text-decoration: none;
}

/* =========================================================
   6) HERO (STARTSEITE)
========================================================= */

.hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3.25rem);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-6);
  align-items: center;
}

.hero-content {
  max-width: 64ch;
}

.hero h1 {
  margin: 0 0 1.15rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.14;
}

.hero-content .eyebrow {
  margin-bottom: 0.9rem;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.75rem;
}

.lead {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.hero-content .lead {
  margin: 0;
}

.hero-content .lead + .lead {
  margin-top: 1rem;
}

.usp-list {
  list-style: none;
  padding: 0;
  margin: 1.3rem 0 0;
  display: grid;
  gap: 0.45rem;
}

.usp-list li {
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

/* =========================================================
   7) INFOBAR
========================================================= */

.infobar {
  background: var(--primary);
  color: #fff;
}

.infobar-inner {
  display: flex;
  justify-content: space-between;
  padding: 1.25rem;
}

.infobar a { color: #fff; }

/* =========================================================
   8) CARDS (STARTSEITE)
========================================================= */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: #fff;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}

.card-icon {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.icon-wrap {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--bg-alt);
}

.icon {
  width: 84px;
  height: 84px;
  object-fit: contain;
}

.card-icon .icon-wrap {
  margin-inline: auto;
}

.icon-placeholder .icon {
  opacity: 0.9;
}

/* =========================================================
   9) FOOTER
========================================================= */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
  align-items: start;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col p {
  margin: 0;
}

.footer-title {
  display: block;
  margin: 0;
  line-height: 1.25;
}

.footer-links a {
  display: block;
  padding: 0;
}

.footer-contact a {
  display: block;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  text-align: center;
  color: var(--text-muted);
}

/* =========================================================
   9b) RECHTSTEXTE
========================================================= */

.legal-content {
  max-width: 860px;
}

.legal-content h2 {
  margin: 2.25rem 0 0.65rem;
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  line-height: 1.3;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
}

.legal-content p {
  margin: 0 0 1rem;
}

.legal-content ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}

.legal-content strong {
  color: var(--text);
}

.legal-note {
  margin-top: 1.4rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}

/* =========================================================
   10) RESPONSIVE
========================================================= */

@media (max-width: 900px) {

  /* Header wraps to 2 rows */
  .header-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 0 0;
  }

  /* Remove header bottom line (menu replaces it) */
  .site-header {
    border-bottom: 0;
  }

  .brand-logo {
    height: 38px;
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero stacks */
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-content {
    max-width: none;
  }

  .hero h1 {
    margin-bottom: 0.95rem;
  }

  .hero-content .lead + .lead {
    margin-top: 0.85rem;
  }

  .usp-list {
    margin-top: 1.05rem;
    gap: 0.35rem;
  }

  .hero-actions {
    margin-top: 1.1rem;
  }

  /* Infobar stacks */
  .infobar-inner {
    flex-direction: column;
    gap: 0.5rem;
  }

  .service-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
  }

  .service-nav a {
    white-space: nowrap;
  }
}


/* =========================================================
   LEISTUNGEN-SEITE 
========================================================= */

.page-hero {
  padding: var(--space-6) 0 var(--space-5);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.page-hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-6);
  align-items: center;
}

.page-hero-inner-single {
  grid-template-columns: 1fr;
}

.page-hero-content {
  max-width: 64ch;
}

.page-hero h1 {
  margin: 0 0 1.15rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.22;
}

.page-hero-content .eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.9rem;
}

.page-hero-content .lead {
  margin: 0;
  max-width: 62ch;
}

.page-hero-media {
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  background: #fff;
}

.page-hero-media img {
  width: 100%;
  min-height: 280px;
}

.page-hero-media img {
  display: block;
  height: 100%;
  object-fit: cover;
}

.page-hero-media .ph-img {
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-alt);
}

/* Sprungnavigation */
.service-nav-wrap {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.service-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 0;
}

.service-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1;
}

.service-nav a:hover {
  border-color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  color: var(--primary);
  text-decoration: none;
}

/* Service Blocks */
.service-block {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.service-block:first-of-type {
  border-top: 0;
  padding-top: 0.5rem;
}

/* Split: Text + Bild */
.service-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-6);
  align-items: start;
}

.service-text h3 {
  margin: 0 0 0.75rem;
}

.service-text p {
  margin: 0;
  color: var(--text-muted);
}

.service-media .ph-img {
  min-height: 260px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}

.service-placeholder-icon {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

/* Alternierung: jedes 2. Element tauscht Spalten */
.service-block:nth-of-type(even) .service-text {
  order: 2;
}
.service-block:nth-of-type(even) .service-media {
  order: 1;
}

/* Responsive */
@media (max-width: 900px) {
  .page-hero-inner {
    grid-template-columns: 1fr;
  }

  .page-hero-media .ph-img,
  .page-hero-media img {
    min-height: 220px;
  }

  .service-split {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  /* auf mobile wieder normal */
  .service-block:nth-of-type(even) .service-text,
  .service-block:nth-of-type(even) .service-media {
    order: initial;
  }

  .service-media .ph-img {
    min-height: 200px;
  }

  .service-placeholder-icon {
    width: 78px;
    height: 78px;
  }

  /* Mobile: kompakte Tag-Cloud statt großer Buttons */
  .service-nav {
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.65rem 0;
  }

  .service-nav a {
    white-space: nowrap;
    padding: 0.3rem 0.58rem;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
    border-color: transparent;
    background: #ecf2f8;
  }

  .service-nav img {
    display: none;
  }
}

/*  Icons in Schnelllinks + Headlines  */

.service-nav img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Headlines */

.service-headline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  scroll-margin-top: var(--anchor-offset);
}

.icon-inline {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* Sticky Service-Nav (unter dem sticky Header) */

/* Damit es beim "kleben" nicht durchsichtig wirkt */
.service-nav-wrap .container {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

/* Mobile Offset anpassen */
@media (max-width: 900px) {
  .service-nav-wrap {
    top: var(--header-h);
  }
}

@media (max-width: 399px) {
  .brand-since {
    display: none;
  }
}


/* =========================================================
   ABLAUF: Timeline Styles
   -> unten an styles.css anhängen
========================================================= */

.timeline{
  display: grid;
  gap: 1.25rem;
}

/* item layout: marker + card */
.timeline-item{
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  align-items: start;
  position: relative;
}

/* vertical line */
.timeline-item::before{
  content: "";
  position: absolute;
  left: 22px;                 /* center of marker column */
  top: 0;
  bottom: -1.25rem;           /* extends into next gap */
  width: 2px;
  background: var(--border);
}

/* stop line at last element */
.timeline-item:last-child::before{
  bottom: 18px;
}

/* marker */
.timeline-marker{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--primary);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.timeline-num{
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

/* card */
.timeline-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.timeline-card h3{
  margin: 0 0 0.6rem;
}

.timeline-card p{
  margin: 0 0 0.9rem;
  color: var(--text-muted);
}

/* bullets */
.timeline-bullets{
  margin: 0;
  padding-left: 1.1rem;
}

.timeline-bullets li{
  margin: 0.35rem 0;
}

/* responsive: tighter on mobile */
@media (max-width: 900px){
  .timeline-item{
    grid-template-columns: 36px 1fr;
    gap: 0.85rem;
  }

  .timeline-item::before{
    left: 18px;
  }

  .timeline-marker{
    width: 36px;
    height: 36px;
  }

  .timeline-card{
    padding: 1rem;
  }
}

/* =========================================================
   KONTAKT: Hilfsstyles
========================================================= */

.contact-callout-action {
  margin-top: 0.75rem;
}

.contact-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}

.contact-checklist {
  margin: 0;
  padding-left: 1.1rem;
}
