/* ============================================================
   DIETZ COMMERCE GROUP · style.css
   Brand System based on Bastian Dietz Personal Design V1.2
   Colors: Gold #ebb30c · Black #000 · Warm #F7F5F0
   Fonts:  Haskoy (primary) · Martian Mono (labels/code)
   ============================================================ */

@import url('fonts.css');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --gold:    #ebb30c;
  --gold-dk: #B88409;
  --black:   #000000;
  --white:   #FFFFFF;
  --warm:    #F7F5F0;
  --warm-dk: #EDEAE3;
  --text:    #1a1a1a;
  --text-md: #444444;
  --text-lt: #777777;
  --navy:    #2568CC;
  --green:   #22A85A;

  --font-primary: 'Haskoy', 'Barlow', 'Helvetica Neue', sans-serif;
  --font-mono:    'MartianMono', 'Courier New', monospace;

  --nav-h:   68px;
  --max-w:   1120px;
  --radius:  4px;
  --ease:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Language Toggle ─────────────────────────────────────── */
/* Default: German.
   :not(button) ensures the nav switcher buttons themselves
   are never hidden by these rules – only content spans are. */
[data-lang="en"]:not(button) { display: none; }

:root[lang="en"] [data-lang="en"]:not(button) { display: revert; }
:root[lang="en"] [data-lang="de"]:not(button) { display: none; }

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  background: var(--white);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--black);
  border-bottom: 1px solid rgba(235,179,12,.15);
  display: flex;
  align-items: center;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.nav__inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  flex-shrink: 0;
}

.nav__logo-name {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--gold);
}

.nav__logo-sub {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: color .2s var(--ease), background .2s var(--ease);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--gold);
  background: rgba(235,179,12,.08);
}

.nav__lang {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: 1.5rem;
  border: 1px solid rgba(235,179,12,.25);
  border-radius: var(--radius);
  overflow: hidden;
}

.nav__lang button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,.4);
  padding: 0.3rem 0.6rem;
  transition: background .2s, color .2s;
}

.nav__lang button.active {
  background: var(--gold);
  color: var(--black);
}

.nav__lang button:hover:not(.active) {
  color: var(--gold);
}

/* Mobile hamburger */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  margin-left: auto;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  margin: 5px 0;
  transition: transform .25s;
}

/* ── Page Wrapper ────────────────────────────────────────── */
main {
  padding-top: var(--nav-h);
}

/* ── Section Primitives ──────────────────────────────────── */
.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 4vw, 3rem);
}

.section--dark  { background: var(--black); color: var(--white); }
.section--warm  { background: var(--warm); }
.section--white { background: var(--white); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ── Section Labels ──────────────────────────────────────── */
.label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.section--dark .label { color: var(--gold); }

/* ── Typography ──────────────────────────────────────────── */
.display {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
}

.headline {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.subheadline {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.body-lead {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-md);
  max-width: 62ch;
}

.section--dark .body-lead { color: rgba(255,255,255,.65); }

.gold { color: var(--gold); }

/* ── Hero Section ────────────────────────────────────────── */
.hero {
  background: var(--black);
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 55%;
  height: 130%;
  background: radial-gradient(ellipse at center, rgba(235,179,12,.06) 0%, transparent 65%);
  pointer-events: none;
}

.hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--gold);
}

.hero__title {
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero__title .accent { color: var(--gold); }

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255,255,255,.6);
  max-width: 52ch;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  padding: 0.8rem 1.75rem;
  cursor: pointer;
  border: none;
  transition: all .2s var(--ease);
}

.btn--primary {
  background: var(--gold);
  color: var(--black);
}

.btn--primary:hover {
  background: #d4a00b;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.2);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  width: 3rem;
  height: 2px;
  background: var(--gold);
  margin-bottom: 2rem;
}

/* ── Feature Grid ────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--warm-dk);
  border-radius: calc(var(--radius) * 2);
  padding: 2rem;
  transition: border-color .2s, box-shadow .2s;
}

.section--dark .feature-card {
  background: #0d0d0d;
  border-color: rgba(255,255,255,.08);
}

.feature-card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(235,179,12,.2);
}

.feature-card__icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.feature-card__text {
  font-size: 0.9rem;
  color: var(--text-md);
  line-height: 1.65;
}

.section--dark .feature-card__text { color: rgba(255,255,255,.5); }

/* ── Two-Column Layout ───────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ── Stats Row ───────────────────────────────────────────── */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.stat__num {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--gold);
  line-height: 1;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-lt);
  margin-top: 0.3rem;
}

.section--dark .stat__label { color: rgba(255,255,255,.4); }

/* ── Portfolio Cards ─────────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.portfolio-card {
  border-radius: calc(var(--radius) * 2);
  overflow: hidden;
  border: 1px solid var(--warm-dk);
  background: var(--white);
  transition: box-shadow .25s, transform .25s;
}

.portfolio-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.1);
  transform: translateY(-3px);
}

.portfolio-card__banner {
  height: 180px;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(235,179,12,.4);
  text-transform: uppercase;
}

.portfolio-card__body { padding: 1.5rem; }

.portfolio-card__tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.portfolio-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.portfolio-card__text {
  font-size: 0.875rem;
  color: var(--text-md);
  line-height: 1.6;
}

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 2px;
  margin-top: 1rem;
}

.badge--coming {
  background: rgba(235,179,12,.1);
  color: var(--gold);
  border: 1px solid rgba(235,179,12,.25);
}

.badge--active {
  background: rgba(34,168,90,.1);
  color: var(--green);
  border: 1px solid rgba(34,168,90,.25);
}

/* ── Contact Section ─────────────────────────────────────── */
.contact-box {
  background: var(--warm);
  border-radius: calc(var(--radius) * 3);
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
  border: 1px solid var(--warm-dk);
}

.contact-box .headline { margin-bottom: 1rem; }
.contact-box .body-lead { margin: 0 auto 2rem; }

.contact-email {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 600;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Legal Pages ─────────────────────────────────────────── */
.legal-content {
  max-width: 72ch;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem);
}

.legal-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.legal-content .label { margin-bottom: 2rem; }

.legal-content h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--warm-dk);
}

.legal-content h2:first-of-type { border-top: none; margin-top: 1.5rem; }

.legal-content p {
  font-size: 0.95rem;
  color: var(--text-md);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.legal-content a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--black);
  color: rgba(255,255,255,.4);
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer__brand {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(235,179,12,.6);
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
}

.footer__links a {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  transition: color .2s;
}

.footer__links a:hover { color: var(--gold); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--black);
    border-bottom: 1px solid rgba(235,179,12,.15);
    padding: 1rem;
    gap: 0.25rem;
  }
  .nav__toggle { display: block; }
  .nav__lang { margin-left: 0.75rem; }
  .stats { gap: 1.5rem; }
}

@media (max-width: 480px) {
  .feature-card { padding: 1.5rem; }
  .contact-box { padding: 1.75rem; }
}
