:root {
  --color-primary: #063b8f;
  --color-primary-dark: #052d72;
  --color-navy: #001f3f;
  --color-text: #0b1f3a;
  --color-muted: #526174;
  --color-border: #dfe5ed;
  --color-bg: #ffffff;
  --color-white: #ffffff;
  --container: min(1200px, calc(100vw - 48px));
  --radius: 5px;
  --transition: 160ms ease;
  --font: Inter, Arial, Helvetica, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 74px;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.15;
}

.container,
.quick-features-grid,
.footer-grid,
.footer-bottom {
  width: var(--container);
  margin-right: auto;
  margin-left: auto;
}

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 100;
  padding: 0.7rem 0.9rem;
  color: #fff;
  background: var(--color-primary);
}

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

.site-shell {
  min-height: 100vh;
  overflow: clip;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 74px;
  background: #fff;
  border-bottom: 1px solid #e3e8ef;
}

.nav {
  width: var(--container);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
}

.brand-mark {
  --logo-wave: #fff;
  width: 37px;
  height: 37px;
  display: block;
  flex: 0 0 auto;
  color: var(--color-primary);
}

.logo-symbol {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-copy strong {
  display: block;
  color: #082d72;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-panel {
  margin-left: auto;
}

.nav-links {
  height: 74px;
  display: flex;
  align-items: stretch;
  gap: 3.4rem;
}

.nav-links a {
  position: relative;
  display: flex;
  align-items: center;
  color: #141d2b;
  font-size: 0.88rem;
  font-weight: 600;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: 12px;
  left: 0;
  height: 2px;
  background: var(--color-primary);
  transition: right var(--transition);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  color: var(--color-primary-dark);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.is-active::after {
  right: 0;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 9px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--color-primary);
  transition: transform var(--transition), opacity var(--transition);
}

.line-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.photo {
  margin: 0;
  background: var(--color-navy);
  overflow: hidden;
}

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

.hero {
  position: relative;
  min-height: 410px;
  color: #fff;
  background: var(--color-navy);
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
}

.hero-photo img {
  object-position: center 66%;
  filter: brightness(1.09) saturate(0.95) contrast(1.03);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 24, 56, 0.93) 0%, rgba(0, 31, 63, 0.75) 40%, rgba(0, 31, 63, 0.18) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: var(--container);
  min-height: 410px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 740px;
}

.hero h1 {
  max-width: 740px;
  margin-bottom: 0.75rem;
  color: #fff;
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.hero-copy > p {
  max-width: 510px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: 1rem;
  line-height: 1.48;
}

.hero-actions {
  margin-top: 1.35rem;
  display: flex;
  gap: 0.85rem;
}

.button {
  min-height: 44px;
  padding: 0.68rem 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.button-primary {
  min-width: 174px;
  color: #fff;
  background: var(--color-primary-dark);
  border-color: #79a4ff;
}

.button-secondary {
  min-width: 174px;
  color: var(--color-primary-dark);
  background: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #0a45a2;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: #eef4ff;
}

.quick-features {
  color: #fff;
  background: linear-gradient(90deg, #03254e, #001f3f);
}

.quick-features-grid {
  min-height: 96px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.quick-features article {
  min-height: 62px;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  gap: 0.85rem;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.quick-features article:first-child {
  padding-left: 0;
}

.quick-features article:last-child {
  padding-right: 0;
  border-right: 0;
}

.quick-features .line-icon {
  width: 44px;
  height: 44px;
  color: #fff;
  stroke-width: 1.4;
}

.quick-features h2 {
  margin-bottom: 0.2rem;
  color: #fff;
  font-size: 0.92rem;
}

.quick-features p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.74rem;
  line-height: 1.4;
}

.section {
  padding: 0;
}

.section h2,
.why-section h2,
.contact-section h2 {
  margin-bottom: 0.7rem;
  color: var(--color-text);
  font-size: 1.65rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.section-kicker,
.section-heading > p {
  display: none;
}

.about-section {
  padding: 24px 0 14px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: 2.1rem;
  align-items: stretch;
}

.section-copy > p {
  margin-bottom: 0.7rem;
  color: #26364a;
  font-size: 0.82rem;
  line-height: 1.58;
}

.section-copy .section-lead {
  color: #26364a;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.about-highlights article {
  min-height: 150px;
  padding: 0.9rem 0.65rem;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.about-highlights .line-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.about-highlights h3 {
  min-height: 2.2rem;
  margin-bottom: 0.45rem;
  color: #0a2e70;
  font-size: 0.82rem;
}

.about-highlights p {
  margin-bottom: 0;
  color: #38475b;
  font-size: 0.7rem;
  line-height: 1.45;
}

.services-section .container,
.why-section .container,
.contact-section .container {
  border-top: 1px solid var(--color-border);
}

.services-section .container {
  padding-top: 14px;
  padding-bottom: 12px;
}

.section-heading {
  margin-bottom: 0.65rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.service-card {
  min-height: 112px;
  padding: 0.85rem 1rem;
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 0.9rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

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

.service-icon .line-icon {
  width: 44px;
  height: 44px;
  stroke-width: 1.55;
}

.service-card-body {
  min-width: 0;
}

.service-card h3 {
  margin-bottom: 0.3rem;
  color: #0a2e70;
  font-size: 0.86rem;
}

.service-card p {
  margin-bottom: 0;
  color: #34445a;
  font-size: 0.72rem;
  line-height: 1.45;
}

.why-section {
  padding: 0;
  color: var(--color-text);
  background: #fff;
}

.why-section .container {
  padding-top: 13px;
  padding-bottom: 11px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.why-grid article {
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-areas: "icon title" "icon text";
  align-content: start;
  column-gap: 0.75rem;
}

.why-grid .line-icon {
  grid-area: icon;
  width: 38px;
  height: 38px;
  color: var(--color-primary);
}

.why-grid h3 {
  grid-area: title;
  margin-bottom: 0.35rem;
  color: #0a2e70;
  font-size: 0.79rem;
}

.why-grid p {
  grid-area: text;
  margin-bottom: 0;
  color: #34445a;
  font-size: 0.68rem;
  line-height: 1.45;
}

.contact-section {
  padding: 0 0 8px;
  background: #fff;
}

.contact-grid {
  padding-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(290px, 0.82fr);
  gap: 1.5rem;
}

.contact-form-column {
  padding-right: 1.5rem;
}

.contact-form {
  display: grid;
  gap: 0.42rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.field {
  display: grid;
  gap: 0.18rem;
}

.field label {
  color: #28384d;
  font-size: 0.68rem;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.42rem 0.55rem;
  color: var(--color-text);
  background: #fff;
  border: 1px solid #cfd7e2;
  border-radius: 3px;
  outline: none;
}

.field input {
  height: 34px;
}

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

.field input:focus,
.field textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(6, 59, 143, 0.08);
}

.checkbox-field {
  display: grid;
  grid-template-columns: 15px 1fr;
  align-items: start;
  gap: 0.45rem;
  color: var(--color-muted);
  font-size: 0.62rem;
}

.checkbox-field input {
  width: 15px;
  height: 15px;
  margin: 0.1rem 0 0;
  accent-color: var(--color-primary);
}

.checkbox-field a {
  color: var(--color-primary);
  text-decoration: underline;
}

.form-submit {
  width: 100%;
  min-height: 33px;
  padding: 0.35rem 0.8rem;
  color: #fff;
  background: var(--color-primary-dark);
}

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

.form-status {
  min-height: 0.8rem;
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 0.65rem;
}

.form-status[data-state="success"] {
  color: #1b6b3a;
}

.form-status[data-state="error"] {
  color: #b00020;
}

.contact-details {
  padding: 1.6rem 0 0 1.5rem;
  border-left: 1px solid var(--color-border);
}

.contact-detail {
  padding: 0.5rem 0;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.7rem;
}

.contact-detail .line-icon {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

.contact-detail strong,
.contact-detail span,
.contact-detail small,
.contact-detail a {
  display: block;
}

.contact-detail strong,
.contact-detail a {
  color: #0a2e70;
  font-size: 0.78rem;
  font-weight: 700;
}

.contact-detail span {
  margin-top: 0.08rem;
  color: #405065;
  font-size: 0.68rem;
  line-height: 1.45;
}

.contact-detail small {
  margin-top: 0.2rem;
  color: #7a8797;
  font-size: 0.59rem;
}

.site-footer {
  color: #fff;
  background: linear-gradient(90deg, #03284f, #001f3f);
}

.footer-grid {
  min-height: 128px;
  padding: 18px 0 12px;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr;
  gap: 4rem;
}

.brand--footer .brand-mark {
  --logo-wave: var(--color-navy);
  width: 29px;
  height: 29px;
  color: #fff;
}

.brand--footer .brand-copy strong {
  color: #fff;
  font-size: 1rem;
}

.footer-brand p {
  max-width: 310px;
  margin: 0.65rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.7rem;
  line-height: 1.45;
}

.footer-column > strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
}

.footer-column > div {
  display: grid;
  gap: 0.12rem;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.68rem;
}

.footer-bottom {
  padding: 7px 0 10px;
  color: rgba(255, 255, 255, 0.74);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.64rem;
  text-align: center;
}

.legal-page {
  background: #fff;
}

.legal-container {
  width: min(960px, calc(100vw - 48px));
  margin: 0 auto;
}

.legal-page-header {
  padding: 54px 0 38px;
  background: #f7f9fc;
  border-bottom: 1px solid var(--color-border);
}

.legal-page-header h1 {
  margin-bottom: 0.75rem;
  color: var(--color-text);
  font-size: 2.5rem;
}

.legal-page-header p,
.legal-content p {
  color: var(--color-muted);
}

.legal-content {
  padding: 42px 0 58px;
}

.legal-intro,
.legal-section {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--color-border);
}

.legal-intro h2,
.legal-section h2 {
  margin-bottom: 0.65rem;
  color: var(--color-primary-dark);
  font-size: 1.2rem;
}

.legal-section p {
  margin-bottom: 0.45rem;
}

.noscript-notice {
  padding: 0.8rem;
  color: #fff;
  background: var(--color-primary);
  text-align: center;
}

@media (max-width: 992px) {
  :root {
    --container: min(1200px, calc(100vw - 40px));
  }

  .site-header,
  .nav {
    height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-panel {
    position: fixed;
    top: 68px;
    right: 0;
    left: 0;
    max-height: 0;
    margin: 0;
    padding: 0 20px;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 16px 30px rgba(11, 31, 58, 0.12);
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: max-height 220ms ease, padding 220ms ease, opacity var(--transition), transform 220ms ease;
  }

  .nav-panel.is-open {
    max-height: calc(100vh - 68px);
    padding-top: 0.6rem;
    padding-bottom: 0.8rem;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links {
    height: auto;
    display: grid;
    gap: 0;
  }

  .nav-links a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links a::after {
    display: none;
  }

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

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

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

  .hero,
  .hero-inner {
    min-height: 430px;
  }

  .hero h1 {
    max-width: 620px;
    font-size: 2.65rem;
  }

  .quick-features-grid,
  .about-highlights,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-features article:nth-child(2) {
    border-right: 0;
  }

  .quick-features article:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

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

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .contact-form-column {
    padding-right: 0;
  }

  .contact-details {
    padding: 0.8rem 0 0;
    border-top: 1px solid var(--color-border);
    border-left: 0;
  }
}

@media (max-width: 576px) {
  .hero-photo img {
    object-position: 62% 66%;
  }

  :root {
    --container: calc(100vw - 28px);
  }

  html {
    scroll-padding-top: 64px;
  }

  body {
    font-size: 14px;
  }

  .site-header,
  .nav {
    height: 64px;
  }

  .nav-panel {
    top: 64px;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
  }

  .brand-copy strong {
    font-size: 1rem;
  }

  .hero,
  .hero-inner {
    min-height: 480px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: 2.1rem;
  }

  .hero-copy > p {
    max-width: 100%;
    font-size: 0.92rem;
  }

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

  .button {
    width: 100%;
  }

  .quick-features-grid,
  .services-grid,
  .why-grid,
  .field-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .quick-features article,
  .quick-features article:first-child,
  .quick-features article:last-child {
    min-height: 78px;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-right: 0;
  }

  .quick-features article:first-child {
    border-top: 0;
  }

  .about-section {
    padding-top: 20px;
  }

  .about-highlights {
    gap: 0.55rem;
  }

  .about-highlights article {
    min-height: 145px;
  }

  .service-card {
    min-height: 104px;
  }

  .why-grid {
    gap: 0.75rem;
  }

  .why-grid article {
    padding-top: 0.5rem;
    border-top: 1px solid var(--color-border);
  }

  .contact-form-column {
    padding-bottom: 0.8rem;
  }

  .footer-grid {
    min-height: auto;
    padding: 20px 0 14px;
    gap: 1.2rem;
  }

  .legal-container {
    width: calc(100vw - 28px);
  }

  .legal-page-header {
    padding: 40px 0 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* ---- Korrekturen nach Review ------------------------------------------------------------ */

/* 1. Meldung des Formulars: groß, deutlich, direkt unter dem Absende-Button */
.form-status {
  min-height: 0;
  margin-top: 0.4rem;
  padding: 0.75rem 0.9rem;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  border-left: 4px solid var(--color-muted);
  background: #f2f5f9;
  border-radius: 3px;
}

.form-status:empty {
  padding: 0;
  border: 0;
  background: none;
}

.form-status[data-state="success"] {
  color: #14532d;
  border-left-color: #1b6b3a;
  background: #e8f5ec;
}

.form-status[data-state="error"] {
  color: #8a0019;
  border-left-color: #b00020;
  background: #fdecee;
}

/* 2. Kleine Texte und Checkbox */
.quick-features p,
.about-highlights p {
  font-size: 0.8125rem;
}

.checkbox-field {
  grid-template-columns: 22px 1fr;
  gap: 0.6rem;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.checkbox-field input {
  width: 22px;
  height: 22px;
  margin: 0;
}

/* 3. Leiste unter dem Hero: Kacheln oben ausrichten, auch wenn ein Titel zweizeilig ist */
.quick-features-grid {
  align-items: stretch;
}

.quick-features article {
  align-items: start;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

@media (max-width: 576px) {
  .quick-features p,
  .about-highlights p,
  .checkbox-field {
    font-size: 0.875rem;
  }

  .checkbox-field {
    grid-template-columns: 26px 1fr;
  }

  .checkbox-field input {
    width: 26px;
    height: 26px;
  }

  /* 4. Hero auf dem Telefon: gleichmäßige Abdunklung, damit der Untertitel lesbar bleibt */
  .hero-photo::after {
    background: linear-gradient(180deg, rgba(0, 24, 56, 0.9) 0%, rgba(0, 24, 56, 0.82) 60%, rgba(0, 24, 56, 0.72) 100%);
  }

  .hero-copy > p {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  }
}

/* 3b. Zwei Spalten (577–992 px): linke und rechte Kacheln jeweils bündig */
@media (min-width: 577px) and (max-width: 992px) {
  .quick-features article:nth-child(odd) {
    padding-left: 0;
  }

  .quick-features article:nth-child(even) {
    padding-right: 0;
  }
}

/* ---- Sprachumschalter DE | EN ------------------------------------------------------------ */
.brand { order: 0; }
.nav-panel { order: 2; }
.nav-toggle { order: 4; }

.lang-switch {
  order: 3;
  margin-left: 2.2rem;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  color: #9aa6b5;
  font-size: 0.88rem;
  font-weight: 600;
}

.lang-switch a {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  border-radius: 3px;
}

.lang-switch a:hover,
.lang-switch a:focus-visible {
  color: var(--color-primary-dark);
  background: #f2f5f9;
}

.lang-switch a.is-current {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 992px) {
  .lang-switch {
    margin-left: auto;
    margin-right: 0.5rem;
  }

  .nav-toggle {
    margin-left: 0;
  }
}

/* Hinweis in Übersetzungen: deutsche Fassung ist maßgeblich */
.legal-language-notice {
  margin: 0 0 1.5rem;
  padding: 0.8rem 1rem;
  background: #f2f5f9;
  border-left: 4px solid var(--color-primary);
  border-radius: 3px;
}

.legal-language-notice a {
  color: var(--color-primary);
  text-decoration: underline;
}

.notfound-divider {
  margin: 1.5rem 0;
  border: 0;
  border-top: 1px solid var(--color-border);
}

/* ---- Mindestgröße 14 px für lesbaren Text (Prüfung: scripts/check-layout.js) ---------------- */
.button,
.form-submit,
.quick-features p,
.section-copy > p,
.about-highlights h3,
.about-highlights p,
.service-card h3,
.service-card p,
.why-grid h3,
.why-grid p,
.field label,
.checkbox-field,
.form-status,
.field-error,
.contact-detail strong,
.contact-detail a,
.contact-detail span,
.contact-detail small,
.footer-brand p,
.footer-column > strong,
.footer-column a,
.footer-bottom,
.footer-bottom a {
  font-size: 0.875rem;
}

.form-status {
  font-size: 1rem;
}

/* Fehlermeldungen an den Formularfeldern */
.field-error {
  margin: 0.2rem 0 0;
  color: #8a0019;
  font-weight: 600;
  line-height: 1.4;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #b00020;
  box-shadow: 0 0 0 2px rgba(176, 0, 32, 0.12);
}

.checkbox-field input[aria-invalid="true"] {
  outline: 2px solid #b00020;
  outline-offset: 2px;
}

/* Telefon: Menü-Knopf am rechten Rand, Links im Fußbereich mit 40 px Klickhöhe */
@media (max-width: 992px) {
  .nav-toggle {
    margin-left: auto;
  }

  .lang-switch ~ .nav-toggle {
    margin-left: 0;
  }
}

@media (max-width: 576px) {
  .footer-column > div {
    gap: 0;
  }

  .footer-column a,
  .brand--footer {
    min-height: 40px;
    display: flex;
    align-items: center;
  }

  .footer-bottom a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
}

/* 404/403: Fußbereich schließt am unteren Fensterrand ab */
body[data-page="404"] .site-shell,
body[data-page="403"] .site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body[data-page="404"] .legal-page,
body[data-page="403"] .legal-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #f6f8fb;
}

body[data-page="404"] .legal-page-header,
body[data-page="403"] .legal-page-header {
  flex: 1;
}
