/* === Polish v2 – Feinschliff & Conversion, GoodWorld brand colors preserved === */
:root {
  --blue: #0c71c3;
  --blue-dark: #0a5a9c;
  --blue-soft: #e8f2fb;
  --ink: #1a1a1a;
  --ink-soft: #3a4250;
  --grey: #f4f5f7;
  --grey-2: #eef0f3;
  --shadow: 0 8px 30px rgba(12, 113, 195, 0.08);
  --shadow-hover: 0 16px 40px rgba(12, 113, 195, 0.16);
  --radius: 18px;
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--blue);
}

html {
  scroll-padding-top: 108px;
}

body {
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, .hero h1 {
  font-family: "Bodoni Moda Variable", "Bodoni Moda", Georgia, serif;
  letter-spacing: -0.015em;
  line-height: 1.18;
}

h1 {
  line-height: 1.12;
}

h2 {
  letter-spacing: -0.01em;
}

.hero p,
.band p,
.content p,
.card p,
.card .lead {
  color: var(--ink-soft);
}

.band > .wrap > p,
.hero-text p,
.center > p {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* ----- Header ----- */
.site-header {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.04);
}

.topbar {
  border-bottom-color: #000 !important;
  border-bottom-width: 2px !important;
}

.topbar a {
  transition: color 0.2s ease;
}

.topbar a:hover {
  color: var(--blue);
}

.site-header nav a {
  font-weight: 600;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.has-sub .sub {
  border: 1px solid rgba(12, 113, 195, 0.08);
  border-radius: 14px;
  padding: 8px 0;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.sub li a {
  border-radius: 0;
  padding: 8px 18px !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.sub li a:hover,
.sub li a:focus-visible {
  background: var(--blue-soft);
  color: var(--blue-dark) !important;
}

/* ----- Hero ----- */
.hero {
  background: linear-gradient(160deg, #f8fafc 0%, #eef3f8 48%, #e7f0fa 100%) !important;
  border-bottom: 3px solid var(--blue) !important;
  padding: 72px 0 80px !important;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -12%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(12, 113, 195, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Portrait already has a scalloped alpha edge – don’t force a circular plate */
.hero-photo {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  filter: drop-shadow(0 18px 28px rgba(15, 23, 42, 0.22));
  max-width: 360px;
}

.eyebrow {
  color: var(--blue) !important;
  font-weight: 700 !important;
  font-style: normal !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  font-size: 0.78rem !important;
  font-family: var(--font-nav), "Maven Pro Variable", "Open Sans Variable", sans-serif;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.trust-row li {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(12, 113, 195, 0.14);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.35em 0.9em;
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

/* ----- Buttons ----- */
.button,
a.button,
button.button,
.site-header nav a.button,
.gw-button {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%) !important;
  color: #fff !important;
  border: 2px solid transparent !important;
  border-radius: 50px !important;
  padding: 0.8em 1.65em !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 16px rgba(12, 113, 195, 0.28) !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease !important;
  text-decoration: none !important;
  display: inline-block;
  line-height: 1.25;
}

.button:hover,
a.button:hover,
button.button:hover,
.gw-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(12, 113, 195, 0.36) !important;
  background: linear-gradient(135deg, #0d7ad4 0%, #0c71c3 100%) !important;
}

.button:active,
a.button:active {
  transform: translateY(0);
}

.button:focus-visible,
a.button:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
.menu-toggle:focus-visible + .burger,
.burger:focus-visible {
  outline: 3px solid var(--blue) !important;
  outline-offset: 3px;
}

.button-ghost,
a.button-ghost {
  background: #fff !important;
  color: var(--blue-dark) !important;
  border: 2px solid rgba(12, 113, 195, 0.35) !important;
  box-shadow: 0 2px 10px rgba(12, 113, 195, 0.08) !important;
}

.button-ghost:hover,
a.button-ghost:hover {
  background: var(--blue-soft) !important;
  color: var(--blue-dark) !important;
  border-color: var(--blue) !important;
  box-shadow: 0 6px 18px rgba(12, 113, 195, 0.16) !important;
}

/* Header CTA like the WordPress original (black, slightly rounded) */
.site-header nav a.button,
.site-header nav a.button.dark {
  background: #111 !important;
  background-image: none !important;
  color: #fff !important;
  border-radius: 10px !important;
  border: 0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28) !important;
  padding: 0.65em 1.2em !important;
}
.site-header nav a.button:hover,
.site-header nav a.button.dark:hover {
  background: #000 !important;
  background-image: none !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35) !important;
}

/* Pin current desktop-hero button look so later rules cannot override it */
.hero .button,
.hero a.button {
  border-radius: 50px !important;
}
.hero .button:not(.button-ghost),
.hero a.button:not(.button-ghost) {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(12, 113, 195, 0.28) !important;
}

/* ----- Cards (homepage Leistungen) ----- */
.card,
.cards .card {
  background: #fff;
  border-radius: 16px !important;
  box-shadow: none;
  border: 1px solid var(--blue) !important;
  border-left-width: 3px !important;
  padding: 22px 20px 26px !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
  text-align: center;
}

.cards {
  align-items: stretch;
}

.card:hover,
.cards .card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(12, 113, 195, 0.22) !important;
}

.card img,
.cards .card img {
  border-radius: 12px !important;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  box-shadow: none !important;
}

.card h3,
.cards .card h3 {
  text-align: center;
}

.card .lead,
.cards .card .lead {
  min-height: 0 !important;
  font-size: 0.98rem !important;
  font-weight: 500 !important;
  line-height: 1.55;
  color: var(--ink-soft);
  text-align: center;
}

.card ul {
  color: var(--ink-soft);
}

.card li a {
  text-decoration: none;
}

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

/* ----- Reviews ----- */
.reviews {
  gap: 24px !important;
  margin-top: 36px !important;
}

blockquote {
  background: #fff !important;
  border-radius: 12px !important;
  border: 1px solid #e8b84a;
  box-shadow: none;
  padding: 28px 26px 24px !important;
  position: relative;
  text-align: left;
}

blockquote p {
  font-style: italic;
  color: var(--ink);
  margin-bottom: 1.1em;
  line-height: 1.65;
}

blockquote p::before {
  content: "“";
  color: var(--blue);
  font-family: "Bodoni Moda Variable", "Bodoni Moda", Georgia, serif;
  font-size: 2.4rem;
  line-height: 0;
  font-style: normal;
  margin-right: 0.15em;
  vertical-align: -0.25em;
}

blockquote footer {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-style: normal;
  padding-top: 4px;
  border-top: 1px solid var(--grey-2);
}

blockquote footer strong {
  color: var(--ink);
  font-weight: 700;
}

/* ----- Works ----- */
.works {
  gap: 28px 22px !important;
}

.works img {
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: block;
  background: #e8eaee;
}

.works a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.works a:hover img,
.works a:focus-visible img {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
}

.works h3 {
  font-weight: 600 !important;
  margin-top: 10px !important;
  line-height: 1.35 !important;
  color: var(--ink) !important;
}

/* ----- Process (homepage) ----- */
.process-band .process-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 36px 0 32px;
  padding: 0;
  text-align: left;
  counter-reset: none;
}

.process-steps li {
  background: #fff;
  border: 1px solid rgba(12, 113, 195, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px 20px;
}

.process-steps .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.process-steps h3 {
  margin: 0 0 0.25em;
  font-size: 1.25rem;
}

.process-steps p {
  margin: 0;
  font-size: 0.95rem;
}

/* ----- Sections / typography rhythm ----- */
.band {
  padding: 80px 0 !important;
}

.band.grey {
  background: var(--grey) !important;
}

.band h2 {
  margin-bottom: 0.35em;
}

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

/* ----- Footer ----- */
.site-footer {
  background: #2a353d !important;
  color: #e8eef5 !important;
  margin-top: 0;
}
.site-footer p,
.site-footer li,
.site-footer label,
.site-footer span,
.site-footer small {
  color: #d7dee4 !important;
}
.site-footer h3,
.site-footer .grid h3,
.site-footer .grid h2 {
  color: #ff4338 !important;
  font-weight: 600;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.site-footer a:hover {
  color: #cfe6f8;
  text-decoration: underline;
}

.site-footer .grid {
  padding-block: 56px 36px;
}

.site-footer .cta {
  background: #243038 !important;
  padding: 42px 0 32px !important;
  border-top: 1px solid rgba(255, 67, 56, 0.55);
}

.site-footer .cta h2 {
  color: #fff !important;
  letter-spacing: -0.02em;
}

.site-footer .cta p,
.site-footer .cta a {
  color: #fff !important;
  font-weight: 600;
}

.site-footer .contact-form input,
.site-footer .contact-form textarea {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.97);
}

.site-footer .legal {
  border-top: 3px solid #ff4338;
}
.site-footer .button,
.site-footer button.button {
  background: #111 !important;
  background-image: none !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}
.site-footer .button:hover,
.site-footer button.button:hover {
  background: #000 !important;
  background-image: none !important;
}

/* ----- Forms ----- */
.contact-form input,
.contact-form textarea {
  border: 1px solid #c9d0d8 !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: #9aa8b5 !important;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 4px rgba(12, 113, 195, 0.18);
}

/* Kontakt page */
.hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  margin: 0 0 1.1em;
  color: var(--ink);
}

.hours dt,
.hours .hours-day {
  font-weight: 700;
}

.content .contact-form {
  max-width: 720px;
}

.content a[href^="tel:"],
.content a[href^="mailto:"] {
  font-weight: 700;
  text-decoration: none;
}

.content a[href^="tel:"]:hover,
.content a[href^="mailto:"]:hover {
  text-decoration: underline;
}

/* ----- Leistungen service grid ----- */
.service-grid,
.content .gw-section > section:has(> a:nth-of-type(4) > img) {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 36px 0 16px;
}

.service-grid > a,
.content .gw-section > section:has(> a:nth-of-type(4) > img) > a {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(12, 113, 195, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  color: var(--ink) !important;
  text-decoration: none !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  min-height: 100%;
}

.service-grid > a:hover,
.service-grid > a:focus-visible,
.content .gw-section > section:has(> a:nth-of-type(4) > img) > a:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(12, 113, 195, 0.22);
}

.service-grid > a img,
.content .gw-section > section:has(> a:nth-of-type(4) > img) > a img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.service-grid > a h2,
.content .gw-section > section:has(> a:nth-of-type(4) > img) > a h2 {
  color: var(--blue-dark);
  font-size: 1.45rem;
  margin: 18px 20px 8px;
  text-align: left;
}

.service-grid > a p,
.content .gw-section > section:has(> a:nth-of-type(4) > img) > a p {
  color: var(--ink-soft);
  margin: 0 20px 12px;
  flex: 1;
  font-size: 0.98rem;
}

.service-grid > a span,
.content .gw-section > section:has(> a:nth-of-type(4) > img) > a span {
  margin: 0 20px 20px;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.92rem;
}

.page-cta {
  text-align: center;
  background: var(--blue-soft);
  border-radius: 24px;
  padding: 48px 28px 44px !important;
  margin: 48px 0 12px;
}

.page-cta h2 {
  text-align: center !important;
}

.page-cta p {
  margin-left: auto;
  margin-right: auto;
}

.page-cta > a {
  display: inline-block;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 50px;
  padding: 0.8em 1.65em;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(12, 113, 195, 0.28);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.page-cta > a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(12, 113, 195, 0.36);
}

/* Eyebrow-like plain lead-ins on inner pages */
.content .gw-section > section:has(> h1) {
  margin-bottom: 8px;
}

/* ----- Mobile contact bar ----- */
.mobile-cta {
  display: none;
}

/* ----- Responsive ----- */
@media (max-width: 1000px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .service-grid,
  .content .gw-section > section:has(> a:nth-of-type(4) > img) {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 24px !important;
  }

  .hero-text {
    text-align: center !important;
    margin-inline: auto;
    max-width: 640px !important;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 28px 0 36px !important;
  }

  .hero-photo {
    max-width: 196px !important;
    margin-inline: auto;
  }

  .hero-text h1 {
    font-size: 1.75rem;
  }

  .hero-actions {
    margin-bottom: 4px;
  }

  .band {
    padding: 56px 0 !important;
  }

  .site-header nav a.button {
    margin-top: 8px;
  }

  .mobile-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    gap: 10px;
    align-items: center;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.1);
  }

  .mobile-cta a {
    flex: 1;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.75em 1em;
    font-size: 0.95rem;
  }

  .mobile-cta-call {
    color: var(--blue-dark);
    border: 2px solid rgba(12, 113, 195, 0.3);
    background: #fff;
  }

  .mobile-cta .button,
  .mobile-cta-mail {
    margin: 0;
  }

  body {
    padding-bottom: 84px;
  }

  /* Homepage already has hero CTAs; hide the bar to avoid overlap */
  body:has(.hero) {
    padding-bottom: 0;
  }
  body:has(.hero) .mobile-cta {
    display: none !important;
  }

  .logo img {
    height: 52px;
  }
}

@media (max-width: 600px) {
  .process-steps,
  .service-grid,
  .content .gw-section > section:has(> a:nth-of-type(4) > img) {
    grid-template-columns: 1fr !important;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
    max-width: 22rem;
  }

  .trust-row {
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .card:hover,
  .cards .card:hover,
  .button:hover,
  a.button:hover,
  .service-grid > a:hover,
  .works a:hover img,
  .page-cta > a:hover {
    transform: none !important;
  }
}

.content .gw-section > section:has(> h1) .eyebrow,
.page-cta .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.content .gw-section > section:has(> h1) .eyebrow::before,
.page-cta .eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--blue);
}

/* ----- Trustlocal / Google review badges (homepage) ----- */
.trustlocal-badges {
  display: flex;
  justify-content: center;
  margin: 28px 0 0;
}
.trustlocal-widget img {
  max-width: none !important;
}
.trustlocal-badges + .reviews {
  margin-top: 28px !important;
}

/* ----- Footer social icons (site-wide, matching goodworld-media.de) ----- */
.site-footer .social-follow {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0 22px;
  padding: 0;
}
.site-footer .social-follow li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer .social-follow a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 3px;
  background: #000;
  color: #fff !important;
  text-decoration: none !important;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}
.site-footer .social-follow a:hover,
.site-footer .social-follow a:focus-visible {
  color: #fff !important;
  text-decoration: none !important;
  opacity: 0.82;
  background: #111;
}
.site-footer .social-follow svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* SEO 2026-11-15: picture fallbacks keep existing image layout */
.content .gw-col > a:has(> picture) {
  color: inherit;
  text-decoration: none;
  display: block;
}
.content .gw-col > a > picture {
  display: block;
  width: 100%;
}
.content .gw-col > a > picture img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  height: auto;
  display: block;
}
.content .gw-col:has(> a > picture ~ span > h4) {
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 28px;
  display: grid;
}
.content .gw-col:has(> a > picture ~ span > h4) > :not(a) {
  grid-column: 1 / -1;
}
@media (width <= 900px) {
  .content .gw-col:has(> a > picture ~ span > h4) {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (width <= 560px) {
  .content .gw-col:has(> a > picture ~ span > h4) {
    grid-template-columns: 1fr;
  }
}
.works picture {
  display: block;
  width: 100%;
}
.works picture img {
  aspect-ratio: 400 / 284;
  object-fit: cover;
  width: 100%;
  height: auto;
  display: block;
}

/* Keep promoted headings visually close to their previous appearance */
h1.keep-h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
  color: inherit;
  font-family: var(--font-head);
  margin: 0 0 0.5em;
  line-height: 1.2;
}
h1.thanks-heading {
  font-family: var(--font-body);
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  line-height: inherit;
  margin: 0 0 1em;
}

/* ===== 2026-11-15: Header, inner pages, portraits, video embeds ===== */

/* ----- Header: cleaner, sticky, refined nav & mobile panel ----- */
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 200 !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
  transition: box-shadow 0.2s ease;
}

@supports (animation-timeline: scroll()) {
  .site-header {
    animation: gw-header-shadow linear both;
    animation-timeline: scroll();
    animation-range: 0 72px;
  }
  @keyframes gw-header-shadow {
    from { box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08); }
    to { box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08), 0 10px 28px rgba(15, 23, 42, 0.12); }
  }
}

.site-header > .wrap {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  width: min(var(--wrap), 100% - 40px);
}

.topbar {
  width: 100%;
  justify-content: flex-end !important;
  border-bottom: 2px solid #000 !important;
  padding: 5px 0 !important;
  font-size: 13px !important;
}

.site-header .bar {
  width: 100%;
  padding: 6px 0 8px !important;
  align-items: center;
}

.site-header .logo img {
  width: auto !important;
  height: 52px !important;
  display: block;
}

.site-header nav > ul {
  gap: 22px !important;
  align-items: center;
}

.site-header nav > ul > li > a:not(.button),
.site-header nav .has-sub-label > a {
  color: #111;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 8px 0 6px !important;
  border-bottom: 2px solid transparent !important;
  text-decoration: none;
}

.site-header nav > ul > li > a:not(.button):hover,
.site-header nav > ul > li > a:not(.button):focus-visible,
.site-header nav .has-sub-label > a:hover,
.site-header nav .has-sub-label > a:focus-visible {
  color: var(--blue) !important;
  border-bottom-color: var(--blue) !important;
}

.site-header nav > ul > li > a.active,
.site-header nav > ul > li.has-sub > a.active,
.site-header nav .has-sub-label > a.active {
  color: var(--blue) !important;
  border-bottom-color: var(--blue) !important;
}

.has-sub .sub {
  border: 1px solid rgba(12, 113, 195, 0.1) !important;
  border-radius: 12px !important;
  padding: 8px 0 !important;
  min-width: 280px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14) !important;
  top: calc(100% + 6px);
}

.sub li a {
  padding: 9px 18px !important;
  border-radius: 0 !important;
  border-bottom: 0 !important;
  font-weight: 550;
  color: #1a1a1a !important;
}

.sub li a:hover,
.sub li a:focus-visible,
.sub li a.active {
  background: var(--blue-soft) !important;
  color: var(--blue-dark) !important;
}

/* Black header CTA, slightly refined – keep the original identity */
.site-header nav a.button,
.site-header nav a.button.dark {
  background: #111 !important;
  background-image: none !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 8px !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22) !important;
  padding: 0.62em 1.15em !important;
  margin-left: 4px;
  font-weight: 650 !important;
  letter-spacing: 0.01em;
}

.site-header nav a.button:hover,
.site-header nav a.button.dark:hover {
  background: #000 !important;
  background-image: none !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32) !important;
}

/* Leistungen submenu toggle + rounded chevron */
.site-header nav > ul > li.has-sub {
  position: relative;
  display: flex;
  align-items: center;
}

.has-sub-label {
  display: flex;
  align-items: center;
  gap: 0;
}

.site-header nav .has-sub-label > a {
  color: #111;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 8px 0 6px !important;
  border-bottom: 2px solid transparent !important;
  text-decoration: none;
}

.sub-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0 0 0 1px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  line-height: 0;
  -webkit-appearance: none;
  appearance: none;
}

.sub-toggle:hover,
.sub-toggle:focus-visible {
  background: var(--blue-soft);
  color: var(--blue);
}

.sub-toggle:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.nav-chevron {
  display: block;
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

.has-sub.is-open .nav-chevron,
.has-sub:hover .nav-chevron,
.has-sub:focus-within .nav-chevron {
  transform: rotate(180deg);
}

.has-sub.is-open .sub {
  display: block;
}

.caret {
  display: none !important;
}


@media (max-width: 980px) {
  .site-header .logo img {
    height: 44px !important;
  }

  .burger {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #f4f5f7;
  }

  .menu-toggle:checked + .burger span {
    background: transparent !important;
  }
  .menu-toggle:checked + .burger span:before {
    top: 0 !important;
    transform: rotate(45deg);
  }
  .menu-toggle:checked + .burger span:after {
    top: 0 !important;
    transform: rotate(-45deg);
  }
  .burger span,
  .burger span:before,
  .burger span:after {
    transition: transform 0.2s ease, top 0.2s ease, background 0.2s ease;
  }

  .site-header nav {
    display: none;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-height: calc(100dvh - 88px - 90px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff !important;
    border-radius: 0 0 16px 16px !important;
    padding: 8px 20px 28px !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16) !important;
  }

  .menu-toggle:checked ~ nav {
    display: block !important;
  }

  .site-header nav > ul {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100%;
  }

  .site-header nav > ul > li > a:not(.button),
.site-header nav .has-sub-label > a {
    display: block;
    padding: 14px 2px !important;
    font-size: 1.08rem !important;
    border-bottom: 1px solid #eceff3 !important;
  }

  .site-header nav > ul > li > a.active:not(.button),
  .site-header nav .has-sub-label > a.active {
    border-bottom-color: #eceff3 !important;
    box-shadow: inset 3px 0 0 var(--blue);
    padding-left: 10px !important;
  }

  .site-header nav > ul > li.has-sub {
    flex-direction: column;
    align-items: stretch;
  }

  .has-sub-label {
    width: 100%;
    justify-content: space-between;
    border-bottom: 1px solid #eceff3;
  }

  .site-header nav .has-sub-label > a {
    flex: 1;
    display: block;
    padding: 14px 2px !important;
    font-size: 1.08rem !important;
    border-bottom: 0 !important;
  }

  .site-header nav .has-sub-label > a.active {
    box-shadow: inset 3px 0 0 var(--blue);
    padding-left: 10px !important;
  }

  .sub-toggle {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }

  .has-sub .sub {
    position: static !important;
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: none !important;
    border: 0 !important;
    padding: 0 0 0 12px !important;
    margin: 0;
    min-width: 0;
    background: transparent !important;
    transform: none;
    transition: max-height 0.35s ease, opacity 0.25s ease, visibility 0.35s ease, padding 0.35s ease;
  }

  .has-sub.is-open .sub {
    max-height: 80vh;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding: 0 0 10px 12px !important;
  }

  .sub li a {
    padding: 8px 8px !important;
    font-size: 0.98rem;
  }

  .has-sub:hover .nav-chevron,
  .has-sub:focus-within .nav-chevron {
    transform: none;
  }
  .has-sub.is-open .nav-chevron {
    transform: rotate(180deg);
  }

  .site-header nav a.button,
  .site-header nav a.button.dark {
    display: block !important;
    width: 100%;
    text-align: center;
    margin: 16px 0 4px !important;
    border-bottom: 0 !important;
    padding: 0.85em 1.2em !important;
  }
}

/* ----- Inner-page typography, headers, lists, images (NOT the home hero) ----- */
main#inhalt > .content {
  padding-top: 36px;
  padding-bottom: 80px;
}

.content article > .gw-section:first-child > section:first-child:has(> h1),
.content article > .gw-section:first-child > header:first-child:has(> h1),
.content .page-hero {
  margin: 0 0 40px;
  padding: 8px 0 32px;
  border-bottom: 1px solid #e6e9ee;
}

.content h1 {
  margin-bottom: 0.4em;
}

.content h1 + p,
.content .page-hero > p,
.content article > .gw-section:first-child > section:first-child:has(> h1) > p:first-of-type {
  font-size: 1.08rem;
  max-width: 70ch;
}

.content article section > p,
.content article section > ul,
.content article section > ol,
.content article .gw-col-4-4 > p,
.content article .gw-col-4-4 > ul,
.content article .gw-col-4-4 > ol,
.content article header + p,
.content article .gw-col-2-3 > p,
.content article .gw-col-3-5 > p {
  max-width: 70ch;
}

.content h2 {
  margin-top: 1.35em;
  margin-bottom: 0.45em;
}

.content h3,
.content h4 {
  margin-top: 1.15em;
  margin-bottom: 0.4em;
}

.content article ul:not(.social-follow):not(.sub):not(.stat-row):not(.tag-row) {
  margin: 0 0 1.2em;
  padding-left: 0;
  list-style: none;
  max-width: 70ch;
}

.content article ul:not(.social-follow):not(.sub):not(.stat-row):not(.tag-row) > li {
  position: relative;
  padding-left: 1.25em;
  margin: 0.4em 0;
}

.content article ul:not(.social-follow):not(.sub):not(.stat-row):not(.tag-row) > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.content article ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
  max-width: 70ch;
}

.content article ol > li {
  margin: 0.4em 0;
}

.content article img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.content .gw-col > span:has(> img) {
  display: block;
}

.content h1:empty,
.content h2:empty,
.content h3:empty,
.content h4:empty,
.content p:empty,
.content .gw-col > span:empty,
.content .gw-row:empty {
  display: none !important;
}

/* Team portraits on Über uns – match WP size (~250px), slightly within 280–360 guidance */
.content img[src*="Cecilia.webp"],
.content img[src*="Hauke-Schubert.jpg"] {
  max-width: 280px;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  margin-inline: auto;
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

@media (max-width: 700px) {
  .content img[src*="Cecilia.webp"],
  .content img[src*="Hauke-Schubert.jpg"] {
    max-width: 200px;
  }
}

/* KI page aside portrait stays smaller, not forced into the team style if it's the same file – it is Hauke-Schubert.jpg. Keep aside compact. */
.content aside img[src*="Hauke-Schubert.jpg"] {
  max-width: 160px;
  border-radius: 50%;
}

.content aside {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  align-items: center;
  max-width: 70ch;
  margin: 36px 0;
  padding: 20px 22px;
  background: var(--grey);
  border-radius: 16px;
}

.content aside h3 {
  margin-top: 0;
}

/* Table of contents on long service pages */
.content article nav:has(ol) {
  max-width: 70ch;
  margin: 0 0 40px;
  padding: 20px 24px 16px;
  background: #f7f9fb;
  border: 1px solid #e6e9ee;
  border-radius: 16px;
}

.content article nav:has(ol) > p {
  font-weight: 700;
  margin-bottom: 0.6em;
  color: var(--ink);
}

.content article nav ol {
  margin: 0;
  padding-left: 1.2em;
}

.content article nav ol a {
  text-decoration: none;
}

.content article nav ol a:hover {
  text-decoration: underline;
}

/* Hero CTAs that are still plain links */
.content article section:has(> h1) > a[href*="kontakt"],
.content article header:has(> h1) > a[href*="kontakt"],
.content .page-hero a[href*="kontakt"],
.content article section:has(> h2) > a[href*="kontakt"] {
  display: inline-block;
  margin: 8px 10px 8px 0;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 50px;
  padding: 0.75em 1.5em;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(12, 113, 195, 0.28);
}

.content article section:has(> h1) > a[href*="kontakt"] + a,
.content .page-hero a[href*="kontakt"] + a,
.content article section:has(> h1) > a[href^="#"] {
  display: inline-block;
  margin: 8px 10px 8px 0;
  background: #fff;
  color: var(--blue-dark) !important;
  border: 2px solid rgba(12, 113, 195, 0.35);
  text-decoration: none !important;
  border-radius: 50px;
  padding: 0.7em 1.45em;
  font-weight: 600;
}

/* Stats / card rows used after HTML wraps */
.stat-row,
.feature-grid,
.card-grid,
.chip-row {
  list-style: none !important;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0 8px !important;
  padding: 0 !important;
  max-width: none !important;
}

.stat-row > li,
.feature-grid > li,
.card-grid > article,
.card-grid > div,
.feature-card {
  background: #fff;
  border: 1px solid rgba(12, 113, 195, 0.1);
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 8px 24px rgba(12, 113, 195, 0.06);
}

.stat-row > li::before,
.feature-grid > li::before,
.card-grid li::before {
  display: none !important;
}

.stat-row strong,
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--blue);
  line-height: 1.1;
  margin-bottom: 0.15em;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-template-columns: none;
}

.chip-row span,
.tag-row span {
  display: inline-block;
  background: var(--blue-soft);
  color: var(--blue-dark);
  border-radius: 999px;
  padding: 0.2em 0.75em;
  font-size: 0.82rem;
  font-weight: 650;
}

.content details {
  max-width: 70ch;
  border-bottom: 1px solid #e6e9ee;
  padding: 10px 0;
}

.content details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}

.content details summary::-webkit-details-marker {
  display: none;
}

.content details p {
  margin-top: 0.6em;
}

/* Contact + Impressum */
.contact-details p {
  margin-bottom: 0.85em;
}

.contact-details a {
  font-weight: 600;
}

.legal-page,
.impressum-content {
  max-width: 70ch;
}

/* Responsive video embeds */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #0b0b0b;
  margin: 1.1em 0 0.4em;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 800px) {
  .stat-row,
  .feature-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .site-header > .wrap {
    width: calc(100% - 32px);
  }
}

/* End-of-page CTA already covered by .page-cta; style last contact-ish sections */
.content article > .gw-section > section:last-of-type:has(> a[href*="kontakt"]) {
  text-align: left;
  background: var(--blue-soft);
  border-radius: 24px;
  padding: 36px 28px 32px;
  margin-top: 36px;
  max-width: 70ch;
}
