/* =========================================================
   Alenal — replica stylesheet
   Fonts: Montserrat · Palette sampled from the original site
   ========================================================= */

:root {
  --blue: #2678c1;
  --blue-dark: #1c5f9b;
  --blue-deep: #0a548f;
  --green: #6eab27;
  --green-dark: #5d9220;
  --ink: #434d56;
  --body: #4d5b68;
  --footer: #4d5b68;
  --line: #e6e9ec;
  --bg-soft: #f6f8fa;
  --cookie: #2ea3f2;
  --header-h: 96px;
  --container: 1080px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  /* Montserrat covers latin only. The CJK faces after it are deliberately
     explicit: without them a Chinese page falls back to whatever the OS
     defaults to, which on Windows is SimSun — a serif that fights the rest of
     the layout. No webfont is shipped for CJK; a usable subset would cost
     several hundred KB. */
  font-family: 'Montserrat', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
               'Noto Sans SC', 'Source Han Sans SC', Helvetica, Arial, Lucida, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 500;
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; border: 0; }
a { color: var(--blue); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--blue-dark); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; line-height: 1.25; }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

.container {
  width: 80%;
  max-width: var(--container);
  margin: 0 auto;
}

/* =========================== HEADER =========================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: #fff;
  transition: box-shadow .3s var(--ease);
}

.site-header.is-stuck { box-shadow: 0 2px 18px rgba(20, 45, 70, .12); }

.header-inner {
  width: 80%;
  max-width: 1080px;
  margin: 0 auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { flex: 0 0 auto; }
.logo img { height: 53px; width: auto; }

.main-nav { display: flex; align-items: center; }

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: var(--body);
  padding: 8px 0;
  position: relative;
  white-space: nowrap;
}

/* No bar under the header menu.
 *
 * The replica drew a 2px blue rule that swept in on hover and stayed put on the
 * current page's item (`.main-nav > ul > li > a::after` + `:hover`/`.is-active`
 * with `right: 0`). On the active link it reads as a text underline rather than
 * an indicator, which is not wanted. Hover still shifts the colour to blue and
 * the current item keeps that colour, so the two states stay distinguishable
 * without the rule. */

.main-nav a:hover,
.main-nav a.is-active { color: var(--blue); }

/* dropdown */
.has-dropdown { position: relative; }

.has-dropdown > a .caret {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  margin-left: 8px;
  vertical-align: 1px;
  opacity: .75;
}

/* The submenu button only exists for touch: above 980px the dropdown opens on
   hover and the caret inside the link is decoration. */
.dropdown-toggle { display: none; }

.dropdown {
  position: absolute;
  top: 100%;
  left: -22px;
  min-width: 268px;
  background: #fff;
  padding: 10px 0;
  box-shadow: 0 14px 34px rgba(15, 45, 75, .16);
  border-top: 3px solid var(--blue);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .28s var(--ease);
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 9px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
}

.dropdown a:hover { background: var(--bg-soft); color: var(--blue); }

/* language */
.lang { position: relative; margin-left: 24px; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 8px 0;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--body);
  cursor: pointer;
}

.lang-toggle:hover { color: var(--blue); }
.lang-toggle .flag { width: 22px; height: 15px; border-radius: 2px; overflow: hidden; }
.lang-toggle .caret {
  width: 6px; height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .75;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 168px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 45, 75, .16);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .25s var(--ease);
}

.lang-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

.lang-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: 0;
  padding: 8px 16px;
  font: inherit;
  font-size: 14px;
  color: var(--body);
  cursor: pointer;
  text-align: left;
}

.lang-menu button:hover { background: var(--bg-soft); color: var(--blue); }
.lang-menu .flag { width: 20px; height: 14px; border-radius: 2px; overflow: hidden; flex: 0 0 auto; }
.lang-menu .flag svg, .lang-toggle .flag svg { width: 100%; height: 100%; display: block; }

/* burger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--body);
  transition: transform .3s var(--ease), opacity .2s;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================== HERO SLIDER =========================== */

.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: #0a3b60;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s var(--ease), visibility 1.1s;
}

.slide.is-active { opacity: 1; visibility: visible; }

.slide-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.slide.is-active .slide-bg { animation: kenburns 13s ease-out forwards; }

@keyframes kenburns {
  from { transform: scale(1.02); }
  to { transform: scale(1.13); }
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 42, 72, .38) 0%, rgba(6, 42, 72, .30) 45%, rgba(6, 42, 72, .58) 100%);
}

.slide-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

.slide-title {
  color: #fff;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.36;
  max-width: 920px;
  margin: 0;
  /* Chinese and German headlines are long enough to break with a single
     character or word left on the last line. `balance` evens the lines out
     instead of filling each one to the edge; browsers that do not know it
     fall back to normal wrapping. */
  text-wrap: balance;
  text-shadow: 0 2px 26px rgba(0, 0, 0, .35);
  letter-spacing: -.2px;
}

.slide .btn-outline { margin-top: 34px; }

.btn {
  display: inline-block;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  padding: 11px 30px;
  border-radius: 3px;
  transition: all .28s var(--ease);
  cursor: pointer;
}

.btn-outline {
  color: #fff;
  border: 2px solid #fff;
  background: transparent;
}

.btn-outline:hover {
  background: #fff;
  color: var(--blue);
}

.btn-light {
  background: #fff;
  color: var(--blue);
  border: 0;
  padding: 14px 30px;
}

.btn-light:hover { background: var(--ink); color: #fff; }

.btn-solid {
  background: var(--blue);
  color: #fff;
  border: 0;
  padding: 14px 30px;
}

.btn-solid:hover { background: var(--blue-dark); color: #fff; }

/* slider controls */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .5);
  background: rgba(10, 50, 85, .25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all .3s var(--ease);
}

.hero:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: rgba(255, 255, 255, .9); color: var(--blue); }
.hero-arrow.prev { left: 26px; }
.hero-arrow.next { right: 26px; }

.hero-dots {
  position: absolute;
  /* The buttons below are 44px tall so they can actually be tapped; the
     visible dot sits in the middle of that box, so the offset drops by half
     the difference to keep the dot where it has always been. */
  bottom: 10px;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 0;
}

/* 11px of visible dot, 44px of touch target.
 *
 * The dot used to *be* the button, which made the tap target 11x11 — well
 * under the 44x44 that both Apple and Material ask for, and genuinely hard to
 * hit with a thumb. The button is now the full 44px box and the dot is drawn
 * inside it, so nothing changes visually while the target grows fourfold.
 *
 * `gap` is 0 because the 44px boxes already provide the spacing: the dots sit
 * 44px apart, which is the same rhythm the arrows use. */
.hero-dots button {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.hero-dots button::before {
  content: '';
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .85);
  background: transparent;
  transition: background .3s;
}

.hero-dots button.is-active::before { background: #fff; }

/* =========================== SECTIONS =========================== */

.section-welcome {
  padding: 72px 0 58px;
  text-align: center;
}

.section-welcome h1 {
  color: var(--blue);
  font-size: 35px;
  font-weight: 600;
  line-height: 2;
  margin-bottom: 18px;
}

.section-welcome p {
  max-width: 1012px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
}

/* blue parallax block */
.section-facts {
  position: relative;
  padding: 99px 0 89px;
  color: #fff;
  background: #0a548f url("../img/hg_blau.jpg") center center / cover no-repeat fixed;
  overflow: hidden;
}

.section-facts::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(9, 84, 145, .70);
}

.section-facts > .container { position: relative; z-index: 2; }

.section-facts h2 {
  color: #fff;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 62px;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}

.fact-icon { height: 96px; margin-bottom: 26px; }
.fact-icon img { height: 96px; width: auto; }

.fact h3 {
  color: #fff;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 16px;
}

.fact p {
  color: #fff;
  font-size: 16px;
  line-height: 1.8;
  opacity: .96;
}

/* green brochure band */
.section-brochure {
  background: var(--green);
  padding: 54px 0;
  color: #fff;
}

.brochure-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
}

.section-brochure h2 {
  color: #fff;
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 14px;
}

.section-brochure p { color: #fff; max-width: 640px; margin: 0; }
.section-brochure strong { font-weight: 700; }

/* world map */
/* Full bleed: the artwork is 1920×800, so it runs edge to edge up to 1920px and
   scales down with the viewport below that. The pin is positioned in percentages,
   so it follows the image without touching .map-pin. */
.section-map { padding: 3px 0; background: #fff; }
.map-wrap { position: relative; width: 100%; max-width: 1920px; margin: 0 auto; }
.map-wrap img { width: 100%; height: auto; display: block; }
.map-pin {
  position: absolute;
  /* Printed by bin/map-dots.py on every run. Xi'an's true coordinates would be
     59.47% / 41.19%, but at that spot the pin reads as "too far east" — China's
     mass runs 30° west of the city and only 10° east to the coast — so the pin is
     drawn ~484 km south-west of the city by agreement with the client. */
  left: 57.00%;
  top: 43.04%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  display: block;
}

.map-pin i {
  position: absolute;
  inset: 0;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(110, 171, 39, .25);
}

.map-pin::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: rgba(110, 171, 39, .45);
  animation: pin-pulse 2.6s ease-out infinite;
}

@keyframes pin-pulse {
  0% { transform: scale(1); opacity: .7; }
  70% { transform: scale(3.2); opacity: 0; }
  100% { transform: scale(3.2); opacity: 0; }
}

.map-pin b {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: .02em;
  background: rgba(255, 255, 255, .92);
  padding: 2px 8px;
  border-radius: 2px;
}

/* =========================== PAGE HERO (inner pages) =========================== */

.page-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #0a548f center / cover no-repeat;
  overflow: hidden;
  padding: 60px 24px;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(9, 74, 128, .82);
}

.page-hero > * { position: relative; z-index: 2; }

.page-hero h1 {
  color: #fff;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .3);
}

/* generic content */
.page-section { padding: 74px 0; }
.page-section.tight { padding: 54px 0; }
.page-section.soft { background: var(--bg-soft); }

.page-section h2 {
  font-size: 30px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 22px;
}

.page-section h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.lead {
  font-size: 17px;
  line-height: 1.85;
  color: var(--body);
  max-width: 900px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 14px;
}

/* two column text */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* milestones */
.timeline {
  position: relative;
  margin-top: 46px;
  padding-left: 34px;
  border-left: 2px solid var(--line);
}

.timeline-item { position: relative; padding-bottom: 42px; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -43px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--blue);
}

.timeline-year {
  font-size: 30px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.1;
  margin-bottom: 8px;
}

/* product cards */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
  margin-top: 44px;
}

.cards.cols-3 { grid-template-columns: repeat(3, 1fr); gap: 26px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 34px 32px 30px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .35s var(--ease);
}

.card:hover {
  box-shadow: 0 18px 40px rgba(18, 52, 84, .12);
  transform: translateY(-3px);
  border-color: transparent;
}

.card:hover::before { transform: scaleY(1); }

.card .index {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--green);
  display: block;
  margin-bottom: 10px;
}

.card h3 { font-size: 23px; margin-bottom: 12px; }
.card p { font-size: 15.5px; margin-bottom: 18px; }

.card .link-more {
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  align-self: flex-start;
  /* Vertical padding is what makes this a tap target rather than a 27px-tall
     strip of text: 8px top and bottom puts the box just over 40px. */
  padding: 8px 0;
}

.card .link-more::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .25s var(--ease);
}

.card .link-more:hover::after { transform: rotate(45deg) translate(3px, -3px); }

/* feature rows (quality / services) */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.feature-row:last-child { border-bottom: 0; }
.feature-row.reverse .feature-media { order: 2; }

.feature-media {
  aspect-ratio: 4 / 3;
  background: var(--bg-soft) center / cover no-repeat;
  border-radius: 2px;
}

.feature-body h2 { margin-bottom: 14px; }

/* certificates */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}

/* certificates — labels, not links
 *
 * These used to be <a href> pointing at PDFs on the old berolan.at server.
 * They are plain <div> now (see src/Views/pages/quality.php), so `cursor` is
 * spelled out: the default arrow is the honest one, because there is nothing
 * to click. The hover rule below is keyed on the class, not on `a`, which is
 * why it survived the change — the cards still light up under the pointer.
 */
.cert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: default;
  transition: all .25s var(--ease);
}

.cert:hover { border-color: var(--blue); color: var(--blue); box-shadow: 0 10px 26px rgba(18, 52, 84, .08); }

.cert .tick {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.info-block { margin-bottom: 30px; }
.info-block h3 {
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue);
  margin-bottom: 8px;
}
.info-block p { margin: 0; }

.hours { border-collapse: collapse; width: 100%; font-size: 15px; }
.hours td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours td:last-child { text-align: right; font-weight: 600; color: var(--ink); }

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--body);
  padding: 12px 14px;
  border: 1px solid #d8dee4;
  background: #fff;
  border-radius: 2px;
  transition: border-color .25s, box-shadow .25s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(38, 120, 193, .12);
}
.form-note { font-size: 14px; margin-top: 12px; min-height: 22px; }
.form-note.ok { color: var(--green-dark); font-weight: 600; }

/* =========================== FOOTER =========================== */

.site-footer {
  background: var(--footer);
  color: #fff;
  padding: 58px 0 52px;
  font-size: 16px;
  line-height: 1.8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr auto;
  gap: 40px;
  align-items: center;
}

.site-footer a { color: #fff; }
.site-footer a:hover { color: #cfe4f7; }

/* WhatsApp + Telegram QRs in the footer's right column — rounded corners, no link. */
.footer-qr-group {
  display: flex;
  gap: 24px;
  justify-self: end;
}

.footer-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-qr__img {
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 6px;
  background: #fff;
  object-fit: cover;
}

.footer-qr__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .7;
  line-height: 1;
}

.footer-lang {
  background: #fff;
  padding: 10px 0;
  text-align: center;
}

.footer-lang ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 26px;
}

.footer-lang button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 0;
  padding: 4px 0;
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--body);
  cursor: pointer;
}

.footer-lang button:hover { color: var(--blue); }
.footer-lang .flag { width: 17px; height: 12px; border-radius: 1px; overflow: hidden; }
.footer-lang .flag svg { width: 100%; height: 100%; display: block; }

/* =========================== COOKIE / TOP =========================== */

.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 950;
  background: var(--cookie);
  color: #fff;
  padding: 14px 20px 16px;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  transform: translateY(100%);
  transition: transform .5s var(--ease);
}

.cookie-bar.is-visible { transform: translateY(0); }

.cookie-bar p { margin: 0 auto 10px; max-width: 1000px; }

.cookie-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-actions button,
.cookie-actions a {
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 30px;
  border: 0;
  color: #fff;
  cursor: pointer;
  transition: filter .2s;
}

.cookie-actions .accept { background: #4caf50; }
.cookie-actions .decline { background: #3d8fd1; }
.cookie-actions .info { background: #2b8ac9; }
.cookie-actions button:hover,
.cookie-actions a:hover { filter: brightness(1.1); color: #fff; }

.to-top {
  position: fixed;
  right: 12px;
  bottom: 104px;
  z-index: 800;
  width: 48px;
  height: 48px;
  background: #2f2f2f;
  color: #fff;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all .3s var(--ease);
}

.to-top.is-visible { opacity: .85; visibility: visible; }
.to-top:hover { opacity: 1; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translate(-50%, 20px);
  background: rgba(20, 40, 60, .94);
  color: #fff;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 4px;
  z-index: 990;
  opacity: 0;
  pointer-events: none;
  transition: all .3s var(--ease);
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* =========================== REVEAL =========================== */

.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }

.js .reveal:not(.is-visible) { opacity: 0; transform: translateY(26px); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal:not(.is-visible) { opacity: 1; transform: none; transition: none; }
  .slide.is-active .slide-bg { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================== RESPONSIVE =========================== */

@media (max-width: 1100px) {
  .main-nav > ul { gap: 20px; }
  .main-nav a, .lang-toggle { font-size: 15px; }
  .logo img { height: 43px; }
}

@media (max-width: 980px) {
  :root { --header-h: 78px; }

  .nav-toggle { display: flex; }
  .logo img { height: 39px; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 24px 26px;
    box-shadow: 0 18px 30px rgba(15, 45, 75, .14);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: all .3s var(--ease);
  }

  .main-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }

  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); }
  .main-nav > ul > li > a { display: block; padding: 14px 0; font-size: 16px; }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: 0;
    border-left: 2px solid var(--line);
    padding: 4px 0 10px 14px;
    margin: 0 0 8px;
    display: none;
  }

  .has-dropdown.is-expanded .dropdown { display: block; }

  /* Two columns: the label on the left navigates, the caret on the right opens
     the list. A grid rather than absolute positioning so the caret is centred
     on the row whatever the label's line height turns out to be. */
  .has-dropdown {
    display: grid;
    grid-template-columns: 1fr 44px;
    align-items: center;
  }

  .has-dropdown > a .caret { display: none; }

  .dropdown-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--body);
    cursor: pointer;
  }

  .dropdown-toggle .caret {
    display: block;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .25s var(--ease);
  }

  .has-dropdown.is-expanded .dropdown-toggle .caret {
    transform: rotate(-135deg) translateY(-2px);
  }

  /* Spans both columns, so the list still sits under the whole row. */
  .has-dropdown .dropdown { grid-column: 1 / -1; }

  .lang { margin: 14px 0 0; }
  .lang-menu { position: static; box-shadow: none; display: none; padding: 4px 0 0; }
  .lang-menu.is-open { display: block; }

  .hero { height: 460px; }
  .slide-title { font-size: 32px; }
  .section-facts { background-attachment: scroll; padding: 70px 0; }
  .section-facts h2 { font-size: 32px; margin-bottom: 44px; }
  .facts-grid { grid-template-columns: 1fr; gap: 40px; }
  .brochure-grid { grid-template-columns: 1fr; gap: 26px; }
  .split, .contact-grid, .cards, .cards.cols-3, .feature-row { grid-template-columns: 1fr; gap: 34px; }
  .feature-row.reverse .feature-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; text-align: left; }
  .footer-qr-group { justify-self: start; }
  .footer-qr { align-items: flex-start; }
  .section-welcome h1 { font-size: 28px; line-height: 1.5; }
  .page-hero { min-height: 260px; }
  .page-hero h1 { font-size: 30px; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .to-top { bottom: 150px; }
}

@media (max-width: 560px) {
  .container { width: 88%; }
  .hero { height: 400px; }
  .slide-title { font-size: 25px; }
  /* The headline carries a hard <br> that splits it into a headline and a
     sub-line — a good break on a desktop, a bad one on a phone, where the
     sub-line is 16 Chinese characters wide and ends with "重。" alone on the
     third line. Dropping the break lets `text-wrap: balance` divide the whole
     sentence into two even lines instead. */
  .slide-title br { display: none; }
  .btn { font-size: 16px; padding: 10px 22px; }
  .section-welcome { padding: 50px 0 40px; }
  .section-welcome h1 { font-size: 24px; }
  .section-facts h2 { font-size: 26px; }
  .fact h3 { font-size: 22px; }
  .cert-grid { grid-template-columns: 1fr; }
  .footer-lang ul { gap: 14px; }
  .footer-lang button { font-size: 11.5px; }
  .page-section { padding: 52px 0; }
  .page-section h2 { font-size: 24px; }
  .hero-arrow { display: none; }
}

/* =========================== SUB NAV (product pages) =========================== */

.page-hero.small { min-height: 280px; padding: 48px 24px; }
.page-hero.small h1 { font-size: 38px; }

.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.subnav .container {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scrollbar-width: none;
}

.subnav .container::-webkit-scrollbar { display: none; }

.subnav a {
  padding: 17px 0 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--body);
  /* Transparent, not absent: it is the 3px the active tab used to paint blue,
   * and dropping it would shorten the bar and shift the labels up. It stays as
   * spacing only — the current tab is marked by colour alone, same as the
   * header menu. */
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color .25s var(--ease);
}

.subnav a:hover { color: var(--blue); }
.subnav a.is-active { color: var(--blue); }

/* Set by app.js while the row is wider than the viewport and has not been
   scrolled to the end. Without it the cut-off tab read as a missing one —
   which is exactly how "Other products" got reported as not displayed. */
.subnav.has-more::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 1px;
  width: 56px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff 70%);
  pointer-events: none;
}

/* Six categories stopped fitting in one row below ~1400px, and the container
   hides its scrollbar, so a cut-off last item looked like a missing one.
   Tighten the row before falling back to the horizontal scroll phones use. */
@media (max-width: 1400px) {
  .subnav .container { gap: 20px; }
  .subnav a { font-size: 13.5px; }
}

@media (max-width: 1240px) {
  .subnav .container { gap: 16px; }
  .subnav a { font-size: 13px; }
}

/* =========================== PRODUCT LIST =========================== */

.product-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.product {
  background: #fff;
  border: 1px solid var(--line);
  padding: 26px 28px 26px;
  /* Column flex so the "add to request" button can be pinned to the bottom of
     the card: grid rows are equal height, but the descriptions are not, so
     without this the buttons in one row sit at different heights. */
  display: flex;
  flex-direction: column;
  transition: border-color .25s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
  /* Each card is an anchor target (#alenal-lp-50). The header is sticky, so
     without this a jump lands with the card's title hidden underneath it. */
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.product:hover {
  border-color: rgba(38, 120, 193, .45);
  box-shadow: 0 14px 32px rgba(18, 52, 84, .09);
  transform: translateY(-2px);
}

.product h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
  letter-spacing: .01em;
  /* "Weinsäure/Zitronensäure" is one unbreakable run — a slash is not a break
     opportunity in CSS. At 19px it is 232px wide, which made the grid track
     290px inside a 282px column on a 320px phone. `anywhere` also lowers the
     min-content contribution, so the track stops growing; the word only
     breaks when there is genuinely no room. */
  overflow-wrap: anywhere;
}

.product .product-meta {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7d8b98;
  background: var(--bg-soft);
  padding: 3px 9px;
  border-radius: 2px;
  margin: 0 0 12px;
}

.product p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--body);
  margin: 0;
}

.doc-link { margin-top: 34px; }
.doc-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* Bottom row of a product category: PDF link on the left, share on the right.
   Both live in one flex row so the share button does not add another block of
   vertical rhythm to a page that already ends in a brochure band. */
.page-tools {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
}
.page-tools .doc-link { margin-top: 0; }

/* auto margin keeps the group on the right even when the category has no PDF
   link and it is the only child of the row. */
.share-wrap { position: relative; margin-left: auto; }

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--blue);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 20px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.share-btn:hover { border-color: var(--blue); background: var(--bg-soft); }
.share-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Confirmation sits centred under the button. Absolute so it never shifts the
   row; the section's 74px bottom padding leaves room for it. */
.share-note {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, -4px);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--blue-dark);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.share-note.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* A finger needs 44px; the desktop pill can stay compact. */
@media (pointer: coarse) {
  .share-btn { padding: 14px 22px; }
}

/* Without JS the button cannot do anything, so do not offer it at all. */
.no-js .share-wrap { display: none; }

/* =========================== LANG MENU ACTIVE =========================== */

.lang-menu button.is-active { color: var(--blue); font-weight: 700; background: var(--bg-soft); }

@media (max-width: 980px) {
  .product-list { grid-template-columns: 1fr; }
  .subnav { top: var(--header-h); }
  .subnav .container { gap: 20px; }
  .subnav a { font-size: 13.5px; }
  .page-hero.small { min-height: 220px; }
  .page-hero.small h1 { font-size: 28px; }
}

.product-note {
  display: none;
  font-size: 13.5px;
  color: #7d8b98;
  background: var(--bg-soft);
  border-left: 3px solid var(--line);
  padding: 9px 14px;
  margin: 0 0 22px;
}

html:not([lang="en"]) .product-note { display: block; }

/* =========================== NARROW PHONES =========================== */

/* 320–380px: the narrowest phones still in use (iPhone SE, first generation).
 *
 * A German compound heading such as "Betonzusatzmittel" is 270px wide at 28px
 * against a 239px column, so the word ran straight out of the hero. Dropping
 * the heading to 22px brings it back inside without resorting to automatic
 * hyphenation, which in Chrome splits compounds at syllable boundaries
 * ("Luftpo-renbildner") rather than at the compound joint a German reader
 * expects.
 *
 * This block sits at the very end of the file on purpose: several earlier
 * `max-width: 980px` blocks also set a hero heading size, and a narrower
 * media query does not by itself win — only source order does. */
@media (max-width: 380px) {
  .page-hero h1 { font-size: 26px; }
  .page-hero.small h1 { font-size: 22px; }
  .slide-title { font-size: 22px; }
  .product h3 { font-size: 17px; }
}

/* =========================== SHORT VIEWPORTS (LANDSCAPE PHONES) =========================== */

/* A phone held sideways (844×390) leaves the 260px hero plus the 78px sticky
 * header filling 338 of 390px — the page opens as a full-screen photo with
 * almost no body copy. Compress the hero only when the viewport is both short
 * and landscape, so portrait phones, tablets and desktop windows keep the
 * current proportions. */
@media (max-height: 500px) and (orientation: landscape) {
  .page-hero { min-height: 160px; padding: 26px 24px; }
  .page-hero.small { min-height: 150px; padding: 22px 24px; }
  .page-hero h1 { font-size: 26px; }
  .page-hero.small h1 { font-size: 22px; }
}
