/* =================================================================
   Hurmi's Hop Log — Docs / Legal pages (AGB, Datenschutz)
   Amber dark theme · Playfair Display + DM Sans
   ================================================================= */

:root {
  --bg:           #0c0a07;
  --surface:      #141109;
  --surface2:     #1a1610;
  --border:       #2a2115;
  --border-warm:  #3a2e1c;
  --accent:       #e8910a;
  --accent-dim:   rgba(232, 145, 10, 0.10);
  --accent-light: #f5b03a;
  --warn-bg:      #160c04;
  --warn-border:  #b56e08;
  --text:         #eddfc0;
  --muted:        #7a6a50;
  --font:         'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(232, 145, 10, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(232, 145, 10, 0.03) 0%, transparent 55%);
  color: var(--text);
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 1.75rem 5rem;
  line-height: 1.78;
}

/* ── Nav ────────────────────────────────────────────────────── */
.docs-nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-warm);
  font-size: 0.82rem;
}
.docs-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.docs-nav a:hover { color: var(--accent); }
.docs-nav a:first-child { color: var(--accent); }

/* ── Page title ─────────────────────────────────────────────── */
h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--accent);
  margin-bottom: 0.25rem;
  text-shadow: 0 0 40px rgba(232, 145, 10, 0.2);
}

/* ── Section headings ───────────────────────────────────────── */
h2 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding: 0.6rem 1rem 0.6rem 0.9rem;
  border-left: 3px solid var(--accent);
  background: linear-gradient(90deg, var(--accent-dim) 0%, transparent 70%);
  border-radius: 0 5px 5px 0;
}

h3 {
  font-family: var(--font-display);
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 1.75rem;
  margin-bottom: 0.3rem;
  padding: 0.8rem 0 0.25rem 0.6rem;
  border-top: 1px solid var(--border);
  border-left: 2px solid var(--border);
  transition: border-left-color 0.15s;
}
h3:hover { border-left-color: var(--accent); }

/* ── Text ───────────────────────────────────────────────────── */
p    { margin: 0.5rem 0; font-size: 0.95rem; color: var(--text); }
li   { margin: 0.4rem 0; font-size: 0.95rem; color: var(--text); }
ul, ol { padding-left: 1.5rem; }
strong { color: #f0e4cc; }
em     { color: var(--muted); font-style: italic; }

/* ── Date / subtitle ────────────────────────────────────────── */
.docs-date {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

/* ── Callouts ───────────────────────────────────────────────── */
.warn {
  background: var(--warn-bg);
  border-left: 3px solid var(--warn-border);
  color: #fde68a;
  padding: 0.65rem 1rem;
  margin: 1rem 0;
  border-radius: 0 5px 5px 0;
  font-size: 0.92rem;
}
.info {
  background: rgba(232, 145, 10, 0.06);
  border-left: 3px solid var(--accent);
  color: var(--accent-light);
  padding: 0.65rem 1rem;
  margin: 1rem 0;
  border-radius: 0 5px 5px 0;
  font-size: 0.92rem;
}

/* ── Tables ─────────────────────────────────────────────────── */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.75rem 0;
  font-size: 0.92rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
th {
  background: var(--surface2);
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
}
td {
  padding: 0.42rem 0.75rem;
  border: 1px solid var(--border);
  vertical-align: top;
  color: var(--text);
}
tr:nth-child(even) td { background: rgba(255, 255, 255, 0.015); }
tr:hover td { background: var(--surface); }

/* ── Code ───────────────────────────────────────────────────── */
code {
  font-family: 'Courier New', monospace;
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-size: 0.82rem;
  color: var(--accent-light);
}

/* ── Links ──────────────────────────────────────────────────── */
a       { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-light); text-decoration: underline; }

/* ── Horizontal rule ────────────────────────────────────────── */
hr {
  border: none;
  border-top: 1px solid var(--border-warm);
  margin: 2rem 0;
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  margin-top: 3.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-warm);
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { color: var(--accent-light); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  body { padding: 1.5rem 1rem 3rem; }
  h1   { font-size: 1.35rem; }
  h2   { font-size: 0.8rem; margin-top: 2.25rem; }

  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.85rem;
  }
  td, th { padding: 0.3rem 0.5rem; }
}

@media (max-width: 420px) {
  body { padding: 1rem 0.75rem 2.5rem; }
  h1   { font-size: 1.2rem; }
}

/* ── FAQ Accordion ──────────────────────────────────────────── */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 6px;
  margin: 0.5rem 0;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.15s;
}
.faq-item[open] {
  border-color: var(--border-warm);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  user-select: none;
  transition: color 0.15s, background 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: '\2212';
}
.faq-item summary:hover {
  color: var(--accent-light);
  background: var(--surface2);
}
.faq-item > p,
.faq-item > ul,
.faq-item > ol {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--border);
}
.faq-item > p:first-of-type,
.faq-item > ul:first-of-type,
.faq-item > ol:first-of-type {
  padding-top: 0.85rem;
}

/* ── Print ──────────────────────────────────────────────────── */
@media print {
  body { background: #fff; color: #000; padding: 1rem; max-width: none; }
  h1, h2 { color: #000; border-left-color: #888; background: none; }
  h3     { border-color: #ccc; }
  th     { background: #f0f0f0; color: #333; border-top: 2px solid #333; }
  a      { color: #000; }
  .warn, .info { border-left: 3px solid #888; background: #f8f8f8; color: #333; }
  footer { display: none; }
}
