/* DrumBooth.Live Legal Documents — Editorial Style */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,600;9..144,700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg: #0f1411;
  --surface: #161d19;
  --surface-2: #1d5a3f;
  --primary: #3B886C;
  --accent: #7BCBA4;
  --ink: #F4F0E8;
  --ink-muted: rgba(244, 240, 232, 0.62);
  --ink-faint: rgba(244, 240, 232, 0.38);
  --rule: rgba(244, 240, 232, 0.1);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Subtle background texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at top left, rgba(59, 136, 108, 0.08), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(29, 90, 63, 0.12), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 32px 120px;
}

/* Top navigation */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.brand-name .dot {
  color: var(--accent);
  font-weight: 400;
}

.lang-switch {
  display: flex;
  gap: 16px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.lang-switch a {
  color: var(--ink-faint);
  text-decoration: none;
  transition: color 0.2s ease;
}

.lang-switch a:hover,
.lang-switch a.active {
  color: var(--accent);
}

.lang-switch span.sep {
  color: var(--ink-faint);
}

/* Document header */
.doc-header {
  margin-bottom: 64px;
}

.doc-kicker {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 24px;
  font-variation-settings: "opsz" 144;
}

.doc-meta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.3px;
}

/* Body content */
.doc-body h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin: 64px 0 20px;
  font-variation-settings: "opsz" 96;
}

.doc-body h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 40px 0 14px;
}

.doc-body h2 + p,
.doc-body h3 + p {
  margin-top: 0;
}

.doc-body p {
  margin: 0 0 18px;
  color: var(--ink);
}

.doc-body p strong,
.doc-body li strong {
  font-weight: 600;
  color: var(--ink);
}

.doc-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(123, 203, 164, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.doc-body a:hover {
  text-decoration-color: var(--accent);
}

.doc-body ul,
.doc-body ol {
  margin: 0 0 24px 0;
  padding-left: 24px;
}

.doc-body li {
  margin-bottom: 10px;
  color: var(--ink);
}

.doc-body li::marker {
  color: var(--ink-faint);
}

/* Address block (used in Verantwortlicher / Controller / Impressum) */
.address {
  font-family: var(--sans);
  background: var(--surface);
  border-left: 2px solid var(--primary);
  padding: 24px 28px;
  margin: 24px 0 32px;
  line-height: 1.8;
}

.address strong {
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

/* Tables */
.doc-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: 14px;
}

.doc-body th,
.doc-body td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
}

.doc-body th {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--surface);
}

.doc-body td:first-child {
  color: var(--ink);
  font-weight: 500;
}

.doc-body td:nth-child(2) {
  color: var(--ink-muted);
}

/* Recipient blocks (services using my data) */
.recipient {
  background: var(--surface);
  border-radius: 6px;
  padding: 24px 28px;
  margin: 16px 0 24px;
}

.recipient h4 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin-bottom: 12px;
  color: var(--ink);
}

.recipient p {
  font-size: 14.5px;
  margin-bottom: 12px;
}

.recipient dl {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 6px 16px;
  font-size: 13.5px;
}

.recipient dt {
  color: var(--ink-faint);
  font-weight: 500;
}

.recipient dd {
  color: var(--ink-muted);
}

.recipient dd a {
  font-size: 13.5px;
}

/* Footer */
.doc-footer {
  margin-top: 100px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.doc-footer a {
  color: var(--ink-muted);
  text-decoration: none;
  margin-right: 20px;
  transition: color 0.2s ease;
}

.doc-footer a:hover {
  color: var(--accent);
}

/* Mobile */
@media (max-width: 640px) {
  .page {
    padding: 48px 20px 80px;
  }

  .topnav {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding-bottom: 40px;
    margin-bottom: 40px;
  }

  .doc-header {
    margin-bottom: 48px;
  }

  .doc-body h2 {
    font-size: 24px;
    margin: 48px 0 16px;
  }

  .recipient dl {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }

  .recipient dt {
    margin-top: 8px;
  }

  .doc-footer {
    flex-direction: column;
  }
}

/* Print */
@media print {
  body { background: white; color: black; }
  body::before { display: none; }
  .topnav, .doc-footer { border-color: #ddd; }
  .doc-body a { color: black; text-decoration: underline; }
  .recipient, .address { background: #f5f5f5; }
  h1, h2, h3 { color: black; }
}
