/* ============================================
   VARIABLES & RESETS
   ============================================ */
:root {
  --dark: #0e1a22;
  --dark-deep: #09131a;
  --text: #162129;
  --muted: #65717a;
  --muted-2: #41505a;
  --accent: #0a83bb;
  --accent-hover: #0970a0;
  --accent-soft: #eaf6fb;
  --accent-border: #b9dfef;
  --bg: #f4f6f7;
  --card: #ffffff;
  --line: #e1e6e9;
  --nav-muted: #87939a;
  --field-bg: #162a35;
  --field-border: #29424f;
  --field-placeholder: #c7d0d5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c7d0d5; border-radius: 3px; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

.section-tag {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.section-header {
  margin-bottom: 32px;
}

.section-title {
  font-size: clamp(24px, 5vw, 38px);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1.5px solid rgba(185, 223, 239, 0.4);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(10, 131, 187, 0.2);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid var(--accent-border);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn-full {
  width: 100%;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--dark);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.header.scrolled {
  background: rgba(14, 26, 34, 0.97);
  border-bottom: 1px solid var(--field-border);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--nav-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}

.nav-link:hover {
  color: #fff;
}

.cta-btn {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 20px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}

.cta-btn:hover {
  background: var(--accent-hover);
}

.mobile-menu-btn {
  display: flex;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  align-items: center;
  justify-content: center;
}

.mobile-menu {
  background: var(--dark-deep);
  padding: 16px 16px 24px;
  display: none;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu.active {
  display: flex;
}

.mobile-nav-link {
  color: var(--field-placeholder);
  font-size: 16px;
  text-decoration: none;
  font-weight: 500;
}

.mobile-cta-btn {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  margin-top: 8px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: var(--dark);
  overflow: hidden;
  position: relative;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 19, 26, 0.88) 0%, rgba(9, 19, 26, 0.6) 55%, rgba(9, 19, 26, 0.25) 100%);
}

.hero-content {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 16px 56px;
}

.hero-inner {
  max-width: 620px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 131, 187, 0.18);
  color: var(--accent-soft);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid rgba(185, 223, 239, 0.35);
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: clamp(28px, 7vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 20px;
  letter-spacing: -0.025em;
}

.hero-title-accent {
  display: inline;
  color: var(--accent);
}

.hero-desc {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(199, 208, 213, 0.9);
  max-width: 500px;
  margin: 0 0 32px;
}

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

.hero-stat {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  background: rgba(14, 26, 34, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 14px 20px;
  border: 1px solid rgba(185, 223, 239, 0.2);
  flex-wrap: wrap;
}

.hero-stat-value {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.hero-stat-accent {
  color: var(--accent);
}

.hero-stat-label {
  color: var(--nav-muted);
  font-size: 11px;
  font-weight: 500;
  margin-top: 3px;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(185, 223, 239, 0.2);
}

/* ============================================
   SERVICES
   ============================================ */
.services-section {
  background: var(--bg);
  padding: 56px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 24px 20px;
  box-shadow: 0 2px 8px rgba(15, 28, 38, 0.04);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover,
.service-card.expanded {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  box-shadow: 0 8px 28px rgba(15, 28, 38, 0.09);
}

.service-icon {
  color: var(--accent);
  margin-bottom: 14px;
}

.service-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

.service-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 14px;
}

.service-long {
  display: none;
  border-top: 1px solid var(--accent-border);
  padding-top: 14px;
  margin-bottom: 14px;
}

.service-card.expanded .service-long {
  display: block;
}

.service-long p {
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.service-long p + p {
  margin-top: 12px;
}

.service-toggle {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  margin-top: auto;
}

.service-toggle svg {
  transition: transform 0.2s;
}

.service-card.expanded .service-toggle svg {
  transform: rotate(90deg);
}

/* ============================================
   PROBLEM SECTION
   ============================================ */
.problem-section {
  background: var(--accent-soft);
  padding: 48px 0;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.problem-title {
  font-size: clamp(20px, 5vw, 34px);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.problem-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 24px;
}

.problem-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.problem-item {
  background: var(--card);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--accent-border);
  box-shadow: 0 2px 12px rgba(15, 28, 38, 0.05);
}

.problem-check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.problem-text {
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  font-weight: 500;
}

/* ============================================
   PROCESS
   ============================================ */
.process-section {
  background: var(--card);
  padding: 56px 0;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.process-card {
  padding: 12px 16px 12px 0;
}

.process-num {
  font-size: clamp(36px, 8vw, 48px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  opacity: 0.9;
}

.process-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 8px;
}

.process-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   ABOUT
   ============================================ */
.about-section {
  background: var(--bg);
  padding: 56px 0;
}

.about-photo {
  border-radius: 18px;
  overflow: hidden;
  height: 240px;
  background: #c7d0d5;
  margin-bottom: 32px;
  position: relative;
}

.about-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 19, 26, 0.55) 0%, transparent 50%);
}

.about-photo-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
}

.about-photo-title {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.about-photo-sub {
  color: rgba(199, 208, 213, 0.85);
  font-size: 12px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.about-heading {
  font-size: clamp(22px, 5vw, 36px);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.about-text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 18px;
}

.qualifications-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.qualifications-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.qualification-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qualification-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qualification-text {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.location-card {
  background: var(--accent);
  border-radius: 14px;
  padding: 18px 22px;
}

.location-card-title {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.location-card-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

/* ============================================
   CERTIFICATION
   ============================================ */
.cert-section {
  background: var(--accent-soft);
  padding: 56px 0;
}

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

.cert-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.cert-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
}

.cert-card {
  background: var(--card);
  border-radius: 14px;
  padding: 20px 22px;
  border: 1px solid var(--accent-border);
  box-shadow: 0 4px 16px rgba(15, 28, 38, 0.05);
}

.cert-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.cert-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

.cert-card-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.cert-image-card {
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--accent-border);
  box-shadow: 0 8px 28px rgba(15, 28, 38, 0.07);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
}

.cert-image-header {
  width: 100%;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Bild-Wrapper übernimmt den verbleibenden Platz der Karte, damit die
   Zertifikats-Einbettung nie größer wird als die danebenliegenden
   Qualifikations-Karten (.cert-cards) — beide Spalten werden per grid
   "align-items: stretch" auf gleiche Höhe gebracht. */
.cert-image-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 220px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}

.cert-image-link {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

/* Das DESAG-Badge ist ein kleines, natives PNG (186×200px). Es wird bewusst
   NICHT hochskaliert (kein object-fit:cover/contain über 100%), sondern nur
   bei Bedarf verkleinert — so bleibt es gestochen scharf und wirkt nie
   größer als die danebenliegenden Qualifikations-Karten. */
.cert-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

.cert-image-fallback-link {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-top: 1px solid var(--line);
  background: var(--card);
  flex-shrink: 0;
  transition: background 0.15s;
}

.cert-image-fallback-link:hover {
  background: var(--accent-soft);
}

/* ============================================
   CONTACT
   ============================================ */
.contact-section {
  background: var(--dark);
  padding: 56px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.contact-heading {
  font-size: clamp(22px, 5vw, 36px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.contact-sub {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 28px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  color: var(--field-placeholder);
  font-size: 13px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: 10px;
  padding: 12px 16px;
  color: #fff;
  font-size: 15px;
  outline: none;
  font-family: inherit;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
}

.file-input-label {
  background: var(--field-bg);
  border: 1.5px dashed var(--field-border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--nav-muted);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.15s;
}

.file-input-label:hover {
  border-color: var(--accent);
}

.privacy-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin-top: 4px;
}

.privacy-label input {
  margin-top: 2px;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.privacy-label span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.privacy-link {
  color: var(--accent);
  text-decoration: none;
}

/* Dezente, EINHEITLICHE Fehlermarkierung der Datenschutz-Checkbox: nur ein
   Farbwechsel (Text + Checkbox-Akzentfarbe) — bewusst KEIN zusätzlicher
   Rahmen/Outline um Checkbox und/oder Label, da das optisch überladen wirkt.
   Der eigentliche Hinweis steht im .field-error-text darunter. */
.privacy-label.field-error input {
  accent-color: #e0625f;
}

.privacy-label.field-error span {
  color: #e0625f;
}

.field-error-text {
  color: #e0625f;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  margin: -8px 0 0;
}

/* Honeypot: für Menschen unsichtbar, aber im DOM vorhanden (Spam-Schutz) */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.required-mark {
  color: #e0625f;
}

.form-hint {
  font-size: 12px;
  color: var(--nav-muted);
  margin: 4px 0 0;
}

.form-error {
  background: #3a1f1f;
  border: 1px solid #7a3535;
  color: #ffb4b0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.form-group input:invalid.touched,
.form-group textarea:invalid.touched {
  border-color: #e0625f;
}

.form-group input.field-error,
.form-group textarea.field-error {
  border-color: #e0625f;
}

.form-success {
  background: var(--card);
  border-radius: 22px;
  padding: 48px 32px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(15, 28, 38, 0.08);
}

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 26px;
  font-weight: 800;
}

.success-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
}

.success-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.contact-side {
  padding-top: 8px;
}

.contact-eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.direct-contact {
  margin-bottom: 32px;
}

.direct-phone {
  display: block;
  color: #fff;
  font-size: clamp(20px, 5vw, 30px);
  font-weight: 800;
  text-decoration: none;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.direct-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.location-block {
  border-top: 1px solid var(--field-border);
  padding-top: 28px;
  margin-bottom: 28px;
}

.location-address {
  font-style: normal;
  color: var(--nav-muted);
  font-size: 15px;
  line-height: 1.7;
}

.response-time-card {
  background: var(--accent-soft);
  border-radius: 14px;
  padding: 18px 20px;
  border: 1px solid var(--accent-border);
}

.response-time-title {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.response-time-text {
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark-deep);
  border-top: 1px solid var(--field-bg);
  padding: 40px 0 28px;
}

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

.footer-logo-img {
  height: 30px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  margin-bottom: 14px;
  opacity: 0.85;
}

.footer-desc {
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
}

.footer-title {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--muted-2);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.15s;
}

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

.footer-phone {
  display: block;
  color: var(--field-placeholder);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 8px;
}

.footer-email {
  display: block;
  color: var(--muted-2);
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 18px;
}

.footer-address {
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid var(--field-bg);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer-bottom span {
  color: var(--muted-2);
  font-size: 12px;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: var(--muted-2);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-legal-links a:hover {
  color: var(--accent);
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 100;
  background: var(--dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.cookie-banner.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner-text {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--field-placeholder);
  margin: 0;
}

.cookie-banner-text a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  justify-content: flex-end;
}

.cookie-banner-accept {
  padding: 9px 18px;
  font-size: 13px;
  border-radius: 9px;
}

/* ============================================
   LEGAL PAGES (Impressum, Datenschutz)
   ============================================ */
.legal-hero {
  background: var(--accent-soft);
  padding: 40px 0 28px;
  text-align: center;
}

.legal-hero .section-tag {
  text-align: center;
}

.legal-content-section {
  background: var(--card);
  padding: 40px 0 56px;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
}

.legal-container h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--dark);
  margin: 32px 0 14px;
}

.legal-container h2:first-child {
  margin-top: 0;
}

.legal-container h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin: 26px 0 10px;
}

.legal-container p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 20px;
}

.legal-container ul {
  margin: 0 0 20px;
  padding-left: 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.legal-container a {
  color: var(--accent);
  text-decoration: none;
}

/* Höhere Spezifität als ".legal-container a" nötig, sonst überschreibt die
   Link-Regel oben die weiße Schriftfarbe und der Button-Text wird unsichtbar
   (blauer Text auf blauem Button). */
.legal-container a.legal-back-link,
.legal-back-link {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  margin-top: 12px;
  margin-bottom: 32px;
}

/* ============================================
   RESPONSIVE — MOBILE FIRST BREAKPOINTS
   ============================================ */

/* Mobile ≤ 640px: Scrollbar rechts optisch ausblenden — Scrollen bleibt per
   Touch, Mausrad und Tastatur vollständig funktionsfähig. */
@media (max-width: 640px) {
  html,
  body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Legacy Edge/IE */
  }

  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, neueres Edge */
    width: 0;
    height: 0;
  }
}

/* Tablet ≥ 641px */
@media (min-width: 641px) {
  .container {
    padding: 0 24px;
  }

  .hero-content {
    padding: 72px 24px 64px;
  }

  .services-section,
  .process-section,
  .about-section,
  .cert-section,
  .contact-section {
    padding: 72px 0;
  }

  .problem-section {
    padding: 64px 0;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .about-photo {
    height: 320px;
  }

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

  .cookie-banner {
    left: auto;
    right: 20px;
    bottom: 20px;
    margin: 0;
  }
}

/* Desktop ≥ 1001px — matches original design breakpoint */
@media (min-width: 1001px) {
  .container {
    padding: 0 24px;
  }

  .header-inner {
    padding: 0 24px;
    height: 64px;
  }

  .logo {
    height: 36px;
  }

  .desktop-nav {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }

  .hero-content {
    padding: 100px 24px 88px;
  }

  .hero-badges {
    margin-bottom: 36px;
  }

  .hero-title {
    margin-bottom: 20px;
  }

  .hero-desc {
    font-size: 17px;
    margin-bottom: 40px;
  }

  .hero-stat {
    margin-top: 48px;
  }

  .hero-stat-value {
    font-size: 26px;
  }

  .hero-stat-label {
    font-size: 12px;
  }

  .services-section {
    padding: 96px 0;
  }

  .section-header {
    margin-bottom: 56px;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .problem-section {
    padding: 88px 0;
  }

  .problem-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
  }

  .problem-title {
    font-size: clamp(22px, 2.8vw, 34px);
  }

  .problem-desc {
    font-size: 16px;
  }

  .process-section {
    padding: 96px 0;
  }

  .process-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }

  .process-card {
    padding: 28px 28px 28px 0;
  }

  .about-section {
    padding: 96px 0;
  }

  .about-photo {
    height: 380px;
    margin-bottom: 56px;
  }

  .about-photo-label {
    bottom: 28px;
    left: 32px;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
  }

  .about-heading {
    font-size: clamp(24px, 2.8vw, 36px);
  }

  .about-text {
    font-size: 16px;
  }

  .cert-section {
    padding: 96px 0;
  }

  .cert-header {
    margin-bottom: 56px;
  }

  .cert-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
  }

  .contact-section {
    padding: 96px 0;
  }

  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: start;
  }

  .contact-side {
    padding-top: 64px;
  }

  .footer {
    padding: 48px 0 32px;
  }

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

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Small phones ≤ 380px extra tightening */
@media (max-width: 380px) {
  .hero-buttons .btn {
    width: 100%;
  }

  .hero-stat {
    width: 100%;
  }
}

