/* Materion GmbH: look of the original Neve/WordPress site, refined by the design review
   (accessible state colours, spacing scale, desktop navigation, download buttons). */

/* Poppins is self-hosted (downloaded during the Docker build), no requests to Google. */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/poppins-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/poppins-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/poppins-latin-600-normal.woff2") format("woff2");
}

:root {
  --nv-primary-accent: #2b2b2b;
  /* brand orange: surfaces and buttons only (too light for text, outlines or state markers) */
  --nv-secondary-accent: #fcaf3b;
  /* dark orange for states on light backgrounds: 5.4:1 on white, 4.6:1 on the grey bands */
  --accent-strong: #9a5b00;
  --nv-site-bg: #ffffff;
  --nv-light-bg: #ededed;
  --nv-text-color: #14171c;
  --muted-text: #4a4f57;
  --field-border: #767676;
  --table-bg: #f3f4f5;
  --table-stripe: #f0f0f0;
  --error: #b42318;
  --success: #2f7a4b;
  --container: 1170px;
  --gap: 2em;
  /* spacing scale: every vertical gap between blocks is one of these steps */
  --space-s: 24px;
  --space-m: 48px;
  --space-l: 96px;
  --font: "Poppins", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC",
    Arial, Helvetica, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--nv-site-bg);
  color: var(--nv-text-color);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  /* em on purpose: like the original, children inherit 28.9px */
  line-height: 1.7em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* off-canvas menu open: the page behind it does not scroll */
body[data-menu-open] {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}
/* <picture> only picks the file format; layout applies to the img inside */
picture {
  display: contents;
}

figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.8rem;
}
h1 {
  font-size: 40px;
}
/* .h2: page headings are h1 for structure but keep the h2 look of the original */
h2,
.h2 {
  font-size: 30px;
}
h3,
.h3 {
  font-size: 24px;
}

p {
  margin: 0 0 20px;
}

a {
  color: var(--nv-primary-accent);
  text-underline-offset: 0.15em;
}
/* hover keeps the text dark and strengthens the underline */
a:hover {
  color: var(--nv-text-color);
  text-decoration-color: var(--accent-strong);
  text-decoration-thickness: 2px;
}

strong,
b,
th {
  font-weight: 600;
}

/* Neve: lists without bottom margin, 10px between items. sub/sup keep browser defaults (taller line boxes, as on the original). */
ul {
  list-style: circle;
  margin: 0;
  padding-left: 20px;
}
.site-main li {
  margin-top: 10px;
}

:focus-visible {
  outline: 2px solid var(--nv-text-color);
  outline-offset: 2px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed !important;
  top: 10px;
  left: 10px;
  z-index: 1000;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 18px;
  clip: auto;
  background: #fff;
  color: var(--nv-text-color);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

/* ---------- layout helpers ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 15px;
}
.container-fluid {
  max-width: none;
}

.site-main {
  padding-bottom: var(--space-m);
}

.spacer {
  flex-shrink: 0;
}
.spacer-s {
  height: var(--space-s);
}
.spacer-m {
  height: var(--space-m);
}
.spacer-l {
  height: var(--space-l);
}

/* comfortable line length for long text (about 75 characters) */
.readable {
  max-width: 75ch;
}
.readable-center {
  max-width: 75ch;
  margin-right: auto;
  margin-left: auto;
}

.has-text-align-center {
  text-align: center;
}
.has-text-align-right {
  text-align: right;
}
.has-text-align-left {
  text-align: left;
}
.has-small-font-size {
  font-size: 15px;
}

.button {
  display: inline-block;
  padding: 8px 16px;
  border: 0;
  border-radius: 0;
  background: var(--nv-secondary-accent);
  color: var(--nv-text-color);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.2s ease;
}
.button:hover {
  color: var(--nv-text-color);
  filter: brightness(0.94);
}
.button:disabled {
  cursor: progress;
  opacity: 0.7;
}

/* Full-width section; grey variant like the WordPress "cover" blocks of the original. */
.band {
  padding-top: var(--space-l);
  padding-bottom: var(--space-l);
  background: var(--nv-site-bg);
}
.band-light {
  background: var(--nv-light-bg);
}
/* bands end exactly on the scale */
.band > .container > :last-child {
  margin-bottom: 0;
}

/* WordPress column semantics: equal columns grow, columns with an explicit flex-basis don't. */
.cols {
  display: flex;
  gap: var(--gap);
}
.cols:not(:last-child) {
  margin-bottom: var(--space-s);
}
.col {
  flex: 1 1 0;
  min-width: 0;
}
.col[style*="flex-basis"] {
  flex-grow: 0;
}
.col.v-center {
  align-self: center;
}

.image-center {
  display: flex;
  justify-content: center;
}
.image-full {
  width: 100%;
}

/* ---------- language hint (browser language differs from the page) ---------- */

.lang-hint {
  background: var(--nv-text-color);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
}
.lang-hint-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 16px;
  min-height: 44px;
  padding-top: 4px;
  padding-bottom: 4px;
}
.lang-hint p {
  margin: 0;
}
.lang-hint a {
  color: #fff;
  font-weight: 600;
}
.lang-hint a:hover {
  color: #fff;
  text-decoration-color: var(--nv-secondary-accent);
}
.lang-hint-close {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.lang-hint :focus-visible {
  outline-color: #fff;
}

/* ---------- header ---------- */

.site-header {
  position: relative;
  z-index: 10;
  background: var(--nv-site-bg);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 124px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.site-logo {
  margin-right: auto;
}
.site-logo img {
  width: 300px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 44px;
  height: 40px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  width: 15px;
  height: 2px;
  background: var(--nv-text-color);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-open .bar:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.nav-toggle.is-open .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open .bar:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.lang-switch {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}
/* 26px high targets */
.lang-switch a {
  padding: 6px 8px;
  color: var(--nv-text-color);
  text-decoration: none;
}
.lang-switch a + a {
  border-left: 1px solid rgba(20, 23, 28, 0.35);
}
.lang-switch a.active {
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.lang-switch a:not(.active):hover {
  color: var(--nv-text-color);
  text-decoration: underline;
  text-decoration-color: var(--accent-strong);
  text-underline-offset: 5px;
}

/* language dropdown, phones only (replaces the inline switch and the Kontakt button there) */
.lang-dropdown {
  display: none;
  position: relative;
}
.lang-dropdown summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--nv-text-color);
  color: var(--nv-text-color);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.lang-dropdown summary::-webkit-details-marker {
  display: none;
}
.lang-dropdown summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.lang-dropdown[open] summary::after {
  transform: translateY(1px) rotate(-135deg);
}
.lang-dropdown ul {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  min-width: 170px;
  margin: 0;
  padding: 6px 0;
  border: 1px solid var(--nv-light-bg);
  background: var(--nv-site-bg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  list-style: none;
}
.lang-dropdown a {
  display: block;
  padding: 11px 16px;
  color: var(--nv-text-color);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}
.lang-dropdown a:hover {
  background: var(--nv-light-bg);
  color: var(--nv-text-color);
}
.lang-dropdown a[aria-current="true"] {
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--accent-strong);
}
.globe-icon {
  flex: none;
}

/* horizontal navigation on wide screens (the off-canvas menu stays for smaller screens) */
.primary-nav {
  display: none;
}
.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-nav a {
  display: block;
  padding: 13px 0 10px;
  border-bottom: 3px solid transparent;
  color: var(--nv-text-color);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
}
.primary-nav a:hover {
  color: var(--nv-text-color);
  border-bottom-color: var(--nv-secondary-accent);
}
.primary-nav a[aria-current="page"] {
  border-bottom-color: var(--accent-strong);
}
@media (min-width: 1200px) {
  .primary-nav {
    display: block;
    border-top: 1px solid var(--nv-light-bg);
  }
  .nav-toggle {
    display: none;
  }
}

/* off-canvas menu, slides in from the left like Neve's "slide_left" sidebar */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.menu-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 99;
  width: 360px;
  max-width: 85vw;
  padding: 75px 20px 30px;
  overflow-y: auto;
  background: var(--nv-site-bg);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s ease;
  text-align: center;
}
/* visible at once when opening (focus can move in), still animated when closing */
.menu-sidebar.is-open {
  transform: none;
  visibility: visible;
  transition: transform 0.3s ease;
}
.menu-close {
  position: absolute;
  top: 6px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--nv-text-color);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.menu-sidebar .menu {
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
}
.menu-sidebar .menu a {
  display: block;
  padding: 6px 0;
  color: var(--nv-text-color);
  font-size: 15.3px;
  font-weight: 600;
  line-height: 1.6;
  text-decoration: none;
  text-transform: uppercase;
}
.menu-sidebar .menu a:hover,
.menu-sidebar .menu a[aria-current="page"] {
  color: var(--nv-text-color);
  text-decoration: underline;
  text-decoration-color: var(--accent-strong);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.menu-sidebar .button {
  font-size: 15.3px;
}
.menu-lang {
  justify-content: center;
  margin-top: 28px;
}

/* ---------- page title ---------- */

.page-title {
  padding-top: var(--space-s);
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--nv-light-bg);
}
.page-title h1 {
  margin: 0;
}
/* breadcrumb trail at the top of every subpage; the following block decides the gap */
.breadcrumb-bar {
  padding-top: var(--space-s);
}
.breadcrumb-bar + .band {
  margin-top: var(--space-s);
}
.breadcrumb-bar + .container > .page-title {
  padding-top: 0;
}
.breadcrumbs {
  margin-bottom: 1px;
  font-size: 14.17px;
}
.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--nv-secondary-accent);
  color: var(--nv-text-color);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  min-height: 150px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.footer-menu a {
  color: var(--nv-text-color);
  font-weight: 500;
  text-decoration: none;
}
.footer-menu a:hover {
  color: var(--nv-text-color);
  text-decoration: underline;
  text-decoration-color: currentColor;
}
.footer-copyright {
  margin: 0;
  text-align: center;
}
.footer-lang {
  justify-self: end;
}
.footer-lang a + a {
  border-left-color: rgba(20, 23, 28, 0.45);
}
.footer-lang a:not(.active):hover {
  text-decoration-color: currentColor;
}

/* ---------- page content ---------- */

/* Home: photo first, funding logos beside it (still visible without scrolling) */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 800px) 195px;
  justify-content: center;
  align-items: start;
  gap: var(--gap);
}
.hero-photo figcaption {
  margin-top: 8px;
  text-align: center;
}
.funding {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.funding-label {
  margin: 0;
  color: var(--muted-text);
  font-size: 13px;
  line-height: 1.4;
}

.cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 184px;
  padding: 17px;
  overflow: hidden;
}
.cover-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 50%;
}
.cover-dim::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
  opacity: 0.4;
  transition: opacity 0.2s ease;
}
.cover-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
}
/* block: the call to action goes on its own line below the headline */
.cover-text {
  display: block;
  margin: 0;
  color: #fff;
  font-size: 28px;
  line-height: 1.3;
  text-align: center;
}
.cover-link,
.cover-link:hover {
  color: #fff;
  text-decoration: none;
}
.cover-link.cover-dim:hover::before {
  opacity: 0.55;
}
.cover-cta {
  display: inline-block;
  margin-top: 14px;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--nv-secondary-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Kontakt */
.contact-channel figure {
  margin-bottom: 12px;
}
.contact-channel h3 {
  margin-top: 0;
}
.contact-channel p {
  margin-bottom: 0;
}
.map figcaption,
.map {
  flex-direction: column;
  align-items: center;
}
.map figcaption {
  margin: 7px 0 0;
  font-size: 13px;
  text-align: center;
}
.map > a {
  display: block;
  width: 100%;
}
.map img {
  width: 100%;
}
.map .map-credit {
  color: var(--muted-text);
  font-size: 12px;
}
.map-zoom {
  cursor: zoom-in;
}
/* enlarged approach sketch on top of the page; any click or Escape closes it */
.map-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.75);
  cursor: zoom-out;
}
.map-lightbox img {
  width: min(100%, calc((100vh - 48px) * 640 / 381));
  height: auto;
  background: #fff;
}
.map-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--nv-text-color);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

/* Beschichtungstechnik */
.has-link-color {
  color: var(--nv-primary-accent);
}
.table-stripes {
  margin: var(--space-s) 0 0;
  overflow-x: auto;
}
.table-stripes table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: var(--table-bg);
}
.table-stripes th,
.table-stripes td {
  padding: 0.5em;
  border: 1px solid transparent;
  text-align: left;
  word-break: normal;
}
.table-stripes tbody tr:nth-child(odd) {
  background: var(--table-stripe);
}
.image-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 17px;
}

/* Partner (WordPress media & text block, media on the right) */
.media-text {
  display: grid;
  grid-template-columns: 1fr 36%;
  align-items: center;
  max-width: 970px;
  margin: 0 auto;
}
.media-text-content {
  padding: 0 8%;
}
.media-text-media img {
  width: 100%;
}

/* Impressum / Datenschutz / AGB */
.imprint-label {
  display: inline-block;
  min-width: 4.8em;
}
.translation-note {
  max-width: 75ch;
  padding: 12px 16px;
  border-left: 4px solid var(--nv-secondary-accent);
  background: #fff7e8;
  font-size: 15px;
}
.legal-body {
  max-width: 75ch;
}
.legal-text h2 {
  overflow-wrap: anywhere;
}
.legal-text h3 {
  font-size: 20px;
}
.legal-text ul {
  margin-bottom: 20px;
}
/* former "– " lines of the original: same line spacing as before */
.legal-text li {
  margin-top: 0;
}
.terms-text h3 {
  margin-top: 32px;
}
.terms-version {
  color: var(--muted-text);
}

/* ---------- downloads: one component for every PDF (language buttons) ---------- */

.downloads {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  vertical-align: middle;
}
.download-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--nv-text-color);
  background: #fff;
  color: var(--nv-text-color);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.download-button:hover {
  background: var(--nv-text-color);
  color: #fff;
}
.pdf-icon {
  flex: none;
}
.downloads-section {
  padding-top: var(--space-l);
}
.download-table {
  width: 100%;
  margin-top: var(--space-s);
  border-collapse: collapse;
}
.download-table th,
.download-table td {
  padding: 14px 24px 14px 0;
  border-bottom: 1px solid var(--nv-light-bg);
  text-align: left;
  vertical-align: middle;
}
.download-table thead th {
  padding-top: 0;
  color: var(--muted-text);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.download-table tbody th {
  white-space: nowrap;
}
.download-table td:last-child {
  padding-right: 0;
  white-space: nowrap;
}

.not-found {
  min-height: 40vh;
}

/* ---------- contact form ---------- */

.contact-form-section {
  padding-top: var(--space-l);
  padding-bottom: var(--space-l);
}
.contact-form-intro {
  max-width: 860px;
}
/* stand-in for the contact form (no SMTP yet): mail button and phone number */
.mail-request-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
.mail-request-note {
  max-width: 860px;
  color: var(--muted-text);
  font-size: 14px;
}
.contact-form {
  max-width: 860px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 34px;
}
.field-full {
  grid-column: 1 / -1;
}
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--field-border);
  border-radius: 0;
  background: #fff;
  color: var(--nv-text-color);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
}
.field textarea {
  min-height: 180px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--nv-text-color);
  outline: 2px solid var(--nv-text-color);
  outline-offset: 1px;
}
.field.has-error input,
.field.has-error textarea {
  border-color: var(--error);
}
.field-error {
  display: block;
  min-height: 0;
  margin-top: 4px;
  color: var(--error);
  font-size: 14px;
  line-height: 1.4;
}
.field-error:empty {
  display: none;
}
.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: start;
}
.consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 4px 0 0;
  accent-color: var(--accent-strong);
}
.field.consent label {
  font-weight: 400;
}
.consent .field-error {
  grid-column: 2;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 24px;
}
.form-note {
  color: var(--muted-text);
  font-size: 14px;
}
.form-alert {
  margin-bottom: 24px;
  padding: 12px 16px;
  border-left: 4px solid var(--error);
  background: #fdecea;
}
.form-success {
  max-width: 860px;
  padding: 24px 28px;
  border-left: 4px solid var(--success);
  background: #eaf5ee;
}
.form-success p:last-child {
  margin-bottom: 0;
}
/* honeypot */
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- responsive ---------- */

@media (max-width: 959px) {
  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
    padding-top: 30px;
    padding-bottom: 30px;
    text-align: center;
  }
  .footer-menu {
    justify-content: center;
  }
  .footer-lang {
    justify-self: center;
  }
}

@media (max-width: 781px) {
  .cols {
    flex-wrap: wrap;
  }
  .col,
  .col[style*="flex-basis"] {
    flex-basis: 100% !important;
  }
  .col-empty {
    display: none;
  }
  .has-text-align-right {
    text-align: left;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .home-hero {
    grid-template-columns: minmax(0, 1fr);
  }
  /* compact row above the photo: the EU emblem stays visible without scrolling on phones,
     both logos at the same height (the EU emblem must not be smaller than other logos) */
  .funding {
    order: -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
  }
  .funding-label {
    flex-basis: 100%;
  }
  .funding img {
    width: auto;
    height: 72px;
  }
}

@media (max-width: 699px) {
  :root {
    --space-m: 40px;
    --space-l: 64px;
  }
  h1 {
    font-size: 32px;
  }
  h2,
  .h2 {
    font-size: 26px;
  }
  h3,
  .h3 {
    font-size: 21px;
  }
  /* phones: logo, menu button and the language dropdown top right (Kontakt is in the menu) */
  .header-inner {
    min-height: 0;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .header-lang,
  .header-contact {
    display: none;
  }
  .lang-dropdown {
    display: block;
  }
  .site-logo img {
    width: min(300px, 44vw);
  }
  .header-actions {
    gap: 6px;
  }
  .cover-text {
    font-size: 22px;
  }
  .media-text {
    grid-template-columns: 1fr;
  }
  .media-text-media {
    grid-row: 1;
    margin-bottom: 10px;
  }
  .media-text-content {
    padding: 0;
  }
  /* download table as stacked cards */
  .download-table thead {
    display: none;
  }
  .download-table,
  .download-table tbody,
  .download-table tr,
  .download-table th,
  .download-table td {
    display: block;
  }
  .download-table tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--nv-light-bg);
  }
  .download-table th,
  .download-table td {
    padding: 0 0 6px;
    border: 0;
  }
  .download-table td:last-child {
    padding-top: 4px;
    white-space: normal;
  }
}

/* ---------- print (also used to generate the AGB PDFs, see pdf/build.sh) ---------- */

@media print {
  @page {
    size: A4;
    margin: 16mm 18mm 18mm;
  }
  body {
    font-size: 10.5pt;
    line-height: 1.55;
  }
  .skip-link,
  .lang-hint,
  .header-lang,
  .header-actions,
  .lang-dropdown,
  .primary-nav,
  .menu-sidebar,
  .menu-overlay,
  .site-footer,
  .breadcrumb-bar,
  .terms-download,
  .contact-form-section {
    display: none !important;
  }
  .header-inner {
    min-height: 0;
    padding: 0 0 6mm;
    justify-content: flex-end;
  }
  .site-logo {
    margin-right: 0;
  }
  .site-logo img {
    width: 52mm;
  }
  .container {
    max-width: none;
    padding: 0;
  }
  .site-main {
    padding-bottom: 0;
  }
  .page-title {
    padding-top: 0;
  }
  .readable,
  .readable-center,
  .legal-body,
  .translation-note {
    max-width: none;
  }
  h1 {
    font-size: 20pt;
  }
  .legal-text h2 {
    font-size: 15pt;
  }
  .terms-text h3 {
    margin-top: 6mm;
    font-size: 12pt;
    break-after: avoid;
  }
  p,
  li {
    orphans: 3;
    widows: 3;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-sidebar,
  .menu-overlay,
  .nav-toggle .bar,
  .cover-dim::before,
  .download-button {
    transition: none;
  }
}
