/* ==========================================================================
   Smartphone Reparatur Brenner — Stylesheet
   Design: modernes, helles Layout mit kräftigen Blautönen aus dem Logo
   ========================================================================== */

/* -------------------- Lokale Schriften (optional) --------------------
   Standardmäßig werden Systemschriften verwendet, damit die Seite ohne
   externe Verbindungen (z. B. Google Fonts CDN) auskommt — siehe
   Datenschutzerklärung. Wer die Original-Typografie (Space Grotesk /
   Inter / JetBrains Mono) nutzen möchte, kann die .woff2-Dateien unter
   /assets/fonts/ ablegen (Anleitung siehe README.md) — die Regeln unten
   greifen dann automatisch, ansonsten fällt der Browser sauber auf die
   Fallback-Schriften zurück.
------------------------------------------------------------------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-600.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-400.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

/* -------------------- Design Tokens -------------------- */
:root {
  /* Farben — helles, modernes Layout mit Blau aus dem Firmenlogo */
  --color-bg: #f4f7fb;
  --color-bg-alt: #ffffff;
  --color-surface: #ffffff;
  --color-surface-raised: #ffffff;
  --color-line: rgba(0, 60, 140, 0.10);
  --color-line-strong: rgba(0, 60, 140, 0.20);

  --color-blue-deep: #005ece;
  --color-blue-bright: #2488ff;
  --color-blue-glow: rgba(36, 136, 255, 0.22);
  --color-blue-tint: rgba(36, 136, 255, 0.08);

  --color-text: #111623;
  --color-text-muted: #4d5768;
  --color-text-faint: #8992a3;

  --color-success: #1a9c56;
  --color-success-tint: rgba(26, 156, 86, 0.10);
  --color-error: #d8303f;
  --color-error-tint: rgba(216, 48, 63, 0.10);

  /* Typografie */
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  /* Abstände */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --max-width: 1180px;
  --header-height: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 1px 2px rgba(17, 22, 35, 0.06);
  --shadow-md: 0 12px 28px -12px rgba(17, 22, 35, 0.14);
  --shadow-lg: 0 24px 48px -18px rgba(17, 22, 35, 0.18);
}

/* -------------------- Reset -------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

p {
  margin: 0 0 1em;
}

button {
  font-family: inherit;
}

/* Sichtbarer Fokus-Zustand für Tastaturnutzung (Barrierefreiheit) */
:focus-visible {
  outline: 2px solid var(--color-blue-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-blue-bright);
  color: #ffffff;
  padding: 0.75em 1.25em;
  z-index: 200;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

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

/* -------------------- Layout Helpers -------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.section {
  padding-block: var(--space-6);
  position: relative;
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-4);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-blue-deep);
  margin-bottom: var(--space-2);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--color-blue-bright);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-blue-glow);
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: var(--space-2);
}

.section-head p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* Feiner Trenner zwischen Sektionen */
.circuit-divider {
  height: 40px;
  width: 100%;
  background-image:
    linear-gradient(90deg, transparent 0%, var(--color-line-strong) 20%, var(--color-line-strong) 80%, transparent 100%);
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: center;
  position: relative;
}

.circuit-divider::before,
.circuit-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-blue-bright);
  box-shadow: 0 0 10px var(--color-blue-glow);
  transform: translateY(-50%);
}

.circuit-divider::before { left: 20%; }
.circuit-divider::after { right: 20%; }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.9em 1.6em;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-blue-bright), var(--color-blue-deep));
  color: #ffffff;
  box-shadow: 0 10px 24px -10px var(--color-blue-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -8px var(--color-blue-glow);
}

.btn-ghost {
  background: #ffffff;
  border-color: var(--color-line-strong);
  color: var(--color-text);
}

.btn-ghost:hover {
  border-color: var(--color-blue-bright);
  background: var(--color-blue-tint);
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* -------------------- Header -------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-line);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65em;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text);
  min-width: 0;
}

.brand img {
  height: 38px;
  width: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-name {
  min-width: 0;
  line-height: 1.25;
}

.brand-name .brand-full {
  display: block;
  font-size: clamp(0.82rem, 2.4vw, 1.02rem);
  white-space: nowrap;
}

.brand-name span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--color-text-faint);
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.main-nav ul {
  display: flex;
  gap: var(--space-3);
}

.main-nav a {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  transition: color 0.2s;
  position: relative;
}

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

/* Nur im aufgeklappten Mobile-Menü sichtbar (Telefon-Link, CTA-Button) */
.nav-only-mobile {
  display: none;
}

.nav-only-mobile a.btn {
  display: flex;
}

.nav-only-mobile .phone-link {
  display: flex;
  padding-block: 0.4em;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.phone-link {
  display: none;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.nav-toggle {
  display: none;
  background: #ffffff;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-sm);
  padding: 0.5em 0.6em;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  margin: 4px 0;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

/* -------------------- Hero -------------------- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
  background:
    radial-gradient(ellipse 55% 45% at 85% 15%, var(--color-blue-tint), transparent 60%),
    radial-gradient(ellipse 45% 35% at 5% 95%, rgba(0, 94, 206, 0.06), transparent 60%),
    var(--color-bg);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 0%, transparent 75%);
  opacity: 0.7;
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-5);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  margin-bottom: var(--space-3);
}

.hero-copy h1 .accent {
  background: linear-gradient(135deg, var(--color-blue-bright), var(--color-blue-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy .lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 46ch;
  margin-bottom: var(--space-4);
}

.hero-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.hero-trust {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}

.hero-trust-item strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-text);
}

.hero-trust-item span {
  font-size: 0.82rem;
  color: var(--color-text-faint);
}

/* Hero-Bildkachel */
.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-line);
  background: linear-gradient(160deg, #eaf1fb, #dbe7fa);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media .media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8em;
  text-align: center;
  padding: var(--space-3);
  color: var(--color-text-faint);
}

.hero-media .media-placeholder svg {
  width: 40px;
  height: 40px;
  color: var(--color-blue-bright);
  opacity: 0.7;
}

.hero-media .media-placeholder small {
  max-width: 26ch;
  font-size: 0.78rem;
}

.hero-media-badge {
  position: absolute;
  left: var(--space-2);
  bottom: var(--space-2);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-sm);
  padding: 0.7em 1em;
  display: flex;
  align-items: center;
  gap: 0.6em;
  box-shadow: var(--shadow-md);
}

.hero-media-badge svg {
  width: 20px;
  height: 20px;
  color: var(--color-success);
  flex-shrink: 0;
}

.hero-media-badge strong {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text);
}

.hero-media-badge span {
  font-size: 0.72rem;
  color: var(--color-text-faint);
}

/* -------------------- Leistungen -------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-line-strong);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-blue-tint);
  color: var(--color-blue-deep);
  margin-bottom: var(--space-2);
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5em;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1em;
}

.device-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
}

.device-tags li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-muted);
  border: 1px solid var(--color-line-strong);
  border-radius: 999px;
  padding: 0.3em 0.7em;
  background: var(--color-bg);
}

.services-note {
  margin-top: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--color-surface);
  border: 1px dashed var(--color-line-strong);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.services-note strong {
  color: var(--color-text);
}

/* -------------------- Bildergalerie (Werkstatt-Einblicke) -------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--space-2);
  height: 420px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: linear-gradient(160deg, #eaf1fb, #dbe7fa);
  box-shadow: var(--shadow-sm);
}

.gallery-item:first-child {
  grid-row: 1 / span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item .media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  text-align: center;
  padding: var(--space-2);
  color: var(--color-text-faint);
}

.gallery-item .media-placeholder svg {
  width: 30px;
  height: 30px;
  color: var(--color-blue-bright);
  opacity: 0.7;
}

.gallery-item .media-placeholder small {
  font-size: 0.72rem;
  max-width: 22ch;
}

/* -------------------- Über uns -------------------- */
.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-5);
  align-items: center;
}

.about-visual {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, #eaf1fb, #dbe7fa);
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-visual .media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8em;
  text-align: center;
  padding: var(--space-3);
  color: var(--color-text-faint);
}

.about-visual .media-placeholder svg {
  width: 40px;
  height: 40px;
  color: var(--color-blue-bright);
  opacity: 0.7;
}

.about-visual .media-placeholder small {
  max-width: 26ch;
  font-size: 0.78rem;
}

.about-list {
  margin-top: var(--space-3);
  display: grid;
  gap: var(--space-2);
}

.about-list li {
  display: flex;
  gap: 0.8em;
  align-items: flex-start;
  color: var(--color-text-muted);
}

.about-list svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-success);
  margin-top: 0.15em;
}

.about-list strong {
  color: var(--color-text);
  display: block;
}

/* -------------------- Kontakt -------------------- */
.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-5);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
}

.info-row {
  display: flex;
  gap: 0.9em;
  align-items: flex-start;
  padding-block: 0.6em;
  border-bottom: 1px solid var(--color-line);
}

.info-row:last-child {
  border-bottom: none;
}

.info-row svg {
  width: 20px;
  height: 20px;
  color: var(--color-blue-deep);
  flex-shrink: 0;
  margin-top: 0.1em;
}

.info-row .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.15em;
}

.info-row a,
.info-row span.value {
  color: var(--color-text);
  font-weight: 500;
}

.map-frame-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-line);
  aspect-ratio: 16 / 10;
  position: relative;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.map-consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8em;
  text-align: center;
  padding: var(--space-3);
  background: linear-gradient(160deg, #eef3fb, #ffffff);
}

.map-consent p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  max-width: 32ch;
  margin: 0;
}

.map-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Formular */
.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.field {
  margin-bottom: var(--space-2);
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5em;
  color: var(--color-text-muted);
}

.field label .req {
  color: var(--color-blue-deep);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--color-bg);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-sm);
  padding: 0.85em 1em;
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--color-blue-bright);
  box-shadow: 0 0 0 3px var(--color-blue-glow);
  outline: none;
  background: #ffffff;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field-error {
  display: none;
  color: var(--color-error);
  font-size: 0.8rem;
  margin-top: 0.4em;
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--color-error);
}

.field.has-error .field-error {
  display: block;
}

.consent-field {
  display: flex;
  gap: 0.7em;
  align-items: flex-start;
  margin-bottom: var(--space-3);
}

.consent-field input {
  margin-top: 0.3em;
  width: auto;
  accent-color: var(--color-blue-bright);
}

.consent-field label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

.consent-field a {
  color: var(--color-blue-deep);
  text-decoration: underline;
}

/* Honeypot-Feld für Spam-Schutz — für Menschen unsichtbar */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  align-items: center;
  gap: 0.7em;
  padding: 0.9em 1.1em;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: var(--space-2);
}

.form-status.is-visible {
  display: flex;
}

.form-status.success {
  background: var(--color-success-tint);
  color: var(--color-success);
  border: 1px solid rgba(26, 156, 86, 0.3);
}

.form-status.error {
  background: var(--color-error-tint);
  color: var(--color-error);
  border: 1px solid rgba(216, 48, 63, 0.3);
}

.form-status svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* -------------------- Footer -------------------- */
.site-footer {
  border-top: 1px solid var(--color-line);
  padding-block: var(--space-4);
  background: var(--color-bg-alt);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6em;
  color: var(--color-text-faint);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.footer-brand img {
  height: 22px;
  width: 22px;
  object-fit: contain;
  opacity: 0.85;
}

.footer-links {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

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

/* -------------------- WhatsApp Floating Button -------------------- */
.whatsapp-float {
  position: fixed;
  right: var(--space-3);
  bottom: var(--space-3);
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -6px rgba(37, 211, 102, 0.55), 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 30px -6px rgba(37, 211, 102, 0.6), 0 2px 8px rgba(0, 0, 0, 0.18);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: #ffffff;
}

.whatsapp-float .wa-tooltip {
  position: absolute;
  right: calc(100% + 0.8em);
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-text);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.5em 0.9em;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}

.whatsapp-float:hover .wa-tooltip {
  opacity: 1;
}

@media (max-width: 760px) {
  .whatsapp-float {
    right: var(--space-2);
    bottom: var(--space-2);
    width: 52px;
    height: 52px;
  }
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
  /* Tooltip auf Touch-Geräten ausblenden, da kein Hover existiert */
  .whatsapp-float .wa-tooltip {
    display: none;
  }
}

/* -------------------- Legal pages (Impressum/Datenschutz) -------------------- */
.legal-page {
  padding-top: calc(var(--header-height) + var(--space-5));
  padding-bottom: var(--space-6);
  min-height: 60vh;
}

.legal-page .container {
  max-width: 820px;
}

.legal-page h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: var(--space-4);
}

.legal-page h2 {
  font-size: 1.3rem;
  margin-top: var(--space-4);
  margin-bottom: 0.6em;
  color: var(--color-blue-deep);
}

.legal-page h3 {
  font-size: 1.05rem;
  margin-top: var(--space-3);
  margin-bottom: 0.5em;
}

.legal-page p,
.legal-page li {
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

.legal-page ul {
  padding-left: 1.3em;
  list-style: disc;
  margin-bottom: 1em;
}

.legal-page a {
  color: var(--color-blue-deep);
  text-decoration: underline;
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1em;
}

.legal-page td {
  padding: 0.5em 0;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-text-muted);
  vertical-align: top;
}

.legal-page td:first-child {
  width: 180px;
  color: var(--color-text-faint);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: var(--space-4);
  color: var(--color-blue-deep);
  font-size: 0.9rem;
}

/* -------------------- Responsive -------------------- */
@media (max-width: 980px) {
  .hero .container,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .about-visual {
    order: -1;
    max-width: 360px;
    margin-inline: auto;
  }

  .hero-media {
    order: -1;
    max-width: 420px;
    margin-inline: auto;
    aspect-ratio: 16 / 11;
  }

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

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 140px);
    height: auto;
  }

  .gallery-item:first-child {
    grid-column: 1 / span 2;
    grid-row: 1;
  }
}

@media (max-width: 760px) {
  .main-nav ul {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    padding: var(--space-3);
    gap: var(--space-2);
    border-bottom: 1px solid var(--color-line);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }

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

  .nav-toggle {
    display: block;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* Auf schmalen Screens reicht Logo + Menü-Button im Header;
     Anruf- und Termin-CTA stehen im aufklappbaren Menü sowie im Hero. */
  .header-cta > .btn-primary {
    display: none;
  }

  .nav-only-mobile {
    display: block;
  }

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

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 160px);
  }

  .gallery-item:first-child {
    grid-column: 1;
    grid-row: 1;
  }

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

  .hero-trust {
    gap: var(--space-3);
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .section {
    padding-block: var(--space-5);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
