/* Teichert Tech & Ventures — shared styles */
/* System fonts only, no external resources. */

:root {
  --bg: #f6f4f1;
  --bg-elev: #efece7;
  --bg-card: #ffffff;
  --border: #e2ddd5;
  --text: #1d1b18;
  --muted: #6e685f;
  --accent: #b4470f;
  --accent-soft: rgba(180, 71, 15, 0.08);
  --accent-glow: rgba(180, 71, 15, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Language switching ---- */
html[data-lang="de"] [data-en] { display: none !important; }
html[data-lang="en"] [data-de] { display: none !important; }

/* ---- Layout ---- */
.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #8a3409; text-decoration: underline; }

::selection { background: var(--accent-glow); }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 244, 241, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--text);
  white-space: nowrap;
}
.brand:hover { text-decoration: none; color: var(--text); }

.brand svg { flex: none; }

.brand .brand-suffix { color: var(--muted); font-weight: 500; }

.header-right { display: flex; align-items: center; gap: 20px; }

.main-nav { display: none; gap: 24px; }
.main-nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--text); text-decoration: none; }

/* Language toggle */
.lang-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  flex: none;
}
.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-toggle button:hover { color: var(--text); }
.lang-toggle button[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 480px;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 65%);
  pointer-events: none;
}
.hero .wrap { position: relative; }

.hero-kicker {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 20px;
  max-width: 18ch;
}
.hero h1 .accent { color: var(--accent); }

.hero .lede {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 36px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.btn:hover { text-decoration: none; border-color: var(--accent); color: var(--text); transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.btn-primary:hover {
  background: #9a3c0c;
  border-color: #9a3c0c;
  color: #ffffff;
}

/* ---- Sections ---- */
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--border); }

.section-kicker {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.section h2 {
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 0 0 14px;
}

.section .section-intro {
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 40px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: rgba(180, 71, 15, 0.45); transform: translateY(-2px); }

.card .card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card .card-icon svg { stroke: var(--accent); }

.card h3 { font-size: 18px; margin: 0 0 10px; font-weight: 650; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* Product feature card */
.product-card {
  background: linear-gradient(160deg, var(--bg-card), #10202070);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: border-color 0.2s ease;
}
.product-card:hover { border-color: rgba(180, 71, 15, 0.45); }

.product-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(180, 71, 15, 0.3);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 18px;
}

.product-card h3 { font-size: 24px; margin: 0 0 12px; letter-spacing: -0.01em; }
.product-card p { color: var(--muted); margin: 0 0 16px; max-width: 60ch; }
.product-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.product-card li {
  color: var(--muted);
  font-size: 15.5px;
  padding-left: 26px;
  position: relative;
}
.product-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
}

.more-products {
  margin-top: 18px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 20px 26px;
  color: var(--muted);
  font-size: 15.5px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.more-products .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 7px transparent; }
}

/* About / contact */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.about-text p { color: var(--muted); margin: 0 0 16px; max-width: 62ch; }
.about-text p strong { color: var(--text); }

.contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  align-self: start;
}
.contact-box h3 { margin: 0 0 10px; font-size: 18px; }
.contact-box p { color: var(--muted); font-size: 15.5px; margin: 0 0 18px; }

/* ---- Legal pages ---- */
.legal { padding: 56px 0 72px; }
.legal h1 { font-size: clamp(28px, 5vw, 38px); letter-spacing: -0.02em; margin: 0 0 8px; }
.legal .legal-note {
  color: var(--muted);
  font-size: 15px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 24px 0 0;
}
.legal h2 { font-size: 21px; margin: 44px 0 12px; letter-spacing: -0.01em; }
.legal h3 { font-size: 17px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--muted); font-size: 16px; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal address { font-style: normal; color: var(--text); line-height: 1.7; margin: 0 0 14px; }

/* Human-readable e-mail: "@" and "." exist only as CSS pseudo-content,
   plus a hidden decoy — no valid address ever appears in markup or DOM text. */
.email-link { font-family: var(--mono); font-size: 0.95em; }
.email-human b, .email-human i, .email-human u { font: inherit; font-style: normal; font-weight: inherit; text-decoration: none; }
.email-human .decoy { display: none; }
.email-human b::after { content: "\0040"; }
.email-human i::after { content: "\002E"; }

/* ---- Business card (index) ---- */
.bizcard-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.bizcard-main {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 64px 0;
}
.bizcard-main::before { content: none; }
.bizcard {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px 32px 40px;
  box-shadow: 0 1px 2px rgba(29, 27, 24, 0.05), 0 12px 32px rgba(29, 27, 24, 0.07);
}
.bizcard-photo {
  width: 180px;
  height: auto;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top;
  background: #eceae5;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.bizcard h1 {
  font-size: clamp(26px, 5vw, 34px);
  letter-spacing: -0.02em;
  font-weight: 750;
  margin: 0 0 6px;
}
.bizcard-role {
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 20px;
}
.bizcard-line {
  color: var(--muted);
  font-size: 16px;
  max-width: 44ch;
  margin: 0 auto 28px;
  text-wrap: pretty;
}
.bizcard-contact {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 20px;
  background: var(--bg-elev);
}
.bizcard-contact-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.bizcard-contact .email-link { color: var(--accent); }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 40px;
  margin-top: 24px;
}
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); text-decoration: none; }

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .more-products .dot { animation: none; }
}

/* ---- Responsive ≥ 720px ---- */
@media (min-width: 720px) {
  .main-nav { display: flex; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1.4fr 1fr; }
  .section { padding: 88px 0; }
  .site-footer .wrap { flex-direction: row; justify-content: space-between; align-items: center; }
}
