/* =========================================================
   digital-rausch.com — styles
   Minimalistisch, elegant, desktop-first, mobile-freundlich.
   ========================================================= */

:root {
  --bg:          #ffffff;
  --bg-alt:      #f7f6f3;     /* dezentes Off-White für Abschnitte */
  --bg-contact:  #101418;     /* dunkler Kontakt-Block */
  --text:        #111111;
  --text-muted:  #5a5a5a;
  --text-soft:   #8a8a8a;
  --border:      #e6e4df;
  --accent:      #1f3a5f;     /* gedämpftes Deep-Blue */
  --accent-2:    #2a4d7a;
  --accent-warm: #c9a96a;     /* sehr dezenter Gold-Akzent, sparsam */
  --max:         1200px;
  --radius:      2px;
  --ease:        cubic-bezier(.2,.7,.2,1);

  --fs-xxl: clamp(2.4rem, 4.6vw + 0.2rem, 4.4rem);
  --fs-xl:  clamp(1.8rem, 2.6vw + 0.4rem, 2.6rem);
  --fs-lg:  clamp(1.3rem, 1.2vw + 0.6rem, 1.55rem);
  --fs-md:  1.0625rem;
  --fs-sm:  0.9375rem;
  --fs-xs:  0.8125rem;
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent-2); }

/* Überschriften */
h1, h2, h3 { font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 0.5em; color: var(--text); }
h1 { font-size: var(--fs-xxl); font-weight: 400; letter-spacing: -0.025em; }
h2 { font-size: var(--fs-xl); font-weight: 400; letter-spacing: -0.02em; }
h3 { font-size: var(--fs-lg); font-weight: 500; }
p  { margin: 0 0 1em; }

/* Wrapper */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 64px);
  padding-right: clamp(20px, 4vw, 64px);
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(1.6) blur(10px);
  -webkit-backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 500;
}
.brand:hover { color: var(--accent); }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: var(--text);
  color: #fff;
  border-radius: var(--radius);
}
.brand-name { font-size: var(--fs-sm); letter-spacing: 0.01em; }

.nav-list {
  display: flex;
  gap: 28px;
  list-style: none;
  padding: 0; margin: 0;
  align-items: center;
}
.nav-list a {
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 400;
  letter-spacing: 0.005em;
}
.nav-list a:hover { color: var(--accent); }
.nav-cta {
  padding: 8px 16px;
  background: var(--text);
  color: #fff !important;
  border-radius: var(--radius);
  transition: background .2s var(--ease);
}
.nav-cta:hover { background: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 5vw, 80px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.eyebrow {
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 20px;
  font-weight: 500;
}
.hero-text h1 { margin-bottom: 24px; }
.lead {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  max-width: 56ch;
  font-weight: 300;
  line-height: 1.55;
}
.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn-primary {
  background: var(--text);
  color: #fff;
}
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--text); color: var(--text); }

.hero-meta {
  margin: 48px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.hero-meta > div { margin: 0; }
.hero-meta dt {
  font-size: var(--fs-xs);
  color: var(--text-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hero-meta dd {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text);
  font-weight: 500;
}

.hero-media {
  position: relative;
}
.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: var(--radius);
  filter: grayscale(0);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.18);
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  z-index: -1;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(64px, 8vw, 120px) 0;
  border-top: 1px solid var(--border);
}
.section-alt {
  background: var(--bg-alt);
  border-top: none;
}
.section-grid {
  display: grid;
  grid-template-columns: 0.9fr 2fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.section-head .eyebrow { margin-bottom: 12px; }
.section-head.centered {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-intro {
  color: var(--text-muted);
  font-size: var(--fs-md);
  max-width: 56ch;
  margin: 16px auto 0;
}

.prose p { color: var(--text-muted); max-width: 62ch; }
.prose p + p { margin-top: 1em; }

/* ---------- Leistungen (Cards) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.card {
  background: var(--bg-alt);
  padding: clamp(28px, 3vw, 40px);
  transition: background .25s var(--ease);
}
.card:hover { background: #fff; }
.card-index {
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  color: var(--text-soft);
  margin-bottom: 20px;
  font-weight: 500;
}
.card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.15rem, 0.7vw + 0.85rem, 1.4rem);
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
  -webkit-hyphens: manual;
}
.card p { color: var(--text-muted); margin: 0; font-size: var(--fs-sm); line-height: 1.7; }

/* ---------- Märkte ---------- */
.markets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 48px 64px;
}
.market-block h3 {
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.02em;
}
.market-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.market-block li {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  padding: 6px 0;
}

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: tl;
}
.timeline > li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.timeline > li:first-child { border-top: none; padding-top: 0; }
.tl-period {
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 500;
  padding-top: 4px;
}
.tl-content h3 {
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: 8px;
}
.tl-content p {
  color: var(--text-muted);
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.7;
  max-width: 60ch;
}

/* ---------- Kontakt ---------- */
.section-contact {
  background: var(--bg-contact);
  color: #f2f2f2;
  border-top: none;
}
.section-contact h2,
.section-contact .eyebrow { color: #f2f2f2; }
.section-contact .eyebrow { color: #a8a8a8; }
.section-contact .lead { color: #c8c8c8; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.contact-mail {
  margin-top: 36px;
  font-size: clamp(1.3rem, 2vw + 0.4rem, 1.8rem);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.contact-mail a {
  color: #ffffff;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 4px;
  transition: border-color .2s var(--ease);
}
.contact-mail a:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}
.contact-media img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: var(--radius);
  filter: grayscale(0.1) brightness(0.95);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.footer-links {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  gap: 28px;
}
.footer-links a {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.footer-links a:hover { color: var(--text); }

/* ---------- Rechtstext-Seiten ---------- */
.legal-page main { padding-top: 24px; }
.legal {
  padding: clamp(48px, 6vw, 96px) 0 clamp(64px, 8vw, 120px);
}
.legal .wrap { max-width: 820px; }
.legal h1 {
  font-size: clamp(2rem, 3vw + 0.4rem, 2.8rem);
  margin-bottom: 12px;
}
.legal .eyebrow { margin-bottom: 20px; }
.legal h2 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-top: 2.5em;
  margin-bottom: 0.6em;
  color: var(--text);
}
.legal h3 {
  font-size: var(--fs-md);
  font-weight: 600;
  margin-top: 1.8em;
  margin-bottom: 0.4em;
}
.legal p, .legal li {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.75;
}
.legal ul { padding-left: 1.2em; }
.legal .placeholder {
  background: #fff6d8;
  padding: 0 4px;
  border-radius: 2px;
  color: #5a4600;
  font-size: 0.95em;
}
.legal .back {
  display: inline-block;
  margin-top: 40px;
  font-size: var(--fs-sm);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 420px; }
  .hero-media img { aspect-ratio: 4/5; }
  .hero-media::before { display: none; }
  .section-grid { grid-template-columns: 1fr; }
  .section-head.centered { margin-bottom: 40px; }
  .timeline > li { grid-template-columns: 1fr; gap: 8px; }
  .tl-period { padding-top: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-media { max-width: 540px; }
  .hero-meta { grid-template-columns: 1fr; gap: 16px; }
  .hero-meta > div { display: flex; justify-content: space-between; align-items: baseline; }
  .hero-meta dt { margin-bottom: 0; }
}

@media (max-width: 640px) {
  .nav-list { gap: 16px; }
  .nav-list li:not(:last-child) { display: none; }  /* auf mobil nur Kontakt-CTA zeigen */
  .brand-name { display: none; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .footer-inner { justify-content: center; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .hero-actions, .nav-cta { display: none; }
  .section { page-break-inside: avoid; padding: 24pt 0; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}
