/* ============================================
   MEISTERWERK.coach — Rechtsseiten Stylesheet
   Geteilt: impressum.html · datenschutz.html · agb.html
   ============================================ */

:root {
  --black: #0A0A0A;
  --anthracite: #1A1D21;
  --cream: #F5F1E8;
  --cream-light: #FAF8F2;
  --highlight-box: #F0E5D0;
  --white: #FFFFFF;
  --orange: #D85A2C;
  --orange-hover: #C24E25;
  --grey-mid: #6B6B66;
  --grey-light: #A8A8A2;
  --border: #E0DCD0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--anthracite);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Header / Navigation (gleich wie Landingpage)
   ============================================ */
header {
  background: rgba(245, 241, 232, 0.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-logo {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--anthracite);
  text-decoration: none;
}

.nav-logo .accent {
  color: var(--orange);
  font-weight: 400;
}

.nav-back {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--anthracite);
  text-decoration: none;
  font-weight: 700;
}

.nav-back:hover { color: var(--orange); }

/* ============================================
   Hero
   ============================================ */
.legal-hero {
  background: var(--black);
  color: var(--white);
  padding: 100px 32px 80px;
}

.legal-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.eyebrow {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 12px;
  color: var(--orange);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.legal-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.0;
  letter-spacing: -2px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--white);
}

.legal-hero-meta {
  font-family: 'Courier New', monospace;
  color: var(--grey-light);
  font-size: 11px;
  letter-spacing: 1.5px;
  line-height: 1.8;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(245, 241, 232, 0.15);
}

/* ============================================
   Content
   ============================================ */
main {
  padding: 80px 32px 100px;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content section {
  margin-bottom: 60px;
}

.section-eyebrow {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 11px;
  color: var(--orange);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.legal-content h2 {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -1px;
  font-weight: 700;
  margin-bottom: 24px;
}

.legal-content h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-content p strong { font-weight: 700; }

.legal-content ul,
.legal-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid var(--orange);
  transition: opacity 0.2s;
}

.legal-content a:hover { opacity: 0.7; }

/* Highlight-Box (Sand mit oranger Linie) */
.highlight-box {
  background: var(--highlight-box);
  border-left: 4px solid var(--orange);
  padding: 28px 32px;
  font-style: italic;
  font-size: 16px;
  line-height: 1.6;
  margin: 32px 0;
}

.highlight-box p { margin-bottom: 12px; font-style: italic; }
.highlight-box p:last-child { margin-bottom: 0; }

/* Adresse-Block */
.address-block {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px 32px;
  margin: 24px 0 32px;
  font-style: normal;
}

.address-block p {
  margin-bottom: 4px;
}

.address-block .label {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--orange);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Tabelle */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  background: var(--white);
}

.legal-table th {
  background: #2A2A2A;
  color: var(--cream);
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-align: left;
  padding: 14px 18px;
}

.legal-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: top;
}

.legal-table tr:nth-child(even) td { background: var(--cream-light); }

/* Anchor-Link für Sektionen */
.legal-content section[id] {
  scroll-margin-top: 100px;
}

/* TOC Inhaltsverzeichnis */
.toc {
  background: var(--cream-light);
  border: 1px solid var(--border);
  padding: 24px 28px;
  margin-bottom: 60px;
}

.toc h3 {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--orange);
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 16px;
}

.toc ol {
  padding-left: 0;
  list-style: none;
  counter-reset: tocnum;
}

.toc li {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 8px;
  padding-left: 32px;
  position: relative;
  counter-increment: tocnum;
}

.toc li::before {
  content: counter(tocnum, decimal-leading-zero);
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: var(--orange);
  font-weight: 700;
  position: absolute;
  left: 0;
  top: 2px;
  letter-spacing: 1px;
}

.toc a {
  color: var(--anthracite);
  text-decoration: none;
  border-bottom: none;
}

.toc a:hover { color: var(--orange); }

/* ============================================
   Footer
   ============================================ */
footer {
  background: var(--anthracite);
  color: var(--cream);
  padding: 60px 32px 32px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.footer-logo .accent { color: var(--orange); font-weight: 400; }

.footer-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--grey-light);
  max-width: 600px;
  margin-bottom: 32px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-top: 1px solid rgba(245, 241, 232, 0.15);
  border-bottom: 1px solid rgba(245, 241, 232, 0.15);
  margin-bottom: 24px;
}

.footer-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--orange); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: var(--grey-light);
  letter-spacing: 1px;
}
