/* ==========================================================================
   harstconsulting.de - Stylesheet
   Ersetzt Elementor, Crocoblock und jQuery der bisherigen WordPress-Seite.
   Aufbau: Tokens -> Grundlagen -> Layout -> Bausteine -> Kopf/Fuss -> Seiten
   ========================================================================== */

/* --------------------------------------------------------------------------
   Schriften (selbst gehostet, kein externer Aufruf)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/jakarta-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/jakarta-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Merriweather";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/merriweather-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Merriweather";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/merriweather-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   Tokens - uebernommen aus dem bisherigen Elementor-Design
   -------------------------------------------------------------------------- */
:root {
  --blue: #305eab;          /* Akzentfarbe, Buttons, Links            */
  --blue-dark: #26497f;     /* Hover-Zustand                          */
  --navy: #253958;          /* dunkle Karten                          */
  --navy-line: #172233;     /* Trennlinie auf dunklem Grund           */
  --hero-from: #b4bee0;     /* Verlauf oben links                     */
  --hero-to: #305eab;       /* Verlauf unten rechts                   */
  --ink: #191919;           /* Ueberschriften                         */
  --ink-soft: #1b1b1b;
  --text: #272727;          /* Fliesstext                             */
  --muted: rgba(39, 39, 39, 0.52);
  --grey: #efefef;          /* helle Sektionsflaeche                  */
  --grey-line: #dcdcdc;
  --white: #fff;

  --font-head: "Merriweather", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI",
    Roboto, sans-serif;

  --container: 1140px;
  --gutter: 15px;
  --radius: 10px;
  --radius-lg: 45px;

  --section-y: 100px;       /* Standardabstand zwischen Sektionen     */
  --section-y-sm: 75px;
}

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

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;      /* Grundgroesse wie auf der bisherigen Seite */
  line-height: 1.5;     /* = 24px */
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
}

p { margin: 0 0 0.8em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: 0.35em; }

/* Sichtbarer Fokus fuer Tastaturbedienung */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

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

/* Sprungmarke zum Inhalt */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 20px;
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
  text-decoration: none;
}

/* Icons aus dem SVG-Sprite */
.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  display: inline-block;
  vertical-align: -0.125em;
  flex: none;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 860px; }

.section { padding-block: var(--section-y); }
.section--sm { padding-block: var(--section-y-sm); }
.section--grey { background: var(--grey); }
.section--tight-top { padding-top: var(--section-y-sm); }

/* Einzelabstaende, wie sie die bisherige Seite je Abschnitt verwendet.
   Die beiden Bild-Text-Bloecke bilden zusammen einen Rhythmus:
   oben 75, dazwischen nur 15+15, unten 100. */
.section--paar-oben  { padding-block: 75px 15px; }
.section--paar-unten { padding-block: 15px 100px; }
.section--faq        { padding-block: 50px 125px; }

/* Zweispaltiges Bild-Text-Raster.
   Die bisherige Seite nutzt nicht ueberall 50/50: bei der Galerie ist die
   Bildspalte rund viermal so breit wie der Text, bei der FAQ umgekehrt. */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.split--reverse .split__media { order: 2; }
/* Bei diesen beiden ruecken die Spalten enger zusammen, damit die breite
   Spalte dieselbe Breite erreicht wie bisher. */
.split--wide-media  { grid-template-columns: 4fr 1fr; gap: 20px; }
.split--wide-body   { grid-template-columns: 1fr 4fr; gap: 20px; }
.split--top { align-items: start; }

/* Kleine Bildmarke ueber einer Ueberschrift */
.split__mark { width: 300px; margin-bottom: 20px; }

/* Buttonreihe unter einem Textblock */
.split__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

/* Allgemeines Kartenraster */
.grid {
  display: grid;
  gap: 30px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* --------------------------------------------------------------------------
   Typografie-Bausteine
   -------------------------------------------------------------------------- */
/* Ueberschriftenstufen wie auf der bisherigen Seite:
   30px in Bild-Text-Abschnitten, 38px ueber ganzen Sektionen,
   40px im Banner mit Hintergrundbild. Zeilenhoehe jeweils 1.0. */
.h-section {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}
.h-section--lg { font-size: 38px; }
.h-section--xl { font-size: 40px; }
/* Der Abschnitt "Sprechen Sie doch mal mit uns" steht luftiger */
.h-section--airy { line-height: 1.5; }

.h-serif {                     /* Merriweather-Ueberschriften         */
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
}
.lead {
  font-size: 18px;
  line-height: 1.5;
}
.eyebrow {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: 0;
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.btn:hover,
.btn:focus {
  background: var(--blue-dark);
  color: var(--white);
  text-decoration: none;
}
.btn--light {
  background: var(--white);
  color: var(--blue);
}
.btn--light:hover { background: var(--grey); color: var(--blue-dark); }

/* Grosse Variante im Banner */
.btn--lg { font-size: 18px; }

/* Kleine Variante: die beiden Knoepfe "Anrufen" und "E-Mail" auf der
   Kontaktseite sind etwas zierlicher und kaum gerundet. */
.btn--sm {
  font-size: 15px;
  font-weight: 500;
  border-radius: 3px;
}

/* Zweitrangige Aktion: reiner Textknopf ohne Flaeche
   (auf der bisherigen Seite z. B. "Kontakt zu uns") */
.btn--text {
  padding: 0;
  border-radius: 0;
  background: none;
  color: #353535;
}
.btn--text:hover,
.btn--text:focus {
  background: none;
  color: var(--blue);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Kopfbereich
   -------------------------------------------------------------------------- */
/* Zwei Ausfuehrungen wie auf der bisherigen Seite:
   - Startseite: durchsichtig ueber dem Farbverlauf, helles Logo
   - alle anderen Seiten: weiss, dunkles Logo, dunkle Navigation */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 100;
  width: 100%;
}
.site-header--light {
  /* "relative" statt "static": nur positionierte Elemente werten z-index aus.
     Ohne das verschwindet das Untermenue hinter dem folgenden Abschnitt. */
  position: relative;
  z-index: 100;
  background: var(--white);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 75px;
}
.site-header--light .header__inner { min-height: 86px; }

.header__logo img { width: 168px; height: auto; }

/* Logo umschalten: hell auf dem Farbverlauf, dunkel auf weissem Grund */
.header__logo--hell { display: block; }
.header__logo--dunkel { display: none; }
.site-header--light .header__logo--hell { display: none; }
.site-header--light .header__logo--dunkel { display: block; }

.site-header--light .nav__link { color: var(--ink); }
.site-header--light .nav__link:hover { color: var(--blue); }
.site-header--light .nav__link[aria-current="page"] { border-bottom-color: var(--ink); }
.site-header--light .header__phone { color: var(--ink); }
.site-header--light .header__phone:hover { color: var(--blue); }
.site-header--light .nav-toggle { color: var(--ink); }
/* Das ausgeklappte Menue bleibt dunkel, deshalb dort wieder helle Schrift */
.site-header--light .nav[data-open="true"] .nav__link { color: var(--grey); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__list li { margin: 0; }

.nav__link {
  display: block;
  padding: 13px 20px;
  color: var(--grey);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav__link:hover { color: var(--white); text-decoration: none; }
.nav__link[aria-current="page"] { border-bottom-color: var(--white); }

/* Untermenues */
.nav__item--has-sub { position: relative; }
.nav__toggle-sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav__caret { width: 0.7em; height: 0.7em; }

.nav__sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--navy);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav__item--has-sub:hover > .nav__sub,
.nav__item--has-sub:focus-within > .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__sub .nav__link { padding: 10px 20px; border-bottom: 0; white-space: nowrap; }
.nav__sub .nav__link:hover { background: rgba(255, 255, 255, 0.08); }

/* dritte Ebene (Werbetechnik) */
.nav__sub .nav__item--has-sub > .nav__sub {
  top: 0;
  left: 100%;
  border-radius: var(--radius);
}

.header__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  font-size: 20px;
}
.header__phone:hover { color: var(--grey); text-decoration: none; }

/* Menue-Schalter und Schliessen-Knopf (nur mobil sichtbar) */
.nav__close { display: none; }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
/* Masse aus der bisherigen Seite uebernommen: Gesamthoehe 850px,
   Inhalt beginnt 236px unter der Oberkante. */
.hero {
  position: relative;
  padding-top: 236px;
  padding-bottom: 381px;
  background: linear-gradient(48deg, var(--hero-from) 0%, var(--hero-to) 86%);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}
.hero::before {                      /* feine Kreislinien im Hintergrund */
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/bg_circular_lines.png") center / cover no-repeat;
  opacity: 0.35;
  pointer-events: none;
}
.hero > * { position: relative; }

.hero__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
}
.hero__display {
  display: block;
  min-height: 108px;
  margin-top: 0;
  font-family: var(--font-head);
  font-size: 72px;
  font-weight: 700;
  line-height: 108px;
  color: var(--white);
}
.hero__text {
  max-width: 700px;
  margin: 10px auto 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--white);
}
/* --------------------------------------------------------------------------
   Titelband der Unterseiten
   Ersetzt den Farbverlauf der Startseite. Drei Ausfuehrungen wie bisher:
   gekachelte Grafik (300px), eigenes Foto (375px) und schlicht ohne Bild.
   -------------------------------------------------------------------------- */
.page-band {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 300px;
  background-image: url("../img/grafik-schriftzug.png");
  background-size: contain;
  background-position: center;
  background-repeat: repeat;
}
/* Fast deckende weisse Flaeche ueber dem Muster - so bleibt es als feine
   Struktur sichtbar und der Titel gut lesbar (wie auf der bisherigen Seite:
   weisse Ueberlagerung mit 96 % Deckkraft). */
.page-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--white);
  opacity: 0.96;
}
.page-band > * { position: relative; }

.page-band__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
}

/* Ausfuehrung mit eigenem Foto (Werbetechnik-Unterseiten, Messezubehoer).
   Darueber liegt - wie bisher - eine weisse Flaeche mit 60 % Deckkraft,
   damit der dunkle Titel auf jedem Foto lesbar bleibt. */
.page-band--foto {
  min-height: 375px;
  padding-block: 75px 30px;
  background-size: cover;
  background-position: left top;
  background-repeat: no-repeat;
}
.page-band--foto::before { opacity: 0.6; }

/* Titelband mit Anfragekarte: links der Titel, rechts das Formular.
   Die Karte ragt unten aus dem Band heraus, deshalb bekommt der folgende
   Abschnitt genug Abstand. */
.page-band--zweispaltig { align-items: center; padding-block: 34px; }
.page-band__raster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  width: 100%;
}
.anfragekarte {
  padding: 20px 20px 18px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 14px 38px rgba(23, 34, 51, 0.14);
}
.anfragekarte__titel {
  margin: 0 0 12px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}
/* Kompakte Fassung fuer die Karte im Titelband: die Karte soll das Band
   nicht auseinanderziehen (Vorbild: 263px hoch bei 375px Bandhoehe). */
.form--kompakt { gap: 10px; }
.form--kompakt .form__row { gap: 10px; }
.form--kompakt .form__control { padding: 7px 14px; font-size: 15px; }
.form--kompakt textarea.form__control { min-height: 68px; }
.form--kompakt .form__note { margin: 2px 0 0; font-size: 12px; line-height: 1.4; }

.btn--block { display: block; width: 100%; }

/* Schlichte Ausfuehrung ohne Bild (Rechtstexte). Dort steht der Titel
   in Merriweather, nicht in der Grotesk der uebrigen Seiten. */
.page-band--schlicht {
  min-height: 0;
  padding-block: 120px 40px;
  background: none;
}
.page-band--schlicht::before { display: none; }
.page-band--schlicht .page-band__title {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 600;
}

/* Rueckverweis unter dem Seitentitel */
.page-band__back { margin: 14px 0 0; font-size: 16px; }
.page-band__back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
}
.page-band__back .icon { width: 0.8em; height: 0.8em; }

/* Wechselnder Begriff im Hero.
   Fuenf Woerter teilen sich einen 15-Sekunden-Zyklus; jedes ist 3 Sekunden
   sichtbar. Die Woerter liegen uebereinander, damit die Zeile nicht springt. */
.rotator {
  display: block;
  position: relative;
}
.rotator__word {
  position: absolute;
  left: 50%;
  top: 0;
  width: max-content;
  transform: translateX(-50%);
  opacity: 0;
  /* "both" sorgt dafuer, dass vor dem Start der 0%-Zustand gilt - sonst
     wuerden vor der ersten Runde alle Woerter uebereinander stehen. */
  animation: rotator-fade 15s infinite both;
  animation-delay: calc(var(--i) * 3s);
}
/* Laeuft keine Animation (Druck, alte Browser, abgeschaltete Effekte),
   bleibt genau das erste Wort sichtbar statt alle uebereinander. */
.rotator__word:first-child { opacity: 1; }
@keyframes rotator-fade {
  0%              { opacity: 0; transform: translate(-50%, 14px); }
  2%, 18%         { opacity: 1; transform: translate(-50%, 0); }
  20%, 100%       { opacity: 0; transform: translate(-50%, -14px); }
}
/* Ohne Animation bleibt das erste Wort dauerhaft stehen. */
@media (prefers-reduced-motion: reduce) {
  .rotator__word { opacity: 0; animation: none; }
  .rotator__word:first-child { opacity: 1; }
}

/* --------------------------------------------------------------------------
   Dunkle Leistungskarte (ueberlappt den Hero)
   -------------------------------------------------------------------------- */
.service-card {
  position: relative;
  z-index: 2;
  margin-top: -363px;   /* Ueberlappung wie auf der bisherigen Seite */
  margin-bottom: 0;
}
/* Die Karte ist breiter als der uebrige Inhalt (1200px statt 1140px). */
.service-card > .container { max-width: 1200px; padding-inline: 0; }
.service-card__inner {
  padding: 35px 25px;
  background: var(--navy);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  color: var(--white);
}
.service-card__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  padding-top: 10px;
  padding-bottom: 53px;
  border-bottom: 1px solid var(--navy-line);
}
.service-card__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  color: var(--white);
  text-align: center;
}
.service-card__item:hover { text-decoration: none; }
.service-card__item:hover .service-card__label { text-decoration: underline; }
.service-card__item .icon { width: 50px; height: 50px; }
.service-card__label {
  margin: 0;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  color: var(--white);
}
.service-card__text {
  margin: 0;
  padding-top: 53px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Ablauf-Schritte ("Sprechen Sie doch mal mit uns")
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.step__num {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  color: var(--muted);
  text-align: right;   /* wie auf der bisherigen Seite */
}
.step__title {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}
.step__text { margin: 0; font-size: 16px; line-height: 1.5; }

/* --------------------------------------------------------------------------
   Merkmal-Karten (Icon + Titel + Text)
   -------------------------------------------------------------------------- */
.feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature__icon {
  width: 46px;
  height: 46px;
  color: var(--blue);
}
.feature__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}
.feature__text { margin: 0; font-size: 16px; line-height: 1.5; }

/* Karte mit Titel, Text und Button */
.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 25px 15px;
  background: var(--white);
  border-radius: 15px;
}
.section--grey .card { background: var(--white); }
.card__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}
.card p { margin: 0; font-size: 16px; line-height: 1.5; }
.card p:last-child { margin-top: auto; padding-top: 8px; }

/* Kachel mit Foto als Kopf - so sehen die Leistungen auf der
   Werbetechnik-Uebersicht aus: Bild oben (220px, unten ausgerichtet),
   darunter der weisse Textteil, aussen 15px Rundung. */
.card--foto {
  padding: 0;
  border-radius: 15px;
  overflow: hidden;
  gap: 0;
}
.card__foto {
  height: 220px;
  background-color: var(--grey);
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}
.card--foto .card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding: 25px 15px;
}
.card--foto .card__body p:last-child { margin-top: auto; padding-top: 8px; }

/* Auf den Standortseiten zeigen die Kachelfotos Produktaufnahmen - die
   wirken mittig beschnitten besser als unten ausgerichtet. */
.card--foto-mitte .card__foto { background-position: center; }

/* Groessere Ausfuehrung: auf "Leistungen" sind es zwei breite Kacheln
   mit hoeherem Foto. */
.card--foto-gross .card__foto { height: 295px; background-position: center; }
.card--foto-gross .card__body { padding: 25px 20px; }
.card--foto-gross p { font-size: 18px; line-height: 1.5; }

/* Schlichte Ausfuehrung ohne Flaeche - so stehen die Leistungsbloecke
   auf der Seite "Leistungen": groessere Ueberschrift, groesserer Text. */
.card--schlicht {
  padding: 10px;
  background: none;
  border-radius: 0;
  gap: 16px;
}
.card--schlicht .card__title { font-size: 28px; line-height: 1; }
.card--schlicht p { font-size: 18px; line-height: 1.5; }

/* Aufzaehlung mit Icon */
.icon-list { margin: 0; padding: 0; list-style: none; }
.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.icon-list .icon {
  margin-top: 0.25em;
  color: var(--blue);
  width: 1em;
  height: 1em;
}

/* Nachbarorte auf den Standortseiten */
.nachbarn__titel {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}
.nachbarn {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nachbarn li { margin: 0; }
.nachbarn a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--grey-line);
  border-radius: 999px;
  background: var(--white);
  font-size: 15px;
  color: var(--text);
}
.nachbarn a:hover {
  border-color: var(--blue);
  color: var(--blue);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Galerie und Lightbox
   -------------------------------------------------------------------------- */
/* Masonry wie auf der bisherigen Seite: 4 Spalten, 10px Abstand, Bilder
   behalten ihr natuerliches Seitenverhaeltnis und werden nicht beschnitten.
   Umgesetzt mit CSS-Spalten - kein JavaScript noetig.
   (Werte aus den Elementor-Einstellungen: layout=masonry, columns=4,
   columns_tablet=2, columns_mobile=2, gap=10px.) */
.gallery {
  column-count: 4;
  column-gap: 10px;
}
.gallery__item {
  display: block;
  break-inside: avoid;
  margin-bottom: 10px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--grey);
}
.gallery__item img {
  width: 100%;
  height: auto;
  transition: transform 0.35s ease;
}
.gallery__item:hover img { transform: scale(1.04); }

/* Geschlossene <dialog>-Elemente sind vom Browser aus display:none. Das darf
   die Layoutregel nicht ueberschreiben, sonst haengt die Lightbox sichtbar
   in der Seite. */
.lightbox:not([open]) { display: none; }
.lightbox[open] {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 0;
  background: rgba(23, 34, 51, 0.92);
}
.lightbox::backdrop { background: rgba(23, 34, 51, 0.92); }
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  width: auto;
  border-radius: var(--radius);
}
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Dialogfenster (Ersatz fuer das Elementor-Popup)
   -------------------------------------------------------------------------- */
.modal:not([open]) { display: none; }
.modal[open] {
  position: fixed;
  width: min(640px, calc(100vw - 32px));
  max-height: 88vh;
  margin: auto;
  padding: 40px;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  overflow-y: auto;
}
.modal::backdrop { background: rgba(23, 34, 51, 0.6); }
.modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
}

/* Bild in einer Karte */
.card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 4px;
}

/* Anschrift auf der Kontaktseite */
.contact-details {
  margin-top: 26px;
  font-style: normal;
  font-size: 16px;
  line-height: 1.7;
}

/* Buttons mit Symbol */
.btn .icon { width: 0.9em; height: 0.9em; margin-right: 8px; }

/* Portfolio: gleiche Masonry ueber die volle Breite, auf dem Handy
   einspaltig (so war es auch bisher eingestellt). */
.gallery--wide { column-count: 4; }
@media (max-width: 1024px) { .gallery--wide { column-count: 2; } }
@media (max-width: 767px)  { .gallery--wide { column-count: 1; } }

/* --------------------------------------------------------------------------
   Portfolio: Projekte mit Beschreibung
   Ersetzt die reine Bilderwand - Besucher sehen, worum es ging, und
   Suchmaschinen bekommen Text zu den Bildern.
   -------------------------------------------------------------------------- */
.projekte {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px 40px;
}
.projekt__bild {
  display: block;
  margin-bottom: 20px;
  border-radius: 15px;
  overflow: hidden;
  background: var(--grey);
}
.projekt__bild img {
  width: 100%;
  height: auto;
  transition: transform 0.35s ease;
}
.projekt__bild:hover img { transform: scale(1.03); }
.projekt__titel {
  margin: 0 0 4px;
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}
.projekt__art {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
}
.projekt p { font-size: 16px; line-height: 1.5; }

@media (max-width: 767px) {
  .projekte { grid-template-columns: 1fr; gap: 44px; }
  .projekt__titel { font-size: 24px; }
}

/* --------------------------------------------------------------------------
   FAQ (natives details/summary, funktioniert ohne JavaScript)
   -------------------------------------------------------------------------- */
.faq { margin: 0; }
.faq__item {
  border-bottom: 1px solid var(--grey-line);
}
.faq__item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__sign {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--blue);
}
.faq__item[open] .faq__sign--plus,
.faq__item:not([open]) .faq__sign--minus { display: none; }
.faq__body {
  padding: 0 0 20px 32px;
  font-size: 16px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Kundenstimmen
   -------------------------------------------------------------------------- */
.testimonials {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: thin;
}
.testimonial {
  flex: 0 0 min(520px, 88%);
  scroll-snap-align: center;
  padding: 0 16px;
  background: none;      /* die bisherige Seite zeigt keine Kachel */
  text-align: center;
}
.testimonial__text {
  margin: 0 0 18px;
  font-size: 20.8px;
  line-height: 1.5;
  color: var(--text);
}
.testimonial__name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  font-style: normal;
  color: var(--text);
}
/* Herkunftsangabe unter dem Namen. Google erwartet, dass uebernommene
   Rezensionen als solche gekennzeichnet und dem Profil zugeordnet sind. */
.testimonial__quelle {
  display: block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}
.testimonial__quelle a { color: inherit; text-decoration: underline; }
.testimonial__quelle a:hover { color: var(--blue); }

/* Sternreihe - rein dekorativ, der Wert steht als Text daneben */
.testimonial__sterne {
  margin-bottom: 10px;
  color: #f5b53d;
  font-size: 15px;
  letter-spacing: 2px;
}

/* --------------------------------------------------------------------------
   Sektion mit Hintergrundbild
   -------------------------------------------------------------------------- */
.banner {
  position: relative;
  padding-block: 150px;
  background: var(--navy) center / cover no-repeat;
  color: var(--white);
  text-align: center;
}
.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);      /* wie bisher: #191919 mit 44 % Deckkraft */
  opacity: 0.44;
}
.banner > * { position: relative; }
.banner h2 { color: var(--white); }
.banner p { color: var(--white); }
.banner .lead { line-height: 1.333; }   /* 24px bei 18px Schrift, wie im Original */

/* --------------------------------------------------------------------------
   Formular
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.form__control {
  width: 100%;
  padding: 8px 16px;
  border: 1px solid #69727d;
  border-radius: 0;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
}
.form__control:focus {
  border-color: var(--blue);
  outline: 2px solid rgba(48, 94, 171, 0.25);
  outline-offset: 0;
}
textarea.form__control { min-height: 150px; resize: vertical; }

/* Honigtopf gegen Spam - fuer Menschen unsichtbar, kein display:none,
   damit einfache Bots das Feld trotzdem ausfuellen. */
.form__hp {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__note { font-size: 14px; color: var(--muted); }
.form__error {
  padding: 14px 16px;
  border-left: 4px solid #b3261e;
  border-radius: 4px;
  background: #fdecea;
  color: #7a1c15;
}
.form__success {
  padding: 14px 16px;
  border-left: 4px solid #1e7d34;
  border-radius: 4px;
  background: #e9f6ec;
  color: #145724;
}

/* --------------------------------------------------------------------------
   Karte (Kontaktseite) - laedt erst nach Klick, kein Vorab-Aufruf bei Google
   -------------------------------------------------------------------------- */
.map-consent {
  position: relative;
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 320px;
  padding: 30px;
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  background: var(--grey);
  text-align: center;
}
.map-consent__text { margin: 0; max-width: 460px; font-size: 15px; }
.map-consent iframe { width: 100%; height: 320px; border: 0; border-radius: var(--radius); }

/* --------------------------------------------------------------------------
   Oeffnungszeiten (Kontaktseite)
   -------------------------------------------------------------------------- */
.zeiten {
  width: 100%;
  max-width: 460px;
  margin: 34px auto 0;
  border-collapse: collapse;
}
.zeiten th,
.zeiten td {
  padding: 13px 4px;
  border-bottom: 1px solid var(--grey-line);
  font-size: 16px;
  line-height: 1.5;
}
.zeiten th { text-align: left; font-weight: 500; }
.zeiten td { text-align: right; font-variant-numeric: tabular-nums; }
.zeiten tr:last-child th,
.zeiten tr:last-child td { border-bottom: 0; }
.zeiten__zu { color: var(--muted); }
/* caption steht im Quelltext oben, gehoert optisch aber unter die Tabelle */
.zeiten__hinweis {
  caption-side: bottom;
  padding-top: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}

/* --------------------------------------------------------------------------
   Fussbereich
   -------------------------------------------------------------------------- */
.site-footer {
  padding-top: 70px;
  background: var(--white);
  border-top: 1px solid var(--grey-line);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer__logo img { width: 220px; margin-bottom: 18px; }
.footer__about { margin: 0; font-size: 16px; line-height: 1.6; }
.footer__title {
  margin: 0 0 16px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}
.footer__list { margin: 0; padding: 0; list-style: none; }
.footer__list li { margin-bottom: 10px; }
.footer__list a { color: var(--text); font-size: 16px; }
.footer__list a:hover { color: var(--blue); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 50px;
  padding: 24px 0;
  border-top: 1px solid var(--grey-line);
  font-size: 15px;
  color: var(--muted);
}
.footer__bottom .icon { width: 0.9em; height: 0.9em; }

/* --------------------------------------------------------------------------
   Rechtstexte - laufen ueber die volle Inhaltsbreite, Zwischenueberschriften
   sind gross und leicht (32px/400) wie auf der bisherigen Seite.
   -------------------------------------------------------------------------- */
.legal { max-width: none; }
.legal h2 {
  margin-top: 1.4em;
  font-family: var(--font-body);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
}
.legal h3 { margin-top: 1.6em; font-size: 24px; font-weight: 400; color: var(--text); }
.legal p, .legal li { font-size: 16px; line-height: 1.5; }
.legal ol, .legal ul { padding-left: 1.3em; }
.legal a { word-break: break-word; }

/* --------------------------------------------------------------------------
   Anpassung an kleinere Bildschirme
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root { --section-y: 70px; --section-y-sm: 50px; }

  .nav-toggle { display: inline-flex; }
  .nav__close { display: inline-flex; }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 150;
    flex-direction: column;
    align-items: stretch;
    width: min(340px, 86vw);
    padding: 80px 0 40px;
    background: var(--navy);
    overflow-y: auto;
    transform: translateX(100%);
    /* Im geschlossenen Zustand auch fuer Tastatur und Screenreader weg -
       sonst laesst sich in ein unsichtbares Menue hineintabben. */
    visibility: hidden;
    /* Beim Schliessen erst nach der Bewegung ausblenden, beim Oeffnen sofort
       einblenden - sonst wuerde das Menue waehrend des Hereinfahrens fehlen. */
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
  }
  .nav[data-open="true"] {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.25s ease, visibility 0s;
  }

  /* Ohne JavaScript laesst sich das Menue nicht aufklappen. Dann wird es
     als normale Liste unter dem Kopfbereich ausgegeben, damit die Seite
     in jedem Fall bedienbar bleibt. */
  /* Der Kopfbereich liegt sonst ueber dem Hero; als aufgeklappte Liste
     braucht er eigenen Platz. */
  .ohne-js .site-header {
    position: static;
    background: var(--navy);
  }
  .ohne-js .hero { padding-top: var(--section-y); }
  .ohne-js .header__inner { flex-wrap: wrap; }
  .ohne-js .nav-toggle { display: none; }
  .ohne-js .nav {
    position: static;
    width: 100%;
    padding: 0 0 16px;
    background: none;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .ohne-js .nav__list { flex-direction: column; }
  .ohne-js .nav__sub { display: block; background: none; padding-left: 16px; }
  .ohne-js .nav__close { display: none; }

  /* Schliessen-Knopf im geoeffneten Menue */
  .nav__close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--white);
    font-size: 22px;
    cursor: pointer;
  }

  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__link { padding: 14px 24px; border-bottom: 0; }
  .nav__link[aria-current="page"] {
    border-left: 3px solid var(--white);
    padding-left: 21px;
  }

  .nav__sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 0 16px;
    background: rgba(0, 0, 0, 0.18);
    display: none;
  }
  .nav__item--has-sub[data-open="true"] > .nav__sub { display: block; }
  .nav__caret { transition: transform 0.2s ease; }
  .nav__item--has-sub[data-open="true"] > .nav__link .nav__caret {
    transform: rotate(180deg);
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 140;
    background: rgba(23, 34, 51, 0.5);
    border: 0;
    padding: 0;
  }


  /* Titelband mit Anfragekarte wird auf schmalen Bildschirmen einspaltig */
  .page-band__raster { grid-template-columns: 1fr; gap: 24px; }
  .page-band--zweispaltig { padding-block: 50px 40px; min-height: 0; }

  .service-card__grid { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { gap: 34px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .hero__display { font-size: 56px; min-height: 84px; }
}

@media (max-width: 767px) {
  :root { --section-y: 55px; --section-y-sm: 40px; }

  body { font-size: 17px; }

  .hero { padding-top: 120px; padding-bottom: 150px; }
  .hero__title { font-size: 26px; }
  .hero__display { font-size: 40px; min-height: 60px; line-height: 1.4; }
  .hero--page .hero__title { font-size: 32px; }

  .h-section { font-size: 25px; }

  .service-card { margin-top: -110px; }
  .service-card__inner { padding: 28px 18px; border-radius: 28px 28px 0 0; }
  .service-card__grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .service-card__item .icon { width: 40px; height: 40px; }
  .service-card__label { font-size: 17px; }
  .service-card__text { font-size: 16px; }

  .split,
  .grid--2,
  .grid--3,
  .grid--4,
  .steps { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }

  .gallery { column-count: 2; }

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

  .banner { padding-block: 90px; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { margin-top: 34px; }

  .eyebrow { font-size: 34px; }
  .step__title { font-size: 21px; }
}

@media (max-width: 420px) {
  .gallery { column-count: 2; }   /* Startseite blieb auch mobil zweispaltig */
  .service-card__grid { grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------------------------------------------------------
   Druck
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .nav, .nav-toggle, .site-footer, .banner, .lightbox { display: none; }
  body { font-size: 11pt; color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
