/*
 * mejo Metall Josten – Infoportal Stylesheet
 * Vereinfacht, Work Sans, Logo als Grafik
 */

@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --black:      #1C1C1C;
  --green:      #009261;
  --green-d:    #007a51;
  --steel:      #536270;
  --white:      #FFFFFF;
  --off-white:  #F5F5F3;
  --border:     #E2E2DF;
  --text:       #1C1C1C;
  --text-mid:   #555555;
  --text-muted: #888888;
  --text-inv:   #BBBBBB;
  --font:       'Work Sans', sans-serif;
  --max-w:      1200px;
  --r:          0px;
  --hh:         60px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── TOPBAR ── */
.topbar { background: var(--black); color: #777; font-size: .75rem; font-weight: 500; padding: 7px 40px; display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: #888; text-decoration: none; transition: color .15s; }
.topbar a:hover { color: var(--white); }
.topbar-links { display: flex; gap: 24px; }

/* ── HEADER ── */
header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--border); height: var(--hh); display: flex; align-items: center; justify-content: space-between; padding: 0 40px; }

/* ── LOGO als Grafik ── */
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 28px; width: auto; display: block; }
/* Footer-Version: weiß invertiert via CSS */
.logo-inv img { filter: invert(1) brightness(2); }

/* ── NAV ── */
nav { display: flex; align-items: center; gap: 0; }

/* Jedes Nav-Item hat rechts eine Trennlinie, erstes auch links */
nav > a,
nav > .nav-drop > a {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-mid);
  text-decoration: none;
  padding: 0 18px;
  height: var(--hh);
  display: flex;
  align-items: center;
  border-right: 1px solid var(--border);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
nav > a:first-of-type,
nav > .nav-drop:first-of-type > a { border-left: 1px solid var(--border); }
nav > a:hover,
nav > .nav-drop > a:hover { color: var(--text); background: var(--off-white); }
nav > a.active,
nav > .nav-drop > a.active { color: var(--green); background: var(--off-white); }

/* Dropdown */
.nav-drop { position: relative; }
.nav-drop .dropdown { display: none; position: absolute; top: 100%; left: 0; background: var(--white); border: 1px solid var(--border); border-top: 2px solid var(--green); min-width: 220px; z-index: 200; box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.nav-drop:hover > a { color: var(--text); background: var(--off-white); }
.nav-drop:hover .dropdown { display: block; }
.dropdown a { display: block; padding: 11px 20px; font-size: .78rem; font-weight: 500; color: var(--text-mid); text-decoration: none; border-bottom: 1px solid var(--border); transition: background .12s, color .12s; }
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: var(--off-white); color: var(--green); }

/* CTA-Button: Grün, scharf, kein Border-Offset */
.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 0 24px;
  height: var(--hh);
  display: flex;
  align-items: center;
  text-decoration: none;
  border: none !important;
  transition: background .15s;
  margin-left: 12px;
}
.nav-cta:hover { background: var(--green-d) !important; }

/* ── BREADCRUMB ── */
.breadcrumb { background: var(--off-white); border-bottom: 1px solid var(--border); padding: 9px 40px; font-size: .75rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* ── PAGE HERO ── */
.page-hero { background: var(--black); padding: 60px 40px 52px; position: relative; }
.page-hero::after { content: ''; position: absolute; bottom: 0; left: 0; width: 60px; height: 3px; background: var(--green); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--green); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.page-hero .eyebrow::before { content: ''; display: block; width: 18px; height: 2px; background: var(--green); flex-shrink: 0; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; line-height: 1.1; color: var(--white); margin-bottom: 14px; }
.page-hero h1 em { font-style: normal; color: var(--green); }
.page-hero p { font-size: .95rem; font-weight: 300; color: var(--text-inv); max-width: 580px; line-height: 1.7; margin: 0; }

/* ── LAYOUT ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }
.page-content { padding: 72px 0; }
.page-content + .page-content { border-top: 1px solid var(--border); }
.page-content.bg-light { background: var(--off-white); }

/* ── TYPOGRAFIE ── */
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.15; color: var(--text); margin-bottom: 18px; }
h2 em { font-style: normal; color: var(--green); }
h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.2; color: var(--text); margin-bottom: 10px; }
p { font-size: .92rem; color: var(--text-mid); line-height: 1.8; margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }
p strong { font-weight: 600; color: var(--text); }
.lead { font-size: 1rem; color: var(--text-mid); max-width: 680px; line-height: 1.8; margin-bottom: 40px; }
.section-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--green); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.section-label::before { content: ''; display: block; width: 18px; height: 2px; background: var(--green); }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 12px 26px; border-radius: 0; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: all .15s; white-space: nowrap; }
.btn-primary { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-primary:hover { background: var(--green-d); border-color: var(--green-d); }
.btn-dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-dark:hover { background: #000; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--text); }
.btn-outline:hover { background: var(--text); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--text); }
.btn-sm { font-size: .72rem; padding: 10px 20px; }

/* ── INFO GRID ── */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.info-aside { background: var(--off-white); border: 1px solid var(--border); border-top: 3px solid var(--green); padding: 32px; }
.info-aside h3 { margin-bottom: 20px; }

/* ── FACT LIST ── */
.fact-list { list-style: none; }
.fact-list li { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); font-size: .88rem; color: var(--text-mid); }
.fact-list li:last-child { border-bottom: none; }
.fact-list li strong { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text); margin-bottom: 2px; }
.fact-icon { min-width: 30px; height: 30px; background: var(--black); display: flex; align-items: center; justify-content: center; font-size: .68rem; font-weight: 700; color: var(--green); flex-shrink: 0; }

/* ── CARD GRID ── */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--border); border: 1px solid var(--border); }
.card { background: var(--white); padding: 30px 26px; display: block; text-decoration: none; color: inherit; transition: background .15s; position: relative; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.card:hover::before { transform: scaleX(1); }
.card:hover { background: var(--off-white); }
.card-tag { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); margin-bottom: 10px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .85rem; color: var(--text-mid); line-height: 1.65; margin-bottom: 14px; }
.card-arrow { color: var(--green); font-size: .9rem; transition: transform .2s; display: inline-block; }
.card:hover .card-arrow { transform: translate(3px, -3px); }

/* ── TOPIC GRID ── */
.topic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.topic-card { border: 1px solid var(--border); padding: 26px 22px; text-decoration: none; color: inherit; display: block; transition: border-color .15s; }
.topic-card:hover { border-color: var(--green); }
.topic-card .num { font-size: 2.8rem; font-weight: 800; color: var(--border); line-height: 1; margin-bottom: 10px; transition: color .15s; }
.topic-card:hover .num { color: var(--green); }
.topic-card h3 { margin-bottom: 7px; }
.topic-card p { font-size: .83rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ── HIGHLIGHT / ENTITY BOX ── */
.highlight { background: var(--off-white); border-left: 3px solid var(--green); padding: 18px 22px; margin: 24px 0; }
.highlight p { margin: 0; font-size: .9rem; }
.entity-box { background: var(--black); color: #999; border-left: 3px solid var(--green); padding: 20px 24px; margin: 24px 0; font-size: .83rem; line-height: 1.8; }
.entity-box strong { color: var(--green); }
.entity-box a { color: #777; text-decoration: none; transition: color .15s; }
.entity-box a:hover { color: var(--white); }

/* ── FAQ ── */
.faq-section { padding: 64px 0; background: var(--off-white); border-top: 1px solid var(--border); }
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: .92rem; font-weight: 600; color: var(--text); cursor: pointer; padding: 18px 0; margin: 0; display: flex; justify-content: space-between; align-items: center; transition: color .15s; }
.faq-q:hover { color: var(--green); }
.faq-q::after { content: '+'; font-size: 1.1rem; color: var(--green); font-weight: 600; flex-shrink: 0; margin-left: 16px; }
.faq-q.open::after { content: '−'; }
.faq-a { display: none; padding-bottom: 18px; }
.faq-a p { font-size: .88rem; color: var(--text-mid); margin: 0; line-height: 1.8; }

/* ── STATS BAR ── */
.stats-bar { background: var(--steel); padding: 28px 40px; display: grid; grid-template-columns: auto 1fr auto; gap: 48px; align-items: center; }
.stats-number { font-size: 2.6rem; font-weight: 800; color: var(--white); line-height: 1; white-space: nowrap; }
.stats-label { font-size: .8rem; font-weight: 400; color: rgba(255,255,255,.6); margin-top: 3px; }
.stats-text h3 { font-size: .98rem; font-weight: 700; color: var(--white); margin-bottom: 5px; }
.stats-text p { font-size: .85rem; color: rgba(255,255,255,.6); line-height: 1.6; margin: 0; }

/* ── CTA BANNER ── */
.cta-banner { background: var(--black); padding: 72px 40px; text-align: center; position: relative; }
.cta-banner::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--green); }
.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: #666; max-width: 500px; margin: 0 auto 28px; font-size: .92rem; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
footer { background: var(--black); color: #555; padding: 56px 40px 28px; border-top: 3px solid var(--green); }
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 24px; }
.footer-logo { margin-bottom: 14px; display: inline-block; }
.footer-logo img { height: 24px; width: auto; filter: invert(1) brightness(2); }
.footer-desc { font-size: .82rem; color: #4a4a4a; line-height: 1.7; }
footer h4 { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--white); margin-bottom: 14px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer ul a { font-size: .82rem; color: #4a4a4a; text-decoration: none; transition: color .15s; }
footer ul a:hover { color: var(--green); }
.footer-bottom { max-width: var(--max-w); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; font-size: .75rem; color: #3a3a3a; }
.footer-bottom a { color: #3a3a3a; text-decoration: none; transition: color .15s; }
.footer-bottom a:hover { color: var(--green); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  header, footer, .topbar, .breadcrumb, .page-hero, .stats-bar, .cta-banner { padding-left: 24px; padding-right: 24px; }
  .container { padding: 0 24px; }
  .info-grid { grid-template-columns: 1fr; gap: 28px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .stats-bar { grid-template-columns: 1fr 1fr; gap: 24px; }
  nav > a, nav > .nav-drop { display: none; }
}
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
  .topic-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .stats-bar { grid-template-columns: 1fr; }
  .nav-cta { margin-left: 8px; }
}
