/* ==========================================================================
   ownit.so — shared styles for index.html + impressum.html
   Pure CSS, no framework, no build step.
   ========================================================================== */

:root {
  --bg: #F7F5F2;
  --dark: #1A1815;
  --mid-grey: #6B6560;
  --warm-grey: #C8C2BB;
  --orange: #F47B2B;
  --orange-soft: #F9A96A;
  --orange-light: #FEE8D6;
  --blue: #0057FF;
  --blue-soft: #4D8AFF;
  --blue-light: #D0E1FF;

  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --edge: clamp(1.5rem, 5vw, 3rem);
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--dark);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--edge);
}

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

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

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--warm-grey);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.25rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.logo span { color: var(--blue); }

.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--blue); }

.status-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 87, 255, 0.35); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(0, 87, 255, 0); }
}

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(3rem, 7vw, 5rem);
  max-width: 760px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 9vw, 5.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--dark);
}

.wordmark span { color: var(--blue); }

.tagline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  color: var(--mid-grey);
  margin-top: 0.9rem;
}

.lede {
  font-size: 1.08rem;
  color: var(--dark);
  max-width: 620px;
  margin-top: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-soft);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(0, 87, 255, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--dark);
  border: 1px solid var(--warm-grey);
}

.btn-ghost:hover {
  border-color: var(--dark);
  transform: translateY(-1px);
}

/* ---------- section scaffolding ---------- */

section { padding-block: clamp(3rem, 7vw, 5rem); }

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.products h2, .contact h2 {
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  max-width: 20ch;
}

/* ---------- products ---------- */

.products { border-top: 1px solid var(--warm-grey); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.75rem;
}

.product-card {
  background: #fff;
  border: 1px solid var(--warm-grey);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card:nth-child(2) { transition-delay: 0.08s; }
.product-card:nth-child(3) { transition-delay: 0.16s; }

.product-card:hover {
  border-color: var(--blue-soft);
  box-shadow: 0 12px 28px -16px rgba(26, 24, 21, 0.18);
}

.illustration {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--warm-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.illustration svg { width: 100%; height: 100%; }

.product-card h3 {
  font-weight: 700;
  font-size: 1.15rem;
}

.product-card p {
  color: var(--mid-grey);
  font-size: 0.98rem;
}

/* ---------- contact ---------- */

.contact {
  border-top: 1px solid var(--warm-grey);
  max-width: 620px;
}

.contact .lede { margin-top: 1rem; }

.contact-email {
  display: inline-block;
  margin-top: 1.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  color: var(--blue);
  text-decoration: none;
  border-bottom: 2px solid var(--blue-light);
  padding-bottom: 0.15rem;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.contact-email:hover {
  border-color: var(--blue);
  color: var(--blue-soft);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--warm-grey);
  padding-block: 1.75rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--mid-grey);
}

.footer-inner a {
  color: var(--mid-grey);
  text-decoration: underline;
  text-decoration-color: var(--warm-grey);
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.footer-inner a:hover { color: var(--blue); }

/* ---------- impressum page ---------- */

.legal {
  max-width: 640px;
  padding-block: clamp(3rem, 7vw, 5rem);
}

.legal h1 {
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.6rem);
  margin-bottom: 2rem;
}

.legal dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.9rem 2rem;
  margin: 0 0 2rem;
}

.legal dt {
  font-weight: 600;
  color: var(--mid-grey);
  white-space: nowrap;
}

.legal dd {
  margin: 0;
}

.legal dd a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid var(--blue-light);
}

.legal dd a:hover { border-color: var(--blue); }

.legal .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  margin-top: 1rem;
}

.legal .back-link:hover { color: var(--blue-soft); }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .product-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 560px) {
  .status-pill span:not(.status-dot) { display: none; }
  .header-inner { gap: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .status-dot { animation: none; }
  .product-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn-primary:hover, .btn-ghost:hover { transform: none; }
}
