/* =========================================================================
   Germann Production – layout
   Farver: ret variablerne herunder for at ændre farvetemaet.
   ========================================================================= */
:root {
  --ink: #17191c;          /* næsten sort / grafit */
  --ink-2: #23272b;        /* mørk sektion */
  --steel: #5d646b;        /* grå tekst */
  --line: #d9d7d2;         /* streger */
  --paper: #f5f4f1;        /* lys baggrund */
  --white: #ffffff;
  --orange: #f26a1b;       /* accentfarve */
  --orange-dark: #d45810;
  --radius: 10px;
  --wrap: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 750; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 720; }
h3 { font-size: 1.15rem; font-weight: 680; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.kicker {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 1rem;
}
.lead { font-size: 1.12rem; color: var(--steel); max-width: 62ch; }

/* ---------- knapper ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em;
  padding: .85em 1.5em;
  background: var(--orange);
  color: var(--white);
  border: 2px solid var(--orange);
  border-radius: 999px;
  font: inherit; font-weight: 650; font-size: .98rem;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-small { padding: .55em 1.1em; font-size: .9rem; }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid var(--orange); outline-offset: 3px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 244, 241, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand-logo { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) {
  text-decoration: none; font-weight: 550; font-size: .95rem; color: var(--ink);
  position: relative;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px;
  background: var(--orange); transition: right .2s;
}
.nav a:not(.btn):hover::after { right: 0; }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }
.hero-visual { position: relative; }
.hero-img { border-radius: var(--radius); aspect-ratio: 10 / 9; object-fit: cover; width: 100%; }
.hero-svg { width: 100%; height: auto; color: var(--ink); }
.hero-svg .plate { fill: var(--ink); }
.hero-svg .layers rect { fill: #8a9097; opacity: 0; animation: layerIn .4s ease-out forwards; animation-delay: var(--d); }
.hero-svg .layers rect:nth-child(odd) { fill: #6f767d; }
.hero-svg .layers rect.layer-active { fill: var(--orange); opacity: 0; animation: layerIn .4s ease-out 1.35s forwards, glow 1.6s ease-in-out 1.8s infinite; }
.hero-svg .nozzle rect, .hero-svg .nozzle path { fill: var(--ink); }
.hero-svg .nozzle .hot { fill: var(--orange); }
.hero-svg .nozzle { animation: nozzle 3.2s ease-in-out 1.8s infinite; }
.hero-svg .dim line { stroke: var(--steel); stroke-width: 1.2; }
.hero-svg .dim text { font: 600 14px var(--mono); fill: var(--steel); }
@keyframes layerIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes glow { 50% { opacity: .55; } }
@keyframes nozzle { 0%, 100% { transform: translateX(-100px); } 50% { transform: translateX(0); } }

.hero-features {
  list-style: none; padding: 0; margin: 56px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.hero-features li {
  padding: 20px 20px 0 0; font-weight: 600; font-size: .95rem;
  display: flex; gap: .6em; align-items: baseline;
}
.hero-features li::before {
  content: ""; flex: none; width: 10px; height: 10px; border-radius: 2px;
  background: var(--orange); transform: translateY(1px);
}

/* ---------- sektioner ---------- */
.section { padding: 100px 0; }
.section-alt { background: #ebe9e4; }
.section-dark { background: var(--ink); color: #eceae6; }
.section-dark .lead { color: #a9adb2; }
.section-dark .kicker { color: var(--orange); }
.section-head { margin-bottom: 48px; }

/* ydelser */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 26px;
  position: relative;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card::before {
  content: ""; position: absolute; left: 28px; top: 0; width: 36px; height: 3px;
  background: var(--orange); border-radius: 0 0 2px 2px;
}
.card:hover { border-color: #bdbab3; transform: translateY(-3px); box-shadow: 0 12px 30px -18px rgba(0,0,0,.35); }
.card-no { font-family: var(--mono); font-size: .8rem; color: var(--steel); display: block; margin-bottom: 1.2rem; }
.card p { color: var(--steel); margin: 0; font-size: .98rem; }

/* forløb */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.step { position: relative; padding-top: 28px; border-top: 1px solid #3a3f45; }
.step-no {
  position: absolute; top: -17px; left: 0;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); border: 2px solid var(--orange); color: var(--orange);
  font: 700 .9rem var(--mono);
}
.step p { color: #a9adb2; font-size: .97rem; }

/* materialer */
.materials-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.materials { margin: 0; border-top: 2px solid var(--ink); }
.material { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.material dt { font-family: var(--mono); font-weight: 700; font-size: .95rem; }
.material dd { margin: 0; color: var(--steel); }
.equipment { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.equipment ul { margin: 0; padding: 0; list-style: none; }
.equipment li { padding: 8px 0 8px 22px; position: relative; border-top: 1px solid #eeece8; }
.equipment li:first-child { border-top: 0; }
.equipment li::before { content: ""; position: absolute; left: 0; top: 17px; width: 10px; height: 2px; background: var(--orange); }

/* eksempler */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.case { margin: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.case-img { aspect-ratio: 1 / 1; background: #dcdad5; display: grid; place-items: center; overflow: hidden; }
.case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.case:hover .case-img img { transform: scale(1.04); }
.case-ph {
  font: .8rem var(--mono); color: var(--steel); text-transform: uppercase; letter-spacing: .08em;
  background: repeating-linear-gradient(0deg, transparent 0 7px, rgba(0,0,0,.05) 7px 8px);
  width: 100%; height: 100%; display: grid; place-items: center;
}
.case figcaption { padding: 16px 20px 18px; display: grid; gap: 4px; }
.case figcaption span { color: var(--steel); font-size: .93rem; }

/* om */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.about-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-ph { aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--ink); display: grid; place-items: center; }
.about-ph img { width: 45%; aspect-ratio: auto; border-radius: 0; }
.prose p { color: var(--steel); }
blockquote {
  margin: 1.6rem 0 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--orange);
  font-size: 1.3rem; font-weight: 620; letter-spacing: -0.01em;
}

/* kontakt */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.contact-info { margin: 2rem 0 0; display: grid; gap: 14px; }
.contact-info div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
.contact-info dt { font: .8rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: #8b9096; padding-top: 3px; }
.contact-info dd { margin: 0; }
.contact-info a { color: #fff; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.contact-form { background: var(--ink-2); border: 1px solid #343a40; border-radius: 14px; padding: 32px; display: grid; gap: 16px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; color: #d4d6d8; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form input[type=tel], .contact-form textarea {
  font: inherit; font-size: 1rem; color: #fff;
  background: #1a1d20; border: 1px solid #40464c; border-radius: 8px;
  padding: .75em .9em; width: 100%; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--orange); outline: none; }
.contact-form ::placeholder { color: #6f757b; }
.contact-form .consent { grid-template-columns: auto 1fr; align-items: start; gap: 10px; font-weight: 500; }
.contact-form .consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--orange); }
.privacy { font-size: .82rem; color: #8b9096; margin: -4px 0 0; }
.contact-form .btn { justify-self: start; }
.form-status { margin: 0; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: #7fd18b; }
.form-status.err { color: #ff9a6b; }
.hp { position: absolute !important; left: -9999px !important; }

/* footer */
.site-footer { background: #0f1113; color: #a9adb2; padding: 44px 0; font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.footer-inner p { margin: 0; }
.footer-logo { height: 32px; width: auto; margin-right: auto; }
.muted { color: #6f757b; }

/* ---------- mobil / tablet ---------- */
@media (max-width: 960px) {
  .hero-grid, .materials-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 480px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .hero-features { grid-template-columns: 1fr 1fr; }
  .about-media { max-width: 420px; }
}
@media (max-width: 820px) {
  .nav-toggle {
    display: grid; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded=true] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded=true] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded=true] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .hero { padding-top: 44px; }
  .cards, .gallery, .steps, .hero-features, .contact-form .row { grid-template-columns: 1fr; }
  .material { grid-template-columns: 1fr; gap: 4px; }
  .contact-form { padding: 22px; }
  .brand-logo { height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-svg .layers rect { opacity: 1; }
  html { scroll-behavior: auto; }
}
