/*
 * EM-Elektrotechnik GmbH — Landingpage
 * Handgeschrieben, kein Framework. Mobile-first, Breakpoints bei 48rem/64rem.
 * Design-Tokens 1:1 aus dem freigegebenen Claude-Design übernommen.
 */

@import url("/assets/fonts/fonts.css");

:root {
  --ink: #14213a;
  --brand: #1c4e9d;
  --brand-dark: #163f80;
  --link: #1a4a97;
  --navy: #12294f;
  --navy-2: #1b3d75;
  --accent: #e30613;
  --accent-hover: #c8102e;
  --bg: #f4f7f8;
  --surface: #fff;
  --surface-muted: #f9fbfc;
  --border: #e4e9f1;
  --border-strong: #d3dbe8;
  --muted: #5b6980;
  --muted-2: #46536b;
  --chip-bg: #e8eef9;
  --on-navy: #c6d6ef;
  --success-bg: #e9f8ee;
  --success-border: #bfe6cc;
  --success-ink: #1c6b3a;

  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --container: 75rem;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 14px 34px rgba(15, 25, 50, 0.1);
  --shadow-float: 0 20px 50px rgba(15, 25, 50, 0.07);
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: var(--font-body);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

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

a {
  color: var(--link);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

input,
textarea,
button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

input::placeholder,
textarea::placeholder {
  color: #8d9ab0;
}

button {
  cursor: pointer;
}

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

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.375rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--brand);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 100;
  transition: top 0.15s ease;
}

.skip-link:focus-visible {
  top: 1rem;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--brand);
  text-transform: uppercase;
}

.btn {
  display: inline-block;
  text-align: center;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

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

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--brand-dark);
  color: #fff;
}

.btn-secondary {
  border-color: #aec3e4;
  color: var(--ink);
  background: #fff;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--brand);
  color: var(--link);
}

.icon {
  flex-shrink: 0;
}

/* ---------- Top notice bar ---------- */
.notice-bar {
  background: var(--navy);
  color: var(--on-navy);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 0.5rem 1.5rem;
  flex-wrap: wrap;
  text-align: center;
}

.notice-bar__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin-right: 0.4rem;
}

.notice-bar a {
  color: #fff;
  font-weight: 600;
}

.notice-bar a + a {
  color: var(--on-navy);
  font-weight: 400;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  height: 40px;
  width: auto;
}

/* The mobile design shows the logo on its own, without the wordmark next
   to it. The <img alt> carries the company name, so hiding the text costs
   nothing for screen readers or SEO. */
.brand__text {
  display: none;
}

/* Block so it sits on its own line next to the logo. This used to be an
   inline style, which the site's own CSP (style-src 'self', no
   'unsafe-inline') silently discarded. */
.brand__tagline {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.1;
  color: var(--ink);
}

/* Hidden until JS confirms it can actually operate the menu; site.js adds
   .js-enabled to <html>. Without JS the nav below stays permanently open. */
.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--ink);
}

.js-enabled .menu-toggle {
  display: grid;
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* No-JS default: full-width block that wraps below the bar and stays open.
   .site-header is sticky (= positioned), so the JS variant can anchor its
   dropdown to it. */
.site-nav {
  display: block;
  width: 100%;
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 0.5rem 0;
}

.js-enabled .site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
}

.js-enabled .site-nav.is-open {
  display: block;
}

.site-nav__link {
  display: block;
  padding: 0.875rem 1.375rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--muted-2);
}

.site-nav__link:first-child {
  color: var(--ink);
}

.site-nav__cta {
  padding: 0.625rem 1.125rem 0.875rem;
}

.site-nav__cta .btn {
  display: block;
}

.header-cta {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(175deg, #ffffff 45%, #e3ebf7);
  overflow: hidden;
}

.hero__inner {
  padding-block: 2.5rem 3rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(28, 78, 157, 0.08);
  border: 1px solid rgba(28, 78, 157, 0.35);
  color: var(--brand);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
}

.hero__title {
  font-weight: 800;
  font-size: clamp(1.75rem, 6vw, 3.25rem);
  margin: 1.125rem 0 0.875rem;
  text-wrap: pretty;
}

.hero__title em {
  font-style: normal;
  color: var(--brand);
}

.hero__lead {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted-2);
  margin: 0 0 1.5rem;
  max-width: 46ch;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.6875rem;
}

.hero__actions .btn {
  display: block;
}

.hero__figure {
  position: relative;
  min-width: 0;
}

.hero__photo {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 35, 75, 0.18);
  height: 220px;
}

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

.hero__stats {
  display: flex;
  gap: 0.625rem;
  margin-top: 1.375rem;
}

.stat {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.875rem 0.625rem;
  text-align: center;
}

.stat__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--brand);
}

.stat__label {
  font-size: 0.71875rem;
  color: var(--muted);
  margin-top: 2px;
}

.hero__badge {
  display: none;
}

/* ---------- Sections ---------- */
.section {
  padding-block: 3.25rem 0.5rem;
}

.section__intro {
  max-width: 40rem;
}

.section__intro h2 {
  font-weight: 700;
  font-size: 1.625rem;
  margin: 0.625rem 0 0.625rem;
  text-wrap: pretty;
}

.section__intro p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Leistungen ---------- */
.service-grid {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  color: var(--ink);
}

.service-card:hover,
.service-card:focus-visible {
  border-color: var(--brand);
  box-shadow: var(--shadow-card);
  color: var(--ink);
}

.service-card__photo {
  height: 140px;
  overflow: hidden;
}

.service-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__body {
  padding: 1.25rem 1.375rem 1.5rem;
}

.service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--chip-bg);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.service-card__tag {
  font-size: 0.71875rem;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.service-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0.4375rem 0 0.5rem;
}

.service-card__text {
  font-size: 0.90625rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.service-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--link);
}

.service-card__plus {
  font-size: 1rem;
  line-height: 1;
}

.section-notice {
  margin-bottom: 1.5rem;
}

/* ---------- Leistungs-Fenster (<dialog>) ---------- */
/* The native element gives us focus trapping, Escape-to-close and inertness
   of the page behind it for free — no focus-management code of our own. */
.service-dialog {
  width: min(64rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1px solid var(--brand);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 0 0 2px rgba(28, 78, 157, 0.22), 0 24px 60px rgba(15, 25, 50, 0.14);
  overflow: hidden;
}

.service-dialog::backdrop {
  background: rgba(9, 20, 42, 0.55);
  backdrop-filter: blur(2px);
}

.service-dialog__inner {
  position: relative;
  display: grid;
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
}

.service-dialog__close {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
}

.service-dialog__close:hover,
.service-dialog__close:focus-visible {
  border-color: var(--brand);
}

.service-dialog__info {
  min-width: 0;
  padding: 1.75rem 1.5rem;
}

.service-dialog__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.625rem 0 0.75rem;
  text-wrap: pretty;
}

.service-dialog__desc {
  font-size: 0.96875rem;
  line-height: 1.65;
  color: var(--muted-2);
  margin: 0 0 1.375rem;
  text-wrap: pretty;
}

.service-dialog__bullets-label {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.service-dialog__bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.service-dialog__bullets li {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  font-size: 0.90625rem;
  line-height: 1.5;
  color: var(--muted-2);
}

.service-dialog__bullets .icon {
  color: var(--brand);
  margin-top: 3px;
}

.service-dialog__note {
  margin-top: 1.375rem;
  background: #fdf1f2;
  border: 1px solid #f3c9ce;
  color: #8f1d2c;
  border-radius: 12px;
  padding: 0.875rem 1rem;
  font-size: 0.84375rem;
  line-height: 1.55;
}

.service-dialog__form {
  min-width: 0;
  background: #f6f8fc;
  border-top: 1px solid var(--border);
  padding: 1.75rem 1.5rem;
}

.service-dialog__form-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.375rem;
}

.service-dialog__form-lead {
  font-size: 0.84375rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.service-dialog__form .field input,
.service-dialog__form .field textarea {
  background: #fff;
}

/* ---------- Auswahl-Chips ---------- */
.pill-group {
  border: none;
  margin: 0 0 1.125rem;
  padding: 0;
}

.pill-group__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
  padding: 0;
}

.pill-group__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Visually hidden, but still focusable and keyboard-operable as a radio
   group — the pill label is what the user sees. */
.pill__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.pill {
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--muted-2);
  border-radius: 999px;
  padding: 0.4375rem 0.9375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
}

.pill:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.pill__input:checked + .pill {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}

.pill__input:focus-visible + .pill {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ---------- Über uns ---------- */
.about-card {
  background: linear-gradient(160deg, var(--navy), var(--navy-2));
  border-radius: var(--radius-lg);
  color: #fff;
  overflow: hidden;
}

.about-card__photo {
  height: 180px;
}

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

.about-card__body {
  padding: 1.75rem 1.5rem 1.875rem;
}

.about-card .eyebrow {
  color: var(--on-navy);
}

.about-card h2 {
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0.625rem 0 0.75rem;
  text-wrap: pretty;
}

.about-card p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--on-navy);
  margin: 0 0 1.25rem;
}

.about-card__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6875rem;
}

.about-card__points li {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  font-size: 0.90625rem;
  line-height: 1.45;
}

.about-card__points .icon {
  color: var(--accent);
  margin-top: 2px;
}

/* Standalone section heading (Standorte), matching .section__intro h2. */
.section-heading {
  font-weight: 700;
  font-size: 1.625rem;
  margin: 0.625rem 0 0;
}

/* ---------- Standorte ---------- */
.locations {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.location-grid {
  list-style: none;
  margin: 1.375rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.location-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  background: var(--surface-muted);
}

.location-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--chip-bg);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex: none;
}

.location-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.3125rem;
}

.location-card address {
  font-style: normal;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.contact-grid h2 {
  font-weight: 700;
  font-size: 1.625rem;
  margin: 0.625rem 0 0.75rem;
  text-wrap: pretty;
}

.contact-grid > div:first-child > p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 1.375rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-links a {
  display: flex;
  gap: 0.8125rem;
  align-items: center;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 0.875rem 1rem;
}

.contact-links__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--chip-bg);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex: none;
}

.contact-links__label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.contact-links__value {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
}

.contact-form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-float);
  margin-top: 1.75rem;
}

.contact-form-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.form-notice {
  border-radius: 12px;
  padding: 1rem 1.125rem;
  font-size: 0.90625rem;
  font-weight: 500;
}

.form-notice--success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success-ink);
}

.form-notice--info {
  background: var(--surface-2, #f3f5f9);
  border: 1px solid var(--line, #d9dee8);
  color: var(--muted-2, #46506a);
  margin-bottom: 1rem;
}

.form-notice--error {
  background: #fdecec;
  border: 1px solid #f3b9bb;
  color: #9c1c26;
  margin-bottom: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}

.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-2);
}

.field input,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.8125rem 0.9375rem;
  background: var(--surface-muted);
}

.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 2px rgba(28, 78, 157, 0.25);
}

.field textarea {
  resize: vertical;
}

.field--consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.8125rem;
  color: var(--muted-2);
  line-height: 1.5;
}

.field--consent input {
  /* The width:100% above is meant for text inputs; a checkbox must keep its
     intrinsic size or it pushes its label away. */
  width: auto;
  flex: none;
  margin-top: 3px;
}

.field--honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit {
  width: 100%;
  background: var(--brand);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 0.96875rem;
  padding: 0.9375rem;
  border-radius: var(--radius-sm);
  margin-top: 0.25rem;
}

.form-submit:hover,
.form-submit:focus-visible {
  background: var(--brand-dark);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #a9b8d3;
}

.site-footer__inner {
  padding-block: 2.5rem 1.75rem;
}

.site-footer__logo {
  height: 38px;
  width: auto;
  display: block;
  background: #fff;
  border-radius: 8px;
  padding: 4px 8px;
  margin-bottom: 0.875rem;
}

.site-footer__lead {
  font-size: 0.84375rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
  max-width: 34ch;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.footer-grid h2 {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 0.625rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.84375rem;
}

.footer-links a {
  color: #a9b8d3;
}

.footer-address {
  font-style: normal;
  font-size: 0.84375rem;
  line-height: 1.6;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.125rem;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-links {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
}

.legal-links a {
  color: #a9b8d3;
}

/* =====================================================
   Breakpoint: tablet and up
   ===================================================== */
@media (min-width: 48rem) {
  .brand__text {
    display: block;
  }

  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero__actions .btn {
    display: inline-block;
  }

  .service-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .service-card {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 17.5rem;
  }

  .location-grid {
    flex-direction: row;
  }

  .location-card {
    flex: 1;
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

/* =====================================================
   Breakpoint: desktop
   ===================================================== */
@media (min-width: 64rem) {
  .site-header__bar {
    gap: 2rem;
  }

  .brand__tagline {
    font-size: 16px;
  }

  .menu-toggle,
  .js-enabled .menu-toggle {
    display: none;
  }

  /* Inline in the bar: brand | nav | CTA, regardless of DOM order. */
  .site-nav,
  .js-enabled .site-nav {
    display: flex;
    position: static;
    width: auto;
    order: 1;
    border-top: none;
    background: transparent;
    padding: 0;
    gap: 1.5rem;
    margin-left: auto;
  }

  .site-nav__link {
    padding: 0;
    font-size: 0.90625rem;
  }

  .site-nav__cta {
    display: none;
  }

  .header-cta {
    display: inline-block;
    order: 2;
  }

  .hero__inner {
    padding-block: 4.5rem 5.5rem;
    grid-template-columns: repeat(auto-fit, minmax(23.75rem, 1fr));
    gap: 3.5rem;
  }

  .hero__lead {
    font-size: 1.09375rem;
  }

  .hero__actions {
    flex-direction: row;
  }

  .hero__photo {
    height: 440px;
    border: 1px solid var(--border-strong);
  }

  .hero__stats {
    gap: 2.25rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-strong);
    margin-top: 2.75rem;
    background: none;
    border-radius: 0;
  }

  .stat {
    flex: none;
    background: none;
    border: none;
    padding: 0;
    text-align: left;
  }

  .stat__value {
    font-size: 1.5rem;
  }

  .stat__label {
    font-size: 0.8125rem;
  }

  .hero__badge {
    display: flex;
    position: absolute;
    left: 16px;
    bottom: 16px;
    right: 16px;
    background: #fff;
    color: var(--ink);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    gap: 0.75rem;
    align-items: center;
    box-shadow: 0 16px 40px rgba(15, 35, 75, 0.22);
  }

  .hero__badge-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--chip-bg);
    color: var(--brand);
    display: grid;
    place-items: center;
    flex: none;
  }

  .hero__badge-title {
    font-weight: 600;
    font-size: 0.875rem;
  }

  .hero__badge-sub {
    font-size: 0.78125rem;
    color: var(--muted);
  }

  .section {
    padding-block: 6rem 2.5rem;
  }

  .section__intro h2,
  .section-heading {
    font-size: 2.25rem;
  }

  .section__intro p {
    font-size: 1rem;
  }

  .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
    gap: 1.25rem;
  }

  .service-card {
    flex: none;
    min-width: 0;
  }

  .service-card__photo {
    height: 150px;
  }

  .service-dialog__inner {
    grid-template-columns: repeat(auto-fit, minmax(21.25rem, 1fr));
  }

  .service-dialog__info {
    padding: 2.25rem 2.5rem;
  }

  .service-dialog__title {
    font-size: 1.625rem;
  }

  .service-dialog__form {
    border-top: none;
    border-left: 1px solid var(--border);
    padding: 2.25rem 2.5rem;
  }

  .about-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(21.25rem, 1fr));
    gap: 3rem;
    padding: clamp(1.75rem, 4vw, 3.5rem);
    align-items: center;
  }

  .about-card__photo {
    height: 320px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
  }

  .about-card__body {
    padding: 0;
  }

  .about-card h2 {
    font-size: 2rem;
  }

  .location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  }

  /* Ein einzelner Standort saehe ueber die volle Breite verloren aus. */
  .location-grid--single {
    max-width: 32rem;
  }

  .contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(22.5rem, 1fr));
    gap: 3rem;
  }

  .contact-grid h2 {
    font-size: 2.25rem;
  }

  .contact-form-card {
    margin-top: 0;
    padding: 2.25rem;
  }

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
  }

  .form-row > * {
    min-width: 0;
  }

  .form-row .field--wide {
    grid-column: span 2;
  }
}

/* =====================================================
   Unterseiten, Referenzen, Team, Karriere
   Angehängt statt eingestreut, damit die Basiskomponenten
   oben unverändert nachvollziehbar bleiben.
   ===================================================== */

/* ---------- Brotkrumen ---------- */
.breadcrumb {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted);
}

.breadcrumb .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-block: 0.75rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Leistungs-Unterseite ---------- */
.service-hero {
  background: linear-gradient(175deg, #ffffff 45%, #e3ebf7);
}

.service-hero__inner {
  padding-block: 2.5rem 3rem;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.service-hero__title {
  font-weight: 800;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  margin: 0.5rem 0 0.875rem;
  text-wrap: pretty;
}

.service-hero__lead {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted-2);
  margin: 0 0 1.5rem;
  max-width: 54ch;
  text-wrap: pretty;
}

.service-hero__photo {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 35, 75, 0.18);
  height: 240px;
}

.service-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.service-detail__bullets {
  margin-bottom: 1.5rem;
}

.service-detail__form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-float);
}

.service-detail__hours {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.90625rem;
  color: var(--muted-2);
}

.service-detail__hours .icon {
  color: var(--brand);
}

.service-dialog__more {
  margin-top: 1.25rem;
  font-size: 0.90625rem;
  font-weight: 600;
}

/* Quick-look title: styled like a heading, but not one — see the comment in
   index.php about the duplicated outline. */
.service-dialog__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0.625rem 0 0.75rem;
  text-wrap: pretty;
}

.service-grid--compact .service-card__photo {
  height: 110px;
}

/* ---------- Referenzen ---------- */
.ref-grid,
.team-grid,
.job-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.ref-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.ref-card__photo {
  height: 150px;
  overflow: hidden;
}

.ref-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ref-card__body {
  padding: 1.25rem 1.375rem 1.5rem;
}

.ref-card__meta {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0 0 0.625rem;
}

.ref-card__meta .icon {
  color: var(--brand);
}

/* ---------- Team ---------- */
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
}

/* Monogram stands in until real portraits exist — see inc/references.php. */
.team-card__avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.875rem;
  border-radius: 50%;
  background: var(--chip-bg);
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  display: grid;
  place-items: center;
}

.team-card__name {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.team-card__role {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand);
  margin: 0 0 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Karriere ---------- */
.job {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}

.job__head {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.job__title {
  font-size: 1.1875rem;
  font-weight: 700;
}

.job__meta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand);
  margin: 0.375rem 0 0.75rem;
}

.job__text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted-2);
  margin: 0 0 1rem;
}

/* Unmistakable marker so placeholder content cannot pass for real. */
.badge--draft {
  display: inline-block;
  vertical-align: middle;
  background: #fdecec;
  border: 1px solid #f3b9bb;
  color: #9c1c26;
  border-radius: 999px;
  padding: 0.125rem 0.5rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Rechtstexte ---------- */
.legal__inner {
  max-width: 48rem;
}

.legal__title {
  font-weight: 800;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin-bottom: 1.5rem;
}

.legal h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 2rem 0 0.625rem;
}

.legal p,
.legal address {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted-2);
  font-style: normal;
}

.legal__address {
  margin-bottom: 0.5rem;
}

.legal__back {
  margin-top: 2.5rem;
  font-weight: 600;
}

/* ---------- Öffnungszeiten & Anfahrt ---------- */
.locations__hours,
.location-card__hours {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.locations__hours {
  margin: 0.75rem 0 0;
}

.locations__hours .icon {
  color: var(--brand);
}

.location-card__hours {
  margin: 0 0 0.5rem;
}

.location-card__maps {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
}

/* ---------- Footer-Zusätze ---------- */
.footer-heading {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: #fff;
  text-transform: uppercase;
  margin: 0 0 0.625rem;
}

.footer-hours {
  margin-top: 0.625rem;
  font-size: 0.8125rem;
}

/* ---------- Mobiler Anruf-Button ---------- */
/* A trades business lives on phone calls, and the number in the notice bar
   scrolls out of view. Hidden from 48rem up, where the header stays visible. */
.call-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.875rem 1.25rem;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(15, 35, 75, 0.3);
}

.call-fab:hover,
.call-fab:focus-visible {
  background: var(--brand-dark);
  color: #fff;
}

@media (prefers-reduced-motion: no-preference) {
  .call-fab {
    transition: transform 0.15s ease;
  }
  .call-fab:active {
    transform: scale(0.97);
  }
}

@media (min-width: 48rem) {
  .call-fab {
    display: none;
  }

  .ref-grid,
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
  }

  .service-hero__inner,
  .service-detail {
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  }

  /* Ein einzelner Standort saehe ueber die volle Breite verloren aus. */
  .location-grid--single {
    max-width: 32rem;
  }
}

@media (min-width: 64rem) {
  .service-hero__inner {
    padding-block: 4rem 4.5rem;
    gap: 3.5rem;
  }

  .service-hero__photo {
    height: 380px;
  }

  .service-detail {
    gap: 3rem;
  }

  .service-detail__form {
    padding: 2.25rem;
  }
}
