/* ===========================================
   COMPONENTS.CSS – Kirda Solutions
   Design-Fusion: v1 Grid-Structure + v2 Branding
   =========================================== */

/* -------------------------------------
   12-COLUMN GRID SYSTEM (from v1)
   ------------------------------------- */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  width: 100%;
}

/* -------------------------------------
   NAVBAR (v1 3-column grid layout)
   ------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding-top: 20px;
  padding-bottom: 20px;
  background-color: rgba(240, 243, 245, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
  z-index: 102;
  display: grid;
  grid-template-columns: 10% 1fr;
  align-items: center;
  transition: background-color 0.3s linear, border-color 0.3s linear;
}

.navbar__logo-col {
  grid-column: 1 / -1;
  padding-left: 40px;
  padding-right: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar__logo {
  display: flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
}

.navbar__logo-img {
  width: 200px;
  height: auto;
  display: block;
  transition: filter 0.3s linear;
}

.navbar__empty-col {
  display: none;
}

.navbar__burger-col {
  padding-right: 40px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Navbar overlay-open state */
.navbar.is-overlay-open {
  background-color: transparent !important;
  border-bottom-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.navbar.is-overlay-open .navbar__empty-col {
  border-left-color: transparent !important;
  border-right-color: transparent !important;
}

.navbar.is-overlay-open .navbar__logo-img {
  filter: brightness(0) invert(1);
}

.navbar.is-overlay-open .burger__line {
  background-color: var(--brand-weissgrau);
}

/* Navbar scroll state */
.navbar.is-scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
}

/* -------------------------------------
   BURGER BUTTON (v1 2-line style)
   ------------------------------------- */
.burger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  z-index: 102;
}

.burger__line {
  display: block;
  width: 32px;
  height: 3px;
  background-color: var(--c-black);
  transition: transform 0.3s linear, opacity 0.3s linear, background-color 0.3s linear;
}

.burger.is-active .burger__line:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg) translateX(6px);
}

.burger.is-active .burger__line:nth-child(2) {
  transform: translateY(-4.5px) rotate(-45deg) translateX(6px);
}

.burger.is-active:hover .burger__line {
  background-color: var(--brand-pfirsich) !important;
}

/* -------------------------------------
   MAIN LAYOUT GRID
   ------------------------------------- */
.site-main {
  display: grid;
  grid-template-columns: 10% 1fr;
  width: 100%;
  position: sticky;
  top: calc(65vh - var(--main-height, 4000px));
  z-index: 1;
}

.section {
  grid-column: 2 / -1;
  border-bottom: 1px solid var(--c-border);
  min-width: 0; /* Stoppt CSS Grid Blowouts für alle Sektionen */
}

.sidebar-col {
  grid-column: 1 / 2;
  border-right: 1px solid var(--c-border);
  padding: 1rem 1rem;
  position: relative;
}

.content-col {
  /* content column styling */
}

.sidebar-col {
  grid-column: 1 / 2;
  border-right: 1px solid var(--c-border);
  padding: 1rem 1rem;
  position: relative;
}

.content-col {
  grid-column: 2 / -1;
  min-width: 0; /* Verhindert Grid Blowout durch breite Child-Elemente */
}

/* Sticky sidebar labels (v1 signature element) – base reset */

/* Black square icon (v1 decorative element) */
.black-square {
  width: 16px;
  height: 16px;
  background-color: var(--c-black);
  border-radius: var(--radius-sm);
}

/* -------------------------------------
   LABELS (v2 style with v1 typography)
   ------------------------------------- */
.label, .nav-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--c-muted);
}

.nav-label {
  color: var(--c-black);
}

.label--accent {
  color: var(--brand-petrol);
}

.label--preserve-case {
  text-transform: none;
  letter-spacing: 0.05em;
}

.label--light {
  color: rgba(240, 243, 245, 0.6);
}

/* Mono-Index (v1 numbering system) */
.mono-index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--c-muted);
}

/* -------------------------------------
   TYPOGRAPHY – HEADLINES (v1 massive scale)
   ------------------------------------- */
.hero-headline {
  font-family: var(--font-headline);
  font-size: clamp(4rem, 10vw, 12rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--c-black);
}

.hero-headline .accent {
  color: var(--brand-petrol);
}

.section-headline {
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 6vw, 7rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--c-black);
}

.body-text {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--c-deep-gray);
}

/* -------------------------------------
   STANDARD SECTION HEADER LAYOUT
   (As requested: adopted from Start page for global use)
   ------------------------------------- */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 900px) {
  .section-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 100px;
  }
  
  .section-header__left {
    flex: 0 1 auto;
    max-width: 55%;
  }
  
  .section-header__right {
    flex: 0 0 40%;
    max-width: 40%;
    padding-top: 1rem;
  }
}

.section-header__subtext {
  font-family: var(--font-body);
  font-size: 1.375rem; /* 22px */
  line-height: 1.7;
  color: var(--c-deep-gray);
  margin: 0;
}

/* -------------------------------------
   GRID UTILITIES
   ------------------------------------- */
.grid-2x2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 900px) {
  .grid-2x2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* -------------------------------------
   CARD WITH PATTERN BACKGROUND
   ------------------------------------- */
.card-with-pattern {
  position: relative;
  background-color: #D6E7B0;
  border-radius: 1rem;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  overflow: hidden;
  z-index: 1;
}

.card-with-pattern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../assets/images/mm/Hintergrund-marken-muster-kontur-neu.webp') no-repeat center center;
  background-size: cover;
  opacity: 0.8;
  z-index: -1;
  pointer-events: none;
}

/* -------------------------------------
   CUSTOM UNORDERED LISTS (Arrow & Check)
   ------------------------------------- */
ul.ul-arrow, ul.ul-check {
  list-style: none;
  padding-left: 0;
}

ul.ul-arrow li, ul.ul-check li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

ul.ul-arrow li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-dunkelgruen);
}

ul.ul-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-dunkelgruen);
}

/* -------------------------------------
   HORIZONTAL STICKY TIMELINE (SCROLLYTELLING)
   ------------------------------------- */

.coaching-scrolly-section {
  height: 300vh; /* Sorgt für vertikalen Scroll-Spielraum */
}

.coaching-sticky-viewport {
  position: sticky;
  top: 10vh;
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.timeline-scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding-bottom: 2rem;
  padding-top: 1rem;
  scroll-snap-type: x mandatory;
  width: 100%;
  max-width: 100%;
}

.timeline-scroll-container::after {
  content: "";
  flex: 0 0 50vw; /* Spacer am Ende für volles Durchscrollen */
}

.timeline-scroll-container::-webkit-scrollbar {
  height: 8px;
}
.timeline-scroll-container::-webkit-scrollbar-track {
  background: transparent; 
}
.timeline-scroll-container::-webkit-scrollbar-thumb {
  background: var(--c-border); 
  border-radius: 4px;
}

.timeline-card {
  flex: 0 0 80vw;
  max-width: 500px;
  position: sticky;
  left: calc(var(--card-index) * 80px);
  background: var(--brand-white);
  border: 1px solid var(--c-border);
  border-radius: 1.5rem;
  padding: 2.5rem 2.5rem 2.5rem 90px;
  box-shadow: -10px 0 30px rgba(0,0,0,0.05);
  scroll-snap-align: start;
}

.timeline-badge {
  position: absolute;
  left: 20px;
  top: 40px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--brand-hellgruen);
  color: var(--brand-dunkelblau);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.25rem;
}

.timeline-step {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--brand-petrol);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.timeline-title {
  font-family: var(--font-body);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand-dunkelblau);
  margin: 0 0 1rem 0;
}

.timeline-text {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--brand-dunkelgruen);
  line-height: 1.5;
  margin: 0;
}

/* TABLET & MOBILE - Vertikales Layout */
@media (max-width: 992px) {
  .coaching-scrolly-section {
    height: auto; /* Kein künstlicher Scroll-Raum mehr */
  }
  
  .coaching-sticky-viewport {
    position: relative;
    top: auto;
    height: auto;
    display: block;
    overflow: visible;
  }
  
  .timeline-scroll-container {
    flex-direction: column;
    overflow-x: visible;
    gap: 0;
    padding-bottom: 0;
  }
  
  .timeline-scroll-container::after {
    display: none; /* Spacer entfernen */
  }

  .timeline-card {
    flex: auto;
    max-width: 100%;
    width: 100%;
    /* Horizontal Sticky auflösen, normales Scrollen auf Mobile */
    left: auto !important;
    position: relative;
    top: auto; 
    margin-bottom: 2rem; 
    padding: 2rem 1.5rem 2rem 70px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); /* Normaler Schatten */
  }
  
  /* Letzte Karte braucht keinen extremen margin-bottom */
  .timeline-card:last-child {
    margin-bottom: 0;
  }

  .timeline-badge {
    left: 15px;
    top: 30px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .timeline-title {
    font-size: 2rem;
  }
}

/* -------------------------------------
   BUTTONS (v2 Kirda branding with border-radius)
   ------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  padding: 12px 20px;
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: lowercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  background-color: transparent;
  border: 1px solid currentColor;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  color: var(--brand-petrol);
}

.btn--primary:hover {
  color: var(--brand-dunkelgruen);
}

.btn--secondary {
  color: var(--c-black);
}

.btn--secondary:hover {
  color: var(--c-deep-gray);
}

.btn--light {
  color: var(--brand-weissgrau);
}

.btn--light:hover {
  color: #fff;
}

.btn--dark {
  color: var(--brand-dunkelblau);
}

.btn--dark:hover {
  color: var(--brand-petrol);
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1rem;
}

/* Text links */
.text-link {
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  font-family: var(--font-body);
  color: var(--c-black);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.3s linear;
}

.text-link:hover {
  color: var(--brand-petrol);
}

/* -------------------------------------
   FEATURE CELLS (v1 grid + v2 color accents)
   ------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  flex-grow: 1;
}

.feature-cell {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--c-border);
  transition: background-color 0.3s linear;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.feature-cell:last-child {
  border-right: none;
}

.feature-cell:hover {
  background-color: rgba(26, 120, 110, 0.04);
}

.feature-cell__kicker {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--c-muted);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-cell__kicker .mono-index {
  font-size: 0.85rem;
}

.feature-cell__accent-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.feature-cell__accent-dot--petrol { background-color: var(--brand-petrol); }
.feature-cell__accent-dot--pfirsich { background-color: var(--brand-pfirsich); }
.feature-cell__accent-dot--hellgruen { background-color: var(--brand-hellgruen); }

.feature-cell h3 {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.15;
}

.feature-cell p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--c-deep-gray);
}

.feature-cell__link {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-petrol);
  margin-top: auto;
  transition: color 0.3s linear;
}

.feature-cell:hover .feature-cell__link {
  color: var(--brand-dunkelgruen);
}

/* ===========================================
   HERO SERVICE CARDS (SCROLL ANIMATED)
   =========================================== */
.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: var(--content-max-width, 1200px);
}

@media (max-width: 1024px) {
  .hero-cards {
    grid-template-columns: 1fr;
    margin-top: 2rem;
  }
}

.hero-card {
  display: flex;
  flex-direction: column;
  background-color: var(--brand-white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transition: transform var(--transition-base), box-shadow var(--transition-base), opacity 0.8s ease;
  opacity: 0;
  transform: translateY(30px);
}

.hero-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.hero-card.is-visible:hover {
  transform: translateY(-5px);
}

.hero-card__identifier {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: lowercase;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.hero-card__kicker {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--c-deep-gray);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-card__text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-deep-gray);
  margin-bottom: 2rem;
}

.hero-card__link {
  display: inline-block;
  margin-top: auto;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  transition: color var(--transition-fast);
}

.hero-card:hover .hero-card__link {
  color: var(--brand-petrol) !important;
}

/* -------------------------------------
   LIST ITEMS (v1 comparison list style)
   ------------------------------------- */
.list-section {
  display: flex;
  flex-direction: column;
}

.list-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  min-height: 120px;
  border-bottom: 1px solid var(--c-border);
  padding: 2rem;
  transition: background-color 0.3s linear;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item:hover {
  background-color: rgba(26, 120, 110, 0.03);
}

.list-item .mono-index {
  width: 80px;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.list-item__content {
  flex: 1;
}

.list-item__title {
  font-family: var(--font-headline);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  transition: color 0.3s linear;
  margin-bottom: 0.5rem;
}

.list-item:hover .list-item__title {
  color: var(--brand-petrol);
}

.list-item__text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-deep-gray);
  max-width: 640px;
}

/* -------------------------------------
   CTA BAND (v2 dark section + v1 access style)
   ------------------------------------- */
.cta-section {
  background-color: var(--brand-dunkelblau);
  color: var(--brand-weissgrau);
  min-height: 50vh;
  position: relative;
  overflow: hidden;
}

.cta-section .sidebar-col {
  border-right-color: rgba(240, 243, 245, 0.1);
}

.cta-section .content-col {
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.cta-section .section-headline {
  color: var(--brand-weissgrau);
}

.cta-section .body-text {
  color: rgba(240, 243, 245, 0.7);
}

.cta__bg-pattern {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40vw;
  height: 40vh;
  background-image: url('../assets/images/stil-element-weisse-kontur-unten-rechts.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom right;
  opacity: 0.08;
  pointer-events: none;
}

.cta__actions {
  margin-top: 3rem;
}

/* -------------------------------------
   NAV OVERLAY (v1 layout + v2 branding)
   ------------------------------------- */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--brand-dunkelblau);
  z-index: 101;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s linear;
}

.nav-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* K-Kontur background element (v1 signature) */
.nav-overlay__bg-element {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50vw;
  height: 50vh;
  background-image: url('../assets/images/stil-element-weisse-kontur-unten-rechts.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom right;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

.nav-overlay__inner {
  position: relative;
  z-index: 1;
  padding-top: 25vh;
  width: 100%;
  height: 100vh;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}

.nav-overlay__primary {
  grid-column: 1 / 8;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-overlay__secondary {
  grid-column: 8 / 13;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  align-self: end;
  padding-bottom: 4rem;
  gap: 2rem;
}

/* Overlay links (v1 massive style) */
.nav-overlay__link {
  font-family: var(--font-headline);
  font-size: clamp(3rem, 6vw, 6.5rem);
  font-weight: 700;
  color: var(--brand-weissgrau);
  text-transform: lowercase;
  text-decoration: none;
  letter-spacing: -0.03em;
  transition: color 0.3s linear;
  position: relative;
  display: inline-block;
  width: fit-content;
}

/* Petrol square indicator on hover (v1 signature) */
.nav-overlay__link::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-color: var(--brand-pfirsich);
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay__link:hover {
  color: var(--brand-pfirsich);
}

.nav-overlay__link:hover::before {
  opacity: 1;
}

/* Sublinks (v1 mono style) */
.nav-overlay__sublinks {
  display: flex;
  flex-direction: column;
  padding-left: 2rem;
  gap: 15px;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

.nav-overlay__sublink {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 24px;
  color: var(--c-muted);
  text-decoration: none;
  transition: color 0.3s linear;
}

.nav-overlay__sublink:hover {
  color: var(--brand-pfirsich);
}

/* Meta groups in overlay */
.nav-overlay__meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.nav-overlay__meta a {
  color: var(--brand-weissgrau);
  text-decoration: none;
  transition: color 0.3s linear;
}

.nav-overlay__meta a:hover {
  color: var(--brand-pfirsich);
}

.nav-overlay__meta-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 0.2em;
  color: rgba(240, 243, 245, 0.5);
  margin-bottom: 0.25rem;
}

/* -------------------------------------
   FOOTER (v2 – did not exist in v1)
   ------------------------------------- */
.footer {
  grid-column: 1 / -1;
  background-color: var(--brand-dunkelblau);
  color: var(--brand-weissgrau);
  padding: var(--space-16) 0 var(--space-8);
  position: relative;
  overflow: hidden;
  z-index: 100; /* Ensure footer overlays content */
}

.footer__bg-element {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 35vw;
  height: 50%;
  background-image: url('../assets/images/stil-element-weisse-kontur-unten-rechts.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom right;
  opacity: 0.06;
  pointer-events: none;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid rgba(240, 243, 245, 0.1);
}

.footer__logo {
  width: 160px;
  height: auto;
  margin-bottom: var(--space-4);
}

.footer__tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(240, 243, 245, 0.6);
  max-width: 280px;
}

.footer__heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(240, 243, 245, 0.5);
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__link {
  color: rgba(240, 243, 245, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s linear;
}

.footer__link:hover {
  color: var(--brand-pfirsich);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-6);
}

.footer__copyright {
  font-size: 0.8rem;
  color: rgba(240, 243, 245, 0.4);
}

/* Utility: No scroll when overlay is open */
body.no-scroll {
  overflow: hidden;
}

/* -------------------------------------
   SCROLL TO TOP BUTTON
   ------------------------------------- */
.scroll-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background-color: var(--brand-petrol);
  color: var(--brand-weissgrau);
  border: none;
  border-radius: var(--radius-8, 8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background-color: var(--brand-dunkelblau);
  color: var(--brand-weissgrau);
}

/* -------------------------------------
   RESPONSIVE: TABLET (max 1024px)
   ------------------------------------- */
@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-cell {
    border-right: none;
    border-bottom: 1px solid var(--c-border);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .nav-overlay__inner {
    grid-template-columns: 1fr;
    padding-top: 15vh;
  }



  .nav-overlay__primary {
    grid-column: 1 / -1;
  }

  .nav-overlay__secondary {
    grid-column: 1 / -1;
    padding-bottom: 2rem;
  }
}

/* -------------------------------------
   RESPONSIVE: MOBILE (max 768px)
   ------------------------------------- */
@media (max-width: 768px) {
  .section {
    /* no margin-left on mobile */
  }

  .footer {
    /* no margin-left on mobile */
  }

  .site-main {
    display: flex;
    flex-direction: column;
    position: relative;
    top: auto; /* Deaktiviert Parallax-Footer auf Mobile */
  }

  .sidebar-col {
    border-right: none;
    border-bottom: 1px solid var(--c-border);
    padding: 1rem 1.5rem;
  }

  .navbar {
    display: flex;
    justify-content: space-between;
    padding: 12px 1rem;
  }

  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  .navbar__empty-col {
    display: none;
  }

  .navbar__logo-col {
    padding-left: 0;
    width: 100%;
  }

  .navbar__burger-col {
    padding-right: 0;
  }

  .navbar__logo-img {
    width: 140px;
  }

  .sticky-label {
    position: relative;
    top: 0;
  }

  .hero-headline {
    font-size: clamp(3rem, 12vw, 5rem);
  }

  .section-headline {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .list-item {
    flex-direction: column;
    gap: 0.5rem;
  }

  .list-item .mono-index {
    width: auto;
  }

  .nav-overlay__link {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .nav-overlay__sublinks {
    padding-left: 1rem;
    gap: 12px;
  }

  .nav-overlay__sublink {
    font-size: 16px;
  }

  .nav-overlay__secondary {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
}

@media (max-width: 768px) {
  .navbar__logo-col {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}
