@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/lato/lato-v25-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/lato/lato-v25-latin-300italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/lato/lato-v25-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/lato/lato-v25-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('assets/fonts/lato/lato-v25-latin-900.woff2') format('woff2');
}

body {
  font-family: 'Lato', system-ui, sans-serif;
  background: #fff;
  color: #111827;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.menu-btn-icon {
  margin-right: 0.625rem;
  flex-shrink: 0;
}

.menu-close-text {
  margin-right: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  font-weight: 700;
}

.menu-footer-sep {
  color: rgba(255, 255, 255, 0.3);
  margin: 0 1rem;
}

.text-brand {
  color: #0569b3;
}


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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

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

img:not(.portfolio-img):not(#castle-inner):not(#service-img):not(.sticky-panel-photo):not(.counter-image-bg):not(.services-bg-img):not(.gp-logo) {
  height: auto;
}

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


#top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 201;
  height: 2rem;
  background: #0569b3;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
}

#top-bar a {
  color: #fff;
  text-decoration: none;
}

#top-bar a:hover {
  text-decoration: underline;
}

.top-bar-kw {
  margin: 0;
  font-size: inherit;
  font-weight: 700;
  display: inline;
  line-height: inherit;
}

.top-bar-sep {
  margin: 0 0.7em;
  opacity: 0.5;
}

.top-bar-phrase {
  margin-right: 0.4em;
}


#menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #0569b3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
  pointer-events: none;
  transform: translateY(-100%);
  transition: transform 0.65s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}

#menu-overlay.is-open {
  transform: translateY(0);
  pointer-events: auto;
}

#menu-close {
  position: absolute;
  top: 3.75rem;
  right: 2rem;
  display: flex;
  align-items: center;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.2em;
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0.8;
  transition: opacity 0.25s;
}

#menu-close:hover { opacity: 1; }

#menu-overlay nav {
  margin-top: -120px;
}

#menu-overlay nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

#menu-overlay nav ul li {
  overflow: hidden;
}

.menu-link {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: clamp(1.8rem, 4.1vw, 4.1rem);
  font-weight: 300;
  line-height: 1.1;
  padding: 0.1em 0.5em;
  letter-spacing: -0.02em;
  position: relative;
  transition: none;
}

.menu-link::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.1em 0.5em;
  color: #fff;
  letter-spacing: -0.02em;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.menu-link:hover::after {
  clip-path: inset(0 0% 0 0);
}

.menu-cta {
  position: absolute;
  bottom: 9rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
}

.menu-footer {
  position: absolute;
  bottom: 5.5rem;
  display: flex;
  align-items: center;
}

.menu-footer a {
  font-size: 1.15rem !important;
  color: rgba(255, 255, 255, 0.9) !important;
  position: relative;
  text-decoration: none;
  overflow: hidden;
  display: inline-block;
  padding: 0.15em 0.3em;
  white-space: nowrap;
}

.menu-footer a::after {
  content: attr(data-value);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #0569b3;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0.15em 0.3em;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.menu-footer a:hover::after {
  clip-path: inset(0 0% 0 0);
}

.menu-gp {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease 0.35s;
}

#menu-overlay.is-open .menu-gp {
  opacity: 1;
}

.gp-logo {
  height: 44px;
  width: auto;
  display: block;
}


#hero-scroll {
  height: 300vh;
  position: relative;
}

#hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #fff;
  z-index: 1;
}

#hero-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 2.6rem 2rem 0.6rem;
}

#site-tagline {
  position: absolute;
  z-index: 22;
  left: max(1.5rem, calc(50% - min(41vw, 630px) + 1.5rem));
  top: 25%;
  font-size: 1.2rem;
  font-weight: 400;
  color: #313b3f;
  line-height: 1.7;
  letter-spacing: 0.01em;
  pointer-events: none;
  transform-origin: left center;
  will-change: transform, opacity;
}

.site-tagline-gp-link {
  display: block;
  margin-top: 0.9rem;
}

@media (min-width: 768px) and (max-width: 1399px) {
  #site-tagline {
    display: none;
  }
}

#menu-btn {
  display: flex;
  align-items: center;
  height: 2.5rem;
  background: #0569b3;
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  padding: 0 1.1rem;
  white-space: nowrap;
  position: absolute;
  left: 50%;
  bottom: -4.5rem;
  transform: translateX(-50%);
  pointer-events: auto;
  transition: background 0.25s;
}

#menu-btn:hover { background: #044d88; }

#menu-overlay.is-open #menu-btn {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, background 0.25s;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-logo img {
  display: block;
  height: auto;
}

.menu-logo {
  position: absolute;
  top: 3.6rem;
  left: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease 0.3s;
}

#menu-overlay.is-open .menu-logo {
  opacity: 1;
}

#frame-group {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 8vh;
  transform-origin: center 43%;
  will-change: transform;
}

#frame-wrapper {
  position: relative;
  width: min(88vw, 1300px);
  overflow: hidden;
  box-shadow: none;
  transform: translateZ(0);
  background: #87CEEB;
}

/* ── Hero-Bild: Stellschrauben ──────────────────────────────────
   --castle-scale : Startgröße des Bildes  (kleiner = kleiner)
   --castle-y     : Position im Rahmen     (kleiner = weiter OBEN, größer = weiter UNTEN)
   ──────────────────────────────────────────────────────────── */
:root {
  --castle-scale: 0.54;
  --castle-y: 25%;
}

#castle-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform-origin: center var(--castle-y);
  will-change: transform;
}

#frame-img {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
}

#scroll-hint {
  position: absolute;
  right: 2.5rem;
  bottom: 12%;
  z-index: 22;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  pointer-events: none;
  will-change: opacity;
}

.scroll-hint-text {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: #313b3f;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  opacity: 0.65;
}

.scroll-hint-arrow {
  opacity: 0.65;
  animation: scroll-bounce 2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(9px); }
}

#hero-tagline {
  position: absolute;
  z-index: 22;
  bottom: 4%;
  left:  max(2rem, calc(50% - min(44vw, 650px)));
  right: max(2rem, calc(50% - min(44vw, 650px)));
  padding: 0;
  text-align: center;
  pointer-events: none;
}

.tagline-main {
  font-size: clamp(1.35rem, 3.43vw, 3.43rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: #313b3f;
  line-height: 1.05;
  margin: 0;
  will-change: transform, opacity;
  transform-origin: center center;
}

.tagline-sub {
  font-size: clamp(1.35rem, 3.43vw, 3.43rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #313b3f;
  line-height: 1.1;
  margin: 0;
  will-change: transform, opacity;
  transform-origin: center center;
}

#hero-text-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: #0569b3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 8% 4rem;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

.overlay-text {
  font-size: clamp(2.1rem, 3.8vw, 3.3rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.45;
  margin-bottom: 3rem;
  max-width: 54rem;
}

.overlay-line {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity  0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

#hero-text-overlay.text-visible .overlay-line:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s;    }
#hero-text-overlay.text-visible .overlay-line:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.22s; }

.overlay-cta-row {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity  0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.54s,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.54s;
}

#hero-text-overlay.text-visible .overlay-cta-row {
  opacity: 1;
  transform: none;
}

.overlay-cta-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.btn-outline-white {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  padding: 1.2rem 2.7rem;
  transition: background 0.25s, color 0.25s;
}

.btn-outline-white:hover {
  background: #fff;
  color: #0569b3;
}


#leistungen {
  padding: 5rem 0;
  position: relative;
}

.services-inner {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2.5rem;
  position: relative;
  z-index: 1;
}

.services-heading {
  font-size: clamp(1.3rem, 3.1vw, 3.1rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: #111;
  margin-bottom: 3rem;
  line-height: 1.05;
}

.services-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 1024px) {
  .services-layout {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
    min-height: 520px;
  }
}

.service-item {
  border-top: 1px solid #e5e7eb;
}

.service-item:last-child {
  border-bottom: 1px solid #e5e7eb;
}

.service-header {
  display: flex;
  width: 100%;
  text-align: left;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  gap: 1rem;
}

.service-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111;
  line-height: 1.2;
  transition: color 0.4s ease;
}

.service-item.is-active .service-title {
  color: #0569b3;
}

.service-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: #0569b3;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  width: 1.5rem;
  text-align: center;
}

.service-item.is-active .service-icon {
  transform: rotate(45deg);
}

.service-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-body p {
  font-size: 1.4rem;
  font-weight: 500;
  color: #555;
  line-height: 1.7;
  padding-bottom: 1.25rem;
  max-width: 38rem;
}

.services-bg {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}

.services-bg img {
  height: min(500px, 65vh);
  width: auto;
  display: block;
}

.services-sticky {
  display: flex;
  align-items: center;
  overflow: visible;
  background: #fff;
  z-index: 2;
}

#service-image-wrap {
  display: none;
  width: 500px;
  height: 361px;
  overflow: visible;
  position: relative;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  #service-image-wrap {
    display: block;
    align-self: center;
    margin-top: -50px;
  }
}

#service-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translateX(50px);
}

.services-gp {
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.services-gp img {
  height: 52px;
  width: auto;
  display: block;
}


.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.container-narrow {
  max-width: 50rem;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #0569b3;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.3rem, 3.1vw, 3.1rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: #111;
  line-height: 1.05;
  margin-top: 0;
}

.section-header {
  margin-bottom: 0.7rem;
}

.section-header--center {
  text-align: center;
}


.section-portfolio {
  padding: 2.1rem 0 8rem;
  background: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.portfolio-wide    { grid-column: span 2; height: 500px; }
.portfolio-portrait { grid-column: span 1; height: 500px; }
.portfolio-square  { grid-column: span 1; height: 500px; }
.portfolio-full    { grid-column: span 3; height: 500px; }

.portfolio-item {
  position: relative;
  overflow: hidden;
  background: #f3f4f6;
  cursor: pointer;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5, 105, 179, 0.93) 0%,
    rgba(5, 105, 179, 0.45) 55%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-item:hover .portfolio-img     { transform: scale(1.05); }

.portfolio-overlay h3 {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 0.3rem;
}

.portfolio-overlay p {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}


.section-counters {
  padding: 2.1rem 0 8rem;
  background: #f9fafb;
  position: relative;
  overflow: hidden;
}

.counters-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .counters-layout {
    grid-template-columns: 3fr 2fr;
    gap: 6rem;
  }
}

.counters-heading {
  font-size: clamp(1.3rem, 3.1vw, 3.1rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: #111;
  line-height: 1.1;
  margin: 1rem 0 3rem;
}

.counters-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.counter-box {
  border: 20px solid #0569b3;
  border-radius: 1rem;
  padding: 2rem 2rem 2.5rem;
  margin-top: 1rem;
  max-width: 100%;
  position: relative;
  overflow: hidden;
}

.counter-box > * {
  position: relative;
  z-index: 1;
}

.counter-box .counter-item {
  text-align: center;
}

.counter-box .counter-number {
  justify-content: center;
}

.counter-item {
}

.counter-number {
  display: flex;
  align-items: flex-end;
  gap: 0.1em;
  line-height: 1;
}

.counter {
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.counter-suffix {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.08em;
}

.counter-label {
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-top: 0.4rem;
}

.counters-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.counter-image-bg {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: min(415px, 60vh);
  width: auto;
  aspect-ratio: 800 / 700;
  pointer-events: none;
  z-index: 0;
}

.counter-image {
  position: relative;
  z-index: 1;
  width: 560px;
  max-width: 100%;
  display: block;
}

@media (min-width: 1024px) {
  .counter-image { max-width: none; }
}

.counter-box-divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 1.75rem 0 1.5rem;
}

.testimonial-block {
  margin: 0;
  padding: 0 0 0 2.8rem;
  border: none;
  background: transparent;
  position: relative;
}

.testimonial-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5.5rem;
  height: calc(5.5rem * 73.3 / 78.1);
  background: url('assets/images/stuttgart/zeichen.svg') no-repeat left top / contain;
  pointer-events: none;
  z-index: 0;
}

.testimonial-block > * {
  position: relative;
  z-index: 1;
}

.testimonial-text {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  font-style: normal;
  color: #374151;
  line-height: 1.8;
  margin: 0 0 1.25rem;
}

.testimonial-author {
  font-size: 0.82rem;
  font-weight: 400;
  color: #6b7280;
  line-height: 1.5;
}

.testimonial-author strong {
  font-weight: 700;
  color: #111;
  display: block;
  margin-bottom: 0.15rem;
}


.section-logos {
  padding: 2.1rem 0 8rem;
  background: #fff;
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

@media (max-width: 767px) {
  .logos-grid { grid-template-columns: repeat(2, 1fr); }
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.75rem;
  position: relative;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  transition: background 0.3s;
}

.logo-item:nth-child(4n)   { border-right: none; }
.logo-item:nth-last-child(-n+4) { border-bottom: none; }

@media (max-width: 767px) {
  .logo-item:nth-child(4n)        { border-right: 1px solid #e5e7eb; }
  .logo-item:nth-child(2n)        { border-right: none; }
  .logo-item:nth-last-child(-n+4) { border-bottom: 1px solid #e5e7eb; }
  .logo-item:nth-last-child(-n+2) { border-bottom: none; }
}

.logo-img {
  width: 90%;
  max-height: 150px;
  height: auto;
  object-fit: contain;
  transition: opacity 0.35s ease;
  display: block;
}

.logo-img--color {
  position: absolute;
  width: 90%;
  max-height: 150px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.logo-item:hover .logo-img:not(.logo-img--color) { opacity: 0; }
.logo-item:hover .logo-img--color                { opacity: 1; }


.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 3fr 1fr;
    gap: 5rem;
  }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-bottom: 1.1rem;
}

@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 640px) {
  .form-row--3 { grid-template-columns: 1fr 1fr 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.1rem;
}

.form-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.form-input {
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: #111;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  padding: 0.85rem 1rem;
  outline: none;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: #0569b3;
}

.form-input::placeholder {
  color: #d1d5db;
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-dsgvo {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.form-checkbox {
  flex-shrink: 0;
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  accent-color: #0569b3;
  cursor: pointer;
}

.form-dsgvo-label {
  font-size: 0.82rem;
  font-weight: 300;
  color: #6b7280;
  line-height: 1.5;
  cursor: pointer;
}

.form-dsgvo-link {
  color: #0569b3;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-submit {
  display: inline-block;
  background: #0569b3;
  color: #fff;
  border: none;
  font-family: 'Lato', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  padding: 1rem 2.5rem;
  cursor: pointer;
  transition: background 0.25s;
  width: 100%;
}

@media (min-width: 640px) {
  .btn-submit { width: auto; }
}

.btn-submit:hover { background: #044d88; }

.contact-card {
  background: #fff;
  padding: 2.5rem;
}

.contact-photo {
  width: 7rem;
  height: 7rem;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  filter: grayscale(20%);
  transition: filter 0.5s;
}

.contact-photo:hover { filter: grayscale(0%); }

.contact-name {
  font-size: 1.2rem;
  font-weight: 900;
  color: #111;
  margin: 0;
}

.contact-role {
  font-size: 0.82rem;
  font-weight: 300;
  color: #0569b3;
  margin: 0.25rem 0 0;
}

.contact-details {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.4rem;
}

.contact-address {
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 400;
  color: #374151;
  line-height: 1.6;
}

.contact-link {
  font-size: 0.9rem;
  color: #374151;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-link:hover { color: #0569b3; }


.section-seo {
  padding: 1.5rem 0 6rem;
  background: #fff;
  border-top: 1px solid #f3f4f6;
}

.seo-heading {
  font-size: 1.4rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 1.5rem;
}

.seo-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.seo-body p {
  font-size: 0.9rem;
  font-weight: 300;
  color: #6b7280;
  line-height: 1.75;
}

.seo-body strong { font-weight: 700; color: #374151; }


.site-footer {
  background: #0569b3;
  color: #fff;
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.footer-logo-img {
  display: block;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 1rem;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.footer-nav a:hover { color: #fff; }


.section-contact {
  padding: 2.1rem 0 8rem;
  background: #f3f4f6;
}

.contact-intro {
  text-align: center;
  margin-bottom: 4.5rem;
}

.contact-heading-large {
  font-size: clamp(2.2rem, 4.8vw, 4.8rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: #111;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.contact-subheading {
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  font-weight: 300;
  color: #6b7280;
  max-width: 48rem;
  margin: 0 auto;
  line-height: 1.65;
}

.form-input--line {
  border: none;
  border-bottom: 1px solid #d1d5db;
  border-radius: 0;
  background: transparent;
  padding: 0.55rem 0;
  font-size: 0.95rem;
}

.form-input--line:focus {
  border-bottom-color: #0569b3;
  outline: none;
  box-shadow: none;
}

.form-input--line::placeholder { color: #c4c9cf; }

.form-textarea.form-input--line {
  min-height: 120px;
  resize: vertical;
}

.form-row--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 640px) {
  .form-row--3 { grid-template-columns: 1fr; }
}

.btn-submit--outline {
  background: transparent;
  border: 1px solid #111;
  color: #111;
  letter-spacing: 0.22em;
  padding: 1rem 2.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: 'Lato', sans-serif;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
  min-width: 240px;
}

.btn-submit--outline:hover {
  background: #111;
  color: #fff;
}

.contact-form-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.09), 0 1px 6px rgba(0, 0, 0, 0.05);
  padding: 2.5rem 2.5rem 2rem;
}

.contact-card-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.02em;
  margin: 0 0 1.75rem;
}

.form-row--2 {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 640px) {
  .form-row--2 { grid-template-columns: 1fr; }
}

.form-input--box {
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  padding: 0.72rem 1rem;
  font-size: 0.95rem;
  font-family: 'Lato', sans-serif;
  color: #111;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input--box:focus {
  border-color: #0569b3;
  box-shadow: 0 0 0 3px rgba(5, 105, 179, 0.12);
  outline: none;
}

.form-input--box::placeholder { color: #adb5bd; }

.form-textarea.form-input--box {
  min-height: 110px;
  resize: vertical;
}

.contact-form-card .form-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #111;
  letter-spacing: 0;
  margin-bottom: 0.4rem;
}

.contact-form-card .form-group {
  margin-bottom: 1.25rem;
}

.btn-submit--fill {
  width: 100%;
  background: #0569b3;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 1rem 2rem;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'Lato', sans-serif;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: background 0.25s;
  margin-top: 0.25rem;
}

.btn-submit--fill:hover { background: #044d88; }

.form-dsgvo-note {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f0f0f0;
  font-size: 0.8rem;
  color: #9ca3af;
  line-height: 1.6;
}

.form-dsgvo-note a {
  color: #9ca3af;
  text-decoration: underline;
}

.form-dsgvo-check {
  margin-top: 0.3rem;
  color: #0569b3;
  font-weight: 600;
}

.contact-info-minimal {
  padding-top: 0.5rem;
}

.contact-info-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0569b3;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.contact-photo-minimal {
  width: 250px;
  height: 167px;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
  display: block;
  margin-bottom: 1rem;
  max-width: 100%;
}

.contact-details-minimal {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: #374151;
  line-height: 1.5;
}

.contact-details-minimal a {
  color: #374151;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-details-minimal a:hover { color: #0569b3; }


.scroll-reveal {
  opacity: 0;
  transform: translateY(72px);
  filter: blur(8px);
  transition:
    opacity   0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    filter    0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--sr-delay, 0ms);
  will-change: opacity, transform, filter;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0px);
}

.scroll-reveal-right {
  opacity: 0;
  transform: translateX(80px);
  filter: blur(8px);
  transition:
    opacity   0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    filter    0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--sr-delay, 0ms);
  will-change: opacity, transform, filter;
}

.scroll-reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0px);
}


@media (max-width: 1023px) {
  #leistungen {
    padding: 1.5rem 0 4rem;
  }
  .services-sticky {
    align-items: flex-start;
  }
  .services-bg {
    display: none;
  }
}

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

@media (max-width: 1023px) {
  .service-body-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 900 / 650;
    margin-top: 1rem;
    margin-bottom: 1.25rem;
  }
}


@keyframes legalModalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.legal-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 600;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.legal-modal.is-open {
  display: flex;
}

.legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.legal-modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  width: 100%;
  max-width: 780px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  animation: legalModalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.legal-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem 1.25rem;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.legal-modal__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0569b3;
  margin: 0;
  letter-spacing: -0.02em;
}

.legal-modal__close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #6b7280;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.legal-modal__close:hover {
  color: #111;
  background: #f3f4f6;
}

.legal-modal__body {
  overflow-y: auto;
  padding: 1.75rem 2rem 2rem;
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.75;
  -webkit-overflow-scrolling: touch;
}

.legal-modal__body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111;
  margin: 1.5rem 0 0.5rem;
}

.legal-modal__body h3:first-child {
  margin-top: 0;
}

.legal-modal__body p {
  margin: 0 0 0.75rem;
}

.legal-modal__body a {
  color: #0569b3;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .legal-modal { padding: 0.75rem; }
  .legal-modal__header { padding: 1.25rem 1.25rem 1rem; }
  .legal-modal__body { padding: 1.25rem; }
}


@keyframes lightboxFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

#portfolio-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(240, 242, 245, 0.97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem 2rem;
}

#portfolio-lightbox.is-open {
  display: flex;
  animation: lightboxFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}

#lightbox-img {
  max-width: 95vw;
  max-height: 65vh;
  object-fit: contain;
  display: block;
  border-radius: 3px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

#lightbox-text {
  margin-top: 1.25rem;
  text-align: center;
  max-width: 90vw;
}

#lightbox-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: #111;
  margin: 0 0 0.35rem;
}

#lightbox-desc {
  font-size: 0.95rem;
  font-weight: 600;
  color: #555;
  margin: 0;
}

#lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  color: #111;
  font-size: 1.4rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}


/* ================================================================
   MOBILE OVERRIDES (≤767px)
================================================================ */
@media (max-width: 767px) {

  /* ── Hero-Bild mobil: eigene Stellschrauben ── */
  :root {
    --castle-scale: 0.54;
    --castle-y: 25%;
  }

  /* ── Menu button: square, left-aligned, burger icon only ── */
  #menu-btn {
    left: 0;
    transform: none;
    width: 2.5rem;
    padding: 0;
    justify-content: center;
  }

  #menu-btn svg {
    margin: 0; /* remove mr-2.5 Tailwind class offset */
  }

  .menu-btn-label {
    display: none; /* hide "MENÜ" text, keep burger icon */
  }

  /* ── Closed menu: hide SCHLIESSEN text, show only X ── */
  .menu-close-text {
    display: none;
  }

  /* ── Menu overlay: nav items higher, CTA closer ── */
  #menu-overlay nav {
    margin-top: -140px;
  }

  .menu-cta {
    bottom: 11rem;
  }

  /* ── Top bar: compact on mobile – hide phrase and termin link ── */
  #top-bar {
    font-size: 0.65rem;
  }

  .top-bar-phrase,
  .top-bar-sep--2,
  .top-bar-termin {
    display: none;
  }

  /* ── Nav: logo right-aligned (default), reduce padding, offset for top-bar ── */
  #hero-nav {
    padding: 2.6rem 1rem 0.6rem;
  }

  /* ── Logo 20% smaller ── */
  .nav-logo img {
    width: 184px;
  }

  /* ── Frame: nearly full width on mobile ── */
  #frame-wrapper {
    width: 95vw;
    box-shadow: none;
  }

  /* ── Site tagline: smaller + position ── */
  #site-tagline {
    font-size: 0.75rem;
    line-height: 1.6;
    top: 13%;
  }

  /* ── GP badge in tagline: smaller on mobile ── */
  .site-tagline-gp {
    height: 30px;
  }

  /* ── Hero tagline: position below the frame ── */
  #hero-tagline {
    top: 63%;
    bottom: auto;
    left: 2rem;
    right: 2rem;
    text-align: center;
  }

  /* ── Tagline: same size, bigger (beide gleich) ── */
  .tagline-main,
  .tagline-sub {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }

  /* ── Scroll hint: reposition for mobile ── */
  #scroll-hint {
    right: 1rem;
    bottom: 22%;
  }

  /* ── Portfolio: zoom-hint icon on mobile ── */
  .portfolio-item::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.82) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16.5' y1='16.5' x2='22' y2='22'/%3E%3C/svg%3E") center/18px no-repeat;
    pointer-events: none;
    z-index: 2;
  }

  /* ── Portfolio: 1-column full width on mobile ── */
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .portfolio-wide,
  .portfolio-portrait,
  .portfolio-square,
  .portfolio-full {
    grid-column: span 1;
    height: 280px;
  }



  /* ── Section paddings: reduce on mobile ── */
  .section-portfolio,
  .section-counters,
  .section-logos,
  .section-contact {
    padding: 1rem 0 4rem;
  }

  /* ── Counter section ── */
  .counters-layout {
    gap: 2rem;
  }

  .counter-box {
    max-width: 100%;
    border-width: 10px;
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .counter {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .counter-suffix {
    font-size: clamp(1.25rem, 7vw, 2rem);
  }

  .testimonial-block {
    padding-left: 1rem;
  }
  .testimonial-block::before {
    width: 3rem;
    height: calc(3rem * 73.3 / 78.1);
  }
  .testimonial-text {
    font-size: 1rem;
    font-weight: 600;
  }

  /* ── Counter section: hide decorative blaubg on mobile ── */
  .counter-image-bg {
    display: none;
  }

  /* ── Counter image: full width on mobile ── */
  .counter-image {
    width: 100%;
    max-width: 100%;
  }

  /* ── Services section ── */
  .service-body p {
    font-size: 1rem;
  }

  /* ── Logos section ── */
  .logo-item {
    padding: 1.5rem 1rem;
  }

  .logo-item img {
    max-height: 90px;
  }

  /* ── Contact section ── */
  .contact-form-card {
    padding: 1.5rem;
    border-radius: 10px;
  }

  .contact-details {
    margin-top: 1rem;
    gap: 0.75rem;
  }

  /* ── Section label: reduce letter-spacing + gap to title ── */
  .section-label {
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    margin-bottom: 0.3rem;
  }

  /* ── Section header: tighter gap below headline ── */
  .section-header {
    margin-bottom: 0.7rem;
  }

  /* ── Section title: 40% larger on mobile ── */
  .section-title {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
  }

  /* ── Hero text overlay: smaller text + less top padding on mobile ── */
  #hero-text-overlay {
    padding: 5rem 6% 2rem;
  }

  .overlay-text {
    font-size: clamp(1.43rem, 5.9vw, 2.1rem);
    margin-bottom: 2rem;
  }

  /* ── Hero CTA button: compact, no wrap ── */
  .overlay-cta-row .btn-outline-white {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.8rem;
    white-space: nowrap;
  }

  /* ── Menu CTA: compact button, not full-width ── */
  .menu-cta .btn-outline-white {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    padding: 0.9rem 1.6rem;
    white-space: nowrap;
  }

  /* ── Menu nav links: larger on mobile ── */
  .menu-link {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
  }

  /* ── Footer: compact, centered, copyright hidden ── */
  .site-footer {
    padding: 2rem 0 max(2rem, env(safe-area-inset-bottom, 0px));
  }

  .footer-inner {
    align-items: center;
    gap: 1.25rem;
  }

  .footer-inner > div {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .footer-copy {
    display: none;
  }

  .footer-nav {
    justify-content: center;
    width: 100%;
  }

  .footer-nav a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
  }
}


/* ================================================================
   STICKY CONTACT PANEL
================================================================ */

/* Outer wrapper – positions the tab button */
#sticky-contact {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 500;
}

/* Phone-tab button – vertical layout, text only */
#sticky-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0569b3;
  color: #fff;
  border: none;
  border-radius: 10px 0 0 10px;
  padding: 2rem 1rem;
  cursor: pointer;
  box-shadow: -3px 3px 14px rgba(0,0,0,0.22);
  font-family: inherit;
  transition: background 0.2s;
  position: relative;
  z-index: 1;
}
#sticky-cta-btn:hover { background: #0458a0; }
.sticky-cta-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Slide-in panel */
#sticky-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 90vw;
  height: 100%;
  background: #fff;
  box-shadow: -6px 0 32px rgba(0,0,0,0.18);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 502;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
#sticky-panel.is-open { transform: translateX(0); }

/* Backdrop – darkens + blurs the page behind the panel */
#sticky-panel-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 501;
}
#sticky-panel-backdrop.is-visible { display: block; }

/* Panel inner layout – no fixed height so overflow-y scroll works */
.sticky-panel-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.sticky-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}
.sticky-panel-title {
  font-weight: 700;
  font-size: 1rem;
  color: #111827;
}
#sticky-panel-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.25rem;
  transition: color 0.15s;
}
#sticky-panel-close:hover { color: #111827; }

.sticky-panel-body {
  padding: 1.5rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  flex: 1;
}

.sticky-panel-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
  border: 3px solid #e5e7eb;
}
.sticky-panel-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #111827;
  margin: 0;
}
.sticky-panel-role {
  font-size: 0.82rem;
  color: #6b7280;
  letter-spacing: 0.04em;
  margin: 0 0 0.75rem;
}

.sticky-panel-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}
.sticky-panel-phone,
.sticky-panel-email {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #0569b3;
  text-decoration: none;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  transition: border-color 0.15s, background 0.15s;
}
.sticky-panel-phone:hover,
.sticky-panel-email:hover {
  border-color: #0569b3;
  background: #f0f7ff;
}

.sticky-panel-cta {
  display: block;
  width: 100%;
  margin-top: 1rem;
  background: #0569b3;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  transition: background 0.2s;
}
.sticky-panel-cta:hover { background: #0458a0; }

.sticky-panel-hours {
  font-size: 0.78rem;
  color: #9ca3af;
  margin: 0.25rem 0 0;
}

/* Mobile: compact sticky button */
@media (max-width: 767px) {
  #sticky-cta-btn {
    padding: 0.6rem;
  }
  .sticky-cta-label {
    font-size: 0.7rem;
  }
}

/* Very small screens: hide label, panel full-width */
@media (max-width: 360px) {
  .sticky-cta-label { display: none; }
  #sticky-panel { width: 100%; max-width: 100%; }
}


/* ================================================================
   ERFOLGS-MODAL – Formular-Bestätigung
================================================================ */
.success-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 600;
}

.success-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.success-modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 3rem 2.5rem 2.5rem;
  max-width: 440px;
  width: calc(100% - 2rem);
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  animation: successModalIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes successModalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.success-modal__close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #9ca3af;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: color 0.2s;
}
.success-modal__close:hover { color: #111; }

.success-modal__icon {
  width: 64px;
  height: 64px;
  background: #0569b3;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.5rem;
}

.success-modal__title {
  font-size: 1.75rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #111;
  margin: 0 0 0.75rem;
}

.success-modal__text {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.65;
  margin: 0 0 2rem;
}

.success-modal__btn {
  display: inline-block;
  background: #0569b3;
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.9rem 2.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.success-modal__btn:hover { background: #0458a0; }
