/* ============================================================
   MABO IMMOBILIEN – Global Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Raleway:wght@300;400;500;600&display=swap');

:root {
  --gold:        #A07840;
  --gold-light:  #C4A068;
  --gold-dark:   #7A5C2E;
  --black:       #0D0D0D;
  --dark:        #1A1A1A;
  --mid:         #2E2E2E;
  --grey:        #6B6B6B;
  --light-grey:  #E8E4DF;
  --off-white:   #F7F5F2;
  --white:       #FFFFFF;
  --transition:  0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow:      0 20px 60px rgba(0,0,0,0.12);
  --shadow-gold: 0 8px 32px rgba(160,120,64,0.25);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  font-weight: 600;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ── Utility ── */
.text-gold        { color: var(--gold); }
.bg-dark-section  { background: var(--dark); color: var(--white); }
.bg-off-white     { background: var(--off-white); }
.section-pad      { padding: 100px 0; }
.section-pad-sm   { padding: 60px 0; }

.section-label {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 20px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--grey);
  max-width: 560px;
  line-height: 1.8;
}
.divider-gold {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 24px 0;
}

/* ── Buttons ── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--white);
  padding: 14px 36px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid var(--gold);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: translateX(-101%);
  transition: var(--transition);
  z-index: 0;
}
.btn-gold:hover::before { transform: translateX(0); }
.btn-gold:hover { color: var(--gold); }
.btn-gold span  { position: relative; z-index: 1; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--gold);
  padding: 14px 36px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid var(--gold);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: var(--transition);
  z-index: 0;
}
.btn-outline:hover::before { transform: translateX(0); }
.btn-outline:hover { color: var(--white); }
.btn-outline span { position: relative; z-index: 1; }

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--white);
  padding: 14px 36px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid var(--white);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-outline-white::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: translateX(-101%);
  transition: var(--transition);
  z-index: 0;
}
.btn-outline-white:hover::before { transform: translateX(0); }
.btn-outline-white:hover { color: var(--dark); }
.btn-outline-white span { position: relative; z-index: 1; }

/* ── Navbar ── */
#mainNav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 24px 0;
  transition: var(--transition);
  background: transparent;
}
#mainNav.scrolled {
  padding: 14px 0;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
/* Logo – mix-blend-mode knocks out white box on dark backgrounds */
#mainNav .navbar-brand img {
  height: 56px;
  transition: var(--transition);
  mix-blend-mode: screen;
  filter: brightness(1.15) contrast(1.05);
}
#mainNav.scrolled .navbar-brand img { height: 44px; }

.nav-link-custom {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85) !important;
  padding: 8px 18px !important;
  transition: var(--transition);
  position: relative;
}
.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: 0; left: 18px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: var(--transition);
}
.nav-link-custom:hover       { color: var(--gold) !important; }
.nav-link-custom:hover::after { width: calc(100% - 36px); }
.nav-link-custom.active      { color: var(--gold) !important; }
.nav-link-custom.active::after { width: calc(100% - 36px); }

/* Hamburger – always clearly visible against dark hero */
#mainNav .navbar-toggler {
  border: 2px solid var(--gold) !important;
  padding: 9px 13px !important;
  background: rgba(160, 120, 64, 0.22) !important;
  border-radius: 0 !important;
  transition: background var(--transition), border-color var(--transition);
  box-shadow: none !important;
}
#mainNav .navbar-toggler:hover,
#mainNav .navbar-toggler:focus {
  background: var(--gold) !important;
  outline: none;
}
#mainNav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23C4A068' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  width: 24px !important;
  height: 20px !important;
}
#mainNav .navbar-toggler:hover .navbar-toggler-icon,
#mainNav .navbar-toggler:focus .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ── Hero ── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0D0D0D 0%, #1e1a14 50%, #0D0D0D 100%);
}
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(var(--gold) 1px, transparent 1px),
    linear-gradient(90deg, var(--gold) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(13,13,13,0.95) 0%,
    rgba(13,13,13,0.7) 50%,
    rgba(160,120,64,0.08) 100%
  );
}
.hero-content { position: relative; z-index: 2; }

.hero-eyebrow {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 0px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.3s forwards;
}
.hero-eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold);
}
.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.9s 0.5s forwards;
}
.hero-title em { font-style: italic; color: var(--gold-light); }
.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  line-height: 1.9;
  margin-bottom: 44px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.9s 0.7s forwards;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s 0.9s forwards;
}
.hero-stats {
  position: absolute;
  bottom: 60px;
  right: 0;
  z-index: 2;
  display: flex;
  gap: 0;
  opacity: 0;
  animation: fadeUp 0.9s 1.1s forwards;
}
.hero-stat {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(160,120,64,0.2);
  padding: 24px 36px;
  text-align: center;
}
.hero-stat:first-child { border-right: none; }
.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-light);
  display: block;
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
  display: block;
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s infinite;
}

/* ── Service Cards ── */
.service-card {
  background: var(--white);
  border: 1px solid rgba(160,120,64,0.12);
  padding: 44px 36px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--gold);
  transition: var(--transition);
}

.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-gold); }
.service-card:hover::before { width: 100%; }
.service-icon {
  width: 64px; height: 64px;
  border: 1px solid rgba(160,120,64,0.3);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
  transition: var(--transition);
}
.service-card:hover .service-icon { border-color: var(--gold); }
.service-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 14px; }
.service-text  { font-size: 0.92rem; color: var(--grey); line-height: 1.8; }

/* ── Advantages ── */
.advantage-item {
  display: flex;
  gap: 24px;
  padding: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}
.advantage-item:hover { background: rgba(160,120,64,0.05); }
.advantage-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(160,120,64,0.15);
  line-height: 1;
  min-width: 64px;
  transition: var(--transition);
}
.advantage-item:hover .advantage-num { color: var(--gold); }
.advantage-content h4 { font-size: 1.1rem; color: var(--white); margin-bottom: 8px; }
.advantage-content p  { font-size: 0.9rem; color: rgba(255,255,255,0.5); line-height: 1.7; }

/* ── CTA Banner ── */
.cta-banner {
  background: var(--gold);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 400px; height: 400px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 50%;
}
.cta-title { font-size: clamp(1.8rem, 3.5vw, 2.8rem); color: var(--white); font-weight: 700; line-height: 1.2; }
.cta-sub   { color: rgba(255,255,255,0.8); font-size: 1rem; margin-top: 12px; }

/* ── B2B Steps ── */
.b2b-step {
  position: relative;
  padding: 36px;
  border-left: 1px solid rgba(160,120,64,0.2);
  transition: var(--transition);
}
.b2b-step::before {
  content: '';
  position: absolute;
  left: -1px; top: 0;
  width: 1px; height: 0;
  background: var(--gold);
  transition: 0.6s ease;
}
.b2b-step:hover::before { height: 100%; }
.b2b-step-num { font-family: 'Playfair Display', serif; font-size: 0.8rem; letter-spacing: 0.15em; color: var(--gold); margin-bottom: 16px; display: block; }
.b2b-step h4  { font-size: 1.15rem; margin-bottom: 10px; }
.b2b-step p   { font-size: 0.9rem; color: var(--grey); line-height: 1.7; }

.partner-box {
  background: var(--off-white);
  padding: 48px;
  border-left: 4px solid var(--gold);
}

/* ── Project Cards ── */
.project-filter {
  display: flex;
  gap: 0;
  border: 1px solid rgba(160,120,64,0.3);
  width: fit-content;
}
.filter-btn {
  background: none;
  border: none;
  padding: 12px 32px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey);
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover { background: var(--gold); color: var(--white); }

.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--dark);
  height: 360px;
}
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s ease; opacity: 0.7; }
.project-card:hover img { transform: scale(1.08); opacity: 0.4; }
.project-overlay {
  position: absolute;
  inset: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(13,13,13,0.9) 0%, transparent 60%);
  transition: var(--transition);
}
.project-tag {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 5px 14px;
}
.project-title { font-size: 1.2rem; color: var(--white); font-weight: 600; margin-bottom: 6px; }
.project-desc  { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.6; }
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-light);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}
.project-card:hover .project-link { opacity: 1; transform: translateY(0); }

/* ── Impressum ── */
.impressum-card {
  background: var(--white);
  border: 1px solid rgba(160,120,64,0.15);
  padding: 48px;
}
.impressum-line {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--light-grey);
  font-size: 0.95rem;
}
.impressum-line:last-child { border-bottom: none; }
.impressum-label {
  font-weight: 600;
  color: var(--gold);
  min-width: 160px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Footer ── */
footer {
  background: var(--black);
  color: rgba(255,255,255,0.5);
  padding: 60px 0 30px;
}
.footer-logo img { height: 48px; margin-bottom: 20px; }
.footer-text    { font-size: 0.88rem; line-height: 1.8; max-width: 300px; }
.footer-heading {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--gold); padding-left: 6px; }
.footer-divider { border-color: rgba(255,255,255,0.06); margin: 40px 0 24px; }
.footer-bottom  { font-size: 0.78rem; color: rgba(255,255,255,0.3); }

/* ── Page Header ── */
.page-hero {
  padding: 160px 0 80px;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    linear-gradient(var(--gold) 1px, transparent 1px),
    linear-gradient(90deg, var(--gold) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-title { font-size: clamp(2.5rem, 5vw, 4rem); color: var(--white); font-weight: 700; }
.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}
.page-hero-breadcrumb .sep     { color: var(--gold); }
.page-hero-breadcrumb .current { color: var(--gold); }

/* ── Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible        { opacity: 1; transform: translateY(0); }
.reveal-delay-1        { transition-delay: 0.1s; }
.reveal-delay-2        { transition-delay: 0.2s; }
.reveal-delay-3        { transition-delay: 0.3s; }
.reveal-delay-4        { transition-delay: 0.4s; }

/* ── Keyframes ── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE – Tablet (≤ 991px) + Mobile (≤ 767px)
   All text/elements centered on small screens
══════════════════════════════════════════════════════ */

/* ── Tablet (≤ 991px) ── */
@media (max-width: 991px) {

  /* General spacing */
  .section-pad    { padding: 70px 0; }
  .section-pad-sm { padding: 44px 0; }

  /* Section headers – center on tablet */
  .section-label { display: block; text-align: center; }
  .section-title { text-align: center; }
  .section-sub   { text-align: center; max-width: 100%; margin-left: auto; margin-right: auto; }
  .divider-gold  { margin-left: auto; margin-right: auto; }

  /* Hero */
  #hero {
    height: auto;
    min-height: 100svh;
    padding: 120px 0 80px;
    text-align: center;
  }
  .hero-content  { text-align: center; }
  .hero-eyebrow  { justify-content: center; }
  .hero-eyebrow::before { display: none; }
  .hero-desc     { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-actions  { justify-content: center; }
  .hero-stats {
    position: static;
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 48px;
    width: 100%;
  }
  .hero-stat { flex: 1; max-width: 200px; }

  /* Page hero */
  .page-hero       { padding: 130px 0 60px; text-align: center; }
  .page-hero-breadcrumb { justify-content: center; }

  /* Advantage items */
  .advantage-item  { text-align: left; }

  /* B2B steps */
  .b2b-step        { text-align: left; }

  /* Partner box */
  .partner-box     { text-align: center; }
  .partner-box .btn-outline { margin: 0 auto; }

  /* CTA banner */
  .cta-banner .row { text-align: center; }
  .cta-banner .text-lg-end { text-align: center !important; }
  .cta-sub         { margin: 8px auto 0; }

  /* Footer logo */
  .footer-logo     { text-align: center; }
  .footer-text     { text-align: center; max-width: 100%; margin: 0 auto; }
}

/* ── Mobile (≤ 767px) ── */
@media (max-width: 767px) {

  /* General */
  .section-pad    { padding: 56px 0; }
  .section-pad-sm { padding: 36px 0; }

  /* Section headers */
  .section-label  { text-align: center; }
  .section-title  { text-align: center; font-size: 1.8rem; }
  .section-sub    { text-align: center; font-size: 0.97rem; max-width: 100%; }
  .divider-gold   { margin: 20px auto; }

  /* Hero */
  #hero           { padding: 110px 0 70px; }
  .hero-title     { font-size: 2rem; text-align: center; }
  .hero-eyebrow   { font-size: 0.68rem; }
  .hero-desc      { font-size: 0.97rem; }
  .hero-actions   { flex-direction: column; align-items: center; gap: 12px; }
  .hero-actions .btn-gold,
  .hero-actions .btn-outline-white { width: 100%; max-width: 320px; justify-content: center; }
  .hero-stats     { flex-direction: column; align-items: center; gap: 2px; }
  .hero-stat      { width: 100%; max-width: 280px; }
  .hero-scroll    { display: none; }

  /* Page hero */
  .page-hero            { padding: 110px 0 48px; }
  .page-hero-title      { font-size: 2rem; }
  .page-hero-breadcrumb { font-size: 0.72rem; justify-content: center; }

  /* Navbar */
  #mainNav .navbar-brand img { height: 44px; mix-blend-mode: screen; }
  .navbar-toggler { padding: 10px 14px; }
  .navbar-toggler-icon { width: 26px; height: 22px; }
  .navbar-collapse {
    background: rgba(10,10,10,0.98);
    padding: 20px 16px;
    margin-top: 12px;
    border-top: 1px solid rgba(160,120,64,0.2);
  }
  .nav-link-custom { padding: 12px 8px !important; font-size: 0.78rem; text-align: center; }
  .nav-link-custom::after { display: none; }
  .navbar-nav .ms-lg-3 { margin: 12px 0 0 0 !important; }
  .navbar-nav .btn-gold { width: 100%; justify-content: center; }

  /* Intro strip badges */
  .intro-badge    { padding: 16px 10px; }

  /* Service cards */
  .service-card   { padding: 32px 20px; text-align: center; }
  .service-icon   { margin: 0 auto 24px; }
  .service-title  { text-align: center; }
  .service-text   { text-align: center; }

  /* Advantage items */
  .advantage-item { flex-direction: column; gap: 8px; padding: 24px 16px; text-align: center; }
  .advantage-num  { font-size: 2rem; min-width: auto; }
  .advantage-content h4 { font-size: 1rem; }
  .advantage-content p  { font-size: 0.88rem; }

  /* CTA banner */
  .cta-banner     { padding: 56px 0; }
  .cta-title      { font-size: 1.6rem; text-align: center; }
  .cta-sub        { font-size: 0.92rem; text-align: center; }
  .cta-banner .text-lg-end { text-align: center !important; margin-top: 24px; }
  .btn-outline-white { width: 100%; max-width: 320px; justify-content: center; margin: 0 auto; }

  /* B2B Steps */
  .b2b-step       { padding: 24px 16px; text-align: center; }
  .b2b-step::before { display: none; }
  .b2b-step-num   { text-align: center; }
  .b2b-step h4    { font-size: 1.05rem; }

  /* Partner box */
  .partner-box    { padding: 28px 20px; text-align: center; }
  .partner-box h3 { font-size: 1.3rem; }
  .partner-box .btn-outline { width: 100%; max-width: 280px; justify-content: center; }

  /* B2B partner list items (flex rows) */
  [style*="display:flex"][style*="align-items:center"][style*="gap:16px"] {
    justify-content: center;
  }

  /* Stats grid on firmen.html */
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Firmen stats smaller text */
  [data-count] { font-size: 1.8rem !important; }

  /* Project filter */
  .project-filter       { flex-wrap: wrap; width: 100%; }
  .filter-btn           { flex: 1 1 50%; text-align: center; padding: 10px 12px; font-size: 0.72rem; }

  /* Project cards */
  .project-card         { height: 260px !important; }
  .project-title        { font-size: 1.05rem; }
  .project-desc         { font-size: 0.82rem; }
  .project-tag          { font-size: 0.62rem; }

  /* Contact form container */
  [style*="padding:48px"] { padding: 28px 20px !important; }

  /* Impressum */
  .impressum-card       { padding: 28px 16px; }
  .impressum-line       { flex-direction: column; gap: 4px; padding: 14px 0; }
  .impressum-label      { min-width: auto; }

  /* Contact info blocks */
  .contact-info-row     { flex-direction: column; align-items: center; text-align: center; }

  /* Footer */
  footer                { padding: 48px 0 24px; }
  .footer-logo          { text-align: center; }
  .footer-logo img      { height: 40px; }
  .footer-text          { text-align: center; margin: 0 auto; font-size: 0.85rem; }
  .footer-heading       { text-align: center; margin-top: 8px; }
  .footer-links         { text-align: center; }
  .footer-links a:hover { padding-left: 0; }
  .footer-bottom        { text-align: center !important; }
  .footer-divider       { margin: 32px 0 20px; }

  /* Buttons full width on mobile */
  .btn-gold { width: 100%; max-width: 320px; justify-content: center; }
  /* Exception: don't stretch buttons inside flex rows or specific containers */
  .hero-actions .btn-gold,
  .cta-banner .btn-gold,
  .advantage-item .btn-gold,
  .partner-box .btn-gold,
  .impressum-card .btn-gold { max-width: 320px; }

  /* Form submit button always full width */
  form .btn-gold { max-width: 100%; width: 100%; }
}

/* ── Small mobile (≤ 480px) ── */
@media (max-width: 480px) {
  .hero-title    { font-size: 1.8rem; }
  .section-title { font-size: 1.6rem; }
  .cta-title     { font-size: 1.4rem; }
  .page-hero-title { font-size: 1.75rem; }
  .hero-stat     { max-width: 100%; }
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
  }
  .impressum-card { padding: 20px 12px; }
}