/**
 * 03_elevated — Stappenbacher Fassade und Ausbau GmbH
 * Design: Fixed brand-gradient body (#BE111F → #034279)
 *         White elevated panels float above the gradient
 * Fonts: Self-hosted Montserrat + Raleway — no external CDN
 */

@charset "UTF-8";

/* ================================================================
   Self-hosted Fonts
   ================================================================ */
@font-face {
  font-family: 'Montserrat';
  src: url("fonts/Montserrat-VariableFont_wght.0862772643ff.ttf") format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url("fonts/Montserrat-Italic-VariableFont_wght.7d5651a0a4c3.ttf") format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Raleway';
  src: url("fonts/Raleway-Light.8705e9beb01a.ttf") format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Raleway';
  src: url("fonts/Raleway-Regular.7323274dbcdb.ttf") format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Raleway';
  src: url("fonts/Raleway-Medium.e8589a845549.ttf") format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Raleway';
  src: url("fonts/Raleway-SemiBold.5aee7a8bf379.ttf") format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Raleway';
  src: url("fonts/Raleway-Bold.4bd158bddf75.ttf") format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ================================================================
   Design Tokens
   ================================================================ */
:root {
  --accent-red:       #BE111F;
  --accent-blue:      #034279;

  --primary-blue:   #034279;
  --primary-red:    #BE111F;
  --primary-light:  #FFFFFF;
  --primary-dark:   #4B4C4C;
  --secondary-blue:  #023049;
  --secondary-red:   #790803;
  --secondary-light: #FDEFD5;
  --secondary-dark:  #000001;

  --gradient:           linear-gradient(135deg, var(--accent-red) 0%, var(--accent-blue) 100%);
  --gradient-lightred:  linear-gradient(135deg, var(--secondary-red) 0%, var(--secondary-blue) 100%);

  --text-body:      #555555;
  --text-heading:   #1a1a1a;
  --text-muted:     #888888;

  --panel-bg:       #ffffff;
  --inner-bg:       #f5f6f8;
  --border-light:   rgba(0, 0, 0, 0.08);

  --font-main:      'Montserrat', system-ui, -apple-system, sans-serif;
  --font-accent:    'Montserrat', system-ui, -apple-system, sans-serif;
  --font-accent-weight: 300;

  --panel-radius:   22px;
  --panel-shadow:   0 24px 72px rgba(0, 0, 0, 0.20);
  --panel-gap:      24px;
  --panel-max:      min(95vw, 1400px);
  --panel-pad-v:    42px;
  --panel-pad-h:    72px;

  --header-h:       100px;

  scroll-behavior: smooth;
}

/* ================================================================
   Reset & Base
   ================================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-padding-top: calc(var(--header-h) + 12px);
  background-color: var(--primary-blue);
}

body {
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
  /* Brand gradient — fixed so it doesn't scroll */
  background: var(--gradient);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--accent-red);
  text-decoration: none;
  transition: opacity 0.25s;
}

a:hover { opacity: 0.8; }

img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  color: var(--text-heading);
  line-height: 1.2;
}

/* ================================================================
   Page Wrapper — provides header clearance and panel side margins
   ================================================================ */
.page-wrap {
  padding: calc(var(--header-h) + 12px) 24px 0;
}

/* ================================================================
   Content Card — single white elevated panel holding all sections
   ================================================================ */
.content-card {
  background: var(--panel-bg);
  border-radius: var(--panel-radius);
  box-shadow: var(--panel-shadow);
  max-width: var(--panel-max);
  margin: 0 auto 16px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--panel-shadow),
    0 0 0 2px rgba(253, 239, 213, 0.85),
    0 0 18px 6px rgba(253, 239, 213, 0.40),
    0 0 48px 18px rgba(253, 239, 213, 0.15),
    0 8px 40px rgba(0, 0, 0, 0.35);
}

/* Thin gradient accent bar at top edge */
/* .content-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  border-radius: var(--panel-radius) var(--panel-radius) 0 0;
} */

/* Each section inside the card gets uniform padding */
.content-section {
  padding: var(--panel-pad-v) var(--panel-pad-h);
}

/* Subtle horizontal rule between sections */
.section-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.07);
  margin: 0 var(--panel-pad-h);
}

@media (max-width: 768px) {
  :root {
    --panel-pad-v: 44px;
    --panel-pad-h: 28px;
    --panel-radius: 16px;
  }

  .page-wrap {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 480px) {
  :root {
    --panel-pad-v: 32px;
    --panel-pad-h: 20px;
    --panel-radius: 12px;
    --panel-gap: 16px;
  }

  .page-wrap {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* ================================================================
   Preloader
   ================================================================ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--gradient);
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

#preloader::after {
  content: '';
  width: 52px;
  height: 52px;
  border: 4px solid rgba(255, 255, 255, 0.25);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ================================================================
   Scroll-top Button
   ================================================================ */
#scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--secondary-red) 0%, var(--primary-red) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

#scroll-top.active {
  opacity: 1;
  visibility: visible;
}

#scroll-top:hover {
  transform: translateY(-3px);
  opacity: 0.85;
}

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding-top: 5px;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

/* Scrolled: frosted glass that tints with the gradient */
.site-header.scrolled {
  background: rgba(3, 30, 55, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.20);
}

.header-inner {
  width: 100%;
  max-width: calc(var(--panel-max) + 48px);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img-wrap {
  /* background: rgba(255, 255, 255, 0.92);
  border-radius: 8px; */
  padding: 6px 10px 6px 0;
  display: flex;
  align-items: center;
  line-height: 1;
}

.logo-img-wrap img {
  height: 64px;
  width: auto;
  min-width: 64px;
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.logo-name {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.logo-sub {
  font-size: 10px;
  font-family: var(--font-accent);
  font-weight: var(--font-accent-weight);
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.3px;
}

/* Desktop Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav .nav-link {
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.80);
  padding: 8px 18px;
  transition: color 0.25s;
  text-decoration: none;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: #ffffff;
  opacity: 1;
}

.main-nav .nav-cta {
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.50);
  border-radius: 6px;
  color: #ffffff !important;
  margin-left: 8px;
  padding: 8px 20px;
  font-weight: 700;
  transition: background 0.25s, border-color 0.25s;
}

.main-nav .nav-cta:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.80);
  opacity: 1;
}

/* Desktop dropdown */
.nav-item {
  position: relative;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-chevron {
  font-size: 10px;
  transition: transform 0.22s ease;
}

.nav-item:hover .nav-chevron,
.nav-item:focus-within .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: rgba(3, 20, 45, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 8px;
  padding: 6px 0;
  list-style: none;
  margin: 0;
  min-width: 160px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  z-index: 1010;
}

/* Invisible bridge that fills the gap so the mouse stays inside .nav-item */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown-link {
  display: block;
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.80);
  padding: 10px 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav-dropdown-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* Mobile accordion group */
.mobile-nav-group {
  display: flex;
  flex-direction: column;
}

.mobile-group-toggle {
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mobile-nav-group .nav-chevron {
  font-size: 11px;
  transition: transform 0.25s ease;
}

.mobile-nav-group.open .nav-chevron {
  transform: rotate(180deg);
}

.mobile-group-items {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.mobile-sub-link {
  padding-left: 44px !important;
  font-size: 13px !important;
  opacity: 0.85;
}

/* Hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(3, 20, 45, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  padding: 16px 0 24px;
  display: flex;
  flex-direction: column;
  /* Offset must account for top: var(--header-h) so the menu fully exits the viewport */
  transform: translateY(calc(-100% - var(--header-h)));
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.30);
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu .nav-link {
  font-family: var(--font-accent);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.80);
  padding: 14px 28px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.mobile-menu .nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  opacity: 1;
}

.mobile-menu .nav-cta {
  margin: 8px 28px 0;
  text-align: center;
  border: 1.5px solid rgba(255, 255, 255, 0.50);
  border-radius: 6px;
  color: #ffffff !important;
  font-weight: 700;
}

@media (max-width: 991px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
}

/* ================================================================
   Shared: Section title block (inside a panel)
   ================================================================ */
.panel-title-block {
  text-align: center;
  margin-bottom: 48px;
}

.panel-title-block .eyebrow {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
  position: relative;
}

.panel-title-block .eyebrow::after {
  content: '';
  display: block;
  height: 2px;
  width: 36px;
  background: var(--gradient);
  border-radius: 2px;
  margin: 8px auto 0;
}

.panel-title-block h2 {
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--text-heading);
  letter-spacing: -0.4px;
  margin-bottom: 12px;
}

.panel-title-block p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .panel-title-block h2 { font-size: 1.85rem; }
}

/* ================================================================
   Shared: Gradient text utility
   ================================================================ */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ================================================================
   Shared: Buttons
   ================================================================ */
.btn-gradient {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--gradient);
  color: #ffffff !important;
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  border-radius: 7px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 6px 22px rgba(190, 17, 31, 0.28);
}

.btn-gradient:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(3, 66, 121, 0.30);
}

.btn-outline-panel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border: 2px solid rgba(0, 0, 0, 0.18);
  border-radius: 7px;
  color: var(--text-heading);
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: border-color 0.25s, color 0.25s, transform 0.25s;
}

.btn-outline-panel:hover {
  border-color: var(--accent-red);
  color: var(--accent-red) !important;
  transform: translateY(-2px);
  opacity: 1;
}

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero-section {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--panel-pad-v) + 8px);
  height: 80vh;
  display: flex;
  flex-direction: column;
  background: var(--gradient);
}

/* Video background */
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  background: var(--gradient);
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 20, 0.4);
  z-index: 1;
}

/* Lift hero content above video + overlay */
.hero-section > .row {
  position: relative;
  z-index: 2;
  flex: 1;
  align-items: stretch;
}

/* Text colour overrides for video hero */
.hero-section h2 {
  color: var(--primary-light);
}

.hero-section .hero-lead {
  color: var(--secondary-light);
}

.hero-section .hero-stats {
  border-top-color: rgba(255, 255, 255, 0.18);
  align-items: right;
}

.hero-section .stat-num {
  color: var(--primary-light);
}

.hero-section .stat-label {
  color: var(--secondary-light);
}

/* Eyebrow label above h1 */
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  background: var(--secondary-light);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 300;
  color: var(--text-heading);
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.hero-section h1 strong {
  font-weight: 700;
}

.hero-logo {
  max-width: 440px;
  width: 100%;
  height: auto;
  margin-bottom: 1.75rem;
  display: block;
  aspect-ratio: 1280 / 486;
}

.hero-section .hero-lead {
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 520px;
}

/* Hero right column: CTA + stats stacked vertically */
.hero-bottom {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.75rem;
  margin-top: auto;
}

/* CTA buttons */
.hero-cta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

/* Outline button override inside dark hero */
.hero-section .btn-outline-panel {
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-section .btn-outline-panel:hover {
  border-color: #ffffff;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.20);
}

/* Stats */
.hero-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 0;
  border-top: none;
}

.hero-stats > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-width: 72px;
}

.hero-stats .stat-num {
  font-size: 2rem;
  font-weight: 300;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 6px;
  text-align: center;
}

.hero-stats .stat-num span {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.hero-stats .stat-label {
  /* font-size: 0.7rem; */
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.70);
  text-align: center;
}

/* Hero image column */
.hero-img-wrap {
  position: relative;
}

.hero-img-wrap img {
  border-radius: 14px;
  width: 100%;
  object-fit: cover;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

/* Floating badge on image */
.hero-badge {
  position: absolute;
  bottom: 20px;
  left: -16px;
  background: var(--gradient);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  min-width: 210px;
}

.hero-badge .badge-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-badge .badge-icon i {
  font-size: 18px;
  color: #ffffff;
}

.hero-badge .badge-title {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  display: block;
  margin-bottom: 2px;
}

.hero-badge .badge-sub {
  font-size: 10px;
  font-family: var(--font-accent);
  font-weight: var(--font-accent-weight);
  color: rgba(255, 255, 255, 0.75);
  display: block;
}

@media (max-width: 991px) {
  .hero-section {
    height: auto;
    padding-bottom: 0;
  }
  /* Force true vertical stacking — no wrapping ambiguity */
  .hero-section > .row {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    --bs-gutter-y: 0;
  }
  /* Neutralise AOS transforms on hero columns so they cannot create a
     stacking context that paints the right column over the logo */
  .hero-section > .row > [data-aos] {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
  .hero-section h1 { font-size: 2.4rem; }
  /* Guarantee block stacking so nothing can share a line with the logo */
  .hero-eyebrow { display: block; }
  .hero-logo { display: block; }
  .hero-badge { left: 10px; bottom: 10px; }
  .hero-img-wrap { margin-bottom: 2rem; }
  .hero-section .hero-lead { display: none; }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-bottom: 12px;
  }
  .hero-stats > div {
    min-width: 0;
    padding: 10px 12px;
  }
  .hero-stats .stat-num { font-size: 1.5rem; }
  .hero-stats .stat-label { font-size: 0.65rem; }
  .hero-bottom {
    position: static;
    margin-top: 0;
    gap: 0.75rem;
  }
  .hero-section .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  .hero-section h1 { font-size: 1.9rem; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .hero-badge { min-width: unset; }
}

/* ================================================================
   SERVICES (LEISTUNGEN) PANEL
   ================================================================ */
.service-card {
  background: var(--inner-bg);
  border-radius: 12px;
  padding: 36px 28px;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  border: 1px solid transparent;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.09);
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: transform 0.3s;
  color: #ffffff;
}

.service-card:hover .service-icon {
  transform: scale(1.07);
}

.service-icon i {
  font-size: 26px;
  color: #ffffff;
}

.service-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--text-body);
  margin: 0;
  flex: 1;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-red);
  text-decoration: none;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  transition: gap 0.2s ease, opacity 0.2s;
  align-self: flex-start;
}

.service-card-link:hover {
  gap: 10px;
  opacity: 0.75;
}

@media (max-width: 768px) {
  .service-card { padding: 28px 22px; }
  .service-icon { width: 54px; height: 54px; }
  .service-icon i { font-size: 22px; }
}

/* ================================================================
   AKTUELLES / REFERENZEN SPLIT PANEL
   ================================================================ */
.latest-panel {
  background: linear-gradient(165deg, #ffffff 0%, #f7f8fb 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  max-width: 800px;
  margin: 0 auto;
}

.latest-panel .instagram-media {
  max-width: 100% !important;
  min-width: 0 !important;
}

/* Instagram embed loader */
.ig-embed-wrap {
  position: relative;
  min-height: 480px;
}

.ig-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(190, 17, 31, 0.05) 0%, rgba(3, 66, 121, 0.07) 100%);
  border-radius: 10px;
  border: 1px dashed rgba(3, 66, 121, 0.25);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.ig-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ig-loader-spinner {
  display: block;
  width: 36px;
  height: 36px;
  border: 3px solid rgba(0, 0, 0, 0.10);
  border-top-color: var(--accent-red);
  border-radius: 50%;
  animation: igSpin 0.85s linear infinite;
}

@keyframes igSpin {
  to { transform: rotate(360deg); }
}

.ig-loader-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}

.latest-kicker {
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--text-muted);
}

.latest-panel h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-heading);
  margin: 0;
  line-height: 1.3;
}

.latest-panel p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.65;
  margin: 0;
}

.latest-media-placeholder {
  min-height: 180px;
  border-radius: 10px;
  border: 1px dashed rgba(3, 66, 121, 0.35);
  background: linear-gradient(135deg, rgba(190, 17, 31, 0.07) 0%, rgba(3, 66, 121, 0.08) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 18px;
}

.latest-media-placeholder i {
  font-size: 34px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.latest-media-placeholder span {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.latest-ref-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.latest-ref-list li {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.latest-ref-list .ref-thumb {
  width: 96px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.latest-ref-list .ref-copy {
  min-width: 0;
}

.latest-ref-list .ref-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.4;
}

.latest-ref-list .ref-meta {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .latest-panel {
    padding: 24px 20px;
  }

  .latest-panel h3 {
    font-size: 1.2rem;
  }

  .latest-media-placeholder {
    min-height: 150px;
  }

  .latest-ref-list li {
    align-items: flex-start;
  }

  .latest-ref-list .ref-thumb {
    width: 84px;
    height: 64px;
  }
}

/* ================================================================
   PROCESS STEPS  (used on Leistungen detail pages)
   ================================================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient);
  color: #ffffff;
  font-family: var(--font-accent);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-body h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 7px;
  line-height: 1.35;
}

.step-body p {
  font-size: 13.5px;
  color: var(--text-body);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 991px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .process-steps { grid-template-columns: 1fr; gap: 20px; }
}

/* ================================================================
   FAQ ACCORDION  (Bootstrap accordion overrides)
   ================================================================ */
.faq-accordion .accordion-button {
  font-family: var(--font-accent);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-heading);
  background: var(--inner-bg);
  padding: 18px 20px;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--accent-red);
  background: var(--inner-bg);
  box-shadow: none;
}

.faq-accordion .accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(190, 17, 31, 0.09);
}

.faq-accordion .accordion-item {
  background: var(--inner-bg);
  border: 1px solid rgba(0, 0, 0, 0.09) !important;
  border-radius: 10px !important;
  overflow: hidden;
  margin-bottom: 8px;
}

.faq-accordion .accordion-item:last-child { margin-bottom: 0; }

.faq-accordion .accordion-body {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.75;
  background: var(--inner-bg);
  padding-top: 4px;
  padding-bottom: 20px;
}

/* ================================================================
   SUBPAGE HERO  (static — no video, gradient bg)
   ================================================================ */
.subpage-hero {
  background: var(--gradient-lightred);
  padding: 64px var(--panel-pad-h);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
  min-height: 300px;
}

.subpage-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.subpage-hero-content h1 {
  font-size: 2.8rem;
  font-weight: 300;
  color: #ffffff;
  line-height: 1.15;
  margin: 0;
}

.subpage-hero-content h1 strong {
  font-weight: 700;
}

.subpage-hero-lead {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  max-width: 480px;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.60);
}

.breadcrumb-nav a {
  color: rgba(255, 255, 255, 0.60);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-nav a:hover {
  color: #ffffff;
  opacity: 1;
}

.breadcrumb-nav i.bi-chevron-right { font-size: 10px; }

.breadcrumb-nav span { color: rgba(255, 255, 255, 0.90); }

.subpage-hero-img {
  border-radius: 14px;
  overflow: hidden;
  height: 260px;
  position: relative;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.38);
}

.subpage-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 991px) {
  .subpage-hero {
    grid-template-columns: 1fr;
    padding: 48px var(--panel-pad-h);
  }

  .subpage-hero-img { display: none; }

  .subpage-hero-content h1 { font-size: 2.2rem; }
}

@media (max-width: 480px) {
  .subpage-hero-content h1 { font-size: 1.85rem; }
}

/* ================================================================
   REFERENZEN PAGE — filter bar
   ================================================================ */
.ref-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.ref-filter-btn {
  padding: 8px 20px;
  border: 1.5px solid rgba(0, 0, 0, 0.14);
  border-radius: 40px;
  background: transparent;
  color: var(--text-body);
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}

.ref-filter-btn:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.ref-filter-btn.active {
  background: var(--gradient);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(190, 17, 31, 0.22);
}

/* ================================================================
   REFERENZEN PAGE — project card
   ================================================================ */
.ref-card {
  background: var(--inner-bg);
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.ref-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.10);
  border-color: rgba(0, 0, 0, 0.05);
}

.ref-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.ref-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.ref-card:hover .ref-card-img img {
  transform: scale(1.05);
}

.ref-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gradient);
  color: #ffffff;
  font-family: var(--font-accent);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 11px;
  border-radius: 20px;
  white-space: nowrap;
}

.ref-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.ref-card-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0;
  line-height: 1.35;
}

.ref-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
}

.ref-card-meta i {
  font-size: 11px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ref-card-body > p:last-child {
  font-size: 13.5px;
  color: var(--text-body);
  line-height: 1.62;
  margin: 0;
}

@media (max-width: 768px) {
  .ref-card-img { height: 180px; }
}

/* ================================================================
   CONTACT (KONTAKT) PANEL
   ================================================================ */
.contact-info-block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 36px;
}

.contact-info-block:last-child { margin-bottom: 0; }

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(190,17,31,0.10), rgba(3,66,121,0.10));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 18px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-info-block .ci-label {
  font-family: var(--font-accent);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 3px;
}

.contact-info-block .ci-value {
  font-size: 14.5px;
  color: var(--text-heading);
  font-weight: 500;
  display: block;
  line-height: 1.5;
}

.contact-info-block .ci-value a {
  color: var(--text-heading);
}

.contact-info-block .ci-value a:hover {
  color: var(--accent-red);
  opacity: 1;
}

/* Contact intro text */
.contact-intro {
  margin-bottom: 40px;
}

.contact-intro h3 {
  font-size: 1.7rem;
  font-weight: 300;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.contact-intro p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Divider with gradient line */
.contact-divider {
  height: 1px;
  background: var(--gradient);
  opacity: 0.12;
  margin: 36px 0;
}

/* Form (inner bg box) */
.form-box {
  background: var(--inner-bg);
  border-radius: 14px;
  padding: 36px;
}

.form-box .form-label {
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-heading);
  display: block;
  margin-bottom: 7px;
}

.form-box .form-control {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--text-heading);
  transition: border-color 0.25s, box-shadow 0.25s;
  margin-bottom: 18px;
}

.form-box .form-control:focus {
  outline: none;
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(190, 17, 31, 0.08);
}

.form-box .form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form-box textarea.form-control {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-box .form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}

@media (max-width: 576px) {
  .form-box .form-row-2 { grid-template-columns: 1fr; }
  .form-box { padding: 24px 20px; }
}

.form-box .submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--gradient);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: opacity 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 5px 18px rgba(190, 17, 31, 0.25);
}

.form-box .submit-btn:hover {
  opacity: 0.87;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(3, 66, 121, 0.28);
}

.form-box .submit-btn i {
  font-size: 14px;
  transition: transform 0.25s;
}

.form-box .submit-btn:hover i {
  transform: translateX(4px);
}

.form-feedback {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 7px;
  font-size: 13px;
  display: none;
}

.form-feedback.success {
  background: rgba(5, 150, 82, 0.09);
  border: 1px solid rgba(5, 150, 82, 0.20);
  color: #059652;
}

.form-note {
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
}

.form-note a {
  color: var(--accent-red);
}

/* ================================================================
   FOOTER — sits directly on the gradient, no panel
   ================================================================ */
.site-footer {
  max-width: calc(var(--panel-max) + 48px);
  margin: 0 auto;
  padding: 28px 24px 36px;
  color: rgba(255, 255, 255, 0.65);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-logo-img {
  /* background: rgba(255, 255, 255, 0.90);
  border-radius: 7px; */
  padding: 3px 8px;
  display: flex;
  align-items: center;
}

.footer-logo-img img {
  height: 72px;
  width: auto;
  min-width: 72px;
}

.footer-name {
  font-size: 14px;
  color: #ffffff;
  text-transform: uppercase;
}

.footer-name-first {
  font-weight: 400;
}

.footer-name-second {
  font-weight: 600;
}

.footer-tagline {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.58);
  max-width: 340px;
  line-height: 1.6;
  text-align: center;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-vdivider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.20);
  flex-shrink: 0;
}

.footer-instagram {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.70);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
  flex-shrink: 0;
  transition: color 0.25s;
}

.footer-instagram i {
  font-size: 22px;
  flex-shrink: 0;
}

.footer-instagram:hover {
  color: #ffffff;
  opacity: 1;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.50);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}

#cookie-settings-link {
  font-style: italic;
  opacity: 0.75;
}

.footer-legal a:hover {
  color: #ffffff;
  opacity: 1;
}

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
