/* Voidcrafts – one stylesheet for the whole page */

:root {
  color-scheme: dark;
  --paper: #111113;
  --paper-2: #1a1a1f;
  --ink: #ecebe7;
  --muted: #9b998f;
  --rule: #2a2a31;
  --accent: #a993ff;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, dl, dd, ul, fieldset { margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Header ── */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(17, 17, 19, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.top__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo__text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 6px;
  background: linear-gradient(135deg, #a78bfa, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.top__nav { display: flex; gap: 28px; font-size: 15px; }
.top__nav a { text-decoration: none; color: var(--muted); }
.top__nav a:hover { color: var(--ink); }
.top__nav .top__mail { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ── Intro ── */
.intro {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  padding-top: 96px;
  padding-bottom: 96px;
}

.intro h1 {
  font: 400 clamp(34px, 4.6vw, 56px)/1.12 var(--serif);
  letter-spacing: -0.5px;
}

.intro__side { padding-top: 10px; }
.intro__side > * + * { margin-top: 20px; }
.intro__side p { color: var(--muted); }

.facts li {
  padding: 8px 0;
  border-top: 1px solid var(--rule);
  font-size: 15px;
}
.facts li:last-child { border-bottom: 1px solid var(--rule); }

.link-arrow {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ── Content blocks ── */
.block {
  padding-top: 72px;
  padding-bottom: 72px;
  border-top: 1px solid var(--rule);
}

.block__title {
  font: 400 32px/1.2 var(--serif);
  margin-bottom: 40px;
}

.block__lead {
  max-width: 600px;
  color: var(--muted);
  margin: -24px 0 40px;
}

/* ── Projects ── */
.project {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
  align-items: start;
}
.project + .project { margin-top: 56px; }

.project__img {
  border: 1px solid var(--rule);
  overflow: hidden;
  border-radius: 10px;
  background: var(--paper-2);
}
.project__img img { transition: transform .4s ease; }
.project__img:hover img { transform: scale(1.02); }

.project h3 { font: 400 26px/1.25 var(--serif); }
.project__meta { color: var(--muted); font-size: 14px; margin: 4px 0 16px; }
.project__text p:not(.project__meta) { margin-bottom: 16px; }

/* ── Services ── */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.services dt { font: 400 22px/1.3 var(--serif); margin-bottom: 8px; }
.services dd { color: var(--muted); font-size: 16px; }

/* ── Price calculator ── */
.calc {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.calc__inputs { display: grid; gap: 28px; }

.calc fieldset { border: 0; display: grid; gap: 10px; min-width: 0; }
.calc legend { font-weight: 500; margin-bottom: 10px; padding: 0; }
.calc fieldset[hidden] { display: none; }

.calc label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.calc input[type=checkbox],
.calc input[type=radio] { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex-shrink: 0; }

/* project type as segmented buttons */
.calc__type { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0 !important; }
.calc__type legend { grid-column: 1 / -1; }
.calc__type label {
  justify-content: center;
  padding: 12px 8px;
  border: 1px solid var(--rule);
  background: var(--paper-2);
  font-size: 15px;
}
.calc__type label + label { border-left: 0; }
.calc__type label:nth-of-type(1) { border-radius: 8px 0 0 8px; }
.calc__type label:last-of-type { border-radius: 0 8px 8px 0; }
.calc__type input { position: absolute; opacity: 0; }
.calc__type label:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.calc__type label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.calc__range { flex-direction: column; align-items: stretch !important; }
.calc__range input { width: 100%; accent-color: var(--accent); }
.calc__num input { width: 72px; padding: 6px 8px; font: inherit; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper-2); color: var(--ink); }

.calc__result {
  position: sticky;
  top: 88px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 28px;
}
.calc__label { font-size: 14px; color: var(--muted); }
.calc__total { font: 400 44px/1.1 var(--serif); margin: 4px 0; }
.calc__monthly { color: var(--muted); }
.calc__lines { margin: 20px 0; font-size: 14px; }
.calc__lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px solid var(--rule);
}
.calc__note { font-size: 13px; color: var(--muted); margin-bottom: 20px; }

.button {
  display: block;
  text-align: center;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 500;
  padding: 14px 20px;
  border-radius: 8px;
  transition: background .2s;
}
.button:hover { background: var(--accent); }

/* ── About / Contact ── */
.about { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.about .block__title { margin: 0; }
.about__text { max-width: 640px; }
.about__text p + p { margin-top: 16px; }

.contact__lead { color: var(--muted); }
.contact__mail {
  display: inline-block;
  margin: 16px 0;
  font: 400 clamp(26px, 4vw, 40px)/1.2 var(--serif);
  color: var(--accent);
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}
.contact__alt { font-size: 15px; color: var(--muted); }

/* ── Footer ── */
.foot { border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); }
.foot__inner { display: flex; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; }
.foot nav { display: flex; gap: 20px; }

/* ── Small screens ── */
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .top__nav a:not(.top__mail) { display: none; }
  .intro, .project, .calc, .about, .services { grid-template-columns: 1fr; }
  .intro { gap: 32px; padding-top: 56px; padding-bottom: 56px; }
  .project { gap: 20px; }
  .calc__result { position: static; }
  .block { padding-top: 56px; padding-bottom: 56px; }
}

/* ── Impressum / Datenschutz ── */
.legal .top-nav,
.legal footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  border-bottom: 1px solid var(--rule);
}
.legal footer { border: 0; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); }
.legal .nav-logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 6px;
  background: linear-gradient(135deg, #a78bfa, #38bdf8);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.legal .nav-back, .legal .footer-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.legal .footer-links { display: flex; gap: 20px; }
.legal .wrap { max-width: 720px; padding: 64px 32px 96px; }
.legal .page-label { color: var(--muted); font-size: 14px; }
.legal h1 { font: 400 44px/1.15 var(--serif); margin: 4px 0 32px; }
.legal h2 { font: 400 22px/1.3 var(--serif); margin: 40px 0 10px; }
.legal h3 { font-size: 17px; font-weight: 500; margin: 24px 0 8px; }
.legal p, .legal address, .legal ul { font-style: normal; margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 20px; }
.legal strong { font-weight: 500; }
.legal .wrap a { color: var(--accent); }
.legal .divider { height: 1px; background: var(--rule); margin: 40px 0; }
.legal .info-box { border-left: 3px solid var(--rule); padding: 4px 16px; margin: 16px 0; color: var(--muted); font-size: 15px; }

@media (max-width: 700px) {
  .legal .top-nav, .legal footer { padding: 16px; }
  .legal footer { flex-direction: column; gap: 12px; }
  .legal .wrap { padding: 40px 16px 64px; }
}
