/*
  screen.css
  Bildschirm-Stylesheet, mobile-first (Basisgröße ca. 390 px), erweitert
  um Tablet- (ab 48em / ca. 768 px) und Desktop-Anpassungen (ab 80em /
  ca. 1280–1440 px) über zwei Media Queries am Ende der Datei.
*/

:root {
  /* Farben */
  --color-primary-dark: #1c2b3a;   /* dunkles Blau/Anthrazit, Hauptakzent */
  --color-primary-darker: #121d27;
  --color-accent-warm: #b8764f;    /* warm, nicht gelblich */
  --color-accent-red: #a4403b;     /* gedämpftes Rot, greift die paraguayischen Nationalfarben dezent auf */
  --color-beige: #f5f1ea;          /* Beige/Holz, nur dezent */
  --color-text: #1c2b3a;
  --color-text-muted: #55606b;
  --color-surface: #ffffff;
  --color-surface-alt: #f7f5f1;
  --color-border: #dedad2;

  /* Abstände */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Verdichtete Variante für das untere Seitendrittel (ca. -10 %) */
  --space-xl-tight: calc(var(--space-xl) * 0.9);
  --space-lg-tight: calc(var(--space-lg) * 0.9);

  /* Gezielt verdichtete Übergänge Leistungen ↔ Über mich ↔ Drei Fragen
     (ca. -31 % ggü. --space-xl, siehe .services/.about/.faq-videos) */
  --space-transition-tight: 2.75rem;

  /* Typografie: reiner System-Sans-Stack, keine Webfonts */
  --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-size-small: 0.9375rem;    /* ca. 15px */
  --font-size-body: 1.0625rem;     /* 17px */
  --font-size-button: 1rem;        /* 16px */
  --font-size-h3: 1.25rem;         /* ca. 20px */
  --font-size-h2: clamp(1.75rem, 1.52rem + 0.91vw, 2.25rem);   /* fluid ca. 28–36px */
  /* fluid ca. 36–56px; bei unseren Zielbreiten (390/768/1440) bleibt der Wert
     bewusst deutlich unter dem theoretischen Maximum, damit die H1 gegenüber
     dem vorherigen Stand ca. 10–15 % weniger dominant wirkt */
  --font-size-hero: clamp(2.25rem, 2.03rem + 0.87vw, 3.5rem);
  --line-height-body: 1.55;
  --line-height-h1: 1.08;
  --line-height-h2: 1.15;
  --line-height-h3: 1.3;

  /* Header/Brand: mobil ca. 17/13px, Desktop ca. 21/15px */
  --font-size-brand-name: clamp(1.0625rem, 0.95rem + 0.46vw, 1.3125rem);
  --font-size-brand-role: clamp(0.8125rem, 0.76rem + 0.23vw, 0.9375rem);

  /* Layout */
  --content-width: 72rem;
  --radius: 0.5rem;
  --border: 1px solid var(--color-border);

  /* Zentrierender Innenabstand: auf schmalen Screens fixer Abstand,
     ab --content-width wächst er symmetrisch und zentriert den Inhalt
     ohne zusätzliches Wrapper-Element. */
  --container-padding: max(var(--space-md), calc((100% - var(--content-width)) / 2));
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-text);
  background-color: var(--color-surface);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  /* ausgewogener Zeilenumbruch statt harter Umbrüche im Text */
  text-wrap: balance;
  font-size: var(--font-size-hero);
  line-height: var(--line-height-h1);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Zweiter Satz der Hero-Überschrift steht in eigener Zeile, gleich gesetzt
   („Ihr Rechtsanwalt in Paraguay.“ / „Persönlich, verlässlich und vor Ort.“) */
.hero-claim {
  display: block;
}

h2 {
  font-size: var(--font-size-h2);
  line-height: var(--line-height-h2);
  font-weight: 700;
}

h3 {
  font-size: var(--font-size-h3);
  line-height: var(--line-height-h3);
  font-weight: 600;
}

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

a {
  color: inherit;
}

svg {
  display: block;
}

/* Sichtbare Fokus-Zustände für Tastaturbedienung (siehe BRIEFING.md §20) */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent-warm);
  outline-offset: 2px;
}

/* Skip-Link: unsichtbar bis er per Tastatur fokussiert wird */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-primary-dark);
  color: var(--color-surface);
  z-index: 100;
}

.skip-link:focus {
  left: var(--space-sm);
  top: var(--space-sm);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Wiederkehrende Bausteine
   ========================================================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  width: 100%;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-primary-dark);
  font-size: var(--font-size-button);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
}

.button-primary {
  background-color: var(--color-primary-dark);
  color: var(--color-surface);
}

.button-primary:hover,
.button-primary:focus-visible {
  background-color: var(--color-primary-darker);
  border-color: var(--color-primary-darker);
}

.button-secondary {
  background-color: transparent;
  color: var(--color-primary-dark);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background-color: var(--color-surface-alt);
}

.cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.link-more {
  display: inline-block;
  margin-top: var(--space-xs);
  color: var(--color-primary-dark);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.link-more:hover,
.link-more:focus-visible {
  border-bottom-color: currentColor;
}

/* ==========================================================================
   Kopfbereich
   ========================================================================== */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-block: var(--space-md);
  padding-inline: var(--container-padding);
  /* dünner dunkler Streifen als oberer Anker (Hauptakzent des Briefings) */
  border-top: 4px solid var(--color-primary-dark);
  border-bottom: var(--border);
}

.site-header .name {
  font-size: var(--font-size-brand-name);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.site-header .role {
  font-size: var(--font-size-brand-role);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text-muted);
}

/* Trennpunkt im gedämpften Rot wie bei der Ortszeile im Hero */
.role-sep {
  margin-inline: 0.1em;
  color: var(--color-accent-red);
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Sprachumschalter als ruhige Pille: aktive Sprache dunkel gefüllt */
.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: var(--border);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.lang-switch a,
.lang-switch span {
  display: inline-block;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  color: var(--color-text-muted);
  line-height: 1.2;
  text-decoration: none;
}

.lang-switch [aria-current] {
  background-color: var(--color-primary-dark);
  color: var(--color-surface);
}

.lang-switch a:not([aria-current="page"]):hover {
  background-color: var(--color-surface-alt);
  color: var(--color-text);
}

/* Kontakt-Button in der Kopfzeile: erst ab Tablet, mobil fehlt der Platz
   (der WhatsApp-Button im Hero bleibt) */
.header-cta {
  display: none;
}

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

.hero {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-block: var(--space-lg);
  padding-inline: var(--container-padding);
}

.hero-eyebrow {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  align-items: center;
  column-gap: 0.4rem;
  row-gap: 0.6rem;
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-small);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
}

/* schmale Akzentlinie über der Ortszeile */
.hero-eyebrow::before {
  content: "";
  grid-column: 1 / -1;
  width: 2.5rem;
  height: 2px;
  background-color: var(--color-accent-red);
}

.hero-eyebrow svg {
  color: var(--color-accent-red);
}

.hero-content p {
  margin-top: var(--space-md);
  max-width: 40em;
}

.hero-content p.hero-subline {
  max-width: none;
  margin-top: var(--space-sm);
  font-weight: 600;
  color: var(--color-text);
}

/* ==========================================================================
   Video-Rahmen (Hero-Video und „Drei typische Fragen“)
   Natives <video controls>, kein JavaScript. Festes 16:9-Seitenverhältnis
   (width/height-Attribute im HTML) verhindert Layout Shift.
   ========================================================================== */

.video-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--color-primary-darker);
  box-shadow: 0 1px 2px rgba(28, 43, 58, 0.04), 0 8px 24px rgba(28, 43, 58, 0.08);
}

.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

/* Vorschaubild nur für den Druck (siehe print.css) */
.video-print-poster {
  display: none;
}

/* Schaltfläche „Video ansehen“ (wird von js/main.js eingefügt).
   Liegt unten rechts auf dem Vorschaubild, wo auf den Postern freie Wandfläche
   ist, und ersetzt die browsereigenen Play-Buttons (Firefox/Safari), die sich
   nicht gestalten lassen. Ohne JavaScript erscheint sie nicht; dann bleibt die
   normale Bedienung des Browsers. */
.video-play {
  position: absolute;
  right: var(--space-sm);
  bottom: var(--space-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem 0.5rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background-color: rgba(18, 29, 39, 0.82);
  color: #fff;
  font: inherit;
  font-size: var(--font-size-small);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.video-play::before {
  content: "";
  width: 1rem;
  height: 1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4.5l13 7.5-13 7.5z' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
}

.video-play:hover {
  background-color: rgb(18, 29, 39);
}

/* Tastaturfokus: zweifarbiger Ring (weiß + dunkel), auf hellen wie dunklen
   Bildstellen sichtbar; transparenter Outline bleibt für den Kontrastmodus. */
.video-play:focus-visible {
  background-color: rgb(18, 29, 39);
  outline: 2px solid transparent;
  box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--color-primary-darker);
}

/* ==========================================================================
   Vertrauenszeile
   ========================================================================== */

.trust-bar {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding-block: var(--space-lg);
  padding-inline: var(--container-padding);
  background-color: var(--color-surface-alt);
  border-block: var(--border);
}

.trust-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-sm);
}

.trust-item svg {
  flex-shrink: 0;
  color: var(--color-accent-warm);
}

/* Erste Zeile als Kernaussage, darunter der erläuternde Satz */
.trust-lead {
  font-weight: 600;
}

.trust-text p + p {
  margin-top: var(--space-xs);
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
}

/* ==========================================================================
   Leistungen
   ========================================================================== */

.services {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-transition-tight);
  padding-inline: var(--container-padding);
}

.services-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* Link jeweils am Kartenende, damit er bei nebeneinanderstehenden Karten
   auf einer Linie liegt */
.service-card .link-more {
  margin-top: auto;
  align-self: flex-start;
}

/* Editorialere Trennung statt Kartenoptik: dünne Linie zwischen den Einträgen
   (gestapelt: Linie oben; ab Tablet nebeneinander: Linie links, siehe Media Query) */
.service-card + .service-card {
  border-top: var(--border);
  padding-top: var(--space-lg);
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--color-beige);
}

.icon-badge svg {
  color: var(--color-primary-dark);
}

/* ==========================================================================
   Über mich
   ========================================================================== */

.about {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding-block: var(--space-transition-tight);
  padding-inline: var(--container-padding);
}

.about-image {
  position: relative;
}

/* Entwurfs-Hinweis auf Platzhalterfotos; vor Launch samt Markup entfernen */
.draft-flag {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background-color: var(--color-accent-red);
  color: #fff;
  font-size: var(--font-size-small);
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(18, 29, 39, 0.35);
  pointer-events: none;
}

.about-image img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(28, 43, 58, 0.04), 0 8px 24px rgba(28, 43, 58, 0.08);
}

.about-content h2 {
  margin-bottom: var(--space-md);
}

.about-content p + p {
  margin-top: var(--space-sm);
}

/* Zulassungsnummer: ruhige Berufsangabe (Über mich und Footer) */
.credential {
  font-size: var(--font-size-small);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
}

.about-content .credential {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: var(--border);
}

/* ==========================================================================
   Drei typische Fragen (Videos)
   ========================================================================== */

.faq-videos {
  padding-top: var(--space-transition-tight);
  padding-bottom: var(--space-xl);
  padding-inline: var(--container-padding);
}

.video-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.video-card .video-frame {
  margin-bottom: var(--space-xs);
}

.video-title {
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  font-weight: 600;
}

.video-desc {
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
}

/* ==========================================================================
   Familientradition
   ========================================================================== */

.family-tradition {
  padding-block: var(--space-lg);
  padding-inline: var(--container-padding);
  background-color: var(--color-beige);
  color: var(--color-primary-dark);
}

.family-tradition svg {
  margin-bottom: var(--space-xs);
}

.family-tradition h2 {
  /* eigene, niedrigere Obergrenze als der globale H2-Maßstab (36px):
     Vertrauenssignatur statt zweiter Hero, siehe Feinschliff-Vorgabe */
  font-size: clamp(1.75rem, 1.64rem + 0.46vw, 2rem);
  margin-bottom: var(--space-sm);
}

.family-tradition p {
  max-width: 40em;
}

.family-tradition p + p {
  margin-top: var(--space-sm);
}

/* ==========================================================================
   Kontakt
   ========================================================================== */

.contact {
  padding-block: var(--space-xl-tight);
  padding-inline: var(--container-padding);
  text-align: center;
}

.contact h2 {
  margin-bottom: var(--space-xs);
}

.contact .cta-group {
  margin-inline: auto;
  max-width: 24rem;
}

/* ==========================================================================
   Standort
   ========================================================================== */

.location {
  padding-block: var(--space-lg);
  padding-inline: var(--container-padding);
  background-color: var(--color-surface-alt);
}

.location h2 {
  margin-bottom: var(--space-md);
}

.location address {
  font-style: normal;
  margin-bottom: var(--space-md);
  line-height: var(--line-height-body);
}

.location-map {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(28, 43, 58, 0.04), 0 8px 24px rgba(28, 43, 58, 0.08);
}

.location-map img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Legende zu den nummerierten Pins im Kartenbild */
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  margin: var(--space-sm) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--font-size-small);
}

.map-legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.map-legend li::before {
  content: "";
  flex-shrink: 0;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: var(--color-primary-dark);
}

.map-legend li:first-child::before {
  background-color: var(--color-accent-red);
}

/* EXPERIMENT Ortsnamen: Beschriftung der Pins als HTML-Pillen über dem Bild.
   Standard: Pille rechts neben dem Pin; --left links davon. */
.map-label {
  position: absolute;
  transform: translate(0, -50%);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background-color: var(--color-primary-dark);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(18, 29, 39, 0.35);
  pointer-events: none;
}

.map-label--left {
  transform: translate(-100%, -50%);
}

.map-label--office {
  background-color: var(--color-accent-red);
}
/* Sehr schmale Smartphones: rechter Ortsname unter dem Pin, sonst wird er angeschnitten */
@media (max-width: 23.5em) {
  .map-label--below {
    transform: translate(-55%, 55%);
  }
}
/* ENDE EXPERIMENT Ortsnamen */

/* Pflichtangabe der OpenStreetMap-Lizenz (ODbL), unten rechts im Kartenbild */
.map-attribution {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 0.2rem 0.5rem;
  background-color: rgba(255, 255, 255, 0.85);
  color: var(--color-text);
  font-size: 0.75rem;
  line-height: 1.3;
  text-decoration: none;
}

.map-attribution:hover {
  text-decoration: underline;
}

.location .button {
  margin-top: var(--space-md);
}

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

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding-block: var(--space-lg-tight);
  padding-inline: var(--container-padding);
  border-top: var(--border);
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
  text-align: center;
}

.site-footer nav {
  display: flex;
  gap: var(--space-md);
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

/* ==========================================================================
   Rechtliche Seiten (Anbieterinformationen/Datenschutz)
   ========================================================================== */

.legal-page {
  padding-block: var(--space-xl);
  padding-inline: var(--container-padding);
}

/* Lesespalte für Rechtstexte: linksbündig auf der Inhaltsbreite der Seite,
   Zeilenlänge ca. 70 Zeichen */
.legal-page > * {
  max-width: 42rem;
}

.legal-page h1 {
  /* auf sehr schmalen Geräten kleiner, damit „Anbieterinformationen“ in eine Zeile passt */
  font-size: min(var(--font-size-h2), 8vw);
  line-height: var(--line-height-h2);
  overflow-wrap: break-word;
}

/* lange Adressen (URL, E-Mail) umbrechen statt die Seite zu verbreitern */
.legal-page a {
  overflow-wrap: anywhere;
}

.legal-page h2 {
  margin-top: var(--space-xl);
  font-size: var(--font-size-h3);
  line-height: var(--line-height-h3);
}

.legal-page h1 + h2 {
  margin-top: var(--space-lg);
}

.legal-page h1 + *,
.legal-page h2 + *,
.legal-page p + p,
.legal-page p + ul,
.legal-page ul + p {
  margin-top: var(--space-sm);
}

.legal-page ul {
  margin-block: var(--space-sm) 0;
  padding-left: 1.25rem;
}

.legal-page li + li {
  margin-top: var(--space-xs);
}

.site-header .name a {
  text-decoration: none;
}

.site-header .name a:hover {
  text-decoration: underline;
}

/* Sehr schmale Smartphones (≤ 23,5em, ca. 376 px): Namenszeile und
   Sprachumschalter etwas kompakter, damit sie nebeneinander bleiben */
@media (max-width: 23.5em) {
  .site-header {
    gap: var(--space-xs);
  }

  .site-header .name {
    font-size: 1rem;
  }

  .site-header .role {
    font-size: 0.75rem;
  }

  .lang-switch {
    font-size: 0.8125rem;
  }

  .lang-switch a,
  .lang-switch span {
    padding: 0.35rem 0.5rem;
  }
}

/* ==========================================================================
   Mobile-Feinschliff (nur < 48em / ca. 767 px)
   Wirkt ausschließlich unterhalb der Tablet-Grenze; Tablet/Desktop bleiben
   dadurch unverändert (freigegebene Fassungen eingefroren).
   ========================================================================== */

@media (max-width: 47.9375em) {
  :root {
    /* Mobile: ca. 37px (320px) – 40px (390px) – 42px (430px), Obergrenze 44px.
       Tablet/Desktop nutzen weiterhin die unveränderte Basisformel oben. */
    --font-size-hero: clamp(2.3125rem, 1.4rem + 4.55vw, 2.75rem);
    /* Mobile: ca. 29px (320px) – 31px (390px) – 32px (430px) */
    --font-size-h2: clamp(1.8125rem, 1.27rem + 2.73vw, 2rem);
  }

  .hero {
    /* Abstand Buttons → Bild: ca. 30px statt 24px */
    gap: 1.875rem;
  }

  .trust-bar {
    /* vertikales Padding: ca. 30px statt 40px */
    padding-block: 1.875rem;
  }

  .services {
    /* Übergang Leistungen → Über mich weiter verdichtet (Mobile, ca. -24px) */
    padding-bottom: 0;
  }

  .about {
    padding-top: var(--space-md);
    /* Übergang Über mich → Drei typische Fragen deutlich verdichtet:
       zusammen mit .faq-videos padding-top ca. 60px statt 88px */
    padding-bottom: 1.875rem;
  }

  .faq-videos {
    padding-top: 1.875rem;
  }

  .about-image img {
    /* weniger vertikale Fläche als das Tablet/Desktop-Hochformat (4/5) */
    aspect-ratio: 4 / 3;
    object-position: 50% 5%;
  }
}

/* ==========================================================================
   Tablet (ab ca. 768 px)
   ========================================================================== */

@media (min-width: 48em) {
  .cta-group {
    flex-direction: row;
  }

  .site-header {
    padding-block: 1.75rem;
  }

  .site-header .name {
    font-size: 1.375rem;
  }

  .lang-switch {
    font-size: var(--font-size-small);
  }

  .lang-switch a,
  .lang-switch span {
    padding: 0.45rem 0.8rem;
  }

  .header-cta {
    display: inline-flex;
    width: auto;
    padding: 0.55rem 1.1rem;
    font-size: var(--font-size-small);
  }

  .button {
    width: auto;
  }

  /* Hero bleibt bis zur Desktop-Grenze (80em) einspaltig: Text, darunter das
     Video in voller Breite. Das zweispaltige Layout gilt erst ab 80em. */

  .trust-bar {
    flex-direction: row;
    /* Textblöcke beginnen oben (nicht vertikal zentriert); stretch lässt die
       Trennlinie über die volle Höhe laufen */
    align-items: stretch;
  }

  .trust-item {
    flex: 1 1 0;
  }

  .trust-item + .trust-item {
    padding-left: var(--space-lg);
    border-left: var(--border);
  }

  /* Leistungen: zwei Spalten, die dritte Karte darunter über die volle Breite
     (drei Spalten erst ab 60em, siehe unten). Die senkrechten Linien liegen
     mittig in der Spaltenlücke, damit alle Spalten gleich breit bleiben. */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: var(--space-lg);
    row-gap: var(--space-lg);
  }

  .service-card + .service-card {
    position: relative;
    border-top: none;
    padding-top: 0;
  }

  .service-card + .service-card::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--space-lg) / -2);
    border-left: var(--border);
  }

  .service-card:nth-child(3) {
    grid-column: 1 / -1;
    border-top: var(--border);
    padding-top: var(--space-lg);
  }

  .service-card:nth-child(3)::before {
    display: none;
  }

  .about {
    flex-direction: row;
    /* Foto und Text beginnen oben auf derselben Linie (nicht zentriert) */
    align-items: flex-start;
  }

  .about-image {
    flex: 1 1 40%;
  }

  .about-content {
    flex: 1 1 55%;
  }

  .video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }

  .contact .cta-group {
    justify-content: center;
    max-width: none;
  }

  .location {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: var(--space-xl);
    row-gap: var(--space-sm);
  }

  .location h2 {
    flex-basis: 100%;
  }

  .location address {
    margin-bottom: 0;
  }

  .location-map,
  .map-legend {
    flex-basis: 100%;
  }
}

/* ==========================================================================
   Breites Tablet / Desktop (ab 60em, ca. 960 px): Leistungen dreispaltig
   ========================================================================== */

@media (min-width: 60em) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-card:nth-child(3) {
    grid-column: auto;
    border-top: none;
    padding-top: 0;
  }

  .service-card:nth-child(3)::before {
    display: block;
  }
}

/* ==========================================================================
   Desktop (ab ca. 1280 px, Zielgröße ca. 1440 px)
   ========================================================================== */

@media (min-width: 80em) {
  /* Layout A: Ortszeile und Überschrift laufen über beide Spalten, darunter
     links Text und Buttons, rechts das Video (ca. 60 %). .hero-content wird
     dafür „aufgelöst“ (display: contents), seine Kinder liegen direkt im Grid.
     Tablet und Mobil bleiben unverändert. */
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    /* Zeile 6 nimmt überschüssige Videohöhe auf, damit die Absätze links
       ihren normalen Abstand behalten */
    grid-template-rows: repeat(6, auto) 1fr;
    column-gap: var(--space-lg);
    row-gap: 0;
    align-items: start;
  }

  .hero-content {
    display: contents;
  }

  .hero-eyebrow,
  .hero h1,
  .hero-content p.hero-subline {
    grid-column: 1 / -1;
  }

  .hero-content p:not(.hero-subline),
  .hero .cta-group {
    grid-column: 1;
  }

  .hero-image {
    grid-column: 2;
    grid-row: 4 / 8;
    /* gleicher Abstand zur Überschrift wie der erste Absatz */
    margin-top: var(--space-md);
  }

  .hero .button {
    white-space: nowrap;
  }

  /* Längere Beschriftungen (z. B. Spanisch): Buttons umbrechen untereinander,
     statt unter das Video zu laufen */
  .hero .cta-group {
    flex-wrap: wrap;
  }

  .about {
    gap: var(--space-2xl);
  }
}

/* >>> HINTERGRUNDRHYTHMUS (Option A) – ZURÜCKNEHMEN: diesen Block bis zur Zeile
   "<<< HINTERGRUNDRHYTHMUS" löschen, dann gilt wieder der vorherige Stand.
   Idee: weiß und beige wechseln sich ab. „Wie ich arbeite“ wird ein beiges
   Band, ein einziges Beige für alle Bänder, keine Linien am Vertrauensbereich.
   Reihenfolge danach: Hero weiß · Vertrauen beige · Leistungen weiß ·
   Wie ich arbeite beige · Fragen weiß · Familientradition beige · Kontakt weiß ·
   Standort beige · Footer weiß. ================================================ */

:root {
  /* vertikaler Innenabstand der Bänder und der weißen Nachbarn (fluid 40–64 px) */
  --band-padding: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.trust-bar {
  border-block: 0;
}

.about {
  padding-block: var(--band-padding);
  background-color: var(--color-surface-alt);
}

.services {
  padding-bottom: var(--band-padding);
}

.faq-videos {
  padding-top: var(--band-padding);
}

.family-tradition {
  background-color: var(--color-surface-alt);
}

/* <<< HINTERGRUNDRHYTHMUS */
