/* =========================================================
   KFZ Gutachter Varadinov Erlangen — Design System
   ========================================================= */

:root {
  --color-bg: #0a0a0a;
  --color-bg-section: #f4f4f4;
  --color-bg-white: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #5a5a5a;
  --color-text-light: #e5e5e5;
  --color-text-light-muted: #a8a8a8;
  --color-yellow: #ffd400;
  --color-yellow-hover: #ffdd33;
  --color-tuev-blue: #0025c1;
  --color-google-blue: #4285f4;
  --color-google-red: #ea4335;
  --color-google-yellow: #fbbc04;
  --color-google-green: #34a853;
  --color-border: rgba(255, 255, 255, 0.12);
  --color-border-light: rgba(0, 0, 0, 0.08);
  --color-card-dark: rgba(255, 255, 255, 0.04);

  --radius-pill: 999px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 20px 50px rgba(0, 0, 0, 0.12);
  --shadow-pill: 0 6px 20px rgba(0, 0, 0, 0.25);

  --font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;

  --container-max: 1240px;
  --container-pad: clamp(20px, 4vw, 48px);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* `clip` prevents horizontal overflow WITHOUT creating a scroll context
     so position: sticky descendants keep working. */
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  position: relative;
  width: 100%;
  max-width: 100vw;
}

img, svg, video, iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

* {
  min-width: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* =========================================================
   Layout
   ========================================================= */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

section {
  position: relative;
}

.section-dark {
  background: var(--color-bg);
  color: var(--color-text-light);
}

.section-light {
  background: var(--color-bg-section);
  color: var(--color-text);
}

.section-white {
  background: var(--color-bg-white);
  color: var(--color-text);
}

.section-pad {
  padding-top: clamp(64px, 9vw, 120px);
  padding-bottom: clamp(64px, 9vw, 120px);
}

.section-pad-sm {
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

/* =========================================================
   Typography
   ========================================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1, .h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
}

h2, .h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
}

h3, .h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

h4, .h4 {
  font-size: 1.15rem;
}

p {
  font-size: 1rem;
  line-height: 1.65;
  color: inherit;
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-yellow);
  margin-bottom: 18px;
}

.eyebrow-dark {
  color: var(--color-yellow);
}

.muted {
  color: var(--color-text-muted);
}

.muted-light {
  color: var(--color-text-light-muted);
}

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

/* =========================================================
   Header / Navigation
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 0;
  transition: padding 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.is-scrolled {
  padding: 8px 0;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.site-header .container {
  position: relative;
}

/* Body background matches header so the area between header and content
   never flashes white during scroll on mobile (where header is fixed). */
body {
  background: var(--color-bg);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

.logo-link img {
  height: 38px;
  width: auto;
  display: block;
}

.tuev-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-tuev-blue);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  box-shadow: var(--shadow-pill);
  transition: transform var(--transition);
  line-height: 1;
}

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

.tuev-pill img {
  height: 13px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  justify-content: flex-end;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* Desktop layout: menu links absolutely centered in the container;
   button + language toggle flow naturally to the far right. */
@media (min-width: 769px) {
  .main-nav ul {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

.main-nav a {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}

.main-nav a:hover {
  color: var(--color-yellow);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-yellow);
  transition: width var(--transition);
}

.main-nav a:hover::after {
  width: 100%;
}

/* =========================================================
   "Termin buchen" Nav Pill — clean rebuild
   ========================================================= */

a.btn-nav {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 40px;
  padding: 0 28px;
  border: 1.5px solid var(--color-yellow);
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}

a.btn-nav:hover,
a.btn-nav:focus,
a.btn-nav:focus-visible {
  background: var(--color-yellow);
  color: #000000 !important;
  transform: translateY(-1px);
}

/* Disable the underline pseudo so the button doesn't get the nav-link underline */
a.btn-nav::after,
a.btn-nav:hover::after {
  display: none !important;
  content: none !important;
}

/* Mobile floating action cluster — menu centered, WhatsApp on the right */
.mobile-actions {
  /* wrapper is a no-op container; children are fixed-positioned */
}

/* Backdrop that dims the rest of the page when the mobile menu is open */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  z-index: 104;
}

.nav-backdrop.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.menu-toggle,
.whatsapp-fab {
  display: none;
}

/* =========================================================
   Language toggle (DE / EN)
   ========================================================= */

.lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  gap: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.lang-btn {
  display: inline-block;
  width: 28px;
  height: 28px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: 50%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.5;
  transition: opacity var(--transition), transform var(--transition);
  position: relative;
}

/* Flag is painted as a background image so it always 100% covers the circle */
.lang-btn[lang="de"] {
  background-image: url("/assets/flag-de.svg");
  background-color: #DD0000;
}

.lang-btn[lang="en"] {
  background-image: url("/assets/flag-uk.svg");
  background-color: #012169;
}

/* Hide the original <img> child but keep it in DOM for screen readers */
.lang-btn img {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lang-btn:hover {
  opacity: 0.85;
}

.lang-btn.active {
  opacity: 1;
}

/* Inline toggle inside .nav-left next to the TÜV pill — shown on mobile only */
.nav-left .lang-toggle.lang-toggle-inline {
  display: none;
}

.lang-toggle-fab {
  position: fixed;
  bottom: 28px;
  left: 22px;
  z-index: 110;
  display: none;
  padding: 6px 10px;
  gap: 8px;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.45);
}

.lang-toggle-fab .lang-btn {
  width: 26px;
  height: 26px;
}

.menu-toggle {
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  padding: 16px 36px;
  border-radius: 999px;
  color: #fff;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.45);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 110;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s ease;
}

.menu-toggle:hover {
  transform: translateX(-50%) translateY(-1px);
}

.menu-toggle:active {
  transform: translateX(-50%) scale(0.98);
}

.menu-label {
  line-height: 1;
}

.whatsapp-fab {
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 14px 38px rgba(37, 211, 102, 0.4);
  z-index: 110;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
}

.whatsapp-fab:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 18px 44px rgba(37, 211, 102, 0.55);
}

.whatsapp-fab svg,
.whatsapp-fab img {
  width: 28px;
  height: 28px;
  display: block;
}

/* Hamburger lines */
.ham {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 16px;
  position: relative;
  flex-shrink: 0;
}

.ham > span {
  display: block;
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.ham > span:nth-child(1) { top: 2px; }
.ham > span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.ham > span:nth-child(3) { bottom: 2px; }

/* Open state — morph into X */
.menu-toggle[aria-expanded="true"] .ham > span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .ham > span:nth-child(2) {
  opacity: 0;
  transform: translateY(-50%) scaleX(0);
}

.menu-toggle[aria-expanded="true"] .ham > span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  min-width: 220px;
  min-height: 52px;
  box-sizing: border-box;
}

.btn-primary {
  background: transparent;
  color: #fff;
  border-color: var(--color-yellow);
}

.btn-primary:hover {
  background: var(--color-yellow);
  color: #000;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.btn-secondary:hover {
  background: var(--color-yellow);
  border-color: var(--color-yellow);
  transform: translateY(-1px);
}

.btn-arrow {
  font-size: 1.1em;
}

.btn-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.btn-stack .btn {
  width: 100%;
}

.btn-stack .btn-caption {
  font-size: 0.78rem;
  color: var(--color-text-light-muted);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-align: center;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 32px;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  background: var(--color-bg);
  color: var(--color-text-light);
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(80px, 10vw, 140px);
  overflow: hidden;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 18px;
}

.hero-copy h1 .accent {
  color: #fff;
  font-weight: 300;
  display: block;
}

.hero-tagline {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  margin: 0 0 18px;
  color: var(--color-text-light);
  font-weight: 500;
}

.hero-copy p {
  color: var(--color-text-light-muted);
  margin-bottom: 18px;
  max-width: 480px;
}

.hero-copy strong {
  color: #fff;
  font-weight: 600;
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 4px;
  font-size: 0.95rem;
  color: var(--color-text-light);
  font-weight: 500;
}

.stars {
  display: inline-flex;
  gap: 1px;
  color: var(--color-yellow);
  font-size: 1rem;
  letter-spacing: 1px;
}

.google-logo-text {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  font-size: 0.95rem;
}

.google-logo-text span:nth-child(1) { color: var(--color-google-blue); }
.google-logo-text span:nth-child(2) { color: var(--color-google-red); }
.google-logo-text span:nth-child(3) { color: var(--color-google-yellow); }
.google-logo-text span:nth-child(4) { color: var(--color-google-blue); }
.google-logo-text span:nth-child(5) { color: var(--color-google-green); }
.google-logo-text span:nth-child(6) { color: var(--color-google-red); }

/* Portrait with floating badges */
.hero-portrait-wrap {
  position: relative;
  max-width: 460px;
  margin-left: auto;
}

.hero-portrait {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  border-radius: var(--radius-lg);
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
}

.portrait-name {
  text-align: center;
  margin-top: 24px;
}

.portrait-name h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 700;
  margin-bottom: 4px;
  color: #fff;
}

.portrait-name .role {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--color-text-light-muted);
  text-transform: uppercase;
}

.badge {
  position: absolute;
  background: #0a0a0a;
  color: #fff;
  border: 1.5px solid var(--color-yellow);
  border-radius: var(--radius-pill);
  padding: 9px 16px 9px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: var(--shadow-pill);
  z-index: 2;
}

.badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--color-yellow);
}

.badge-tuev {
  background: var(--color-tuev-blue);
  border-color: var(--color-tuev-blue);
  color: #fff;
  font-weight: 600;
}

.badge-tuev img {
  height: 11px;
  width: auto;
}

.badge-tl {
  top: 8%;
  left: -8%;
}

.badge-tr {
  top: 2%;
  right: -6%;
}

.badge-bl {
  bottom: 20%;
  left: -10%;
}

.badge-br {
  bottom: 8%;
  right: -8%;
}

/* =========================================================
   USP Bar (under hero)
   ========================================================= */

.usp-bar {
  background: var(--color-bg);
  color: var(--color-text-light);
  padding: 36px 0 60px;
  border-top: 1px solid #2a2a2a;
}

.usp-bar > .container {
  max-width: none;
  padding-left: clamp(24px, 4vw, 60px);
  padding-right: clamp(24px, 4vw, 60px);
}

.usp-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.usp-bar-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px clamp(14px, 1.6vw, 26px);
  border-right: 1px solid #2a2a2a;
}

.usp-bar-item:last-child {
  border-right: none;
}

.usp-bar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-yellow);
}

.usp-bar-icon svg,
.usp-bar-icon img {
  width: 44px;
  height: 44px;
  display: block;
}

.usp-bar-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.usp-bar-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.005em;
  line-height: 1.25;
}

.usp-bar-sub {
  font-size: 0.83rem;
  font-weight: 400;
  color: var(--color-text-light-muted);
  line-height: 1.4;
}

/* =========================================================
   Service Process Section
   ========================================================= */

.service-section {
  background: var(--color-bg-section);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.service-grid > :first-child {
  position: sticky;
  top: 90px;
  align-self: start;
}

@media (max-width: 1024px) {
  .service-grid > :first-child {
    position: static;
    top: auto;
  }
}

.process-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 32px;
}

.process-step {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}

.process-step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.process-step-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-yellow);
}

.process-step-icon svg,
.process-step-icon img {
  width: 32px;
  height: 32px;
  display: block;
}

.process-step h3 {
  margin-bottom: 4px;
  font-size: 1.08rem;
}

.process-step p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* =========================================================
   Services / Leistungen Cards
   ========================================================= */

.leistungen-block h2 {
  margin-bottom: 38px;
}

.leistungen-list {
  display: grid;
  gap: 28px;
}

.leistungen-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.leistungen-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.leistungen-card .card-content {
  padding: 32px 28px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.leistungen-card .eyebrow-small {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.leistungen-card h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0;
}

.leistungen-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0;
}

.leistungen-card .btn-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  padding: 12px 26px;
  background: #0a0a0a;
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1.5px solid #0a0a0a;
  transition: all var(--transition);
  white-space: nowrap;
}

.leistungen-card .btn-card:hover {
  background: var(--color-yellow);
  color: #000;
  border-color: var(--color-yellow);
  transform: translateY(-1px);
}

.leistungen-card .card-img-wide {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f7f7f7;
  overflow: hidden;
}

.leistungen-card .card-img-wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.leistungen-card:hover .card-img-wide img {
  transform: scale(1.04);
}

/* =========================================================
   Google Reviews
   ========================================================= */

.reviews-section {
  background: var(--color-bg-white);
}

.reviews-header {
  text-align: center;
  margin-bottom: 50px;
}

.reviews-header h2 {
  margin-bottom: 18px;
}

.reviews-summary {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 28px;
  background: #fafafa;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-pill);
  font-weight: 500;
}

.reviews-summary .rating-big {
  font-size: 1.05rem;
  font-weight: 600;
}

.reviews-summary .stars {
  font-size: 1.2rem;
}

.reviews-summary .google-logo-text {
  font-size: 1.4rem;
  font-weight: 500;
  margin-left: 4px;
}

/* ----- Reviews slider ----- */
.reviews-slider-wrap {
  position: relative;
}

.reviews-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 360px);
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 4px 16px;
  overscroll-behavior-x: contain;
  /* Let touch-vertical scrolling pass through to the page;
     only horizontal pan/zoom is captured by the slider. */
  touch-action: pan-x pinch-zoom;
}

.reviews-slider::-webkit-scrollbar {
  display: none;
}

.reviews-slider > .review-card {
  scroll-snap-align: start;
  height: auto;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-card);
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: all var(--transition);
}

.slider-nav:hover {
  background: var(--color-yellow);
  color: #000;
  border-color: var(--color-yellow);
  transform: translateY(-50%) scale(1.05);
}

.slider-nav svg {
  width: 20px;
  height: 20px;
}

.slider-nav[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
}

.slider-prev {
  left: -10px;
}

.slider-next {
  right: -10px;
}

@media (max-width: 768px) {
  .reviews-slider {
    grid-auto-columns: min(85%, 320px);
  }
  .slider-nav {
    display: none;
  }
}

.review-card {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all var(--transition);
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  font-size: 1.1rem;
  letter-spacing: 0;
}

.review-avatar.c-red    { background: #db4437; }
.review-avatar.c-blue   { background: #4285f4; }
.review-avatar.c-green  { background: #0f9d58; }
.review-avatar.c-amber  { background: #f4b400; color: #1a1a1a; }
.review-avatar.c-purple { background: #ab47bc; }
.review-avatar.c-pink   { background: #ec407a; }
.review-avatar.c-orange { background: #f97316; }
.review-avatar.c-indigo { background: #3f51b5; }
.review-avatar.c-teal   { background: #009688; }
.review-avatar.c-cyan   { background: #00acc1; }
.review-avatar.c-grey   { background: #6b7280; }

.review-meta .name {
  font-weight: 600;
  font-size: 0.98rem;
  margin: 0;
}

.review-meta .rating-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.review-meta .rating-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1;
}

.review-meta .stars {
  color: var(--color-yellow);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  line-height: 1;
}

.review-card .stars {
  color: var(--color-yellow);
  font-size: 1rem;
}

.review-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0;
}

.review-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border-light);
  padding-top: 12px;
  margin-top: 4px;
}

.review-footer svg {
  width: 14px;
  height: 14px;
}

.reviews-cta {
  text-align: center;
  margin-top: 40px;
}

.reviews-cta a {
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-yellow);
  padding-bottom: 3px;
}

.reviews-cta a:hover {
  color: var(--color-tuev-blue);
}

/* =========================================================
   Why Varadinov — dark detailed USP section
   ========================================================= */

.why-section {
  background: var(--color-bg);
  color: var(--color-text-light);
  position: relative;
  overflow: hidden;
}

.why-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 212, 0, 0.06), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(0, 37, 193, 0.08), transparent 50%);
  pointer-events: none;
}

.why-section .container {
  position: relative;
  z-index: 1;
}

.why-intro {
  max-width: 820px;
  margin: 0 auto 56px;
  text-align: center;
}

.why-intro h2 {
  color: #fff;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

.why-intro .lead {
  color: var(--color-text-light-muted);
  margin: 0 auto;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.4vw, 36px);
}

.why-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: clamp(28px, 3vw, 40px);
  transition: all var(--transition);
}

.why-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 212, 0, 0.4);
  transform: translateY(-3px);
}

.why-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.why-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 212, 0, 0.12);
  color: var(--color-yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-card-icon svg,
.why-card-icon img {
  width: 30px;
  height: 30px;
  display: block;
}

.why-card h3 {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
}

.why-card p {
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--color-text-light-muted);
  margin: 0 0 12px;
}

.why-card p:last-child {
  margin-bottom: 0;
}

.why-conclusion {
  max-width: 760px;
  margin: 56px auto 0;
  text-align: center;
}

.why-conclusion p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-light);
  margin: 0;
}

@media (max-width: 768px) {
  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-card-head {
    gap: 14px;
  }

  .why-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .why-card-icon svg,
  .why-card-icon img {
    width: 26px;
    height: 26px;
  }
}

/* =========================================================
   FAQ
   ========================================================= */

.faq-section {
  background: var(--color-bg-section);
}

.faq-header {
  text-align: center;
  margin-bottom: 44px;
}

.faq-header .eyebrow {
  color: var(--color-text-muted);
}

.faq-header h2 {
  font-family: var(--font-sans);
  font-weight: 700;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  transition: color var(--transition);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  width: 28px;
  height: 28px;
  display: block;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background-color: transparent;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a5a5a' stroke-width='2.4' stroke-linecap='round'><path d='M12 5v14M5 12h14'/></svg>");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 14px 14px;
  transition: all var(--transition);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  background-color: var(--color-yellow);
  border-color: var(--color-yellow);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2.6' stroke-linecap='round'><path d='M5 12h14'/></svg>");
}

.faq-item summary:hover {
  color: var(--color-text);
}

.faq-item summary:hover::after {
  border-color: rgba(0, 0, 0, 0.45);
}

.faq-answer {
  padding: 0 4px 26px;
  color: var(--color-text-muted);
  font-size: 0.97rem;
  line-height: 1.65;
}

.faq-answer p + p {
  margin-top: 10px;
}

/* =========================================================
   Contact Section
   ========================================================= */

.contact-section {
  background: var(--color-bg);
  color: var(--color-text-light);
}

.contact-section h2 {
  color: #fff;
  margin-bottom: 14px;
}

.contact-section p {
  color: var(--color-text-light-muted);
  max-width: 540px;
  margin-bottom: 50px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.contact-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--color-yellow);
}

.contact-card .label {
  font-size: 0.98rem;
  font-weight: 600;
  color: #fff;
}

.contact-card .value {
  font-size: 0.92rem;
  color: var(--color-yellow);
  font-weight: 500;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  background: var(--color-bg);
  color: var(--color-text-light-muted);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 50px;
}

.footer-brand .logo-link img {
  height: 28px;
  margin-bottom: 18px;
}

.footer-brand address {
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-brand .name {
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.footer-brand a {
  color: var(--color-yellow);
}

.footer-brand a:hover {
  text-decoration: underline;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 600;
}

.footer-col ul li {
  margin-bottom: 9px;
}

.footer-col a {
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--color-yellow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-size: 0.85rem;
}

.footer-bottom .legal-links {
  display: flex;
  gap: 22px;
}

.footer-bottom a:hover {
  color: var(--color-yellow);
}

/* =========================================================
   Subpage / Article Layouts
   ========================================================= */

.page-hero {
  background: var(--color-bg);
  color: var(--color-text-light);
  padding: 80px 0 70px;
  text-align: left;
}

.page-hero .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-light-muted);
  margin-bottom: 22px;
}

.page-hero .breadcrumbs a:hover {
  color: var(--color-yellow);
}

.page-hero .breadcrumbs .sep {
  opacity: 0.5;
}

.page-hero h1 {
  margin-bottom: 18px;
}

.page-hero .lead {
  color: var(--color-text-light-muted);
  max-width: 720px;
}

.article {
  padding: clamp(60px, 8vw, 100px) 0;
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
}

.article-body h2 {
  margin: 48px 0 18px;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  margin: 30px 0 12px;
}

.article-body p {
  margin-bottom: 18px;
  color: var(--color-text);
  line-height: 1.75;
}

.article-body ul, .article-body ol {
  margin: 0 0 22px 22px;
  padding-left: 6px;
}

.article-body ul li, .article-body ol li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.article-body ul li {
  list-style: disc;
}

.article-body ol li {
  list-style: decimal;
}

.article-body strong {
  font-weight: 600;
  color: var(--color-text);
}

.article-body .callout {
  background: #fff8d6;
  border-left: 4px solid var(--color-yellow);
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  margin: 28px 0;
}

.article-body .callout p:last-child {
  margin-bottom: 0;
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 38px 0;
}

.usp-card {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  text-align: left;
}

.usp-card .ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff8d6;
  color: var(--color-tuev-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.usp-card .ico svg {
  width: 22px;
  height: 22px;
}

.usp-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.usp-card p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0;
}

.cta-band {
  background: var(--color-bg);
  color: var(--color-text-light);
  padding: 60px 0;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 14px;
}

.cta-band p {
  color: var(--color-text-light-muted);
  margin-bottom: 28px;
}

.cta-band .cta-row {
  justify-content: center;
  margin-top: 0;
}

/* =========================================================
   Ratgeber / Guide slider on homepage (compact card variant)
   ========================================================= */

.ratgeber-slider-section {
  background: var(--color-bg-section);
}

.ratgeber-slider {
  grid-auto-columns: minmax(300px, 360px);
}

.rg-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
  scroll-snap-align: start;
}

.rg-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.rg-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1a1a;
}

.rg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.rg-card:hover .rg-img img {
  transform: scale(1.04);
}

.rg-tag {
  display: inline-block;
  width: fit-content;
  background: #0a0a0a;
  color: var(--color-yellow);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 18px 20px 8px;
}

.rg-card h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 20px 8px;
  color: var(--color-text);
}

.rg-card p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0 20px 20px;
}

/* =========================================================
   Ratgeber / Guide page — Google Posts style cards
   ========================================================= */

.guide-grid-section {
  background: var(--color-bg-section);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 40px);
}

@media (max-width: 820px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
}

.guide-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.guide-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1a1a;
}

.guide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.guide-card:hover .guide-img img {
  transform: scale(1.04);
}

.guide-body {
  padding: 28px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.guide-tag {
  display: inline-block;
  width: fit-content;
  background: #0a0a0a;
  color: var(--color-yellow);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.guide-card h2 {
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
}

.guide-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0;
}

.guide-card .btn-card {
  align-self: flex-start;
  margin-top: 6px;
  padding: 11px 22px;
  background: #0a0a0a;
  color: #fff;
  border: 1.5px solid #0a0a0a;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all var(--transition);
}

.guide-card .btn-card:hover {
  background: var(--color-yellow);
  color: #000;
  border-color: var(--color-yellow);
  transform: translateY(-1px);
}

/* =========================================================
   Legal pages (Impressum / Datenschutz / Imprint / Privacy)
   — dark background, white text, left-aligned for readability
   ========================================================= */

body.legal-page {
  background: var(--color-bg);
}

body.legal-page .page-hero {
  background: var(--color-bg);
}

body.legal-page .article {
  background: var(--color-bg);
  color: #fff;
}

body.legal-page .article-body h2,
body.legal-page .article-body h3 {
  color: #fff;
}

body.legal-page .article-body p,
body.legal-page .article-body li,
body.legal-page .article-body em {
  color: rgba(255, 255, 255, 0.85);
}

body.legal-page .article-body strong {
  color: #fff;
}

body.legal-page .article-body a {
  color: var(--color-yellow);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.legal-page .article-body a:hover {
  color: #fff;
}

/* =========================================================
   Service detail pages — centred layout, dark background, white text
   ========================================================= */

body.service-detail {
  background: var(--color-bg);
}

body.service-detail .page-hero {
  text-align: center;
  background: var(--color-bg);
  padding-bottom: 50px;
}

body.service-detail .page-hero .breadcrumbs {
  justify-content: center;
}

body.service-detail .page-hero h1,
body.service-detail .page-hero .lead {
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
}

body.service-detail .article {
  background: var(--color-bg);
  color: #fff;
}

body.service-detail .article-body {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

body.service-detail .article-body h2,
body.service-detail .article-body h3 {
  color: #fff;
  text-align: center;
}

body.service-detail .article-body p,
body.service-detail .article-body li {
  color: rgba(255, 255, 255, 0.82);
}

body.service-detail .article-body strong {
  color: #fff;
}

body.service-detail .article-body ul,
body.service-detail .article-body ol {
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  display: inline-block;
  max-width: 620px;
}

body.service-detail .article-body .callout {
  background: rgba(255, 212, 0, 0.08);
  border-left-color: var(--color-yellow);
  color: rgba(255, 255, 255, 0.9);
  text-align: left;
}

body.service-detail .article-body .callout p,
body.service-detail .article-body .callout strong {
  color: rgba(255, 255, 255, 0.9);
}

body.service-detail .usp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: left;
}

@media (max-width: 700px) {
  body.service-detail .usp-grid {
    grid-template-columns: 1fr;
  }
}

body.service-detail .usp-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  padding: 28px 26px;
}

body.service-detail .usp-card h3 {
  color: #fff;
  text-align: left;
}

body.service-detail .usp-card p {
  color: rgba(255, 255, 255, 0.75);
}

body.service-detail .usp-card .ico {
  background: rgba(255, 212, 0, 0.12);
  color: var(--color-yellow);
}

/* Services overview page (/leistungen/) */
.services-overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
}

.overview-card {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.4fr;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.overview-card:nth-child(even) {
  grid-template-columns: 1.4fr minmax(280px, 1fr);
}

.overview-card:nth-child(even) .overview-img {
  order: 2;
}

.overview-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.overview-img {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background: #f4f4f4;
}

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

.overview-card:hover .overview-img img {
  transform: scale(1.04);
}

.overview-body {
  padding: clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.overview-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4a4a4a;
}

.overview-body h2 {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  margin: 0;
}

.overview-body p {
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0;
}

.overview-list {
  list-style: none;
  margin: 4px 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.overview-list {
  display: grid;
  gap: 10px;
}

.overview-list li {
  position: relative;
  padding-left: 36px;
  font-size: 0.94rem;
  color: var(--color-text);
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  min-height: 24px;
}

/* Material Symbols `task_alt` — check inside a circle outline, here filled black */
.overview-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #0a0a0a;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960' fill='%23ffffff'><path d='m424-296 282-282-56-56-226 226-114-114-56 56 170 170Z'/></svg>");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 18px 18px;
}

.btn-card-dark {
  align-self: flex-start;
  margin-top: 10px;
  padding: 13px 28px;
  background: #0a0a0a;
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1.5px solid #0a0a0a;
  min-width: 0;
  min-height: 0;
  transition: all var(--transition);
}

.btn-card-dark:hover {
  background: var(--color-yellow);
  color: #000;
  border-color: var(--color-yellow);
  transform: translateY(-1px);
}

@media (max-width: 820px) {
  .overview-card,
  .overview-card:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .overview-card:nth-child(even) .overview-img {
    order: 0;
  }
  .overview-img {
    min-height: 220px;
    aspect-ratio: 16 / 9;
  }
}

/* City landing pages */
.geo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 30px 0;
}

.geo-grid a {
  display: block;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 500;
  transition: all var(--transition);
}

.geo-grid a:hover {
  border-color: var(--color-yellow);
  background: #fff8d6;
  transform: translateY(-1px);
}

/* =========================================================
   Responsive
   ========================================================= */

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

  /* On 2-col layout: right border only on left col, bottom border on top row */
  .usp-bar-item {
    border-right: none;
    border-bottom: 1px solid #2a2a2a;
    padding: 18px clamp(10px, 2vw, 22px);
  }

  .usp-bar-item:nth-child(odd) {
    border-right: 1px solid #2a2a2a;
  }

  .usp-bar-item:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

@media (max-width: 700px) {
  .usp-bar-grid {
    grid-template-columns: 1fr;
  }

  .usp-bar-item,
  .usp-bar-item:nth-child(odd) {
    border-right: none;
    border-bottom: 1px solid #2a2a2a;
    padding: 18px 4px;
  }

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

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .hero-portrait-wrap {
    max-width: 380px;
    margin: 0 auto;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .menu-toggle,
  .whatsapp-fab {
    display: inline-flex;
  }

  /* Mobile: header is fixed for reliable top-pinning on touch devices */
  .site-header {
    position: fixed;
  }

  .site-header .container {
    gap: 0;
    padding-left: 16px;
    padding-right: 16px;
  }

  body {
    padding-top: 62px;
  }

  /* Desktop language toggle hides on mobile, inline header toggle takes over */
  .main-nav .lang-toggle {
    display: none;
  }

  /* nav-left expands across the full mobile header so the toggle can push right */
  .nav-left {
    flex: 1 1 100%;
    width: 100%;
    gap: 12px;
    align-items: center;
  }

  /* Logo nudged minimally up so the V-checkmark sits optically centered */
  .nav-left .logo-link {
    margin-top: -2px;
  }

  /* Inline mobile toggle — pushed to the far right of the header */
  .nav-left .lang-toggle.lang-toggle-inline {
    display: inline-flex !important;
    margin-left: auto;
    padding: 5px 8px;
    gap: 6px;
  }

  .nav-left .lang-toggle.lang-toggle-inline .lang-btn {
    width: 26px;
    height: 26px;
  }

  .lang-toggle-fab {
    display: none !important;
  }

  .main-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    max-height: 92vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 48px 24px 100px;
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 105;
    gap: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
  }

  .main-nav.open {
    transform: translateY(0);
    visibility: visible;
  }

  /* Small grab handle at the top */
  .main-nav::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.18);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    margin-bottom: 20px;
  }

  .main-nav li {
    width: 100%;
    text-align: center;
  }

  .main-nav a {
    font-size: 0.92rem;
    padding: 10px 4px;
    display: block;
    text-align: center;
    letter-spacing: 0.12em;
    font-weight: 500;
  }

  .main-nav .btn-nav {
    width: auto;
    min-width: 0;
    min-height: 0;
    padding: 10px 26px;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    margin: 4px auto 0;
    align-self: center;
    text-transform: uppercase;
  }

  .site-header {
    padding: 12px 0;
  }

  .logo-link img {
    height: 34px;
  }

  .nav-left {
    gap: 10px;
  }

  .nav-left .tuev-pill {
    padding: 8px 14px;
  }

  .nav-left .tuev-pill img {
    height: 12px;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    width: 100%;
  }

  .btn-stack {
    width: 100%;
    min-width: 0;
  }

  .btn,
  .btn-nav {
    min-width: 0;
    width: 100%;
  }

  .menu-toggle {
    width: auto;
    min-width: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .badge {
    font-size: 0.7rem;
    padding: 6px 10px;
    gap: 6px;
  }

  .badge svg, .badge img {
    width: 11px;
    height: 11px;
  }

  .hero-portrait-wrap {
    max-width: min(380px, 92%);
  }

  /* On mobile, hide the long label text and show the short data-attribute version */
  .badge-label { font-size: 0; }
  .badge-label::after {
    content: attr(data-short);
    font-size: 0.7rem;
    display: inline-block;
  }

  .badge-tl { top: 2%; left: 0; }
  .badge-tr { top: -2%; right: 0; }
  .badge-bl { bottom: 18%; left: 0; }
  .badge-br { bottom: 4%; right: 0; }
}

@media (max-width: 480px) {
  :root {
    --container-pad: 18px;
  }
}

/* =========================================================
   Utility / Misc
   ========================================================= */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   Scroll-triggered animations (GPU-only: transform + opacity)
   Slow + graceful, "expo-out" easing for premium feel.
   Respects prefers-reduced-motion automatically via @media below.
   Hero / above-the-fold content is NOT animated so LCP stays measurable.
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* Variants */
.reveal-fade { transform: none; }
.reveal-fade.visible { opacity: 1; }

.reveal-scale {
  opacity: 0;
  transform: scale(0.96);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children inside a group — longer steps for a graceful cascade */
.stagger-group > .reveal {
  transition-delay: 0ms;
}
.stagger-group > .reveal:nth-child(2) { transition-delay: 140ms; }
.stagger-group > .reveal:nth-child(3) { transition-delay: 280ms; }
.stagger-group > .reveal:nth-child(4) { transition-delay: 420ms; }
.stagger-group > .reveal:nth-child(5) { transition-delay: 560ms; }
.stagger-group > .reveal:nth-child(6) { transition-delay: 700ms; }
.stagger-group > .reveal:nth-child(7) { transition-delay: 840ms; }
.stagger-group > .reveal:nth-child(8) { transition-delay: 980ms; }

/* Hero entry animation removed — was preventing Lighthouse LCP detection.
   Hero content (H1 + portrait) renders immediately so LCP can be measured.
   Subtle scroll-triggered reveals on below-the-fold sections are kept. */

/* Micro-interaction: pill buttons subtle press feedback */
.btn:active,
a.btn-nav:active,
.btn-card:active,
.btn-card-dark:active {
  transform: translateY(0) scale(0.985);
  transition-duration: 0.1s;
}

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