/* =========================================================================
   HYONTRON Microsite · Variante 1 (hell, aufgeräumt)
   Reines CSS, keine Abhängigkeiten. Pflege: Farben stehen in :root unten.
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

:root {
  /* Marke: Verlauf Grün -> Blau (dezent, aus icon1) */
  --green:  #47b16f;
  --blue:   #009dd4;
  --brand:  #009b94;
  --gradient: linear-gradient(135deg, var(--green), var(--blue));

  --bg:        #f7faf9;
  --surface:   #ffffff;
  --surface-2: #eef4f2;
  --text:      #0e1714;
  --muted:     #4d625c;
  --faint:     #798c86;
  --border:    #dbe6e3;
  --inverse:   #06100d;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --wide: 1180px;
  --ease: 200ms cubic-bezier(.2, .7, .3, 1);
  --shadow: 0 18px 50px rgba(14, 40, 34, .08);
  --radius: 14px;
}

/* =======================================================================
   DUNKLES SCHEMA (Umschalter oben rechts)
   Nur die Farbwerte werden getauscht – Aufbau bleibt identisch.
   ======================================================================= */
[data-theme="dark"] {
  --green:  #4dd47f;
  --blue:   #35bced;
  --brand:  #2ec7c0;
  --bg:        #0a100e;
  --surface:   #111a17;
  --surface-2: #16211d;
  --text:      #eef5f2;
  --muted:     #a9bab4;
  --faint:     #7d8f89;
  --border:    rgba(238, 245, 242, .14);
  --inverse:   #040a08;
  --shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
[data-theme="dark"] .btn-primary { color: #04110f; }
[data-theme="dark"] .header { background: color-mix(in oklab, var(--bg) 82%, transparent); }
[data-theme="dark"] .product-media { background: var(--surface-2); }

/* Logo je nach Schema: dunkler Schriftzug auf hell, weißer auf dunkel */
.logo-on-dark { display: none; }
[data-theme="dark"] .logo-on-light { display: none; }
[data-theme="dark"] .logo-on-dark { display: block; }

/* Sonne/Mond-Symbol im Umschalter */
.icon-sun { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

html { scroll-behavior: smooth; scroll-padding-top: 116px; -webkit-text-size-adjust: 100%; }

body {
  min-height: 100dvh;
  font: 16px/1.65 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { max-width: 68ch; text-wrap: pretty; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }

.skip {
  position: fixed; left: 16px; top: -80px; z-index: 200;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top var(--ease);
}
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.container { width: min(calc(100% - 2 * 24px), var(--wide)); margin-inline: auto; }

/* ---- wiederkehrende Bausteine ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brand);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gradient); }

.gradient {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.btn {
  min-height: 48px; padding: 12px 24px; border: 1px solid transparent; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: .95rem; font-weight: 600; cursor: pointer;
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #00807a; }
.btn-ghost { border-color: var(--border); background: var(--surface); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: end;
  gap: 40px; margin-bottom: 56px;
}
.section-head h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); margin-top: 12px; }
.section-head p { color: var(--muted); }

/* ---- Header ---- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { height: 106px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; width: 176px; }
.navlinks { display: flex; align-items: center; gap: 30px; font-size: .95rem; font-weight: 600; }
.navlinks a { position: relative; padding: 6px 0; }
.navlinks a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--gradient); transition: right var(--ease);
}
.navlinks a:hover::after { right: 0; }
.navtools { display: flex; gap: 8px; }
.icon-btn, .lang-btn, .menu-btn {
  min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--border);
  background: var(--surface); border-radius: 10px; display: grid; place-items: center;
  font-size: .85rem; font-weight: 700; cursor: pointer;
}
.icon-btn:hover, .lang-btn:hover, .menu-btn:hover { background: var(--surface-2); }
.menu-btn { display: none; }

/* ---- Hero · vollständiges Markenbild als Banner ---- */
.hero { padding: 106px 0 72px; }
.hero-banner { margin: 0; height: clamp(210px, 31vw, 420px); overflow: hidden; background: var(--surface-2); }
.hero-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; display: block; }
.hero-content { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 56px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero .lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); color: var(--muted); margin-top: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.fact b { display: block; font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); font-weight: 800; color: var(--text); }
.fact b span { font-size: .5em; margin-left: 4px; color: var(--brand); font-weight: 700; }
.fact > span { font-size: .92rem; color: var(--muted); }

/* ---- Produkte ---- */
.products { } /* alias, kein eigener Block nötig */
.product-list { display: grid; gap: 28px; }
.product {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; min-height: 420px;
  box-shadow: var(--shadow);
}
.product:nth-child(even) .product-media { order: 2; }
.product-media { position: relative; background: var(--surface-2); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.2,.7,.3,1); }
.product:hover .product-media img { transform: scale(1.035); }
.product-copy {
  padding: clamp(32px, 4.5vw, 64px);
  display: flex; flex-direction: column; justify-content: center;
}
.index { font-size: .78rem; font-weight: 700; letter-spacing: .14em; color: var(--brand); }
.product h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: 10px 0; }
.type { font-weight: 600; color: var(--muted); }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 26px 0; }
.spec { border-top: 1px solid var(--border); padding-top: 12px; }
.spec small { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.spec strong { display: block; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.note { font-size: .8rem; color: var(--faint); margin-top: auto; padding-top: 16px; }

/* ---- Anwendungen ---- */
.applications { background: var(--surface-2); }
.app-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; }
.app-main { grid-row: span 2; min-height: 540px; }
.app-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  min-height: 260px; color: #fff; background: #06100d; isolation: isolate;
}
.app-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 700ms cubic-bezier(.2,.7,.3,1); }
.app-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(4,14,11,.92), rgba(4,14,11,.05) 72%);
}
.app-card:hover img { transform: scale(1.04); }
.app-copy { position: absolute; inset: auto 28px 28px; }
.app-copy span { font-size: .78rem; font-weight: 700; letter-spacing: .14em; color: #fff; opacity: .8; }
.app-copy h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); margin: 8px 0; }
.app-copy p { font-size: .92rem; color: #dbe9e4; }

/* ---- News ---- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform var(--ease);
}
.news-card:hover { transform: translateY(-4px); }
.news-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.news-copy { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.slide-meta { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.news-copy h3 { font-size: 1.2rem; }
.news-copy p { font-size: .92rem; color: var(--muted); }

/* ---- Kontakt ---- */
.contact { background: var(--surface); border-top: 1px solid var(--border); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); margin: 12px 0 16px; }
.contact-intro { color: var(--muted); }
.contact-data {
  display: grid; gap: 22px; font-style: normal;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
}
.contact-line { display: grid; gap: 2px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.contact-line:last-of-type { padding-bottom: 0; border-bottom: 0; }
.contact-label { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.contact-data a { font-size: 1.15rem; font-weight: 600; }
.contact-data a:hover { color: var(--brand); }
.contact-data .actions { margin-top: 0; }

/* ---- Footer ---- */
.footer { padding: 48px 0; background: var(--inverse); color: #b8c8c3; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; }
.footer .brand { width: 160px; margin-bottom: 14px; }
.footer p { font-size: .8rem; }
.legal { display: flex; gap: 24px; font-size: .8rem; }
.legal a:hover { color: #fff; }

/* ---- Einblenden beim Scrollen ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.3,1); }
.reveal.visible { opacity: 1; transform: none; }

/* ---- Responsiv ---- */
@media (max-width: 920px) {
  .navlinks {
    position: fixed; inset: 106px 20px auto; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 16px; flex-direction: column; align-items: stretch; gap: 4px; display: none;
  }
  .navlinks.open { display: flex; }
  .menu-btn { display: grid; }
  .section-head, .contact-grid, .hero-content { grid-template-columns: 1fr; }
  .hero-content { gap: 36px; }
  .app-grid { grid-template-columns: 1fr 1fr; }
  .app-main { grid-column: 1 / -1; grid-row: auto; min-height: 420px; }
  .news-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .container { width: calc(100% - 32px); }
  .brand { width: 126px; }
  .nav { height: 70px; }
  .navlinks { inset: 70px 16px auto; }
  .hero { padding-top: 70px; }
  .hero-facts { grid-template-columns: 1fr; gap: 18px; }
  .actions .btn { width: 100%; }
  .product { grid-template-columns: 1fr; }
  .product:nth-child(even) .product-media { order: 0; }
  .product-media { min-height: 240px; }
  .specs { grid-template-columns: 1fr; }
  .app-grid, .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .legal { flex-wrap: wrap; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =======================================================================
   NEWS-UNTERSEITEN (news.html + Einzelmeldungen im Ordner ./news/)
   Nutzt dieselben Farbvariablen wie die Hauptseite. Pflege wie gehabt.
   ======================================================================= */

/* Sprachumschaltung: sichtbar ist die Sprache aus <html lang="…"> */
html[lang="de"] .en { display: none !important; }
html[lang="en"] .de { display: none !important; }

/* Kopfzeile der Unterseiten (statisch, damit nichts verdeckt wird) */
.header.sub { position: static; }
.subnav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.backlink { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; }
.backlink:hover { color: var(--brand); }

.subpage-main { padding: 56px 0 96px; }

/* Seitenkopf der Übersicht */
.page-head { max-width: 820px; margin-bottom: 40px; }
.page-head h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); margin: 12px 0 14px; }
.page-head p { color: var(--muted); font-size: 1.08rem; }

/* Übersichtsliste */
.news-group { margin: 44px 0 18px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.news-list { display: grid; gap: 20px; }
.news-item { display: grid; grid-template-columns: 300px 1fr; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform var(--ease), border-color var(--ease); }
.news-item:hover { transform: translateY(-3px); border-color: var(--brand); }
.news-item img { width: 100%; height: 100%; min-height: 190px; object-fit: cover; }
.news-item-body { padding: 24px 28px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.news-item-meta { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.news-item h3 { font-size: 1.3rem; }
.news-item p { color: var(--muted); font-size: .95rem; }
.readmore { margin-top: 4px; font-size: .9rem; font-weight: 700; color: var(--brand); }
.readmore::after { content: " \2192"; }

/* „Ältere Neuigkeiten“ unter den News-Kacheln der Startseite */
.news-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 32px; font-weight: 600; color: var(--brand); }
.news-more::after { content: " \2192"; }
.news-more:hover { text-decoration: underline; }

/* Einzelmeldung (Onepager) */
.article { max-width: 820px; margin-inline: auto; }
.article-back { margin-bottom: 22px; }
.article-meta { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.article h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); margin-bottom: 16px; }
.article-lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); color: var(--muted); }
.article-hero { margin: 32px 0; border-radius: var(--radius); overflow: hidden; }
.article-hero img { width: 100%; max-height: 460px; object-fit: cover; }
.article-body h2 { font-size: 1.4rem; margin: 32px 0 10px; }
.article-body p { margin-bottom: 16px; }
.article-body ul { margin: 0 0 16px 20px; display: grid; gap: 6px; }
.article-aside { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; display: grid; gap: 6px; }

@media (max-width: 720px) {
  .news-item { grid-template-columns: 1fr; }
  .news-item img { min-height: 200px; aspect-ratio: 16 / 9; }
  .subnav { gap: 12px; }
}
