/*
 * Style sheet for the one‑page website of the Kfz‑Sachverständigenbüro Sabah.
 *
 * This design uses a modern colour palette of dark blues, soft greys and a subtle accent colour.
 * The layout is responsive: navigation collapses into a hamburger menu on small screens,
 * sections have generous spacing, and cards arrange themselves in a grid.
 */

/* ─── Local fonts ─────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/roboto-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/roboto-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/montserrat-600.woff2') format('woff2');
}

/* ─── Local flag icons (fi-at, fi-gb) ────────────────────────────────────── */
.fi {
  display: inline-block;
  width: 1.333em;
  height: 1em;
  background-size: cover;
  background-position: center;
  vertical-align: middle;
}
.fi-at { background-image: url('img/flags/at.svg'); }
.fi-gb { background-image: url('img/flags/gb.svg'); }

/* CSS variables for colours and spacing */
:root {
  --primary: #111111;
  --primary-dark: #000000;
  --secondary: #1a1a1a;
  --accent-blue: #cc0000;
  --accent-green: #cc0000;
  --accent: #cc0000;
  --light-bg: #ffffff;
  --text-dark: #111111;
  --text-light: #ffffff;
  --border-radius: 8px;
  --max-width: 1200px;
  --nav-height: 94px;
  --topbar-height: 38px;
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* prevent horizontal overflow at root level */
  overflow-x: hidden;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-dark);
  background-color: var(--light-bg);
  line-height: 1.6;
  /* prevent body from being wider than viewport */
  overflow-x: hidden;
  width: 100%;
}

/* ─── Top contact bar ────────────────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--topbar-height);
  background-color: #0a0a0a;
  color: #cfd7e4;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  z-index: 1001;
  overflow: hidden;
}

.topbar .contact-line {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

.topbar a {
  color: #cfd7e4;
  text-decoration: none;
}

.topbar a:hover {
  text-decoration: underline;
}

/* ─── Container ─────────────────────────────────────────────────────────── */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ─── Navigation bar ─────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background-color: var(--primary);
  color: var(--text-light);
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: none;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

/* Logo in navbar */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

/* Header logo */
.header-logo {
  height: 88px;
  display: block;
  width: auto;
  border-radius: 0;
  filter: none;
}

/* Nav right group: hamburger + lang-switcher together on the right */
.nav-right {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
}

/* Hamburger — hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* Screen reader only */
.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;
}

/* ─── Nav links ──────────────────────────────────────────────────────────── */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}

.nav-links li a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links li a.active {
  color: var(--accent);
  border-bottom: none;
  border-top: 3px solid var(--accent);
}

.nav-links li a:hover {
  color: var(--accent);
}

/* ─── Hamburger menu ─────────────────────────────────────────────────────── */
.menu-toggle {
  display: none;
}

.hamburger span {
  width: 24px;
  height: 3px;
  background-color: var(--text-light);
  transition: all 0.3s;
  display: block;
}

/* ─── Language switcher ──────────────────────────────────────────────────── */
.lang-switcher {
  position: relative;
  flex-shrink: 0;
}

.lang-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--text-light);
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  transition: background 0.2s;
}

.lang-btn:hover {
  background: rgba(255,255,255,0.22);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--primary);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  list-style: none;
  padding: 0.3rem 0;
  min-width: 140px;
  z-index: 2000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.lang-dropdown.open {
  display: block;
}

.lang-dropdown li button {
  background: none;
  border: none;
  color: var(--text-light);
  width: 100%;
  text-align: left;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}

.lang-dropdown li button:hover {
  background: rgba(255,255,255,0.1);
}

/* ─── Hero section ───────────────────────────────────────────────────────── */
.hero {
  background-color: #0a0a0a;
  background-image:
    linear-gradient(135deg, rgba(0,0,0,0.80) 0%, rgba(140,0,0,0.55) 100%),
    url('img/hero-car.webp');
  background-size: cover;
  background-position: center 40%;
  color: var(--text-light);
  padding: 6rem 0;
  padding-top: calc(6rem + var(--nav-height) + var(--topbar-height));
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
}

/* Hero benefit badges */
.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}

.hero-benefit {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 0.4rem 0.6rem;
  font-size: 0.9rem;
  color: var(--text-light);
  backdrop-filter: blur(2px);
  padding: 0.4rem 0.6rem 0.4rem 0.3rem;
}

.hero-icon {
  font-size: 1.2rem;
}

.hero-label {
  font-size: 0.85rem;
}

/* CTA list inside hero */
.cta-list {
  list-style: none;
  margin-top: 0.75rem;
  padding-left: 0;
}

.cta-list li {
  font-size: 0.8rem;
  color: #dce7f2;
  display: flex;
  align-items: center;
  margin-bottom: 0.25rem;
}

.cta-list li::before {
  content: '✔';
  margin-right: 0.5rem;
  color: var(--accent);
}

/* Hero inner two-column layout */
.hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  gap: 2rem;
}

#hero.section {
  padding-top: 10rem;
}

.hero-left h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.hero-left p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-car {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40%;
  max-width: 480px;
  z-index: 1;
  opacity: 0.5;
  pointer-events: none;
}

/* CTA box */
.cta-box {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  max-width: 320px;
  width: 100%;
}

.phone-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.cta-text strong {
  font-size: 1.2rem;
  color: var(--text-light);
}

.cta-text small {
  font-size: 0.85rem;
  color: #dce7f2;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s, transform 0.2s;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--text-light);
}

.btn-primary:hover {
  filter: brightness(0.9);
  transform: translateY(-2px);
}

/* ─── Sections ───────────────────────────────────────────────────────────── */
.section {
  padding: 4rem 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section.faded {
  opacity: 0.5;
  transform: translateY(0);
  transition: opacity 0.4s ease-out;
}

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

.section-alt {
  background-color: #f1f5fb;
}

.section-soft {
  background-color: #f7f9fc;
}

.section-contrast {
  background-color: #eaf2f8;
  border-top: 3px solid var(--accent-blue);
}

/* Section headings */
section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--primary);
}

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: #ffffff;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--accent-blue);
  display: inline-block;
}

.card p {
  font-size: 0.95rem;
  color: var(--text-dark);
}

.card-features {
  list-style: none;
  padding-left: 0;
  margin-top: 0.5rem;
}

.card-features li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-dark);
}

.card-features li::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-green);
}

/* ─── Card sub-benefit grid ──────────────────────────────────────────────── */
.card-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.card-benefit {
  background: #f1f5fb;
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
}

.card-benefit strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.card-benefit p {
  font-size: 0.76rem;
  color: #5a6a80;
  margin: 0;
  line-height: 1.4;
}

/* ─── Highlights list ────────────────────────────────────────────────────── */
.highlights {
  list-style: none;
  margin-top: 1.5rem;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.highlights li {
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.4;
}

.highlights li::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}

/* ─── About two-column layout ────────────────────────────────────────────── */
.about-inner {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-photo-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background-color: #d0daea;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  border: 3px solid #b0c4de;
  flex-shrink: 0;
}

.about-photo {
  width: 100%;
  max-width: 380px;
  height: 480px;
  border-radius: var(--border-radius-lg, 12px);
  object-fit: cover;
  object-position: top;
  border: 3px solid rgba(204,0,0,0.2);
  flex-shrink: 0;
  box-shadow: var(--shadow-md, 0 4px 20px rgba(0,0,0,0.12));
}

/* ─── About list ─────────────────────────────────────────────────────────── */
.about-list {
  list-style: none;
  margin-top: 2.5rem;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  font-size: 0.95rem;
}

.about-list li {
  background-color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.about-icon {
  font-size: 1.3rem;
  line-height: 1;
  color: var(--accent);
}

/* ─── Process / Ablauf ───────────────────────────────────────────────────── */
.process-list {
  list-style: none;
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.process-horizontal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.process-step {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.process-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.process-icon {
  font-size: 2rem;
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--accent-blue);
}

.process-step h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.process-step p {
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.4;
}

.process-list li {
  background-color: #ffffff;
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  position: relative;
}

.process-list li strong {
  color: var(--primary);
}

/* ─── FAQ ────────────────────────────────────────────────────────────────── */
.faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.faq details {
  background-color: #ffffff;
  border-radius: var(--border-radius);
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 0;
  /* prevent long words from causing overflow */
  overflow-wrap: break-word;
  word-break: break-word;
}

.faq summary {
  font-weight: 500;
  cursor: pointer;
  color: var(--primary);
}

.faq p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* ─── Contact section ────────────────────────────────────────────────────── */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  max-width: 900px;
}

.contact-info h2,
.contact-form h2 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-form label {
  font-weight: 500;
  color: var(--primary);
}

.contact-form input,
.contact-form textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  /* ensure inputs never exceed their container */
  width: 100%;
  max-width: 100%;
}

.contact-form textarea {
  resize: vertical;
}

#contact.section {
  padding-bottom: 3rem;
  margin-bottom: 0;
}

.form-note {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.5rem;
}

/* ─── Benefits ───────────────────────────────────────────────────────────── */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.benefit-card {
  background-color: #ffffff;
  border-radius: var(--border-radius);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: inline-block;
  color: var(--accent);
}

.benefit-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.benefit-card p {
  font-size: 0.9rem;
  color: var(--text-dark);
}

/* ─── Hero benefit highlight ─────────────────────────────────────────────── */
.hero-benefit-highlight {
  background-color: rgba(0, 143, 86, 0.25);
  border: 1px solid rgba(0, 200, 120, 0.4);
}

/* ─── Reviews slideshow ──────────────────────────────────────────────────── */
.reviews-slideshow {
  margin-top: 2rem;
  position: relative;
  min-height: 220px;
}

.review-card {
  background: #ffffff;
  border-radius: var(--border-radius);
  padding: 2rem 2.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
}

.review-card.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.review-stars {
  color: #f5a623;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-style: italic;
  line-height: 1.6;
}

.review-author {
  font-size: 0.9rem;
  color: #1a1a1a;
  font-weight: 600;
  margin-top: auto;
}

.review-date {
  font-size: 0.8rem;
  color: #8a9ab0;
}


.review-cta-note {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #5a6a80;
}

.review-cta-note a {
  color: var(--accent-blue);
  text-decoration: underline;
}

.review-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ─── Contact response time ──────────────────────────────────────────────── */
.contact-response-time {
  display: inline-block;
  margin-top: 0.5rem;
  background-color: rgba(0, 143, 86, 0.1);
  border-left: 3px solid var(--accent-green);
  padding: 0.4rem 0.75rem;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-size: 0.9rem;
  color: var(--text-dark);
}

/* ─── Final CTA section ──────────────────────────────────────────────────── */
.cta-final {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--text-light);
  text-align: center;
}

.cta-final-inner {
  max-width: 700px;
  margin: 0 auto;
}

.cta-final h2 {
  color: var(--text-light);
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.cta-final p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.cta-final-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.section-alt .btn-outline,
.section-soft .btn-outline {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}

.section-alt .btn-outline:hover,
.section-soft .btn-outline:hover {
  background-color: rgba(204, 0, 0, 0.08);
  border-color: var(--accent-blue);
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
footer {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 0.75rem 0;
  margin-top: 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.footer-info strong {
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
}

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

.copyright {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  color: #cbd5e0;
}

/* ─── Gallery ────────────────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.gallery-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--border-radius);
  background-color: #e2e8f0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* ─── Legal pages ────────────────────────────────────────────────────────── */
.legal-text p {
  margin-bottom: 1.5rem;
}

.legal-text h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

/* ─── Floating buttons ───────────────────────────────────────────────────── */
.floating-buttons {
  position: fixed;
  right: 1rem;
  bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 1100;
}

.fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: var(--text-light);
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.fab svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.fab-call {
  background-color: var(--accent-blue);
}

.fab-whatsapp {
  background-color: #25d366;
}

.fab-instagram {
  background-color: #C13584;
}

/* ─── Logo row (Partner & Zertifikat) ───────────────────────────────────── */
.software-tagline {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--primary);
}

.logo-slider {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-slide {
  display: none;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.logo-slide.active {
  display: flex;
}

.logo-slide img {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
}

.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--accent-blue);
  cursor: pointer;
  padding: 0 0.5rem;
  line-height: 1;
}

.slider-prev { left: 0.5rem; }
.slider-next { right: 0.5rem; }

.slider-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.slider-dots .dot {
  width: 8px;
  height: 8px;
  background-color: #cbd5e0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s;
}

.slider-dots .dot.active {
  background-color: var(--accent-blue);
}

.partner-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
}

.partner-left,
.partner-right {
  text-align: center;
}

.certificate-image {
  max-width: 220px;
  width: 100%;
  height: auto;
  margin: 0 auto 1rem;
}

.logo-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  justify-items: center;
  align-items: center;
  margin-top: 1.5rem;
}

.logo-card {
  background-color: #ffffff;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 140px;
  width: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
}

.logo-card:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.logo-card img {
  max-height: 100px;
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ─── Einsatzgebiet ──────────────────────────────────────────────────────── */
.location-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.location-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.area-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
  align-items: flex-start;
}

.area-text-card {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
  color: var(--text-dark);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.area-text-card p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--text-dark);
}

.map-embed iframe {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--border-radius);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* ─── Info columns ───────────────────────────────────────────────────────── */
.info-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: flex-start;
}

.info-column {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-column h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.info-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.info-list li {
  background-color: #ffffff;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  font-size: 0.9rem;
  color: var(--text-dark);
  display: flex;
  align-items: flex-start;
}

.info-column p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

/* ─── Small cards ────────────────────────────────────────────────────────── */
.small-cards {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.small-cards .card {
  font-size: 0.9rem;
  font-weight: 400;
}

/* ─── Image grid ─────────────────────────────────────────────────────────── */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.image-grid img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--border-radius);
  background-color: #e2e8f0;
}

/* ─── Info icon ──────────────────────────────────────────────────────────── */
.info-icon {
  font-size: 1.2rem;
  line-height: 1;
  color: var(--accent-blue);
  margin-right: 0.5rem;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Tablet / large hamburger breakpoint (≤ 768px) ─────────────────────── */
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  /* Nav: show hamburger, hide inline links */
  .nav-links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: var(--primary);
    display: none;
    max-width: 100vw;
    margin-left: 0;
  }

  .nav-links li {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links li a {
    padding: 1rem 1.25rem;
    display: block;
    white-space: normal;
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  /* Lang switcher on mobile: smaller */
  .lang-btn {
    font-size: 0.78rem;
    padding: 0.28rem 0.5rem;
  }

  /* Topbar: compact on mobile */
  :root {
    --topbar-height: 42px;
    --nav-height: 76px;
  }

  .topbar .contact-line {
    gap: 0.75rem;
    font-size: 0.75rem;
  }

  .topbar-extra {
    display: none;
  }

  .header-logo {
    height: 64px;
  }

  /* Hero adjustments */
  .hero {
    min-height: 70vh;
    background-position: center top;
    padding-top: calc(5rem + var(--nav-height) + var(--topbar-height));
  }

  #hero.section {
    padding-top: calc(5rem + var(--nav-height) + var(--topbar-height));
  }

  .hero-left h1 {
    font-size: 2rem;
  }

  .hero-left p {
    font-size: 1rem;
  }

  /* Hero badges: 2-column grid */
  .hero-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .hero-benefit {
    font-size: 0.82rem;
    padding: 0.35rem 0.5rem;
  }

  /* Cards single column */
  .cards {
    grid-template-columns: 1fr;
  }

  /* About inner single column */
  .about-inner {
    grid-template-columns: 1fr;
  }

  .about-photo-placeholder,
  .about-photo {
    width: 200px;
    height: 240px;
    margin: 0 auto;
  }

  /* Review cards single column */
  .review-cards {
    grid-template-columns: 1fr;
  }

  /* Final CTA buttons stack */
  .cta-final-buttons {
    flex-direction: column;
    align-items: center;
  }

  /* About list 2 columns on tablet */
  .about-list {
    grid-template-columns: 1fr 1fr;
  }

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

  /* FAQ single column */
  .faq {
    grid-template-columns: 1fr;
  }

  /* Logo row: 2 columns */
  .logo-row {
    grid-template-columns: 1fr 1fr;
  }

  /* Contact stacked */
  .contact-section {
    grid-template-columns: 1fr;
  }

  /* Einsatzgebiet: stack */
  .area-row {
    grid-template-columns: 1fr;
  }

  .area-text-card {
    min-height: auto;
  }

  /* Floating buttons: slightly smaller */
  .fab {
    width: 48px;
    height: 48px;
  }

  .fab svg {
    width: 20px;
    height: 20px;
  }

  /* Section headings smaller */
  section h2 {
    font-size: 1.6rem;
  }
}

/* ─── Small mobile (≤ 600px) ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  :root {
    --topbar-height: 38px;
    --nav-height: 70px;
  }

  .topbar .contact-line {
    gap: 0.5rem;
    font-size: 0.72rem;
  }

  /* Logo */
  .header-logo {
    height: 60px;
  }

  /* Hero */
  .hero {
    min-height: 60vh;
    padding-top: calc(4rem + var(--nav-height) + var(--topbar-height));
    background-position: center top;
  }

  #hero.section {
    padding-top: calc(4rem + var(--nav-height) + var(--topbar-height));
  }

  .hero-left h1 {
    font-size: 1.65rem;
    line-height: 1.25;
  }

  .hero-left p {
    font-size: 0.95rem;
    max-width: 100%;
  }

  .hero-benefits {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }

  .hero-benefit {
    font-size: 0.78rem;
  }

  .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    /* prevent button from exceeding container */
    max-width: 100%;
  }

  /* Process: single column on very small screens */
  .process-horizontal {
    grid-template-columns: 1fr;
  }

  /* Logo row: 2 columns, smaller cards */
  .logo-row {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .logo-card {
    min-height: 110px;
    padding: 0.75rem;
  }

  .logo-card img {
    max-height: 70px;
    max-width: 130px;
  }

  .map-embed iframe {
    height: 260px;
  }

  /* Footer */
  .footer-links ul {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  /* Floating buttons: smaller + tighter */
  .floating-buttons {
    bottom: 1rem;
    right: 0.75rem;
    gap: 0.5rem;
  }

  .fab {
    width: 44px;
    height: 44px;
  }

  .fab svg {
    width: 18px;
    height: 18px;
  }

  /* Section padding */
  .section {
    padding: 3rem 0;
  }

  section h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
  }
}

/* ─── Extra-small (≤ 480px) ──────────────────────────────────────────────── */
@media (max-width: 480px) {
  :root {
    --topbar-height: 36px;
    --nav-height: 66px;
  }

  /* Container: slightly more breathing room */
  .container {
    width: 94%;
  }

  .header-logo {
    height: 56px;
  }

  .topbar .contact-line {
    font-size: 0.7rem;
    gap: 0.5rem;
    flex-wrap: nowrap;
    justify-content: center;
  }

  /* Hero */
  .hero-left h1 {
    font-size: 1.5rem;
  }

  /* Hero badges: 2 per row, compact */
  .hero-benefits {
    grid-template-columns: 1fr 1fr;
  }

  /* Cards / steps always single column */
  .cards,
  .about-list,
  .process-horizontal,
  .faq {
    grid-template-columns: 1fr;
  }

  .card-benefits {
    grid-template-columns: 1fr;
  }

  /* Logo row: 2 columns */
  .logo-row {
    grid-template-columns: 1fr 1fr;
  }

  /* Inputs full-width */
  .contact-form input,
  .contact-form textarea {
    font-size: 16px; /* prevent iOS zoom on focus */
  }

  /* No hover scale on touch - avoids sticky hover states */
  .logo-card:hover,
  .card:hover,
  .process-step:hover,
  .benefit-card:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }
}

/* ─── Tiny (≤ 360px) ─────────────────────────────────────────────────────── */
@media (max-width: 360px) {
  .topbar .contact-line {
    font-size: 0.7rem;
    gap: 0.2rem 0.4rem;
  }

  .hero-left h1 {
    font-size: 1.35rem;
  }

  .logo-row {
    grid-template-columns: 1fr;
  }

  .hero-benefits {
    grid-template-columns: 1fr;
  }
}
