/*
Theme Name: lukasharms
Theme URI: https://lukasharms.de
Author: Lukas Harms
Description: Onepager-Theme (Sidebar, Hero, hellblau).
Version: 1.0
License: GPL v2 or later
*/

/* Theme-Farben */
:root {
  --color-bg: #f5f5f5;
  --color-bg-pattern: #eaeaea;
  --color-accent: #6796bf;
  --color-accent-light: #8ed1fc;
  --color-text: #333333;
  --color-text-muted: #747474;
  --sidebar-width: 300px;
  --font-sans: "Raleway", "Segoe UI", system-ui, -apple-system, sans-serif;
  --content-max: 1216px;
  --sep-color: rgba(0,0,0,0.3);
  --cta-min-width: 11rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; font-family: var(--font-sans); color: var(--color-text); font-size: 1rem; line-height: 1.6; overflow-x: hidden; }

/* Barrierefreiheit: Skip-Link nur sichtbar beim Fokus (Tastatur) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  padding: 0.6rem 1rem;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  z-index: 100000;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Fokus sichtbar für Tastatur, bei Mausklick kein Rahmen */
a:focus,
button:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
a:hover { text-decoration: underline; }
a { color: var(--color-accent); text-decoration: none; }
img { max-width: 100%; height: auto; }

/* Main: kein Padding oben/unten, Sektionen haben eigenes Padding */
.main {
  flex: 1;
  min-height: 100vh;
  background-color: #f5f5f5;
  padding: 0;
}

/* Einzelseiten (Impressum, Datenschutz): weißer Hintergrund */
body.page:not(.home) .main {
  background-color: #fff;
}

/* ========== Startseite: Sektionen farblich getrennt (kein Raster) ========== */
.home .hero { background-color: #f2f6fa; }
.home .section-about { background-color: #fff; }
.home .section-services { background-color: #f5f5f5; }
.home .section-referenzen { background-color: #fff; }
.home .section-zusammenarbeit { background-color: #f5f5f5; }
.home .section-kontakt { background-color: #fff; }
/* Section-Hintergründe full width: Inhalt in .section-inner mit max-width */
.home .section { max-width: none; width: 100%; }

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem 6rem;
  min-height: 70vh;
}
.hero .hero-inner {
  max-width: 680px;
  margin: 0 auto;
}
.hero .hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}
.hero .hero-tagline {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  color: var(--color-text);
  font-weight: 400;
  line-height: 1.5;
}
.hero .hero-tagline strong {
  font-weight: 600;
  color: var(--color-text);
}
.hero .hero-region {
  margin: 0 0 2.25rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  font-weight: 400;
}
.hero .hero-sep {
  width: 56px;
  height: 2px;
  background: var(--color-accent);
  opacity: 0.6;
  margin: 0 auto 2rem;
  border-radius: 1px;
}
.hero .hero-cta-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin: 0;
}
.hero .hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: var(--cta-min-width);
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
  letter-spacing: 0.03em;
  font-weight: 600;
  text-transform: none;
  border-radius: 8px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  text-decoration: none;
}
.hero .hero-btn-primary {
  background: var(--color-accent);
  color: #fff;
  border: 1px solid var(--color-accent);
}
.hero .hero-btn-primary:hover {
  background: #5a85b0;
  border-color: #5a85b0;
  color: #fff;
  text-decoration: none;
}
.hero .hero-btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid #b8c5d4;
}
.hero .hero-btn-secondary:hover {
  background: rgba(255,255,255,0.7);
  border-color: var(--color-accent);
  color: var(--color-accent);
  text-decoration: none;
}
.hero-btn-icon,
.btn-icon-down {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35em;
  vertical-align: middle;
}
.hero-btn-icon svg,
.btn-icon-down svg {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

/* Trust-Badges: Partner & Vertrauen (unter Hero) – vorerst ausgeblendet */
.trust-badges {
  display: none;
  padding: 1.75rem 2rem;
  background: rgba(0,0,0,0.02);
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.trust-badges-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2rem;
}
.trust-badges-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0;
}
.trust-badges-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2rem;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--color-text-muted);
  transition: color 0.2s ease, opacity 0.2s ease;
}
a.trust-badge:hover {
  color: var(--color-accent);
  opacity: 1;
}
.trust-badge img {
  max-height: 36px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
}
a.trust-badge:hover img { opacity: 1; }
.trust-badge-text {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 6px;
  background: #fff;
}
@media (max-width: 640px) {
  .trust-badges { padding: 1.25rem 1rem; }
  .trust-badges-inner { flex-direction: column; gap: 1rem; }
  .trust-badges-list { gap: 1rem; }
  .trust-badge img { max-height: 32px; }
}

/* Sektionen: max-width, Abstände */
.section-inner {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding: 32px 2rem 48px;
}
.section-heading {
  text-align: center;
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-text);
  border-bottom: none;
  padding-bottom: 0;
  letter-spacing: 0.02em;
}
.section-sep {
  width: 100%;
  max-width: 80px;
  height: 2px;
  background: var(--color-accent);
  opacity: 0.4;
  margin: 12px auto 28px;
  border-radius: 1px;
}
.section-sep-light {
  background: rgba(255,255,255,0.5);
  margin: 9px auto;
}

/* Sidebar: fest am Viewport (fixed), kein Wackeln beim Scrollen */
.site-wrapper { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: #fff;
  padding: 36px 1.75rem 36px;
  border-right: 1px solid var(--color-bg-pattern);
  box-shadow: 8px 0 22px -12px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 100;
}
.main {
  margin-left: var(--sidebar-width);
}
.sidebar-inner {
  --sidebar-content-width: 250px;
}
.sidebar-profile {
  margin-bottom: 0;
  margin-top: 1.5rem;
}
.sidebar-profile a {
  display: block;
  max-width: var(--sidebar-content-width, 250px);
  margin: 0 auto;
}
.sidebar-profile-img {
  width: 100%;
  max-width: 250px;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  display: block;
  object-fit: cover;
}
.site-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 24px;
  width: 100%;
  max-width: var(--sidebar-content-width, 250px);
}
.site-title-wrap .title-sep {
  flex: 1;
  min-width: 0;
  max-width: 48px;
  height: 1px;
  background: rgba(0,0,0,0.12);
}
.sidebar .site-title {
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  margin: 0;
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  border: none;
  padding: 0;
  line-height: 1.3;
}
.sidebar-nav {
  margin-top: 28px;
  width: 100%;
  max-width: var(--sidebar-content-width, 250px);
  text-align: center;
}
.sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-menu li {
  margin: 0;
}
.sidebar-menu a {
  display: block;
  padding: 12px 0;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 400;
  text-transform: none;
  line-height: 1.45;
  letter-spacing: 0.01em;
}
.sidebar-menu a:hover,
.sidebar-menu a:focus {
  color: var(--color-accent);
  text-decoration: none;
}
.sidebar-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 64px;
  flex-wrap: wrap;
  justify-content: center;
}
.sidebar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-bg-pattern);
  color: var(--color-text-muted);
  border-radius: 6px;
}
.sidebar-social a:hover {
  background: #e0e0e0;
  color: var(--color-accent);
  text-decoration: none;
}
.sidebar-social a svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  display: block;
}
.sidebar-contact {
  margin-top: 40px;
  padding-top: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  text-align: center;
}
.sidebar-contact a { color: var(--color-text); }
.sidebar-contact a:hover { color: var(--color-accent); }
.sidebar-contact p { margin: 0; line-height: 1.5; }


/* Sektionen: viel Weißraum, klare Typo */
.section {
  padding: 3.5rem 0;
  max-width: 900px;
  margin: 0 auto;
}
.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 0.5rem;
}
.section h2 {
  font-size: 1.65rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--color-text);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-accent-light);
}
/* Sektionstitel: kurze Trennlinie (.section-sep) */
.section h2.section-heading {
  border-bottom: none;
  padding-bottom: 0;
}
.section p { margin-bottom: 1rem; color: var(--color-text); }
.section .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--cta-min-width);
  padding: 0.8rem 1.5rem;
  background: var(--color-accent);
  color: #fff;
  border: none;
  font-size: 1rem;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}
.section .btn:hover { opacity: 0.9; text-decoration: none; }

/* Einzelseiten: Layout */
.page-content.section-inner {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding: 32px 2rem 48px;
}
@media (max-width: 640px) {
  .page-content.section-inner {
    padding: 24px 1rem 40px;
  }
}
/* Titelbalken für Impressum/Datenschutz – CI-Farbe (Akzent) */
.page-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0 -2rem 2rem;
  padding: 1.25rem 2rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: 0;
}
.page-title-bar-title {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
}
.page-title-bar .page-breadcrumb {
  font-size: 0.9rem;
  margin: 0;
}
.page-title-bar .page-breadcrumb a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
}
.page-title-bar .page-breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.page-content .page-breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}
.page-content .page-breadcrumb a {
  color: var(--color-accent);
}
.page-content .page-breadcrumb a:hover {
  text-decoration: underline;
}
.page-content .page-breadcrumb .breadcrumb-current {
  color: var(--color-text);
}
.page-content .entry-content {
  color: var(--color-text);
}
/* Erste H1 ausblenden, da der Seitentitel bereits in .page-title-bar steht */
.page-content .entry-content h1:first-child {
  display: none;
}
.page-content .entry-content h1 {
  font-size: 1.75rem;
  line-height: 1.5;
  margin: 0 0 1rem;
  font-weight: 600;
  color: var(--color-text);
}
.page-content .entry-content h2 {
  font-size: 1.5rem;
  line-height: 1.4;
  margin: 1.5rem 0 0.75rem;
  font-weight: 600;
  color: var(--color-text);
}
.page-content .entry-content h3 {
  font-size: 1.5rem;
  line-height: 1.4;
  margin: 1.5rem 0 0.5rem;
  font-weight: 600;
  color: var(--color-text);
}
.page-content .entry-content h4 {
  font-size: 1.1rem;
  line-height: 1.4;
  margin: 1.25rem 0 0.5rem;
  font-weight: 600;
  color: var(--color-text);
}
.page-content .entry-content p {
  margin: 0 0 1rem;
  line-height: 1.6;
}
.page-content .entry-content a {
  color: var(--color-accent);
}
.page-content .entry-content a:hover {
  text-decoration: underline;
}
.page-content .entry-content ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}
.page-content .entry-content li {
  margin-bottom: 0.35rem;
}

/* About: zwei Spalten, Bild rechts; Bildhöhe = Texthöhe */
.section-about .about-inner {
  display: block;
  position: relative;
  max-width: 100%;
  margin-top: 2.5rem;
  padding-right: calc(50% + 1.5rem);
}
.section-about .about-content { min-width: 0; }
.section-about .about-content p { line-height: 1.65; margin-bottom: 1rem; }
.section-about .about-content p:last-of-type { margin-bottom: 0; }
.section-about .about-image {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: calc(50% - 1.5rem);
}
.section-about .about-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
@media (max-width: 768px) {
  .section-about .about-inner {
    padding-right: 0;
    margin-top: 2rem;
  }
  .section-about .about-image {
    position: static;
    width: auto;
    margin-top: 2rem;
  }
  .section-about .about-image img {
    height: auto;
    object-fit: none;
    object-position: unset;
  }
}
.section-about .btn-section {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--cta-min-width);
  padding: 0.8rem 1.5rem;
  background: var(--color-accent);
  color: #fff;
  border: none;
  font-size: 1rem;
  margin-top: 0.5rem;
  border-radius: 6px;
  transition: opacity 0.2s ease;
}
.section-about .btn-section:hover { opacity: 0.9; text-decoration: none; }

/* CTA „nächste Section“ unterhalb jeder Home-Section */
.section-about .section-cta-wrap { margin-top: 2rem; text-align: center; }
.section-cta-wrap {
  text-align: center;
  margin-top: 3.5rem;
  margin-bottom: 0;
}
.section-cta-wrap .btn-section {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--cta-min-width);
  padding: 0.8rem 1.5rem;
  background: var(--color-accent);
  color: #fff;
  border: none;
  font-size: 1rem;
  margin-top: 0;
  border-radius: 6px;
  transition: opacity 0.2s ease;
}
.section-cta-wrap .btn-section:hover { opacity: 0.9; text-decoration: none; }

/* Section-Intro (z. B. Leistungen) */
.section-intro {
  max-width: 42em;
  margin: 0.75rem auto 0;
  text-align: center;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
}
.section-services-intro { margin-bottom: 0.5rem; }

/* Services: Karten-Grid, modern, Text mittig */
.section-services .services-grid { margin-top: 2rem; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.services-grid-4 {
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem;
}
/* Letzte Karte bei ungerader Anzahl (z. B. 5) zentrieren */
.services-grid-4 .service-card:nth-child(5):last-child {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 400px;
}
.services-grid-6 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .services-grid, .services-grid-6 { grid-template-columns: 1fr; }
  .services-grid-4 { grid-template-columns: 1fr; gap: 2rem; }
}
/* Services: Kreis-Icons wie Zusammenarbeit, einheitlich Akzentfarbe */
.section-services .service-icon-wrap {
  max-width: 120px;
  min-height: 100px;
  margin-bottom: 1.5rem;
}
.section-services .service-icon-wrap .step-circle-fill.service-circle-fill {
  --step-p: 100%;
  --fill: var(--color-accent);
}
.section-services .service-icon-wrap .step-circle-icon {
  color: var(--color-accent);
}
.section-services .service-icon-wrap .step-circle-icon svg {
  width: 44px;
  height: 44px;
}
.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: var(--color-accent-light);
  border-radius: 8px;
}
/* Leistungsboxen: modern, zentrierter Inhalt, klarer Abstand */
.service-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 2.25rem 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.service-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  border-color: rgba(103, 150, 191, 0.2);
  transform: translateY(-2px);
}
.service-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--color-text);
  line-height: 1.35;
  text-align: center;
}
.service-item h3 { font-size: 1.125rem; line-height: 1.4; }
.service-card-term {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
  margin-top: 0.25rem;
}
.service-card p {
  margin: 0;
  font-size: 0.9375rem;
  flex-grow: 1;
  line-height: 1.55;
  text-align: center;
  max-width: 36em;
}
.service-item .service-benefit {
  font-weight: 600;
  color: var(--color-accent);
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  text-align: center;
}
.service-item p:not(.service-benefit) {
  margin-top: 0.25rem;
}

/* Unsere Zusammenarbeit: äußerer grauer Ring, innerer farbiger Ring baut sich auf */
.section-zusammenarbeit {
  overflow: hidden;
}
@property --step-p {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}
.zusammenarbeit-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  justify-content: space-between;
  margin-top: 2.5rem;
  width: 100%;
}
.zusammenarbeit-steps .step {
  flex: 1 1 0;
  min-width: 150px;
  max-width: 220px;
  text-align: center;
  padding: 1rem;
  border-radius: 8px;
  transition: background 0.2s ease;
}
.zusammenarbeit-steps .step:hover {
  background: rgba(0,0,0,0.02);
}
.step-circle-wrap {
  position: relative;
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1;
  min-height: 150px; /* Fallback, falls aspect-ratio nicht unterstützt wird */
  margin: 0 auto 5rem;
  overflow: hidden;
}
.step-circle-track {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 16px solid #e0e0e0;
  background: #f5f5f5;
  box-sizing: border-box;
}
.step-circle-fill {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  --step-p: 0%;
  background: conic-gradient(var(--fill) 0 var(--step-p), transparent var(--step-p) 100%);
  max-width: calc(100% - 8px);
  max-height: calc(100% - 8px);
}
.step-circle-fill::after {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: #f5f5f5;
}
.step-circle-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: inherit;
}
.step-circle-icon svg {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  fill: currentColor;
}
.step-1 .step-circle-icon { color: #6796bf; }
.step-2 .step-circle-icon { color: #b7c289; }
.step-3 .step-circle-icon { color: #6b9b7a; }
.step-4 .step-circle-icon { color: #c06d3f; }
.step-5 .step-circle-icon { color: #333; }
.step-5 .step-circle-icon svg { width: 56px; height: 56px; }
.step-circle-fill[data-percent="35"] { animation: step-ring-35 2s ease-out 0s forwards; }
.step-circle-fill[data-percent="55"] { animation: step-ring-55 2s ease-out 0.5s forwards; }
.step-circle-fill[data-percent="75"] { animation: step-ring-75 2s ease-out 1s forwards; }
.step-circle-fill[data-percent="90"] { animation: step-ring-90 2s ease-out 1.5s forwards; }
.step-circle-fill[data-percent="100"],
.step-circle-fill.step-circle-full { animation: step-ring-100 2s ease-out 2s forwards; }
@keyframes step-ring-35 { to { --step-p: 35%; } }
@keyframes step-ring-55 { to { --step-p: 55%; } }
@keyframes step-ring-75 { to { --step-p: 75%; } }
@keyframes step-ring-90 { to { --step-p: 90%; } }
@keyframes step-ring-100 { to { --step-p: 100%; } }
.zusammenarbeit-steps .step-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--color-text);
}
.zusammenarbeit-steps .step-sep {
  width: 40px;
  height: 1px;
  background: #ddd;
  margin: 0 auto 1.25rem;
}
.zusammenarbeit-steps .step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.5;
}

/* Referenzen: Logo-Grid, gleiche Zeilenhöhe pro Reihe */
.section-referenzen .referenzen-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 100px;
  gap: 2rem 2.5rem;
  align-items: center;
  justify-items: center;
  margin: 2.5rem 0;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.ref-logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 100px;
  padding: 0.5rem;
  box-sizing: border-box;
}
.ref-logo {
  max-height: 56px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.85;
  transition: filter 0.25s ease, opacity 0.25s ease;
}
.ref-logo:hover { filter: grayscale(0); opacity: 1; }
@media (max-width: 768px) {
  .section-referenzen .referenzen-logos {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 88px;
    gap: 1.5rem 2rem;
    margin: 2rem 0;
  }
  .ref-logo-cell { min-height: 88px; }
  .ref-logo { max-height: 48px; max-width: 140px; }
}
.referenzen-testimonial {
  margin-top: 3rem;
  padding: 3rem 2.5rem;
  background: linear-gradient(135deg, var(--color-accent) 0%, #5a85b0 100%);
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}
.referenzen-testimonial::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(103, 150, 191, 0.9) 0%, rgba(103, 150, 191, 0.85) 100%);
}
.referenzen-testimonial .testimonial-text,
.referenzen-testimonial .testimonial-author {
  position: relative;
  z-index: 1;
  color: #fff;
}
.referenzen-testimonial .testimonial-text {
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.6;
  margin: 0 0 1rem;
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.referenzen-testimonial .testimonial-author {
  margin: 0;
  font-size: 0.9rem;
  text-align: center;
  opacity: 0.95;
}

/* Kontakt: HubSpot-Formular */
.section-kontakt .kontakt-intro {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}
.section-kontakt .kontakt-form-wrap {
  max-width: 540px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}
.section-kontakt .hubspot-form-link-wrap {
  text-align: center;
  margin: 0;
}
.section-kontakt .btn-cta-kontakt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--cta-min-width);
  padding: 0.9rem 2.25rem;
  background: var(--color-accent);
  color: #fff;
  border: 2px solid var(--color-accent);
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.section-kontakt .btn-cta-kontakt:hover {
  background: #5a85ad;
  border-color: #5a85ad;
  color: #fff;
  text-decoration: none;
}
.section-kontakt .hubspot-form-embed {
  min-height: 120px;
  max-width: 100%;
  margin: 0;
}
.section-kontakt .hubspot-form-embed .hs-form label { color: var(--color-text); }
.section-kontakt .hubspot-form-embed .hs-form input,
.section-kontakt .hubspot-form-embed .hs-form textarea {
  color: var(--color-text);
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 16px; /* verhindert Zoom auf iOS beim Fokus */
}
.section-kontakt .hubspot-form-embed .hs-form input:focus,
.section-kontakt .hubspot-form-embed .hs-form textarea:focus {
  border-color: var(--color-accent);
  outline: none;
}
.section-kontakt .contact-form-placeholder {
  margin: 0;
  padding: 2rem;
  background: rgba(0,0,0,0.04);
  border: 1px dashed #ced4da;
  border-radius: 8px;
}
.section-kontakt .contact-form-placeholder .form-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}
/* .section-contact (optional) */
.section-contact .contact-intro { margin-bottom: 1.5rem; }

/* Footer: eine Zeile, mit Sidebar versetzt */
.site-footer {
  position: relative;
  margin-left: var(--sidebar-width);
  padding: 1.5rem 2rem 3rem;
  border-top: 1px solid #e8e8e8;
  font-size: 0.85rem;
  text-align: center;
  background: #fff;
  color: var(--color-text-muted);
}
.site-footer p { margin: 0.5rem 0; }
.site-footer a { color: var(--color-text); }
.site-footer a:hover { color: var(--color-accent); }
/* Desktop: alles in einer Zeile – Copyright | Links | Social */
.footer-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 1.5rem;
  width: 100%;
}
.footer-inner .footer-copyright,
.footer-inner .footer-links {
  margin: 0;
}
.footer-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  margin: 0;
}
.footer-links a { margin: 0; }
.footer-social {
  margin: 0;
  display: none;
  align-items: center;
  gap: 0.5rem;
}
@media (max-width: 480px) {
  .footer-inner { flex-direction: column; gap: 1rem; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .footer-social { display: flex; }
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #eee;
  color: var(--color-text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 4px;
}
.footer-social a:hover { background: var(--color-accent-light); color: var(--color-accent); text-decoration: none; }
.footer-social a svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}
.scroll-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.scroll-to-top:hover { background: #555; }

/* Burger-Button & Mobile-Menü: nur auf kleinen Screens sichtbar */
.burger-btn { display: none; }
.menu-close { display: none; }
.menu-overlay { display: none; }

/* ========== Mobile: Sidebar aus, nur Burger-Menü ========== */
@media (max-width: 1024px) {
  .burger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 12px;
    left: 12px;
    width: 48px;
    height: 48px;
    z-index: 300;
    background: #fff;
    border: 1px solid var(--color-bg-pattern);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
  }
  .burger-btn:hover { background: var(--color-bg-pattern); }
  .burger-icon {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    box-shadow: 0 -6px 0 var(--color-text), 0 6px 0 var(--color-text);
  }
  .menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    z-index: 10;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--color-text);
    line-height: 1;
  }
  .menu-close::before { content: "×"; }
  .menu-close:hover { color: var(--color-accent); }
  .menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 150;
  }
  body.menu-open .menu-overlay { display: block; }
  .site-wrapper { flex-direction: column; }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(320px, 85vw);
    height: 100vh;
    padding: 3rem 1.5rem 2rem;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    border-right: 1px solid var(--color-bg-pattern);
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.25s ease-out;
    overflow-y: auto;
  }
  body.menu-open .sidebar { transform: translateX(0); }
  body.menu-open { overflow: hidden; }
  .sidebar-profile { margin-bottom: 0; order: 0; }
  .sidebar-profile-img { width: 120px; height: 120px; max-width: 120px; }
  .site-title-wrap { margin-top: 20px; order: 0; flex: none; max-width: none; }
  .site-title-wrap .title-sep { display: block; }
  .sidebar .site-title { font-size: 1.1rem; }
  .sidebar-nav { margin-top: 24px; order: 0; width: 100%; max-width: none; text-align: center; }
  .sidebar-menu { display: block; padding: 0; }
  .sidebar-menu li { margin: 0; }
  .sidebar-menu a {
    display: block;
    padding: 14px 0;
    min-height: 44px;
    line-height: 1.4;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  .sidebar-social { margin-top: 56px; order: 0; justify-content: center; }
  .sidebar-contact { margin-top: 36px; order: 0; width: 100%; padding-top: 0; font-size: 0.9rem; text-align: center; }
  .main {
    margin-left: 0;
    min-height: 0;
    padding-top: calc(72px + env(safe-area-inset-top, 0px));
  }
  .burger-btn {
    top: calc(12px + env(safe-area-inset-top, 0px));
    left: calc(12px + env(safe-area-inset-left, 0px));
  }
  .site-footer {
    margin-left: 0;
  }
  .section {
    padding: 2.5rem 0;
  }
  .hero {
    min-height: 50vh;
    padding: 3rem 1rem 4rem;
  }
  .section-inner {
    padding: 24px 1rem 40px;
  }
  .zusammenarbeit-steps .step {
    flex: 0 1 50%;
    max-width: 200px;
  }
  .step-circle-wrap {
    max-width: 140px;
  }
  .step-circle-icon svg {
    width: 40px;
    height: 40px;
  }
  .step-5 .step-circle-icon svg {
    width: 44px;
    height: 44px;
  }
  .step-circle-fill::after {
    inset: 10px;
  }
  .step-circle-track {
    border-width: 12px;
  }
  .step-circle-fill {
    inset: 3px;
  }
}

@media (max-width: 640px) {
  .sidebar {
    padding: 2.5rem 1rem 1.5rem;
    width: min(300px, 90vw);
  }
  .sidebar-menu a {
    font-size: 0.95rem;
  }
  .hero {
    padding: 2rem 1rem 3rem;
    min-height: 40vh;
  }
  .hero .hero-title {
    font-size: 1.5rem;
  }
  .hero .hero-tagline {
    font-size: 1rem;
  }
  .hero .hero-region {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
  }
  .hero .hero-sep {
    margin-bottom: 1.5rem;
  }
  .hero .hero-cta-wrap {
    gap: 0.75rem;
  }
  .hero .hero-btn {
    min-height: 48px;
    padding: 0.9rem 1.25rem;
    font-size: 0.95rem;
  }
  .section-heading {
    font-size: 1.5rem;
  }
  .section-inner {
    padding: 20px 1rem 32px;
  }
  .section {
    padding: 2rem 0;
  }
  .section-about .about-inner {
    gap: 2rem;
  }
  .services-grid,
  .services-grid-6 {
    gap: 1.5rem;
  }
  .section-kontakt .btn-cta-kontakt {
    min-height: 44px;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
  }
  .zusammenarbeit-steps {
    gap: 1.5rem;
  }
  .zusammenarbeit-steps .step {
    flex: 0 1 100%;
    max-width: 200px;
    margin: 0 auto;
  }
  .step-circle-wrap {
    max-width: 120px;
  }
  .step-circle-icon svg {
    width: 36px;
    height: 36px;
  }
  .step-5 .step-circle-icon svg {
    width: 40px;
    height: 40px;
  }
  .step-circle-fill::after {
    inset: 8px;
  }
  .step-circle-track {
    border-width: 10px;
  }
  .step-circle-fill {
    inset: 2px;
  }
  .section-kontakt .kontakt-form-wrap {
    padding: 1.5rem 1rem;
  }
  .section-kontakt .kontakt-intro {
    padding: 0 0.5rem;
  }
  .section-kontakt .hubspot-form-embed .hs-form input,
  .section-kontakt .hubspot-form-embed .hs-form textarea {
    font-size: 16px;
  }
  .section-cta-wrap .btn-section {
    min-height: 44px;
    padding: 0.75rem 1.25rem;
  }
  .footer-links a {
    padding: 0.5rem 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .footer-social a {
    width: 44px;
    height: 44px;
  }
  .footer-social a svg {
    width: 22px;
    height: 22px;
  }
  .site-footer {
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }
  .scroll-to-top {
    width: 48px;
    height: 48px;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    right: calc(1rem + env(safe-area-inset-right, 0px));
  }
}
