/* 3D-Druck Heidekreis – mobile first, no framework */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f5f3ef;
  --surface: #ffffff;
  --alt: #ebe7e0;
  --ink: #1c1f22;
  --muted: #4d5359;
  --line: #d3ccc1;
  --accent: #b83e0b;        /* AA on --bg and with white text */
  --accent-hover: #9a3309;
  --accent-bright: #ff7a3d; /* for dark surfaces */
  --dark: #1c1f22;
  --dark-ink: #f2efea;
  --dark-muted: #bdb7ae;
  --dark-line: #3a3f44;
  --error: #b3261e;
  --ok: #1f6f3f;
  --radius: 10px;
  --wrap: 72rem;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 6.5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: .15em; }
a:hover { color: var(--accent-hover); }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: 0; }
.accent { color: var(--accent); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.section-dark :focus-visible { outline-color: var(--accent-bright); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 48rem; }

/* Placeholder marker – remove when content is final */
.ph { background: #fff1a6; color: #4a3d00; padding: 0 .3em; border-radius: 3px; font-size: .85em; font-family: var(--mono); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 243, 239, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); text-decoration: none; font-size: 1.05rem; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-mark { color: var(--accent); flex: none; }
.nav { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav li:not(:last-child) { display: none; }
.nav a { display: block; padding: .6rem .75rem; color: var(--ink); text-decoration: none; font-weight: 550; border-radius: 6px; }
.nav a:hover { background: var(--alt); color: var(--ink); }
.nav .nav-cta { background: var(--ink); color: #fff; }
.nav .nav-cta:hover { background: var(--accent); color: #fff; }
@media (min-width: 52rem) { .nav li:not(:last-child) { display: block; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .75rem 1.4rem;
  font: inherit; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-primary[disabled] { opacity: .7; cursor: progress; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  padding: 3rem 0 3.5rem;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(28,31,34,.055) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(28,31,34,.055) 39px 40px);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.eyebrow { font-size: .8rem; color: var(--muted); text-transform: uppercase; margin-bottom: 1rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 2rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; padding: 0; margin: 0; font-size: .85rem; color: var(--muted); }
.hero-facts strong { color: var(--ink); font-weight: 500; }
.hero-visual { margin: 0; color: var(--ink); justify-self: center; max-width: 22rem; }
.hero-visual .face-top { fill: var(--accent-bright); fill-opacity: .9; }
.hero-visual .face-left { fill: var(--alt); }
.hero-visual .face-right { fill: #d9d2c7; }
.hero-visual .dim { fill: var(--muted); }
.hero-visual .dim path { stroke: var(--muted); }
@media (min-width: 52rem) {
  .hero { padding: 5rem 0 5.5rem; }
  .hero-grid { grid-template-columns: 1.3fr 1fr; gap: 3rem; }
  .hero-visual { max-width: none; }
}

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--alt); }
.section-dark { background: var(--dark); color: var(--dark-ink); }
.section-dark a { color: var(--accent-bright); }
.section-dark .kicker { color: var(--accent-bright); }
@media (min-width: 52rem) { .section { padding: 5rem 0; } }
.kicker { font-size: .8rem; color: var(--accent); text-transform: uppercase; margin-bottom: .5rem; }
.section-lead { font-size: 1.1rem; color: var(--muted); max-width: 40rem; margin-bottom: 2rem; }
.sub-title { margin-top: 2.5rem; }
.note { color: var(--muted); max-width: 44rem; margin-top: 1.5rem; }

/* Cards */
.cards { display: grid; gap: 1rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.4rem .5rem; border-top: 4px solid var(--accent);
}
.card p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.75rem 0 0; }
.tags li { font-family: var(--mono); font-size: .85rem; padding: .35rem .8rem; border: 1px solid var(--ink); border-radius: 999px; }

/* Specs */
.specs { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 48rem) { .specs { grid-template-columns: repeat(2, 1fr); } }
.spec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec header { background: var(--dark); color: var(--dark-ink); padding: 1.25rem 1.4rem; }
.spec header h3 { margin: 0 0 .25rem; }
.spec-size { font-size: clamp(1.5rem, 5vw, 2rem); color: var(--accent-bright); margin: 0; }
.spec dl { margin: 0; padding: .5rem 1.4rem 1rem; }
.spec dl div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.spec dl div:last-child { border-bottom: 0; }
.spec dt { color: var(--muted); font-size: .95rem; }
.spec dd { margin: 0; }
.materials { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .materials { grid-template-columns: repeat(2, 1fr); } }
.material { border-left: 4px solid var(--accent); padding: .25rem 0 .25rem 1rem; }
.material-name { font-size: 1.4rem; margin-bottom: .25rem; }
.material p:last-child { color: var(--muted); margin: 0; }

/* Steps */
.steps { display: grid; gap: 1rem; list-style: none; padding: 0; margin: 1.5rem 0 0; counter-reset: none; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.step { position: relative; padding: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step-no { display: block; font-size: 2.5rem; line-height: 1; color: var(--accent); margin-bottom: .75rem; }
.step p { color: var(--muted); margin: 0; }

/* Form */
.form-wrap { display: grid; gap: 2rem; }
@media (min-width: 60rem) { .form-wrap { grid-template-columns: 1fr 1.6fr; gap: 4rem; } }
.form-intro p { color: var(--dark-muted); }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.checklist li { padding: .4rem 0 .4rem 1.75rem; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .85rem; width: .9rem; height: .5rem; border-left: 3px solid var(--accent-bright); border-bottom: 3px solid var(--accent-bright); transform: rotate(-45deg); }
.form { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 1.25rem; }
@media (min-width: 40rem) { .form { padding: 2rem; } }
.form a { color: var(--accent); }
.field { margin-bottom: 1.1rem; min-width: 0; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 40rem) { .field-row { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); } }
label { display: block; font-weight: 650; margin-bottom: .35rem; }
.req { color: var(--error); }
.opt { font-weight: 400; color: var(--muted); font-size: .9em; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 2px solid #8a847b; border-radius: 8px; padding: .65rem .8rem; min-height: 3rem;
}
textarea { resize: vertical; min-height: 8rem; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 3px solid rgba(184, 62, 11, .25); outline-offset: 0; }
input[type="file"] { width: 100%; font: inherit; padding: .6rem; border: 2px dashed #8a847b; border-radius: 8px; background: var(--bg); }
input[type="file"]::file-selector-button { font: inherit; font-weight: 650; margin-right: .75rem; padding: .45rem .9rem; border: 0; border-radius: 6px; background: var(--ink); color: #fff; cursor: pointer; }
[aria-invalid="true"] { border-color: var(--error) !important; }
.hint { font-size: .9rem; color: var(--muted); margin: .35rem 0 0; }
.error { font-size: .9rem; color: var(--error); font-weight: 600; margin: .35rem 0 0; }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: .25rem .75rem; align-items: start; }
.field-check input { width: 1.4rem; height: 1.4rem; margin: .15rem 0 0; accent-color: var(--accent); }
.field-check label { font-weight: 400; margin: 0; }
.field-check .error { grid-column: 2; }
.form-legend { font-size: .9rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { margin-top: 1rem; padding: .9rem 1rem; border-radius: 8px; font-weight: 600; }
.form-status.is-ok { background: #e3f3e8; color: var(--ok); }
.form-status.is-error { background: #fbe7e5; color: var(--error); }

/* FAQ */
.faq { border-top: 1px solid var(--line); margin-top: 1.5rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { display: inline; font-size: 1.1rem; margin: 0; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .8rem; font: 500 1.6rem/1 var(--mono); color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-right: 2.5rem; }

/* Footer */
.site-footer { background: var(--dark); color: var(--dark-muted); padding: 2rem 0; border-top: 1px solid var(--dark-line); }
.site-footer strong { color: var(--dark-ink); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; gap: .5rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--dark-ink); display: inline-block; padding: .5rem 0; }
.footer-links a:hover { color: var(--accent-bright); }

/* Legal pages */
.legal { padding: 3rem 0 4rem; }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2rem; }
.legal-warning { background: #fff1a6; color: #4a3d00; border-left: 5px solid #c9a400; padding: 1rem 1.25rem; border-radius: 6px; margin-bottom: 2rem; }
.legal address { font-style: normal; }

/* Region + footer contact */
.region-grid { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .region-grid { grid-template-columns: repeat(2, 1fr); } }
.region-grid .material-name { font-size: 1.15rem; font-weight: 700; font-family: var(--font); }
.footer-nap { font-style: normal; margin-top: .35rem; font-size: .95rem; }
.site-footer a { color: var(--dark-ink); }
.site-footer a:hover { color: var(--accent-bright); }
.footer-nap a { white-space: nowrap; }
.footer-more { margin-top: .35rem; font-size: .95rem; }

/* Pricing */
.price-grid { display: grid; gap: 1rem; }
@media (min-width: 60rem) { .price-grid { grid-template-columns: 1fr 1.25fr; gap: 1.5rem; } }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; min-width: 0; }
.price-card h3 { margin-bottom: .75rem; }
.price-list { margin: 0; }
.price-list div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.price-list dt { font-weight: 600; }
.price-list dd { margin: 0; text-align: right; white-space: nowrap; }
.price-list dd strong { display: block; font-size: 1.1rem; color: var(--accent); }
.price-note { display: block; font-size: .85rem; font-weight: 400; color: var(--muted); }
.net { display: block; font-size: .8rem; color: var(--muted); }
.price-foot { font-size: .9rem; color: var(--muted); margin: .9rem 0 0; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { text-align: left; padding: .65rem .5rem .65rem 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.price-table thead th { font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.price-table tbody th { font-weight: 600; }
.price-table td { white-space: nowrap; text-align: right; }
.price-table thead th:not(:first-child) { text-align: right; }
.price-table td { padding-right: 0; }
.price-table td strong { display: block; color: var(--accent); font-size: 1.05rem; }
