/* ==========================================================
   vonko-3d-printing – Stylesheet
   ========================================================== */

:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-2: #eef0f0;
  --text: #1c2326;
  --text-muted: #5b666b;
  --border: #dde1e2;
  --accent: #e8590c;
  --accent-hover: #c94a06;
  --accent-soft: #fdeee4;
  --teal: #0f766e;
  --teal-soft: #e2f3f1;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 20px rgba(0, 0, 0, .06);
  --radius: 14px;
  --max: 1160px;
  --header-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111618;
    --surface: #1a2124;
    --surface-2: #222b2f;
    --text: #e8ecee;
    --text-muted: #a1adb2;
    --border: #2e393e;
    --accent: #ff7a2f;
    --accent-hover: #ff935a;
    --accent-soft: #3a2316;
    --teal: #3cc3b5;
    --teal-soft: #15302d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; letter-spacing: -.01em;
  white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--accent), #f59f00);
  display: grid; place-items: center; color: #fff; font-size: .95rem; font-weight: 800;
}
.brand span em { font-style: normal; color: var(--accent); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; color: var(--text);
}
.nav-toggle svg { width: 22px; height: 22px; }

.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--text); text-decoration: none; font-weight: 550; font-size: .97rem; white-space: nowrap;
}
.main-nav a:hover { background: var(--surface-2); color: var(--text); }
.main-nav a.nav-cta { background: var(--accent); color: #fff; margin-left: 6px; }
.main-nav a.nav-cta:hover { background: var(--accent-hover); color: #fff; }

.legal-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.legal-nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--text); text-decoration: none; font-weight: 550; font-size: .97rem;
}
.legal-nav a:hover { background: var(--surface-2); color: var(--text); }
.legal-nav a[aria-current="page"] { color: var(--accent); }
@media (max-width: 480px) {
  .legal-nav a { padding: 8px 6px; font-size: .9rem; }
}

@media (max-width: 1080px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 10px 16px 16px; gap: 2px; }
  .main-nav a { padding: 12px; }
  .main-nav a.nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 13px 22px; border-radius: 10px; border: 0; cursor: pointer;
  font: inherit; font-weight: 650; text-decoration: none;
  background: var(--accent); color: #fff;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .6); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  min-height: min(78vh, 680px); display: flex; align-items: center;
  background: linear-gradient(135deg, #161c1e 0%, #263236 100%);
}
.hero .container { position: relative; padding-top: 72px; padding-bottom: 72px; }
.hero-kicker {
  display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #ffb380; margin-bottom: 14px;
}
.hero h1 { max-width: 15ch; }
.hero p.lead { font-size: 1.2rem; max-width: 52ch; color: rgba(255, 255, 255, .88); margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head .eyebrow {
  display: block; color: var(--accent); font-weight: 700; font-size: .85rem;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px;
}
.section-head p { color: var(--text-muted); font-size: 1.1rem; }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
section.alt .card { background: var(--bg); }
.card p { color: var(--text-muted); margin: 0; }
.icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
}
.icon svg { width: 24px; height: 24px; }

/* Facts */
.facts {
  margin-top: 36px; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.fact {
  border-left: 3px solid var(--accent); padding: 4px 0 4px 16px;
}
.fact strong { display: block; font-size: 1.35rem; line-height: 1.3; }
.fact span { color: var(--text-muted); font-size: .95rem; }

/* Materials */
.material-group h3 { margin-top: 8px; }
.materials { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-bottom: 32px; }
.material {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px;
}
.material header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.material h4 { margin: 0; font-size: 1.1rem; }
.tag {
  font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap;
  background: var(--teal-soft); color: var(--teal);
}
.tag.cf { background: var(--accent-soft); color: var(--accent); }
.material p { margin: 0; color: var(--text-muted); font-size: .97rem; }
.note {
  background: var(--teal-soft); border-radius: 12px; padding: 16px 20px; color: var(--text);
}

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800;
  background: var(--accent); color: #fff;
}
.steps h3 { margin-bottom: .35em; }
.steps p { color: var(--text-muted); margin: 0; }

/* Sustainability */
.split { display: grid; gap: 40px; grid-template-columns: 1.1fr 1fr; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.partner-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.partner-list li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px;
}
.partner-list strong { display: block; }
.partner-list span { color: var(--text-muted); font-size: .95rem; }
.leaf { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); }
.leaf svg { width: 20px; height: 20px; }

/* Gallery */
.gallery { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.gallery figure { margin: 0; }
.gallery button {
  position: relative;
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: none;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.gallery img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery figure[data-more] button::after {
  content: "2 Bilder"; position: absolute; right: 10px; bottom: 10px;
  padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700;
  background: rgba(10, 14, 16, .72); color: #fff;
}
.gallery figcaption { padding: 10px 2px 0; font-size: .95rem; color: var(--text-muted); }

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh;
}
.lightbox::backdrop { background: rgba(5, 8, 10, .88); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 10px; }
.lightbox p { color: #fff; text-align: center; margin: 12px 0 0; }
.lightbox-close {
  position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 1.6rem; cursor: pointer; line-height: 1;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .28); }
.lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .15); color: #fff; font-size: 1.8rem; line-height: 1;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, .28); }
.lightbox-nav[hidden] { display: none; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* Contact */
.contact-grid { display: grid; gap: 40px; grid-template-columns: 1fr 1.4fr; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list .icon { margin: 0; width: 42px; height: 42px; flex: none; }
.contact-list small { display: block; color: var(--text-muted); font-size: .85rem; }

.checklist { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; color: var(--text-muted); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: .75rem; font-weight: 800;
}

/* ---------- Footer ---------- */
.site-footer { background: #12181a; color: #c3cbce; padding: 48px 0 32px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer-inner .brand { color: #fff; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; padding: 0; margin: 0; }
.copyright { margin-top: 28px; padding-top: 20px; border-top: 1px solid #263034; color: #8a979c; font-size: .88rem; }

/* ---------- Datenschutz-Banner ---------- */
.consent-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 920px; margin: 0 auto;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
  padding: 20px 24px;
}
.consent-banner[hidden] { display: none; }
.consent-inner { display: flex; gap: 20px 28px; align-items: center; }
.consent-text strong { display: block; margin-bottom: 4px; }
.consent-text p { margin: 0; color: var(--text-muted); font-size: .95rem; }
.consent-actions { display: flex; gap: 10px; flex: none; }
.consent-actions .btn { padding: 11px 20px; }
.btn-secondary { background: var(--surface-2); color: var(--text); }
.btn-secondary:hover { background: var(--border); color: var(--text); }
@media (max-width: 700px) {
  .consent-inner { flex-direction: column; align-items: stretch; }
  .consent-actions .btn { flex: 1; }
}

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 88px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.45rem; margin-top: 2.2em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.6em; }
.legal address { font-style: normal; }
.legal .placeholder { background: var(--accent-soft); padding: 1px 6px; border-radius: 4px; }
.back-link { display: inline-block; margin-bottom: 24px; font-weight: 600; }
