/* ==========================================================================
   REFRACORE.de — Design-Entwurf
   Werkstoffspezialisten für Extremtemperaturen
   ========================================================================== */

:root {
  /* Farben */
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --bg-alt-2: #eef1f4;
  --bg-dark: #1b2025;
  --bg-dark-2: #252b31;
  --ink: #1c2024;
  --ink-soft: #545b62;
  --ink-faint: #8b9298;
  --border: #e4e6e8;
  --border-dark: #343b41;

  --primary: #3c454d;
  --primary-dark: #262b30;
  --primary-light: #eceeef;

  --accent: #ef5f0e;
  --accent-dark: #c84b09;
  --accent-light: #fdebe0;

  --ok: #1f8a55;

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;

  --shadow-s: 0 1px 2px rgba(15, 23, 35, 0.06), 0 1px 1px rgba(15, 23, 35, 0.04);
  --shadow-m: 0 8px 24px rgba(15, 23, 35, 0.10);
  --shadow-l: 0 20px 50px rgba(15, 23, 35, 0.16);

  --maxw: 1240px;
  --font: "Segoe UI", "Calibri", Roboto, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section[id] { scroll-margin-top: 96px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}
.section-head {
  max-width: 700px;
  margin-bottom: 44px;
}
.section-head h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.2;
  margin-top: 10px;
  letter-spacing: -0.01em;
}
.section-head p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 17px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.lede {
  font-size: 19px;
  color: var(--ink-soft);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 0 rgba(0,0,0,0.05);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-m); }
.btn-secondary {
  background: transparent;
  border-color: rgba(255,255,255,0.45);
  color: #fff;
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--primary);
}
.btn-outline:hover { border-color: var(--primary); background: var(--primary-light); }
.btn-light {
  background: #fff;
  color: var(--primary);
}
.btn-light:hover { background: var(--accent-light); color: var(--accent-dark); transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-link {
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.btn-link:hover { color: var(--accent-dark); }

/* ---------- Badges / stat strips ---------- */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
}
.badge svg { width: 14px; height: 14px; color: var(--accent); flex: none; }
.badge.light {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--ink-soft);
}
.badge.light svg { color: var(--accent-dark); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.topbar {
  background: var(--primary-dark);
  color: #c9ced3;
  font-size: 13.5px;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 16px;
}
.topbar a { display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar svg { width: 14px; height: 14px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-m); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--primary-dark);
  flex: none;
}
.logo .logo-icon {
  width: 40px; height: 40px;
  display: block;
  flex: none;
}
.logo .logo-full {
  height: 44px;
  width: auto;
  display: block;
}
.logo small {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-top: 1px;
}

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul { display: flex; align-items: center; gap: 6px; }
.main-nav a, .main-nav button.nav-toggle-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  background: none;
  border: none;
}
.main-nav a:hover, .main-nav button.nav-toggle-item:hover { background: var(--bg-alt); color: var(--primary); }
.main-nav a.active { color: var(--primary); }
.main-nav svg.chev { width: 12px; height: 12px; transition: transform .15s ease; }

.nav-item-dropdown { position: relative; }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-l);
  min-width: 240px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-item-dropdown:hover .chev { transform: rotate(180deg); }
.nav-dropdown a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius-s);
  width: 100%;
}
.nav-dropdown a:hover { background: var(--bg-alt); }
.nav-dropdown a strong { font-size: 14.5px; color: var(--ink); }
.nav-dropdown a span { font-size: 12.5px; color: var(--ink-faint); font-weight: 500; }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.header-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.3;
  margin-right: 4px;
}
.header-phone strong { color: var(--ink); font-size: 14.5px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--radius-s);
  border: 1px solid var(--border);
  background: #fff;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

.nav-cta-mobile { display: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: var(--bg-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(10,16,25,0.96) 0%, rgba(10,16,25,0.88) 38%, rgba(10,16,25,0.55) 70%, rgba(10,16,25,0.35) 100%);
}
.hero-inner {
  position: relative;
  padding: 100px 0 64px;
}
.hero-content { max-width: 660px; }
.hero-content .eyebrow { color: #f2a878; }
.hero-content .eyebrow::before { background: var(--accent); }
.hero-content h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-top: 16px;
}
.hero-content h1 em {
  font-style: normal;
  color: #f2a878;
}
.hero-content p {
  margin-top: 20px;
  font-size: 18.5px;
  color: #d4d6d8;
  max-width: 560px;
}
.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-stats {
  position: relative;
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.16);
  padding-top: 26px;
  gap: 18px;
}
.hero-stats .stat-num {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  color: #fff;
}
.hero-stats .stat-num span { color: var(--accent); }
.hero-stats .stat-label {
  margin-top: 4px;
  font-size: 13.5px;
  color: #aeb3b8;
}

.cert-strip {
  background: var(--primary-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.cert-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 16px;
  padding-bottom: 16px;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   SECTIONS — generic
   ========================================================================== */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-dark .ink-soft { color: #aeb3b8; }
.section-tight { padding: 64px 0; }

.section-top-link {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* ---------- Werkstoffklassen ---------- */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.material-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
}
.material-card:hover { box-shadow: var(--shadow-l); transform: translateY(-4px); border-color: transparent; }
.material-card .material-photo {
  position: relative;
  height: 190px;
  background: var(--bg-alt-2);
  overflow: hidden;
}
.material-card .material-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.material-card:hover .material-photo img { transform: scale(1.06); }
.material-card .material-symbol {
  position: absolute;
  top: 14px; left: 14px;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(38,43,48,0.92);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 16px;
  backdrop-filter: blur(2px);
}
.material-card .material-temp {
  position: absolute;
  bottom: 12px; right: 12px;
  background: rgba(17,22,29,0.78);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
}
.material-card .material-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.material-card h3 { font-size: 19px; }
.material-card .material-formvar { color: var(--ink-faint); font-size: 13.5px; margin-top: 2px; }
.material-card p.material-desc { color: var(--ink-soft); font-size: 14.5px; margin-top: 10px; flex: 1; }
.material-card .material-foot {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.material-foot-links { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.material-foot-links .btn-link svg { width: 14px; height: 14px; }

/* ---------- Downloads (Datenblätter) ---------- */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.download-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.download-card:hover { box-shadow: var(--shadow-m); border-color: transparent; transform: translateY(-2px); }
.download-card .dc-icon {
  width: 42px; height: 42px; flex: none;
  border-radius: 10px;
  background: var(--accent-light);
  color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
}
.download-card .dc-icon svg { width: 20px; height: 20px; }
.download-card .dc-body { flex: 1; min-width: 0; }
.download-card .dc-title { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.download-card .dc-meta { font-size: 12px; color: var(--ink-faint); margin-top: 2px; }
.download-card .dc-arrow { color: var(--ink-faint); flex: none; }
.download-card .dc-arrow svg { width: 18px; height: 18px; }
.download-card:hover .dc-arrow { color: var(--accent); }

/* ---------- Produktgalerie ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-alt-2);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .gallery-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255,255,255,0.94);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
}
.gallery-item .gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 36px 14px 14px;
  background: linear-gradient(to top, rgba(10,14,20,0.88), rgba(10,14,20,0));
  color: #fff;
}
.gallery-item .gallery-caption strong { display: block; font-size: 14.5px; }
.gallery-item .gallery-caption span { font-size: 12px; color: #cfd6e0; }
.gallery-item.wide { grid-column: span 2; }

/* ---------- Anwendungen ---------- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.app-card {
  display: block;
  padding: 26px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.app-card:hover { box-shadow: var(--shadow-m); transform: translateY(-3px); border-color: transparent; }
.app-card .app-arrow { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--accent-dark); }
.app-card .app-arrow svg { width: 14px; height: 14px; transition: transform .2s ease; }
.app-card:hover .app-arrow svg { transform: translateX(3px); }
.app-card .app-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.app-card .app-icon svg { width: 24px; height: 24px; }
.app-card h3 { font-size: 16.5px; }
.app-card p { font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; }

/* ---------- Vorteile / Gründe ---------- */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.reason-card {
  background: var(--bg-alt);
  border-radius: var(--radius-l);
  padding: 28px 26px;
  position: relative;
}
.reason-card .reason-num {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--primary-dark);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 18px;
}
.reason-card h3 { font-size: 17.5px; }
.reason-card p { margin-top: 8px; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Positionierung / Vergleichsblock ---------- */
.compare-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.compare-col {
  border-radius: var(--radius-l);
  padding: 32px 30px;
}
.compare-col.is-refracore {
  background: var(--primary-dark);
  color: #fff;
}
.compare-col.is-other {
  background: var(--bg-alt);
  color: var(--ink);
  border: 1px solid var(--border);
}
.compare-col .compare-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.compare-col.is-refracore .compare-tag { background: rgba(223,106,46,0.22); color: #f3a87c; }
.compare-col.is-other .compare-tag { background: #fff; color: var(--ink-soft); border: 1px solid var(--border); }
.compare-col h3 { font-size: 22px; margin-top: 14px; }
.compare-col ul { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.compare-col li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.compare-col.is-refracore li { color: #dadcde; }
.compare-col.is-other li { color: var(--ink-soft); }
.compare-col li strong { color: inherit; }
.compare-col.is-refracore li strong { color: #fff; }
.compare-col.is-other li strong { color: var(--ink); }
.compare-col li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.compare-col.is-refracore li svg { color: var(--accent); }
.compare-col.is-other li svg { color: var(--ink-faint); }
.compare-col li a { color: var(--accent-dark); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(239,95,14,0.4); }
.compare-col.is-refracore li a { color: #fff; text-decoration-color: rgba(255,255,255,0.4); }
.compare-col li a:hover { text-decoration-color: currentColor; }
.compare-col .compare-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 13.5px;
  color: #aeb3b8;
}
.compare-col.is-other .compare-note { border-top-color: var(--border); color: var(--ink-faint); }

/* ---------- Sonderteile CTA ---------- */
.cta-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--primary-dark);
  color: #fff;
}
.cta-split .cta-media { position: relative; min-height: 320px; }
.cta-split .cta-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.cta-split .cta-text { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.cta-split .cta-text h2 { font-size: clamp(24px, 2.8vw, 30px); line-height: 1.25; }
.cta-split .cta-text p { margin-top: 14px; color: #c5c8cb; font-size: 15.5px; }
.cta-split .cta-text .hero-actions { margin-top: 26px; }

/* ---------- Partner ---------- */
.partners-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.partner-badge {
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 18px 28px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-soft);
  background: #fff;
}
.partner-badge.muted { color: var(--ink-faint); font-weight: 600; font-size: 13.5px; border-style: dashed; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background: #fff;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: none;
  text-align: left;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
}
.faq-q svg { width: 18px; height: 18px; flex: none; color: var(--ink-faint); transition: transform .2s ease; }
.faq-item.is-open .faq-q svg { transform: rotate(45deg); color: var(--accent); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.faq-a-inner { padding: 0 22px 20px; color: var(--ink-soft); font-size: 14.5px; max-width: 680px; }
.faq-item.is-open .faq-a { max-height: 240px; }

/* ---------- Kontakt / RFQ ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--border);
}
.contact-form-col { background: #fff; padding: 44px; }
.contact-info-col { background: var(--primary-dark); color: #fff; padding: 44px; position: relative; overflow: hidden; }
.contact-info-col .ci-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.25; }
.contact-info-col .ci-overlay { position: absolute; inset: 0; background: linear-gradient(165deg, rgba(8,12,16,0.94) 0%, rgba(8,12,16,0.8) 55%, rgba(8,12,16,0.62) 100%); }
.contact-info-col .ci-content { position: relative; z-index: 1; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  font-size: 14.5px;
  background: var(--bg-alt);
  color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px var(--primary-light);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 12.5px; color: var(--ink-faint); margin-top: 10px; }
.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-s);
  background: #e9f6ee;
  color: var(--ok);
  font-size: 14px;
  font-weight: 600;
}
.form-success.is-visible { display: block; }
.form-error {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-s);
  background: #fdebe0;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 600;
}
.form-error.is-visible { display: block; }
.form-field .file-hint { display: block; font-size: 12px; color: var(--ink-faint); margin-top: 6px; }

.contact-info-col h3 { font-size: 21px; }
.contact-info-col > p { margin-top: 10px; color: #c5c8cb; font-size: 14.5px; }
.contact-info-list { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.contact-info-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-list .ci-icon {
  width: 38px; height: 38px; flex: none;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.contact-info-list .ci-icon svg { width: 18px; height: 18px; }
.contact-info-list strong { display: block; font-size: 14.5px; }
.contact-info-list span, .contact-info-list a { font-size: 13.5px; color: #c5c8cb; }
.contact-info-list a:hover { color: #fff; }
.contact-info-col .badge-row { margin-top: 30px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--bg-dark); color: #aeb3b8; }
.footer-top { padding: 64px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand .logo { color: #fff; }
.footer-brand p { margin-top: 16px; font-size: 14px; color: #8d9296; max-width: 320px; }
.footer-brand p a { color: #c5c8cb; text-decoration: underline; text-decoration-color: rgba(239,95,14,0.5); }
.footer-brand p a:hover { color: #fff; }
.footer-brand p.footer-brands { margin-top: 10px; font-size: 13px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: #aeb3b8; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #76829433;
  color: #7c8186;
}
.footer-bottom .legal-links { display: flex; gap: 18px; }

/* ==========================================================================
   PAGE HEADER (Unterseiten)
   ========================================================================== */
.page-header {
  background: var(--primary-dark);
  color: #fff;
  padding: 64px 0 56px;
}
.page-header .eyebrow { color: #f2a878; }
.page-header .eyebrow::before { background: var(--accent); }
.page-header h1 { font-size: clamp(28px, 4vw, 42px); margin-top: 14px; letter-spacing: -0.01em; }
.page-header p { margin-top: 14px; color: #c5c8cb; font-size: 16.5px; max-width: 640px; }

.breadcrumb { font-size: 13px; color: #9aa3ab; margin-bottom: 16px; }
.breadcrumb a { color: #c5c8cb; font-weight: 600; }
.breadcrumb a:hover { color: #fff; }

.page-header.has-art .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.page-header.has-art .page-header-text { flex: 1; min-width: 0; }
.page-header.has-art .page-header-text p { max-width: 560px; }

/* ---------- Branchen-Illustration ---------- */
.industry-art {
  position: relative;
  width: 220px;
  height: 220px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.industry-art-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239,95,14,0.38), rgba(239,95,14,0) 70%);
  filter: blur(6px);
}
.industry-art-ring {
  position: absolute;
  inset: 14px;
  border: 2px solid rgba(255,255,255,0.14);
  border-radius: 30%;
  transform: rotate(18deg);
}
.industry-art-ring::after {
  content: "";
  position: absolute;
  inset: -26px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 30%;
  transform: rotate(-24deg);
}
.industry-art-icon {
  position: relative;
  z-index: 2;
  width: 104px;
  height: 104px;
  color: #fff;
  stroke-width: 1.3;
}

/* ---------- Werkstoff-Begründungskarten ---------- */
.mat-reason-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.mat-reason-card {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
}
.mat-reason-card .mr-symbol {
  width: 44px; height: 44px; flex: none;
  border-radius: 10px;
  background: var(--primary-dark);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
}
.mat-reason-card h3 { font-size: 16.5px; }
.mat-reason-card p { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.mat-reason-card p strong { color: var(--ink); }

/* ---------- Einsatzbeispiele ---------- */
.example-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.example-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-soft);
  padding: 12px 14px;
  background: var(--bg-alt);
  border-radius: var(--radius-s);
}
.example-list li svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--accent-dark); }

/* ---------- Warum Refracore Box ---------- */
.why-box {
  display: flex;
  gap: 18px;
  padding: 26px 28px;
  background: var(--primary-light);
  border-radius: var(--radius-l);
  border-left: 4px solid var(--accent);
}
.why-box .wb-icon {
  width: 42px; height: 42px; flex: none;
  border-radius: 10px;
  background: var(--primary-dark);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.why-box .wb-icon svg { width: 20px; height: 20px; }
.why-box p { font-size: 15px; color: var(--ink-soft); }
.why-box p strong { color: var(--ink); }
.why-box p a { color: var(--accent-dark); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(239,95,14,0.4); }
.why-box p a:hover { text-decoration-color: currentColor; }

/* ==========================================================================
   COMPARE TOOL (Service / Vergleich)
   ========================================================================== */
.compare-tool {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 32px;
  box-shadow: var(--shadow-m);
}
.compare-select-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: end;
}
.compare-select-row .form-field select { font-size: 15.5px; font-weight: 700; padding: 14px 16px; }
.compare-vs {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 13px;
  align-self: center;
  margin-bottom: 16px;
}
.compare-result {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.compare-result-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.compare-result-card .crc-head {
  padding: 18px 20px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.compare-result-card .crc-symbol {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--primary-dark);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.compare-result-card .crc-head strong { font-size: 16px; display: block; }
.compare-result-card .crc-head span { font-size: 12.5px; color: var(--ink-faint); }
.compare-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.compare-metric:last-child { border-bottom: none; }
.compare-metric .cm-label { color: var(--ink-soft); }
.compare-metric .cm-val { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.compare-metric .cm-val.is-better { color: var(--ok); }
.compare-metric .cm-val svg { width: 15px; height: 15px; }
.compare-legend {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 8px;
}
.compare-legend svg { width: 14px; height: 14px; color: var(--ok); }
.compare-cta { margin-top: 22px; text-align: center; }

.table-wrap { overflow-x: auto; margin-top: 12px; border: 1px solid var(--border); border-radius: var(--radius-m); }
table.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
table.spec-table th, table.spec-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.spec-table thead th { background: var(--bg-alt); font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-faint); font-weight: 700; }
table.spec-table tbody tr:last-child td { border-bottom: none; }
table.spec-table tbody th { font-weight: 700; color: var(--ink); background: #fff; position: sticky; left: 0; }
table.spec-table tbody tr:hover td, table.spec-table tbody tr:hover th { background: var(--bg-alt); }

/* ---------- Geschichte timeline ---------- */
.timeline { position: relative; padding-left: 28px; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 36px; }
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px; top: 2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-light);
}
.timeline-item .tl-period { font-size: 13px; font-weight: 800; color: var(--accent-dark); letter-spacing: .03em; text-transform: uppercase; }
.timeline-item h3 { font-size: 18px; margin-top: 6px; }
.timeline-item p { margin-top: 6px; color: var(--ink-soft); font-size: 14.5px; max-width: 620px; }

/* ---------- Impressum ---------- */
.legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.legal-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 28px 30px;
}
.legal-card h2 { font-size: 17px; display: flex; align-items: center; gap: 10px; }
.legal-card h2 svg { width: 19px; height: 19px; color: var(--accent-dark); }
.legal-card p, .legal-card div { font-size: 14.5px; color: var(--ink-soft); margin-top: 12px; line-height: 1.7; }
.legal-card p strong, .legal-card div strong { color: var(--ink); }
.legal-card a { color: var(--primary); font-weight: 600; }
.legal-card a:hover { text-decoration: underline; }
.legal-card.full { grid-column: 1 / -1; }
.legal-fact-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.legal-fact-table tr { border-bottom: 1px solid var(--border); }
.legal-fact-table tr:last-child { border-bottom: none; }
.legal-fact-table th, .legal-fact-table td { text-align: left; padding: 11px 0; font-size: 14.5px; font-weight: 400; }
.legal-fact-table th { color: var(--ink-faint); font-weight: 600; width: 40%; }
.legal-fact-table td { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .materials-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .reasons-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-col.col-werkstoffe { grid-column: span 1; }
}

@media (max-width: 880px) {
  .topbar { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 78px 0 0 0;
    background: #fff;
    flex-direction: column;
    justify-content: flex-start;
    padding: 12px 20px 30px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .25s ease;
    display: flex;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; width: 100%; gap: 2px; }
  .main-nav a, .main-nav button.nav-toggle-item { width: 100%; padding: 14px 10px; border-bottom: 1px solid var(--border); justify-content: space-between; }
  .nav-item-dropdown .nav-dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; margin: 0; padding: 0 0 0 14px; display: none;
  }
  .nav-item-dropdown.is-open .nav-dropdown { display: block; }
  .header-phone { display: none; }
  .header-actions .btn-primary { display: none; }
  .nav-cta-mobile { display: block; margin-top: 14px; }
  .nav-cta-mobile .btn { width: 100%; }

  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .materials-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide { grid-column: span 2; }
  .apps-grid { grid-template-columns: 1fr 1fr; }
  .reasons-grid { grid-template-columns: 1fr; }
  .downloads-grid { grid-template-columns: 1fr 1fr; }
  .compare-cols { grid-template-columns: 1fr; }
  .page-header.has-art .container { flex-direction: column; text-align: center; gap: 24px; }
  .page-header.has-art .page-header-text p { max-width: 100%; }
  .industry-art { width: 160px; height: 160px; }
  .industry-art-icon { width: 76px; height: 76px; }
  .mat-reason-grid { grid-template-columns: 1fr; }
  .example-list { grid-template-columns: 1fr; }
  .why-box { flex-direction: column; }
  .cta-split { grid-template-columns: 1fr; }
  .cta-split .cta-media { min-height: 220px; order: -1; }
  .contact-wrap { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .legal-grid { grid-template-columns: 1fr; }
  .compare-select-row { grid-template-columns: 1fr; }
  .compare-vs { margin: 0 auto; }
  .compare-result { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .hero-inner { padding: 70px 0 48px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .apps-grid { grid-template-columns: 1fr; }
  .downloads-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-form-col, .contact-info-col, .cta-split .cta-text { padding: 28px 22px; }
  .legal-card { padding: 22px; }
}
