/* eloona – Übergangsseite zum Relaunch
   Design-Tokens 1:1 aus dem neuen Elementor-Kit (eloona.kirda-dev.de, Kit #9) */

@font-face {
  font-family: "eloona";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Trebuchet MS"), local("TrebuchetMS"),
       url("../fonts/Trebuchet-MS.ttf") format("truetype");
}
@font-face {
  font-family: "eloona";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local("Trebuchet MS Bold"), local("TrebuchetMS-Bold"),
       url("../fonts/Trebuchet-MS-Bold.ttf") format("truetype");
}
@font-face {
  font-family: "eloona";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: local("Trebuchet MS Italic"), local("TrebuchetMS-Italic"),
       url("../fonts/Trebuchet-MS-Italic.ttf") format("truetype");
}

:root {
  --pale: #F6F9DE;      /* primary  */
  --lime: #B7CD00;      /* secondary */
  --ink: #393939;       /* text */
  --magenta: #DB007E;   /* accent */
  --grey: #6F7274;
  --white: #fff;

  --fs-h1: clamp(2rem, 1.63rem + 1.52vw, 3rem);
  --fs-h2: clamp(1.625rem, 1.39rem + 0.95vw, 2.25rem);
  --fs-h3: clamp(1.25rem, 1.16rem + 0.38vw, 1.5rem);
  --fs-text: clamp(1.0625rem, 0.99rem + 0.29vw, 1.25rem);
  --fs-kpi: clamp(2.5rem, 2.22rem + 1.14vw, 3.25rem);

  --radius-box: 25px;
  --radius-pill: 999px;
  --shadow-nav: 0 0 15px rgba(0, 0, 0, .38);
  --shadow-badge: 0 18px 32px rgba(0, 0, 0, .18);
  --wrap: 1180px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: "eloona", "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: var(--fs-text);
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
}

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

h1, h2, h3 { font-weight: 700; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: var(--fs-h1); line-height: 1.1; }
h2 { font-size: var(--fs-h2); line-height: 1.15; }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
p { margin: 0 0 1em; }

a { color: var(--ink); text-decoration-color: var(--lime); text-underline-offset: .2em; }
a:hover { color: var(--magenta); }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; border-radius: 4px; }

.dot { color: var(--magenta); }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--magenta); color: var(--white); padding: .5rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: 15px 28px;
  border-radius: 70px;
  font: inherit; font-size: 1.1rem; line-height: 1.2;
  text-decoration: none;
  transition: transform .25s ease, background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--magenta); color: var(--white); box-shadow: 0 10px 24px rgba(219, 0, 126, .25); }
.btn--primary:hover { color: var(--white); background: #c20070; }
.btn--outline { border: 1px solid var(--lime); color: var(--ink); background: rgba(255, 255, 255, .7); }
.btn--outline:hover { background: var(--lime); color: var(--ink); }
.btn--small { padding: 10px 18px; font-size: 1rem; }

/* ---------- Nach-oben-Button ----------
   Reines CSS (kein JavaScript erlaubt): Sprung per #top, weiches Scrollen über
   html { scroll-behavior: smooth }. Einblenden erst nach ~300 px Scrollweg
   per Scroll-Timeline; Browser ohne Unterstützung zeigen den Button immer. */
.to-top {
  position: fixed; right: clamp(1rem, 2.5vw, 2rem); bottom: clamp(1rem, 2.5vw, 2rem); z-index: 10;
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--magenta); color: var(--white);
  box-shadow: 0 10px 24px rgba(219, 0, 126, .3);
  transition: transform .25s ease, background-color .25s ease;
}
.to-top:hover { background: #c20070; color: var(--white); transform: translateY(-3px); }
.to-top:focus-visible { outline-color: var(--ink); }
.to-top svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
@supports (animation-timeline: scroll()) {
  .to-top { animation: to-top-in linear both; animation-timeline: scroll(root); animation-range: 0 300px; }
  @keyframes to-top-in {
    from { opacity: 0; visibility: hidden; translate: 0 12px; }
    to   { opacity: 1; visibility: visible; translate: 0 0; }
  }
}

/* ---------- Glass-Pills (Badge, Status, Navigation) ---------- */
.glass {
  background: rgba(245, 247, 247, .78);
  border: 1px solid rgba(255, 255, 255, .75);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-pill);
}
.badge {
  display: inline-flex; align-items: center; gap: .9em;
  padding: .7em 1.8em;
  font-size: 1rem; font-weight: 700; color: var(--grey);
  text-transform: lowercase;
  box-shadow: var(--shadow-badge);
}
.badge .sep { width: 7px; height: 7px; border-radius: 50%; background: var(--magenta); }
.flag { width: 1.3em; height: .85em; border-radius: 2px; overflow: hidden; display: inline-grid; grid-template-rows: repeat(3, 1fr); }
.flag i:nth-child(1) { background: #000; }
.flag i:nth-child(2) { background: #DD0000; }
.flag i:nth-child(3) { background: #FFCE00; }

/* ---------- Header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 3;
  padding-top: clamp(1.5rem, 4vw, 3.5rem);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo-e { display: block; width: clamp(56px, 6vw, 76px); }
.logo-e svg { width: 100%; height: auto; display: block; }
.site-header .badge { margin: 0 0 0 auto; }
.site-header .lang { margin-left: .75rem; }

/* Sprachumschalter de | en – ohne eigene Pill, Schrift wie im Badge */
.lang {
  display: inline-flex; align-items: center; gap: .7em;
  font-size: 1rem; font-weight: 700; line-height: 1;
  text-transform: lowercase;
}
/* Großzügige Tippfläche (ca. 32 × 40 px) ohne Layoutverschiebung: Padding per negativem Margin ausgeglichen */
.lang a { color: var(--grey); text-decoration: none; position: relative; padding: .75em .4em; margin: -.65em -.4em; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="page"] { color: var(--magenta); }
.lang a[aria-current="page"]::after {
  content: ""; position: absolute; left: .4em; right: .4em; bottom: .6em;
  height: 2px; border-radius: 2px; background: var(--lime);
}
.lang__sep { width: 1px; height: 1.1em; background: var(--grey); opacity: .5; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100vh, 980px);
  display: flex; align-items: flex-end;
  padding: 9rem 0 3rem;
  background: #eef0f1 url("../img/hero.webp") no-repeat 72% 0 / cover;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.92) 72%, #fff 100%),
    linear-gradient(90deg, rgba(255,255,255,.75) 0%, rgba(255,255,255,0) 55%);
}
.status {
  display: inline-flex; align-items: center; gap: .7em;
  padding: .55em 1.3em; margin-bottom: 1.5rem;
  font-size: .95rem; font-weight: 700; text-transform: lowercase; color: var(--grey);
  box-shadow: var(--shadow-badge);
}
.pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--magenta); }
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--magenta); animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(3); opacity: 0; } }

.hero h1 { text-transform: lowercase; font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.4rem); margin-bottom: .4em; }
.hero__lead { max-width: 40rem; font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.75rem; }

/* Navigations-Pill wie auf der neuen Seite */
.nav-pill {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  background: var(--white);
  border-radius: 60px;
  box-shadow: var(--shadow-nav);
}
.nav-pill ul {
  list-style: none; margin: 0; padding: 1.4rem 2.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem;
}
.nav-pill a { text-decoration: none; text-transform: lowercase; position: relative; padding: .2em 0; }
.nav-pill a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px;
  background: var(--magenta); transform: scaleX(0); transition: transform .6s cubic-bezier(.22,.61,.36,1);
}
.nav-pill a:hover { color: var(--ink); }
.nav-pill a:hover::after, .nav-pill a:focus-visible::after { transform: scaleX(1); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section + .section { padding-top: 0; }
.section--center { text-align: center; }
.intro { max-width: 46rem; margin-inline: auto; }
.claim { font-style: italic; color: var(--grey); }

.box {
  background: var(--pale);
  border-radius: var(--radius-box);
  padding: clamp(1.75rem, 4vw, 3.5rem);
}
.teaser { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.teaser__list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.teaser__list li {
  border: 1px solid var(--lime); border-radius: 70px; padding: .55em 1.1em;
  background: var(--white); font-size: 1rem;
}
.teaser__checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.teaser__checks li { display: flex; gap: .9rem; align-items: flex-start; background: var(--white); border-radius: 18px; padding: 1.1rem 1.25rem; }
.teaser__checks b { display: block; }
.num { flex: none; font-weight: 700; color: var(--magenta); min-width: 2.2ch; }

.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2rem); margin-top: 2.5rem; text-align: left; }
.product {
  background: var(--white); border-radius: var(--radius-box);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem;
}
.product img { aspect-ratio: 1; object-fit: contain; width: 70%; margin-inline: auto; }
.product h3 { margin: 0; }
.product p { margin: 0; font-size: 1rem; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; }
.kpi { border-top: 2px solid var(--lime); padding-top: 1rem; text-align: left; }
.kpi strong { display: block; font-size: var(--fs-kpi); line-height: 1; margin-bottom: .35rem; }
.kpi span { display: block; font-weight: 700; }
.kpi small { display: block; font-size: .95rem; color: var(--grey); margin-top: .25rem; }

/* Ansprechpartner */
.team-photo { border-radius: var(--radius-box); margin: 2.5rem 0; aspect-ratio: 1920 / 941; object-fit: cover; width: 100%; }
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.person { background: var(--pale); border-radius: var(--radius-box); padding: 1.5rem; display: flex; flex-direction: column; }
.person h3 { margin-bottom: .1em; }
.person .role { color: var(--grey); font-size: 1rem; margin-bottom: 1rem; }
.person .tel, .person .mail { font-size: .95rem; margin: 0 0 .3rem; word-break: break-word; }
.person__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: 1rem; }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: stretch; }
.contact address { font-style: normal; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.contact-list a { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.contact-list .icon { color: var(--magenta); }
.cta-box {
  background: var(--magenta); color: var(--white); border-radius: 24px;
  padding: clamp(1.75rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center;
}
.cta-box h2, .cta-box a { color: var(--white); }
.cta-box .btn { background: var(--white); color: var(--magenta); align-self: flex-start; }
.cta-box .btn:hover { color: var(--magenta); }

/* ---------- Footer ---------- */
.social { background: var(--lime); padding: 1rem 0; }
.social .wrap { display: flex; justify-content: center; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.social p { margin: 0; font-size: var(--fs-h2); font-weight: 700; }
.social ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.1rem; }
.social a { display: block; color: var(--ink); font-size: 2.1rem; line-height: 0; }
.social a:hover { color: var(--white); }

.site-footer { padding: 3.5rem 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.footer-brand { text-align: center; justify-self: start; }
.footer-brand img { width: 210px; margin: 0 auto 1rem; }
.footer-brand address { font-style: normal; }
.footer-brand small { display: block; margin-top: 1.25rem; font-size: .95rem; }
.footer-col h2 { font-size: var(--fs-h3); margin-bottom: .8rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-col a { text-decoration: none; }
.copyright { background: var(--lime); text-align: center; padding: .6rem 1rem; margin: 0; font-size: 1.05rem; }

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */
.page-header { padding: clamp(1.5rem, 4vw, 3rem) 0 0; }
.page-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.page-header .btn { font-size: 1rem; }
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 8vw, 6rem); }
.legal .wrap { max-width: 860px; }
.legal h1 { margin-bottom: 1.5rem; overflow-wrap: break-word; }
.legal h2 { font-size: var(--fs-h3); margin-top: 2.2rem; }
.legal h3 { font-size: 1.15rem; margin-top: 1.6rem; }
.legal h4, .legal h5 { font-size: 1.05rem; margin: 1.2rem 0 .4rem; }
.legal p, .legal li { font-size: 1.02rem; overflow-wrap: anywhere; }
.legal a { color: var(--magenta); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .people { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .teaser { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .site-header .badge { display: none; }
  .hero { min-height: 0; padding-top: calc(113vw - 6rem); background-position: 70% 0; background-size: 170% auto; background-color: #fff; }
  .hero::before { background: linear-gradient(180deg, rgba(255,255,255,0) calc(113vw - 13rem), #fff calc(113vw - 2rem)); }
  .nav-pill { border-radius: var(--radius-box); }
  .nav-pill ul { padding: 1rem 1.5rem; justify-content: center; gap: .4rem 1.4rem; }
  .products, .contact, .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { justify-self: center; }
  .people { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .btn { width: 100%; justify-content: center; }
  .person__actions .btn, .page-header .btn { width: auto; }
}
