/* ============================================================
   Kranawetter Steuerungstechnik — Stylesheet
   Farben abgeleitet vom Firmenlogo: Navy / Signalrot / Blau
   ============================================================ */

/* ---------- Fonts (selbst gehostet, DSGVO-konform) ----------
   Montserrat + Open Sans entsprechen der Typografie des Firmenlogos. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/montserrat-var-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../assets/fonts/open-sans-var-latin.woff2") format("woff2");
}

/* ---------- Design Tokens ---------- */
:root {
  --ink: #0e1a2b;
  --ink-soft: #33415c;
  --muted: #5c6b84;
  --line: #e3e8f0;
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --navy: #0c1626;
  --navy-2: #12203a;
  --red: #d92b21;
  --red-dark: #b71f17;
  --blue: #2158b7;
  --blue-light: #4d82e0;
  --on-dark: #e8edf6;
  --on-dark-muted: #93a3bd;

  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Open Sans", "Segoe UI", system-ui, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(14, 26, 43, 0.06), 0 2px 8px rgba(14, 26, 43, 0.05);
  --shadow-md: 0 4px 12px rgba(14, 26, 43, 0.08), 0 12px 32px rgba(14, 26, 43, 0.1);
  --container: 1140px;
  --header-h: 108px;
}

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--blue);
  color: #fff;
}

p {
  text-wrap: pretty;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 0.75rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 20px rgba(217, 43, 33, 0.35);
}

.btn-primary:hover {
  background: var(--red-dark);
  box-shadow: 0 10px 26px rgba(217, 43, 33, 0.45);
}

.btn-primary:focus-visible {
  outline: 3px solid rgba(217, 43, 33, 0.45);
  outline-offset: 3px;
}

.btn-ghost {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(232, 237, 246, 0.35);
}

.btn-ghost:hover {
  border-color: rgba(232, 237, 246, 0.8);
  background: rgba(232, 237, 246, 0.08);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost-dark:hover {
  border-color: var(--ink-soft);
  background: var(--bg-soft);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  border-bottom: 1px solid rgba(14, 26, 43, 0.08);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(14, 26, 43, 0.12);
}

.nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 68px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-menu > li > a {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-soft);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-menu > li > a:hover {
  color: var(--ink);
  text-decoration: none;
  background: rgba(14, 26, 43, 0.06);
}

.nav-menu > li > a.is-active {
  color: var(--ink);
}

.nav-menu > li > a.nav-cta {
  color: #fff;
  background: var(--red);
  padding-inline: 1.2rem;
  border-radius: 999px;
  margin-left: 0.5rem;
}

.nav-menu > li > a.nav-cta:hover {
  background: var(--red-dark);
}

/* ---------- Sprachumschalter (Globe-Dropdown) ---------- */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lang-switch {
  position: relative;
  display: inline-flex;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.lang-btn:hover {
  color: var(--ink);
  border-color: var(--ink-soft);
  background: rgba(14, 26, 43, 0.04);
}

.lang-globe {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
}

.lang-chevron {
  width: 0.85rem;
  height: 0.85rem;
  flex: none;
  transition: transform 0.2s ease;
}

.lang-btn[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 12.5rem;
  margin: 0;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  z-index: 60;
}

.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.7rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-option:hover,
.lang-option:focus-visible {
  background: var(--bg-soft);
  color: var(--ink);
}

.lang-option-name {
  flex: 1;
  font-weight: 600;
}

.lang-option-code {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.lang-check {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  color: var(--red);
  opacity: 0;
}

.lang-option[aria-current="page"] {
  color: var(--ink);
}

.lang-option[aria-current="page"] .lang-check {
  opacity: 1;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(14, 26, 43, 0.2);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 480px at 82% -10%, rgba(33, 88, 183, 0.35), transparent 65%),
    radial-gradient(700px 420px at 8% 110%, rgba(217, 43, 33, 0.16), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--on-dark);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 237, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 237, 246, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding-block: clamp(4.5rem, 11vw, 8.5rem) clamp(3.5rem, 8vw, 6rem);
  max-width: 60rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 1.25rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red) 0 50%, var(--blue) 50% 100%);
}

.section .eyebrow {
  color: var(--muted);
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4.1rem);
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.hero h1 .accent {
  color: transparent;
  background: linear-gradient(92deg, #ff6a5e, var(--red) 55%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--on-dark-muted);
  max-width: 44rem;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 46rem;
}

.hero-stats li {
  border-left: 3px solid;
  border-image: linear-gradient(180deg, var(--red), var(--blue)) 1;
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-stats strong {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  font-weight: 700;
}

.hero-stats span {
  font-size: 0.88rem;
  color: var(--on-dark-muted);
}

/* ---------- Tech-Marquee ---------- */
.tech-strip {
  background: var(--navy-2);
  border-top: 1px solid rgba(232, 237, 246, 0.08);
  padding-block: 1.1rem;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.tech-strip:hover .marquee {
  animation-play-state: paused;
}

.marquee ul {
  display: flex;
  align-items: center;
  flex: none;
}

.marquee li {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.marquee li::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  margin-inline: 1.75rem;
}

.marquee li:nth-child(even)::after {
  background: var(--blue);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(4rem, 9vw, 6.5rem);
}

.section-alt {
  background: var(--bg-soft);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

.section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 700;
}

.section-sub {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- Leistungen ---------- */

/* Prozess-Kette: Chips mit Pfeilen */
.process-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 2.1rem;
  margin: clamp(2.25rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  list-style: none;
}

.process-flow li {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1.1rem 0.45rem 0.5rem;
  box-shadow: var(--shadow-sm);
}

.process-flow li svg {
  flex: none;
  width: 1.7rem;
  height: 1.7rem;
  padding: 0.4rem;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
}

.process-flow li:nth-child(even) svg {
  background: var(--blue);
}

.process-flow li:not(:last-child)::after {
  content: "→";
  position: absolute;
  left: calc(100% + 0.6rem);
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 600;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  z-index: 1;
  background: linear-gradient(180deg, var(--red), var(--blue));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.card:hover::before {
  opacity: 1;
}

.card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-img {
  transform: scale(1.04);
}

.card-body {
  padding: 1.15rem 1.4rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
}

.card-desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Highlight-Banner: Inbetriebnahme weltweit */
.service-banner {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(77, 130, 224, 0.28), transparent 65%),
    linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.75rem);
}

.service-banner h3 {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  margin-bottom: 0.4rem;
}

.service-banner p {
  color: var(--on-dark-muted);
  margin: 0;
  max-width: 42rem;
}

/* ---------- Über uns ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about-text h2 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
}

.about-text p {
  color: var(--ink-soft);
}

.about-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.7rem;
}

.about-list li {
  position: relative;
  padding-left: 2rem;
  font-weight: 500;
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(33, 88, 183, 0.12) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%232158b7" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 13l4 4L19 7"/></svg>') center / 11px no-repeat;
}

.about-card {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  padding: 2rem 1.9rem;
  box-shadow: var(--shadow-md);
}

.about-card h3 {
  font-size: 1.15rem;
  padding-bottom: 0.9rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid rgba(232, 237, 246, 0.14);
}

.about-card dl {
  margin: 0;
}

.about-card dl div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.75rem;
}

.about-card dl div + div {
  border-top: 1px solid rgba(232, 237, 246, 0.09);
}

.about-card dt {
  color: var(--on-dark-muted);
  font-size: 0.92rem;
}

.about-card dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  text-align: right;
}

/* ---------- Kontakt ---------- */
.contact-section {
  background:
    radial-gradient(800px 420px at 15% 0%, rgba(33, 88, 183, 0.3), transparent 65%),
    radial-gradient(640px 380px at 95% 100%, rgba(217, 43, 33, 0.16), transparent 60%),
    linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%);
  color: var(--on-dark);
}

.contact-section .eyebrow {
  color: var(--on-dark-muted);
}

.contact-section .section-sub {
  color: var(--on-dark-muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1.5rem;
  align-items: center;
}

.contact-info {
  display: grid;
  grid-auto-rows: 1fr;
  gap: 0.8rem;
}

.contact-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  background: rgba(232, 237, 246, 0.05);
  border: 1px solid rgba(232, 237, 246, 0.12);
  border-radius: var(--radius);
  padding: 0.85rem 1.05rem;
  color: var(--on-dark);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.contact-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: rgba(232, 237, 246, 0.08);
  border: 1px solid rgba(232, 237, 246, 0.15);
  color: var(--blue-light);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.contact-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

a.contact-item:hover {
  text-decoration: none;
  border-color: rgba(232, 237, 246, 0.4);
  background: rgba(232, 237, 246, 0.09);
  transform: translateY(-3px);
}

a.contact-item:hover .contact-icon {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.contact-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.contact-value {
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.contact-value em {
  font-style: normal;
  color: var(--on-dark-muted);
  font-size: 0.9rem;
}

/* Kontaktformular */
.contact-form-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-md);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form-card h3 {
  margin-bottom: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}

.form-field {
  margin: 0 0 1.5rem;
}

.form-field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.req {
  color: var(--red);
}

.form-field input,
.form-field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.form-field input:hover,
.form-field textarea:hover {
  border-color: var(--blue-light);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(33, 88, 183, 0.08);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(33, 88, 183, 0.18);
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0 0 1.2rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.form-consent input {
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.2rem;
  accent-color: var(--red);
}

.form-consent input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.form-consent label {
  line-height: 1.5;
}

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.form-note {
  font-size: 0.88rem;
  color: var(--muted);
}

.form-status {
  margin: 1.2rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(33, 88, 183, 0.3);
  border-radius: 10px;
  background: rgba(33, 88, 183, 0.07);
  font-size: 0.92rem;
}

.form-status-error {
  border-color: rgba(183, 33, 33, 0.35);
  background: rgba(183, 33, 33, 0.07);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 820px;
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open],
.faq-item:hover {
  border-color: rgba(33, 88, 183, 0.35);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--blue);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  margin: 0;
  padding: 0 1.3rem 1.15rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* Spamschutz: für Menschen unsichtbares Feld */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #fff;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-brand .brand-logo {
  height: 42px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.footer-nav a {
  color: var(--ink-soft);
}

.footer-nav a:hover {
  color: var(--ink);
}

.footer-copy {
  margin: 0;
  width: 100%;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--on-dark);
  padding-block: clamp(3rem, 7vw, 4.5rem);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0;
}

.legal {
  max-width: 54rem;
}

.legal h2 {
  font-size: 1.35rem;
  margin-top: 2.2em;
}

.legal dl div {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--line);
}

.legal dt {
  color: var(--muted);
  overflow-wrap: break-word;
  hyphens: auto;
}

.legal dd {
  margin: 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.legal ul {
  list-style: disc;
  padding-left: 1.3rem;
  margin-bottom: 1em;
}

.legal ul li {
  margin-bottom: 0.35em;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--on-dark-muted);
}

.back-link:hover {
  color: var(--on-dark);
  text-decoration: none;
}

/* ---------- Lightbox / Karussell (Leistungen) ---------- */
.card.is-clickable {
  cursor: pointer;
}

.card.is-clickable:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 3px;
}

.lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(6, 11, 20, 0.82);
  backdrop-filter: blur(6px);
}

.lightbox[open] .lightbox-figure {
  animation: lightbox-in 0.25s ease;
}

@keyframes lightbox-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.lightbox-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: clamp(1rem, 4vw, 2.5rem);
}

.lightbox-figure {
  margin: 0;
  max-width: min(880px, 100%);
  background: var(--navy-2);
  border: 1px solid rgba(232, 237, 246, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.lightbox-img {
  width: 100%;
  height: auto;
  max-height: min(62vh, 560px);
  object-fit: cover;
  display: block;
  background: var(--navy);
}

.lightbox-caption {
  padding: 1.1rem 1.5rem 1.3rem;
  color: var(--on-dark);
}

.lightbox-counter {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--on-dark-muted);
  margin: 0 0 0.35rem;
}

/* Kein <h3>: Überschrift wird per JS befüllt und wäre im statischen
   HTML leer (SEO-Finding „Überschrift ohne Inhalt") */
.lightbox-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.3rem;
}

.lightbox-caption p:last-child {
  margin: 0;
  color: var(--on-dark-muted);
  font-size: 0.97rem;
}

.lightbox-nav,
.lightbox-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(232, 237, 246, 0.25);
  background: rgba(18, 32, 58, 0.75);
  color: var(--on-dark);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.lightbox-nav svg,
.lightbox-close svg {
  width: 24px;
  height: 24px;
}

.lightbox-nav:hover,
.lightbox-close:hover {
  background: rgba(33, 88, 183, 0.55);
  border-color: rgba(232, 237, 246, 0.6);
  transform: scale(1.06);
}

.lightbox-close {
  position: absolute;
  top: clamp(0.75rem, 2.5vw, 1.5rem);
  right: clamp(0.75rem, 2.5vw, 1.5rem);
  width: 46px;
  height: 46px;
}

@media (max-width: 720px) {
  .lightbox-inner {
    padding: 0.75rem;
    gap: 0;
    position: relative;
  }

  .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 46px;
    height: 46px;
  }

  .lightbox-nav:hover {
    transform: translateY(-50%) scale(1.06);
  }

  .lightbox-prev {
    left: 1.1rem;
  }

  .lightbox-next {
    right: 1.1rem;
  }

  .lightbox-img {
    max-height: 48vh;
  }
}

/* ---------- Reveal-Animationen ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .marquee {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }
  .marquee ul {
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }
  .marquee ul[aria-hidden="true"] {
    display: none;
  }
  .btn,
  .card,
  .card-img,
  a.contact-item {
    transition: none;
  }
  .card:hover .card-img {
    transform: none;
  }
  .lightbox[open] .lightbox-figure {
    animation: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background: #fff;
    border-bottom: 1px solid rgba(14, 26, 43, 0.08);
    padding: 0.9rem clamp(1.25rem, 4vw, 2.5rem) 1.25rem;
    box-shadow: 0 18px 32px rgba(14, 26, 43, 0.14);
    display: none;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu > li > a {
    padding: 0.8rem 0.9rem;
    font-size: 1.05rem;
  }

  .nav-menu > li > a.nav-cta {
    margin-left: 0;
    text-align: center;
    margin-top: 0.4rem;
  }

  /* Sprachumschalter im aufgeklappten Mobil-Menü linksbündig */
  .nav-menu .lang-item {
    padding: 0.3rem 0;
  }

  .nav-menu .lang-menu {
    right: auto;
    left: 0;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .service-banner {
    grid-template-columns: 1fr;
  }

  .legal dl div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

@media (max-width: 540px) {
  .cards,
  .contact-info,
  .form-row {
    grid-template-columns: 1fr;
  }

  .process-flow {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }

  .process-flow li:not(:last-child)::after {
    content: none;
  }  
}
