/* =========================================================
   TIMM PROJEKTBAU — Main Stylesheet
   Brand: Libre Franklin + Mulish | Flintstone Blue Palette
   ========================================================= */

/* ── BRAND FONTS @font-face ─────────────────────────────── */
@font-face {
  font-family: 'Libre Franklin';
  src: url('../fonts/LibreFranklin-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Libre Franklin';
  src: url('../fonts/LibreFranklin-Medium.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Libre Franklin';
  src: url('../fonts/LibreFranklin-SemiBold.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Libre Franklin';
  src: url('../fonts/LibreFranklin-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Libre Franklin';
  src: url('../fonts/LibreFranklin-ExtraBold.ttf') format('truetype');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Mulish';
  src: url('../fonts/Mulish-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Mulish';
  src: url('../fonts/Mulish-Medium.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Mulish';
  src: url('../fonts/Mulish-SemiBold.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Mulish';
  src: url('../fonts/Mulish-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ── BRAND COLOR TOKENS ─────────────────────────────────── */
:root {
  /* Hauptpalette */
  --flintstone:       #454456;   /* Primäre Markenfarbe */
  --flintstone-light: #5A5870;   /* Aufgehellt */
  --flintstone-dark:  #312F3F;   /* Abgedunkelt */
  --grey-cloud:       #75797F;   /* Sekundärer Akzent */
  --grey-cloud-dark:  #5C5F64;
  --grey-cloud-glow:  rgba(117,121,127,0.12);
  --palladium:        #B1B0B0;   /* Heller Akzent */

  /* Zusätzliche Palette */
  --silver-dollar:    #BDB6AE;   /* Warmes Grau */
  --white-smoke:      #F5F5F5;   /* Hintergrund hell */
  --opium:            #987E80;   /* Warmer Akzent – sparsam */

  /* Neutrale */
  --white:      #FFFFFF;
  --off-white:  #F9F8F7;
  --gray-100:   #F2F1F0;
  --gray-200:   #E4E2DF;
  --gray-400:   #9E9B96;
  --gray-600:   #5A5755;
  --text:       #1E1C28;         /* Fast Schwarz mit blauem Unterton */
  --text-light: #6B6878;

  /* Util */
  --radius:     10px;
  --radius-lg:  18px;
  --shadow:     0 4px 24px rgba(69,68,86,0.08);
  --shadow-lg:  0 12px 48px rgba(69,68,86,0.16);
  --trans:      all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Mulish', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
h4 { font-size: 1.1rem; }
p  { line-height: 1.75; color: var(--text-light); }

.text-white p { color: rgba(255,255,255,0.72); }
.text-white h1, .text-white h2, .text-white h3, .text-white h4 { color: #fff; }

/* ── LAYOUT ─────────────────────────────────────────────── */
.container      { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
section.section-sm { padding: 56px 0; }

/* Section Label — Brand Grey Cloud Accent */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-cloud);
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--grey-cloud);
}

.section-title { margin-bottom: 14px; }
.section-sub   { font-size: 1.05rem; max-width: 560px; margin-bottom: 48px; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  transition: var(--trans);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--flintstone);
  color: #fff;
}
.btn-primary:hover {
  background: var(--flintstone-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(69,68,86,0.3);
}

.btn-amber {                      /* Verwendet Opium/warm für sekundäre CTAs */
  background: var(--flintstone);
  color: #fff;
}
.btn-amber:hover {
  background: var(--flintstone-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(69,68,86,0.3);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
}

.btn-dark {
  background: var(--flintstone);
  color: #fff;
}
.btn-dark:hover {
  background: var(--flintstone-dark);
  transform: translateY(-2px);
}

.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

/* ── NAVIGATION ─────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--trans);
}
.navbar.scrolled {
  background: rgba(69,68,86,0.97);
  backdrop-filter: blur(20px);
  padding: 13px 0;
  box-shadow: 0 2px 24px rgba(0,0,0,0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo img { height: 38px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: rgba(255,255,255,0.78);
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border-radius: 7px;
  transition: var(--trans);
}
.nav-links a:hover, .nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-phone {
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--trans);
  font-family: 'Mulish', sans-serif;
}
.nav-phone:hover { color: var(--palladium); }
.nav-phone svg { width: 14px; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 1.5px; background: #fff; border-radius: 2px; transition: var(--trans); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--flintstone);
  z-index: 999;
  padding: 100px 24px 40px;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(255,255,255,0.82);
  font-family: 'Libre Franklin', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: var(--trans);
  letter-spacing: -0.01em;
}
.mobile-menu a:hover { color: var(--palladium); padding-left: 8px; }
.mobile-menu .btn { margin-top: 28px; width: 100%; justify-content: center; }

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://cdn.prod.website-files.com/69145af05f46e74edc95b75c/6970ff30e12dd419907bd3b5_692d621e31a3f0529ee6f454_03%20(1)%20(1).avif');
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}
.hero-bg.loaded { transform: scale(1); }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    110deg,
    rgba(69,68,86,0.92) 0%,
    rgba(69,68,86,0.70) 55%,
    rgba(69,68,86,0.35) 100%
  );
}

.hero-content { position: relative; z-index: 2; max-width: 680px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(177,176,176,0.12);
  border: 1px solid rgba(177,176,176,0.25);
  color: var(--palladium);
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero-badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--palladium);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 .highlight { color: var(--palladium); }

.hero p {
  color: rgba(255,255,255,0.72);
  font-size: 1.1rem;
  margin-bottom: 36px;
  max-width: 510px;
  line-height: 1.8;
}

.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.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.3);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: 'Libre Franklin', sans-serif;
}
.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollDown 2s infinite;
}
@keyframes scrollDown {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── STATS BAR ──────────────────────────────────────────── */
.stats-bar { background: var(--flintstone); padding: 0; }
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid rgba(255,255,255,0.06);
}
.stat-item {
  padding: 36px 28px;
  border-right: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  position: relative;
}
.stat-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--palladium);
  transform: scaleX(0);
  transition: var(--trans);
}
.stat-item:hover::after { transform: scaleX(1); }

.stat-number {
  font-family: 'Libre Franklin', sans-serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-number span { color: var(--palladium); }
.stat-label { color: rgba(255,255,255,0.45); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em; }

/* ── TRUST BAR ──────────────────────────────────────────── */
.trust-bar { padding: 36px 0; background: var(--gray-100); overflow: hidden; }
.trust-bar-inner { display: flex; align-items: center; gap: 28px; }
.trust-label {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.72rem;
  color: var(--gray-400);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.trust-logos { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.trust-logos img {
  height: 26px; width: auto;
  filter: grayscale(1) opacity(0.4);
  transition: var(--trans);
}
.trust-logos img:hover { filter: grayscale(0) opacity(1); }

/* ── SERVICES ───────────────────────────────────────────── */
.services { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  transition: var(--trans);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--flintstone);
  transform: scaleX(0); transform-origin: left;
  transition: var(--trans);
}
.service-card:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 52px; height: 52px;
  background: var(--grey-cloud-glow);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  transition: var(--trans);
}
.service-card:hover .service-icon { background: var(--flintstone); }
.service-icon svg { width: 24px; height: 24px; color: var(--grey-cloud); transition: var(--trans); }
.service-card:hover .service-icon svg { color: #fff; }

.service-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.service-card p  { font-size: 0.9rem; line-height: 1.7; }

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--grey-cloud);
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 18px;
  transition: var(--trans);
  letter-spacing: 0.02em;
}
.service-link:hover { color: var(--flintstone); gap: 10px; }
.service-link svg { width: 15px; }

/* ── WHY US ─────────────────────────────────────────────── */
.why-us { background: var(--flintstone); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.why-visual { position: relative; }
.why-img-main { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4/5; object-fit: cover; }
.why-img-badge {
  position: absolute; bottom: -24px; right: -24px;
  background: var(--flintstone-dark);
  border: 1px solid rgba(177,176,176,0.2);
  border-radius: var(--radius);
  padding: 20px 24px;
  color: #fff; text-align: center;
  box-shadow: var(--shadow-lg);
}
.why-img-badge strong { display: block; font-family: 'Libre Franklin', sans-serif; font-size: 2rem; font-weight: 800; line-height: 1; color: var(--palladium); }
.why-img-badge span { font-size: 0.75rem; opacity: 0.7; }

.why-content { color: #fff; }
.why-items { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; }

.why-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
  transition: var(--trans);
}
.why-item:hover { background: rgba(177,176,176,0.08); border-color: rgba(177,176,176,0.18); }

.why-item-icon {
  width: 42px; height: 42px;
  background: rgba(177,176,176,0.1);
  border: 1px solid rgba(177,176,176,0.18);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.why-item-icon svg { width: 19px; color: var(--palladium); }
.why-item-text h4 { color: #fff; margin-bottom: 5px; font-size: 1rem; }
.why-item-text p  { color: rgba(255,255,255,0.55); font-size: 0.87rem; }

/* ── PROCESS ────────────────────────────────────────────── */
.process { background: var(--white-smoke); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  margin-top: 56px;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 32px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, var(--flintstone), rgba(69,68,86,0.1));
  z-index: 0;
}
.process-step { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 14px; position: relative; z-index: 1; }
.step-number {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 800; font-size: 1.15rem;
  margin-bottom: 20px;
  transition: var(--trans);
}
.step-number.active { background: var(--flintstone); color: #fff; box-shadow: 0 0 0 8px rgba(69,68,86,0.1); }
.step-number.inactive { background: var(--white); color: var(--palladium); border: 1.5px solid var(--gray-200); }
.process-step:hover .step-number.inactive { border-color: var(--flintstone); color: var(--flintstone); }
.step-title { font-family: 'Libre Franklin', sans-serif; font-weight: 700; font-size: 0.88rem; margin-bottom: 7px; color: var(--text); }
.step-desc  { font-size: 0.8rem; color: var(--text-light); line-height: 1.6; }

/* ── PROJECTS ───────────────────────────────────────────── */
.projects { background: var(--white); }
.projects-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; gap: 24px; flex-wrap: wrap; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.project-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--gray-100); transition: var(--trans); cursor: pointer; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project-card:hover .project-media img { transform: scale(1.06); }

.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(69,68,86,0.88) 0%, transparent 55%);
  opacity: 0; transition: var(--trans);
  display: flex; align-items: flex-end; padding: 22px;
}
.project-card:hover .project-overlay { opacity: 1; }
.project-overlay span { color: #fff; font-weight: 600; font-size: 0.85rem; display: flex; align-items: center; gap: 8px; }

.project-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(69,68,86,0.82);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.9);
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.7rem; font-weight: 600;
  padding: 5px 12px; border-radius: 100px;
  letter-spacing: 0.06em;
}
.project-info { padding: 22px; }
.project-info h4 { font-size: 0.95rem; margin-bottom: 5px; }
.project-info p  { font-size: 0.82rem; }

/* ── BEFORE / AFTER ─────────────────────────────────────── */
.before-after { background: var(--flintstone-dark); padding: 96px 0; }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 56px; }
.ba-card { border-radius: var(--radius-lg); overflow: hidden; }

.ba-compare { position: relative; aspect-ratio: 4/3; overflow: hidden; cursor: col-resize; user-select: none; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-img-after { clip-path: inset(0 0 0 50%); }
.ba-divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; transform: translateX(-50%); z-index: 3; pointer-events: none; }
.ba-handle {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 42px; height: 42px;
  background: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 4; box-shadow: var(--shadow-lg);
  pointer-events: none; color: var(--flintstone);
}
.ba-handle svg { width: 18px; }
.ba-labels { position: absolute; top: 14px; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 14px; z-index: 3; pointer-events: none; }
.ba-label { padding: 5px 12px; border-radius: 100px; font-family: 'Libre Franklin', sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ba-label-before { background: rgba(0,0,0,0.55); color: rgba(255,255,255,0.8); }
.ba-label-after  { background: var(--flintstone); color: #fff; }
.ba-info { padding: 18px 22px; background: var(--flintstone); }
.ba-info h4 { color: #fff; font-size: 0.92rem; margin-bottom: 3px; }
.ba-info p  { color: rgba(255,255,255,0.5); font-size: 0.8rem; }

/* ── TESTIMONIALS ───────────────────────────────────────── */
.testimonials { background: var(--off-white); }
.testimonials-header { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 52px; }
.testimonials-img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.rating-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.stars { display: flex; gap: 3px; }
.stars svg { width: 18px; height: 18px; color: var(--grey-cloud); fill: var(--grey-cloud); }
.rating-text { font-size: 0.86rem; color: var(--text-light); }

.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--gray-200);
  transition: var(--trans);
  position: relative;
}
.testimonial-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.testimonial-card::before {
  content: '\201C';
  position: absolute; top: 16px; right: 24px;
  font-size: 5rem; color: var(--flintstone); opacity: 0.07;
  font-family: Georgia, serif; line-height: 1;
}

.testimonial-stars { display: flex; gap: 3px; margin-bottom: 14px; }
.testimonial-stars svg { width: 14px; height: 14px; color: var(--grey-cloud); fill: var(--grey-cloud); }
.testimonial-card blockquote { font-size: 0.9rem; line-height: 1.78; color: var(--text); margin-bottom: 22px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.author-name { font-family: 'Libre Franklin', sans-serif; font-weight: 700; font-size: 0.88rem; }
.author-loc  { font-size: 0.76rem; color: var(--text-light); }

/* ── TEAM ───────────────────────────────────────────────── */
.team { background: var(--white); }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.team-visual { order: 1; }
.team-content { order: 2; }
.team-img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; }

.team-quote {
  margin-top: 30px;
  padding: 26px;
  background: var(--flintstone);
  border-radius: var(--radius);
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem; line-height: 1.78;
  font-style: italic; position: relative;
}
.team-quote::before { content: '\201C'; font-size: 2.5rem; color: var(--palladium); line-height: 0.8; display: block; margin-bottom: 6px; font-style: normal; }
.team-quote-author { color: var(--palladium); font-weight: 600; font-style: normal; font-size: 0.8rem; margin-top: 10px; display: block; font-family: 'Libre Franklin', sans-serif; letter-spacing: 0.03em; }

.team-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.team-badge {
  display: flex; align-items: center; gap: 7px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  padding: 9px 14px; border-radius: 100px;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.78rem; font-weight: 600; color: var(--text);
}
.team-badge svg { width: 14px; color: var(--grey-cloud); }

/* ── CTA BANNER ─────────────────────────────────────────── */
.cta-banner {
  background: var(--flintstone);
  padding: 80px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute;
  top: -40%; left: -5%; width: 500px; height: 500px;
  border-radius: 50%; background: rgba(255,255,255,0.03); pointer-events: none;
}
.cta-banner::after {
  content: ''; position: absolute;
  bottom: -30%; right: -5%; width: 400px; height: 400px;
  border-radius: 50%; background: rgba(255,255,255,0.03); pointer-events: none;
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p  { color: rgba(255,255,255,0.72); font-size: 1.05rem; margin-bottom: 36px; max-width: 540px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-outline { border-color: rgba(255,255,255,0.35); }
.cta-banner .btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── CONTACT ────────────────────────────────────────────── */
.contact { background: var(--gray-100); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: start; }
.contact-info h3 { margin-bottom: 8px; }
.contact-info > p { margin-bottom: 28px; }
.contact-items { display: flex; flex-direction: column; gap: 14px; }

.contact-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: var(--trans);
}
.contact-item:hover { border-color: var(--flintstone); box-shadow: 0 4px 18px rgba(69,68,86,0.1); }
.contact-item-icon {
  width: 42px; height: 42px;
  background: var(--grey-cloud-glow);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-item-icon svg { width: 19px; color: var(--grey-cloud); }
.contact-item-label { font-size: 0.72rem; color: var(--text-light); margin-bottom: 2px; font-weight: 500; }
.contact-item-value { font-family: 'Libre Franklin', sans-serif; font-weight: 600; font-size: 0.92rem; color: var(--text); }
.contact-item-value a { color: inherit; transition: var(--trans); }
.contact-item-value a:hover { color: var(--flintstone); }

/* Form */
.contact-form-card { background: var(--white); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow); }
.contact-form-card h3 { margin-bottom: 8px; }
.contact-form-card > p { margin-bottom: 26px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-family: 'Libre Franklin', sans-serif; font-size: 0.78rem; font-weight: 600; color: var(--text); margin-bottom: 5px; letter-spacing: 0.01em; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 11px 15px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.9rem; font-family: 'Mulish', sans-serif;
  color: var(--text); background: var(--off-white);
  transition: var(--trans); outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--flintstone);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(69,68,86,0.08);
}
.form-group textarea { resize: vertical; min-height: 115px; }

.form-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.form-check input[type="checkbox"] { width: 17px; height: 17px; flex-shrink: 0; accent-color: var(--flintstone); margin-top: 2px; }
.form-check label { font-size: 0.8rem; color: var(--text-light); }
.form-check label a { color: var(--flintstone); }

/* ── FOOTER ─────────────────────────────────────────────── */
.footer { background: var(--flintstone-dark); padding: 64px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer-brand img { height: 34px; margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,0.42); font-size: 0.85rem; line-height: 1.7; max-width: 270px; }
.footer-col h5 {
  color: rgba(255,255,255,0.9);
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { color: rgba(255,255,255,0.42); font-size: 0.86rem; transition: var(--trans); }
.footer-col ul li a:hover { color: var(--palladium); padding-left: 4px; }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 11px; color: rgba(255,255,255,0.42); font-size: 0.86rem; }
.footer-contact-item svg { width: 14px; flex-shrink: 0; margin-top: 2px; color: var(--palladium); }
.footer-contact-item a { color: inherit; transition: var(--trans); }
.footer-contact-item a:hover { color: var(--palladium); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; gap: 16px; flex-wrap: wrap; }
.footer-copy { color: rgba(255,255,255,0.28); font-size: 0.78rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255,255,255,0.28); font-size: 0.78rem; transition: var(--trans); }
.footer-links a:hover { color: rgba(255,255,255,0.6); }

/* ── ANIMATIONS ─────────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* ── PAGE HERO (Unterseiten) ────────────────────────────── */
.page-hero { background: var(--flintstone); padding: 160px 0 80px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.15; }
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero .breadcrumb { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.45); font-size: 0.82rem; margin-bottom: 18px; }
.page-hero .breadcrumb a { color: var(--palladium); }
.page-hero .breadcrumb svg { width: 11px; }

/* ── RESPONSIVE ─────────────────────────────────────────── */

/* Tablet landscape */
@media (max-width: 1024px) {
  .services-grid          { grid-template-columns: repeat(2, 1fr); }
  .why-grid               { gap: 40px; }
  .why-img-badge          { right: -12px; bottom: -12px; }
  .projects-grid          { grid-template-columns: repeat(2, 1fr); }
  .testimonials-header    { grid-template-columns: 1fr; }
  .testimonials-img       { display: none; }
  .testimonials-grid      { grid-template-columns: repeat(2, 1fr); }
  .team-grid              { grid-template-columns: 1fr; gap: 40px; }
  .team-visual            { order: 2; }
  .team-content           { order: 1; }
  .team-img               { aspect-ratio: 16/9; object-position: top; }
  .contact-grid           { grid-template-columns: 1fr; gap: 36px; }
  .footer-top             { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* Tablet portrait / large phone */
@media (max-width: 768px) {
  html                    { font-size: 15px; }
  section                 { padding: 64px 0; }
  .container,
  .container-wide         { padding: 0 18px; }

  /* Nav */
  .nav-links, .nav-cta    { display: none; }
  .hamburger              { display: flex; }

  /* Hero */
  .hero                   { min-height: 100svh; }
  .hero-content           { max-width: 100%; }
  .hero p                 { font-size: 1rem; max-width: 100%; }
  .hero-scroll            { display: none; }

  /* Stats */
  .stats-inner            { grid-template-columns: repeat(2, 1fr); }
  .stat-item              { padding: 28px 18px; }

  /* Trust bar */
  .trust-bar-inner        { flex-direction: column; align-items: flex-start; gap: 16px; }
  .trust-logos            { gap: 24px; flex-wrap: wrap; }

  /* Services */
  .services-grid          { grid-template-columns: 1fr; }

  /* Why Us */
  .why-grid               { grid-template-columns: 1fr; gap: 32px; }
  .why-visual             { display: none; }

  /* Process */
  .process-steps          { grid-template-columns: 1fr 1fr; gap: 28px; }
  .process-steps::before  { display: none; }

  /* Projects */
  .projects-header        { flex-direction: column; align-items: flex-start; gap: 16px; }
  .projects-grid          { grid-template-columns: 1fr 1fr; gap: 16px; }

  /* Before / After */
  .ba-grid                { grid-template-columns: 1fr; gap: 20px; }

  /* Testimonials */
  .testimonials-grid      { grid-template-columns: 1fr; }

  /* Team */
  .team-grid              { grid-template-columns: 1fr; }
  .team-img               { aspect-ratio: 4/3; }

  /* Contact */
  .contact-grid           { grid-template-columns: 1fr; gap: 28px; }
  .form-row               { grid-template-columns: 1fr; }
  .contact-form-card      { padding: 26px; }

  /* Footer */
  .footer-top             { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom          { flex-direction: column; text-align: center; gap: 10px; }

  /* CTA banner */
  .cta-banner             { padding: 56px 0; }

  /* Page hero (subpages) */
  .page-hero              { padding: 120px 0 56px; }
}

/* Small phones */
@media (max-width: 480px) {
  html                    { font-size: 14px; }
  section                 { padding: 52px 0; }

  /* Hero */
  .hero-badge             { font-size: 0.65rem; }
  .hero-buttons           { flex-direction: column; }
  .hero-buttons .btn      { width: 100%; justify-content: center; }

  /* Stats */
  .stats-inner            { grid-template-columns: 1fr 1fr; }
  .stat-item              { padding: 22px 12px; }
  .stat-label             { font-size: 0.7rem; }

  /* Process */
  .process-steps          { grid-template-columns: 1fr; }

  /* Projects */
  .projects-grid          { grid-template-columns: 1fr; }

  /* Contact */
  .contact-form-card      { padding: 20px; }

  /* Footer */
  .footer-top             { grid-template-columns: 1fr; }
  .footer-links           { flex-wrap: wrap; gap: 14px; justify-content: center; }

  /* BA labels smaller */
  .ba-label               { font-size: 0.62rem; padding: 4px 9px; }
}

/* ════════════════════════════════════════════════════════════════
   MOBILE OVERHAUL — Premium mobile UX (overrides above)
   - Bigger Christian Timm portrait
   - Tap targets ≥ 48px (Apple/Google guidelines)
   - 16px form inputs (prevents iOS auto-zoom)
   - Better spacing, full-width CTAs
   - Sticky mobile call-bar
═══════════════════════════════════════════════════════════════ */

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Touch optimization */
a, button, .btn, [role="button"] { touch-action: manipulation; }
input, textarea, select, button { -webkit-tap-highlight-color: transparent; }

/* Tablet + below: FULL Christian Timm image — never cropped */
@media (max-width: 1024px) {
  .team-img {
    aspect-ratio: auto !important;
    width: auto !important;
    height: auto !important;
    max-width: 480px;
    max-height: 70vh;
    margin: 0 auto;
    object-fit: contain !important;
    object-position: center !important;
    display: block;
  }
  .team-visual { display: flex; justify-content: center; }
}

/* Phone: comprehensive mobile UX */
@media (max-width: 768px) {
  /* FULL Christian Timm image on mobile — never cropped, natural ratio */
  .team-img {
    aspect-ratio: auto !important;
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    max-height: 75vh;
    margin: 0 auto;
    object-fit: contain !important;
    object-position: center !important;
    display: block;
  }
  .team-visual {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
  }
  .team-content { text-align: left; }

  /* CTAs full-width + bigger tap targets */
  .btn { min-height: 52px; padding: 14px 22px; font-size: 0.98rem; }
  .btn-primary, .btn-amber, .btn-outline { min-height: 52px; }
  .hero-buttons .btn, .cta-buttons .btn { width: 100%; justify-content: center; }
  .cta-buttons { flex-direction: column; gap: 10px; }

  /* Forms — 16px prevents iOS auto-zoom + bigger touch targets */
  input[type="text"], input[type="tel"], input[type="email"],
  input[type="date"], input[type="number"], input[type="url"],
  textarea, select {
    font-size: 16px !important;
    padding: 14px 16px !important;
    min-height: 52px !important;
    line-height: 1.4;
  }
  textarea { min-height: 110px !important; }
  label { font-size: 0.92rem; margin-bottom: 6px; }

  /* Section spacing */
  section { padding: 56px 0; }
  .section-title { font-size: clamp(1.5rem, 5.5vw, 2rem); line-height: 1.2; }
  .section-sub { font-size: 0.98rem; line-height: 1.6; }
  .section-label { font-size: 0.68rem; }

  /* Page hero (sub-pages) */
  .page-hero { padding: 100px 0 48px; min-height: auto; }
  .page-hero h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); line-height: 1.15; }
  .page-hero-content p { font-size: 0.98rem !important; }

  /* Hero on homepage */
  .hero h1 { font-size: clamp(1.9rem, 7vw, 2.8rem); line-height: 1.15; }
  .hero p { line-height: 1.55; }
  .hero-badge { padding: 6px 14px; }

  /* Cards: more breathing room */
  .service-card { padding: 28px 22px; }
  .service-card h3 { font-size: 1.15rem; }
  .service-card p { font-size: 0.92rem; line-height: 1.6; }

  /* Wärmedämmung cards — stack stats */
  .daemmung-card-header { padding: 24px 22px 16px; gap: 14px; }
  .daemmung-card-icon { width: 44px; height: 44px; }
  .daemmung-card-header h3 { font-size: 1.05rem; }
  .daemmung-card-stats { flex-direction: column; }
  .daemmung-stat { border-right: none; border-bottom: 1px solid var(--gray-200); padding: 14px 20px; text-align: left; display: flex; justify-content: space-between; align-items: center; }
  .daemmung-stat:last-child { border-bottom: none; }
  .daemmung-stat-value { font-size: 1.1rem; }
  .daemmung-stat-label { font-size: 0.76rem; }

  /* Sanierung cards — proper stacking */
  .san-card-media { aspect-ratio: 16/9 !important; }
  .san-card-body { padding: 24px 22px 22px; }
  .san-card-body h3 { font-size: 1.05rem; }
  .san-projects-grid { grid-template-columns: 1fr; gap: 18px; }

  /* Stadtteile — 2 columns on phone */
  .stadtteile-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stadtteil-card { padding: 12px 14px; }
  .stadtteil-name { font-size: 0.9rem; }
  .stadtteil-service { font-size: 0.74rem; line-height: 1.35; }
  .stadtteile-header h2 { font-size: clamp(1.4rem, 5.5vw, 1.9rem); }

  /* FAQ — bigger tap targets */
  .faq-item { padding: 18px 0; }
  .faq-question { font-size: 0.98rem; line-height: 1.4; padding: 4px 0; min-height: 48px; gap: 12px; }
  .faq-question svg { width: 22px; height: 22px; }
  .faq-answer p { font-size: 0.93rem; line-height: 1.65; }
  .faq-item.open .faq-answer { max-height: 800px; }

  /* Stats — 2 cols compact */
  .stat-item { padding: 24px 14px; }
  .stat-number { font-size: 2rem; }
  .stat-label { font-size: 0.72rem; }

  /* Trust bar — center logos */
  .trust-bar-inner { align-items: center; }
  .trust-logos { justify-content: center; }
  .trust-logos img { height: 26px; }

  /* Before/After labels */
  .ba-label { font-size: 0.65rem; }
  .ba-info h4 { font-size: 1rem; }
  .ba-info p { font-size: 0.85rem; }

  /* Why-us items — tighter spacing */
  .why-item { gap: 14px; }
  .why-item h4 { font-size: 1rem; }
  .why-item p { font-size: 0.9rem; line-height: 1.55; }

  /* Process steps */
  .process-step { padding: 24px 18px; }
  .step-number { font-size: 1.4rem; }
  .step-title { font-size: 1rem; }
  .step-desc { font-size: 0.88rem; }

  /* Contact form card */
  .contact-form-card { padding: 24px 22px; border-radius: var(--radius); }
  .contact-form-card h3 { font-size: 1.2rem; }
  .form-check { font-size: 0.85rem; align-items: flex-start; gap: 10px; }
  .form-check input[type="checkbox"] { margin-top: 2px; width: 18px; height: 18px; }

  /* Contact items */
  .contact-item { gap: 14px; padding: 14px 0; }
  .contact-item-icon { width: 40px; height: 40px; }

  /* CTA banner */
  .cta-banner { padding: 64px 0 88px; } /* extra bottom for sticky bar */
  .cta-banner h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
  .cta-banner p { font-size: 0.95rem; }

  /* Footer — single col, centered */
  .footer { padding: 56px 0 24px; padding-bottom: 88px; } /* extra for sticky */
  .footer-brand p { max-width: 100%; }
  .footer-col h5 { font-size: 0.95rem; margin-bottom: 14px; }
  .footer-col ul { gap: 8px; }
  .footer-col a { padding: 6px 0; display: inline-block; min-height: 36px; }

  /* Container padding */
  .container, .container-wide { padding: 0 18px; }

  /* Navbar always solid on mobile */
  .navbar { background: rgba(35, 35, 51, 0.98); backdrop-filter: blur(12px); }
}

/* Small phones */
@media (max-width: 480px) {
  .stadtteile-grid { grid-template-columns: 1fr; }
  .stadtteil-service { font-size: 0.8rem; }

  .stats-inner { grid-template-columns: 1fr 1fr; }

  .ba-grid { gap: 18px; }

  /* Projects on tiny screens */
  .san-projects-grid { gap: 14px; }
  .project-card { padding: 0; }
  .project-info h4 { font-size: 0.98rem; }
  .project-info p { font-size: 0.85rem; }

  .container, .container-wide { padding: 0 16px; }

  /* Tighter footer */
  .footer-contact-item { font-size: 0.88rem; }
}

/* ════════════════════════════════════════════════════════════════
   STICKY MOBILE CALL-BAR — appears after scrolling
═══════════════════════════════════════════════════════════════ */
.mobile-cta-bar { display: none; }

@media (max-width: 768px) {
  .mobile-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 8px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(35, 35, 51, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255,255,255,0.08);
    z-index: 200;
    transform: translateY(110%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -8px 24px rgba(0,0,0,0.18);
  }
  .mobile-cta-bar.show { transform: translateY(0); }

  .mobile-cta-bar a {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 12px;
    border-radius: 100px;
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
    min-height: 48px;
    line-height: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .mobile-cta-bar a:active { transform: scale(0.97); }

  .mobile-cta-bar svg { width: 18px; height: 18px; flex-shrink: 0; }

  .mobile-cta-bar .mcb-call {
    background: #fff;
    color: #232333;
  }
  .mobile-cta-bar .mcb-form {
    background: var(--palladium, #c8a866);
    color: #fff;
  }
}

/* ════════════════════════════════════════════════════════════════
   ACCESSIBILITY
═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus visible — keyboard navigation */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--palladium, #c8a866);
  outline-offset: 2px;
}

/* ════════════════════════════════════════════════════════════════
   COOKIE-CONSENT-BANNER (DSGVO-konform)
   - 2 Stufen: Banner + Settings-Modal
   - Speichert Consent in LocalStorage
═══════════════════════════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 -12px 40px rgba(0,0,0,0.16);
  z-index: 9999;
  padding: 20px 24px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Libre Franklin', 'Mulish', system-ui, sans-serif;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.cookie-banner-text {
  flex: 1;
  min-width: 280px;
}
.cookie-banner h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 6px;
  font-family: inherit;
}
.cookie-banner p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #555;
  margin: 0;
}
.cookie-banner p a {
  color: #232333;
  text-decoration: underline;
}
.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
  min-height: 44px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease;
}
.cookie-btn:active { transform: scale(0.97); }
.cookie-btn-accept {
  background: #232333;
  color: #fff;
}
.cookie-btn-accept:hover { background: #1a1a26; }
.cookie-btn-essential {
  background: #f0f0f3;
  color: #232333;
}
.cookie-btn-essential:hover { background: #e5e5e9; }
.cookie-btn-settings {
  background: transparent;
  color: #555;
  text-decoration: underline;
  padding: 12px 8px;
}

/* Settings Modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cookie-modal.show { display: flex; }
.cookie-modal-inner {
  background: #fff;
  border-radius: 18px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  font-family: 'Libre Franklin', 'Mulish', system-ui, sans-serif;
}
.cookie-modal h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: #1a1a1a;
}
.cookie-modal > .cookie-modal-inner > p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
  margin: 0 0 24px;
}
.cookie-option {
  background: #f7f7f9;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.cookie-option-text strong {
  display: block;
  font-size: 0.95rem;
  color: #1a1a1a;
  margin-bottom: 4px;
}
.cookie-option-text span {
  font-size: 0.83rem;
  color: #555;
  line-height: 1.5;
}
.cookie-toggle {
  position: relative;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
}
.cookie-toggle input { display: none; }
.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: #d1d1d6;
  border-radius: 26px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.2s ease;
}
.cookie-toggle input:checked + .cookie-toggle-slider { background: #232333; }
.cookie-toggle input:checked + .cookie-toggle-slider::before { transform: translateX(18px); }
.cookie-toggle input:disabled + .cookie-toggle-slider { background: #c8a866; cursor: not-allowed; }
.cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.cookie-modal-actions .cookie-btn { flex: 1; min-width: 140px; }

@media (max-width: 600px) {
  .cookie-banner { padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); }
  .cookie-banner-inner { gap: 16px; }
  .cookie-banner-actions { width: 100%; flex-direction: column; }
  .cookie-btn { width: 100%; }
  .cookie-modal-inner { padding: 26px 22px; border-radius: 16px; }
}

/* When mobile-cta-bar is shown, lift cookie banner above it */
@media (max-width: 768px) {
  .mobile-cta-bar.show ~ .cookie-banner.show {
    /* keep banner above cta bar with stacking */
  }
}
