/* Emotive Systems Group – Stylesheet
   Farben und Schrift entsprechen der bisherigen WordPress-Seite (Neve-Theme): Poppins, Anthrazit #18191d, Akzent #fcaf3b. */

@font-face { font-family: 'Poppins'; src: url('/assets/fonts/poppins-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/assets/fonts/poppins-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/assets/fonts/poppins-latin-600-normal.woff2') format('woff2'); font-weight: 600 700; font-style: normal; font-display: swap; }

:root {
  --ink: #18191d;
  --text: #2b2b2b;
  --muted: #6b6d73;
  --accent: #fcaf3b;
  --accent-dark: #f39c1a;
  --line: #e7e7e9;
  --grey: #f5f5f6;
  --red: #e5484d;
  --wrap: 1170px;
  --gutter: 20px;
  --hdr: 76px;
  --font: 'Poppins', Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 400 17px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
p { margin: 0 0 18px; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3, .h3, .h-xl { color: var(--ink); font-weight: 600; margin: 0 0 18px; overflow-wrap: break-word; }
h1 { font-size: 70px; line-height: 1.2; letter-spacing: -.01em; }
h2 { font-size: 38px; line-height: 1.25; }
h3, .h3 { font-size: 20px; line-height: 1.4; }
.h-xl { font-size: 50px; line-height: 1.2; }
.lead { font-size: 20px; line-height: 1.7; }
.eyebrow { color: var(--accent-dark); font-size: 13.6px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.6; margin: 0 0 12px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.rounded { border-radius: 4px; }
.square { aspect-ratio: 1; object-fit: cover; object-position: 30% 70%; width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 800px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 4px; }
.skip:focus { top: 12px; }

/* ---------- Schaltflächen */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent); color: #000; border: 0; cursor: pointer;
  font-size: 18px; font-weight: 600; line-height: 1.5; letter-spacing: .02em; text-transform: uppercase; text-decoration: none;
  padding: 13px 30px;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--accent-dark); color: #000; transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(243, 156, 26, .7); }
.btn:active { transform: none; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Kopfbereich */
.hdr { position: sticky; top: 0; z-index: 50; background: #fff; transition: box-shadow .25s; }
.hdr.is-stuck { box-shadow: 0 1px 0 var(--line), 0 6px 24px -12px rgba(0, 0, 0, .18); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--hdr); }
.hdr__logo { flex: none; display: block; padding: 6px 0; }
.hdr__logo img { width: 132px; }
.hdr__right { display: flex; align-items: center; gap: 28px; }

.nav ul { display: flex; gap: 28px; }
.nav__link {
  position: relative; display: block; padding: 6px 0;
  color: var(--ink); font-size: 13.6px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
}
.nav__link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav__link:hover::after, .nav__link[aria-current]::after { transform: scaleX(1); }

/* Sprachumschalter */
.lang { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.lang__icon { width: 16px; height: 16px; margin: 0 4px 0 6px; color: var(--muted); }
.lang__opt {
  display: block; min-width: 38px; padding: 4px 10px; border-radius: 999px; text-align: center;
  font-size: 12.5px; font-weight: 600; letter-spacing: .08em; line-height: 1.4; text-decoration: none; color: var(--muted);
  transition: background .2s, color .2s;
}
a.lang__opt:hover { background: var(--grey); color: var(--ink); }
.lang__opt.is-active { background: var(--ink); color: #fff; }

/* ---------- Bühne der Startseite */
/* Bild am unteren Rand verankert (wie auf der alten Seite), Überschrift und Untertitel stehen bei jeder
   Bildschirmgröße im Himmel knapp über den Bergen, der Kontakt-Button darf vor den Bergen liegen.
   Gerechnet wird mit dem Seitenverhältnis des Bildes (1366 × 768 → 56,23 % der Breite) und dem höchsten Gipfel
   im mittleren Bildbereich (31 % der Bildhöhe von unten, gemessen in src/bilder/start/berge.jpg).
   --h       Höhe der Bühne: zeigt das ganze Bild, höchstens 760 px bzw. Fensterhöhe – aber immer hoch genug,
             dass auf sehr breiten Bildschirmen über dem Kamm Platz für die Schrift bleibt
   --kamm    Abstand vom höchsten Gipfel unter der Schrift bis zur Unterkante der Bühne. Auf breiten Bildschirmen
             steht die Schrift nur vor der Bildmitte, wo der Kamm eine Senke hat – dort gilt der zweite Wert
             (in der Vorschau von 375 bis 3840 px Breite nachgemessen: Untertitel 25–40 px über dem Kamm)
   --btn     Platz unter dem Untertitel (Abstand + Button), der vor den Bergen liegen darf */
.hero {
  --h: max(440px, 18vw + 220px, min(56.23vw, 100svh - var(--hdr), 760px));
  --kamm: min(max(var(--h), 56.23vw) * .31, 11.2vw + 86px);
  --btn: 83px;
  position: relative; isolation: isolate; overflow: hidden; display: flex; height: var(--h); text-align: center;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; transform-origin: 50% 100%; animation: zoom 18s ease-out both; }
.hero__in { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-top: 24px; padding-bottom: calc(var(--kamm) + 28px - var(--btn)); }
.hero h1 { margin-bottom: 14px; animation: rise .9s .1s cubic-bezier(.2, .7, .2, 1) both; }
.hero__lead { margin-bottom: 26px; font-size: 17px; font-weight: 500; color: var(--ink); animation: rise .9s .25s cubic-bezier(.2, .7, .2, 1) both; }
.hero .btn { animation: rise .9s .4s cubic-bezier(.2, .7, .2, 1) both; }
/* Leichter Zoom von unten – klein genug, dass die Berge dabei nicht an die Schrift heranwachsen */
@keyframes zoom { from { transform: scale(1.05); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Abschnitte */
.sec { padding: 96px 0; }
.sec--tight { padding: 64px 0 96px; }
.sec--dark { background: var(--ink); color: rgba(255, 255, 255, .82); }
.sec--dark h2, .sec--dark .h-xl { color: #fff; }
.sec--dark .lead { margin-bottom: 30px; }

/* Unternehmen der Gruppe */
.brands { padding: 84px 0 96px; }
.brands .eyebrow { margin-bottom: 36px; color: var(--muted); }
.brands__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 24px; max-width: 920px; margin: 0 auto; }
.brands__grid li { display: flex; align-items: center; justify-content: center; }
/* --s: Größenfaktor einzelner Logos (aus src/pages/start.mjs), damit alle optisch gleich groß wirken */
.brands__grid img { width: calc(100% * var(--s, 1)); max-width: calc(209px * var(--s, 1)); transition: transform .3s, opacity .3s; }
/* Nur Logos mit eigener Website reagieren: angefahrenes Logo wächst leicht, die übrigen treten zurück */
.brands__link { display: flex; justify-content: center; width: 100%; border-radius: 4px; }
.brands__grid:has(.brands__link:hover) img { opacity: .5; }
.brands__grid .brands__link:hover img, .brands__link:focus-visible img { opacity: 1; transform: scale(1.06); }

/* Seitentitel */
.ptitle { padding: 72px 0 0; }
.ptitle h1 { font-size: 56px; margin: 0; hyphens: auto; }
.ptitle--404 { padding: 110px 0 120px; }
.ptitle--404 .lead { margin-top: 10px; color: var(--muted); }

/* Kontakt */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact__item { padding: 32px 28px; background: var(--grey); border-radius: 4px; }
.contact__item p { margin: 0; }
.contact__item a { text-decoration: none; font-weight: 500; color: var(--ink); }
.contact__item a:hover { color: var(--accent-dark); }
.contact__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 50%; background: var(--accent); color: #000; }
.contact__icon .icon { width: 22px; height: 22px; }
.contact__item h2 { margin-bottom: 6px; }

.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.split--top { align-items: start; grid-template-columns: 1.3fr 1fr; }

/* Formular (auf dunklem Grund) */
.form { position: relative; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .78); }
.field abbr { color: var(--accent); text-decoration: none; }
.field .opt { font-weight: 400; color: rgba(255, 255, 255, .45); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 3px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); color: #fff;
  transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(255, 255, 255, .09); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--red); }
.form__privacy { margin: 18px 0 20px; font-size: 13.5px; color: rgba(255, 255, 255, .6); }
.form__privacy a { color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.notice { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding: 14px 16px; border-radius: 3px; font-size: 15px; line-height: 1.55; }
.notice[hidden] { display: none; }
.notice .icon { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.notice--ok { background: rgba(252, 175, 59, .14); color: #fff; }
.notice--ok .icon { color: var(--accent); }
.notice--err { background: rgba(229, 72, 77, .14); color: #fff; }
.notice--err .icon { color: var(--red); }
.notice--err a { color: #fff; font-weight: 600; }

/* Rechtstexte */
.legal { max-width: 820px; }
.legal h2 { font-size: 22px; line-height: 1.4; margin: 44px 0 14px; }
.legal h2.h3 { font-size: 18px; margin: 30px 0 8px; }
.legal > :first-child { margin-top: 0; }
.legal ul { list-style: disc; padding-left: 22px; margin: 0 0 18px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--ink); }
.legal--long { overflow-wrap: anywhere; }
.note { padding: 14px 18px; background: var(--grey); border-left: 3px solid var(--accent); font-size: 15px; }

/* ---------- Fußbereich */
.ftr { border-top: 1px solid var(--line); }
.ftr__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 36px; padding-bottom: 36px; }
.ftr__logo img { width: 120px; }
.ftr__links { display: flex; gap: 28px; }
.ftr__links a { font-weight: 500; text-decoration: none; color: var(--ink); }
.ftr__links a:hover { color: var(--accent-dark); }
.ftr__bar { background: var(--ink); color: rgba(255, 255, 255, .6); font-size: 14px; }
.ftr__bar-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 22px; padding-bottom: 22px; }
.ftr__bar p { margin: 0; }
.ftr__bar a { text-decoration: none; color: rgba(255, 255, 255, .8); }
.ftr__bar a:hover { color: var(--accent); }

/* ---------- Sprachwechsel (siehe main.js): alte Fassung blendet in die neue über */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .5s; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
/* Rückfall für Browser ohne View Transitions: geänderte Texte kurz aus- und wieder einblenden */
.swap { transition: opacity .22s ease, filter .22s ease !important; transition-delay: 0s !important; }
.swap-out { opacity: 0 !important; filter: blur(3px); }

/* ---------- Einblenden beim Scrollen */
.io .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * 80ms); }
.io .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .io .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Kleinere Bildschirme */
@media (max-width: 1000px) {
  h1 { font-size: 54px; }
  .h-xl { font-size: 40px; }
  .ptitle h1 { font-size: 46px; }
  .split, .split--top { grid-template-columns: 1fr; gap: 40px; }
  .contact { grid-template-columns: 1fr 1fr; }
  .brands__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  :root { --hdr: 64px; --gutter: 16px; }
  body { font-size: 16px; }
  h1 { font-size: 40px; }
  .h-xl { font-size: 30px; }
  .lead { font-size: 17px; }
  .ptitle { padding-top: 44px; }
  .ptitle h1 { font-size: 34px; }
  .sec { padding: 64px 0; }
  .sec--tight { padding: 40px 0 64px; }
  .brands { padding: 56px 0 64px; }
  .hero { --btn: 74px; }
  .btn { font-size: 16px; padding: 12px 24px; }
  .contact, .form__grid { grid-template-columns: 1fr; }
  .contact { gap: 12px; }
  .contact__item { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: start; padding: 20px; }
  .contact__icon { grid-row: span 2; width: 44px; height: 44px; margin: 2px 0 0; }
  .contact__icon .icon { width: 19px; height: 19px; }
  .contact__item h2 { margin: 0 0 2px; font-size: 17px; }
  .brands__grid { grid-template-columns: 1fr 1fr; gap: 4px 16px; }
  .ftr__in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .hdr__logo img { width: 104px; }
  .hdr__right { gap: 14px; }
  .nav ul { gap: 14px; }
  .nav__link { font-size: 12px; letter-spacing: .04em; }
  .lang__icon { display: none; }
  .lang__opt { min-width: 32px; padding: 3px 7px; font-size: 11.5px; }
}
@media (max-width: 359px) {
  .nav li:first-child { display: none; }
}
