/* brommer.app – gemeinsames Stylesheet (angelehnt an das App-Theme) */
:root {
  --bg: #1c1c1e;
  --bg2: #252528;
  --bg3: #2e2e32;
  --surface: #202023;
  --accent: #b59f77;
  --accent-soft: rgba(181, 159, 119, .12);
  --blue: #0a84ff;
  --green: #30d158;
  --text: #f2f2f0;
  --muted: #8e8e93;
  --border: rgba(255, 255, 255, .07);
  --border2: rgba(255, 255, 255, .13);
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 24px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Kopfzeile */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(28, 28, 30, .82);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.brand span { color: var(--accent); }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 4px; }
.nav a {
  color: var(--muted); font-size: 15px; font-weight: 500;
  padding: 7px 12px; border-radius: 999px;
}
.nav a:hover { color: var(--text); background: var(--bg2); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); background: var(--bg3); }

main { flex: 1; }

/* Seitenkopf */
.page-head { padding: 64px 0 36px; }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 10px;
}
h1 {
  font-size: clamp(32px, 5.5vw, 48px); line-height: 1.1; letter-spacing: -.025em;
  font-weight: 800; margin: 0 0 14px;
}
.lede { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0; }
.meta { color: var(--muted); font-size: 14px; margin-top: 16px; }

h2 { font-size: 24px; line-height: 1.25; letter-spacing: -.015em; font-weight: 700; margin: 0 0 14px; }
h3 { font-size: 17px; font-weight: 700; margin: 24px 0 8px; }
p { margin: 0 0 14px; }
ul, ol { padding-left: 20px; margin: 0 0 14px; }
li { margin-bottom: 6px; }
li::marker { color: var(--accent); }
strong { font-weight: 650; }

.section { padding: 8px 0 56px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-title h2 { margin: 0; }

/* Karten */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
}
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* App-Karten */
.app-card { display: flex; flex-direction: column; gap: 16px; }
.app-top { display: flex; gap: 16px; align-items: center; }
.app-icon {
  width: 64px; height: 64px; flex: none;
  border-radius: 15px; overflow: hidden;
  border: 1px solid var(--border2);
  display: grid; place-items: center;
}
.app-icon.lg { width: 88px; height: 88px; border-radius: 20px; }
.app-icon.hestia { background: linear-gradient(160deg, #c9653a, #9e4420); }
.app-icon.hestia svg { width: 55%; height: 55%; }
.app-name { font-size: 20px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.app-sub { color: var(--muted); font-size: 14px; margin: 2px 0 0; }
.app-card p { color: #d4d4d0; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: var(--bg3); color: var(--muted); border: 1px solid var(--border);
}
.tag.gold { background: var(--accent-soft); color: var(--accent); border-color: rgba(181,159,119,.25); }
.tag.green { background: rgba(48,209,88,.12); color: var(--green); border-color: rgba(48,209,88,.25); }
.app-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 15px/1 var(--sans);
  padding: 11px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--border2); background: var(--bg3); color: var(--text);
  cursor: pointer;
}
.btn:hover { text-decoration: none; background: #38383d; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #1c1c1e; }
.btn.primary:hover { background: #c4ae86; }
.btn.sm { font-size: 14px; padding: 8px 12px; border-radius: 10px; }

/* Merkmale */
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .ic {
  flex: none; width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
}
.feature .ic svg { width: 18px; height: 18px; }
.feature b { display: block; margin-bottom: 2px; }
.feature span { color: var(--muted); font-size: 15px; }

/* Listen / Tabellen */
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); margin: 0; }
.list li:last-child { border-bottom: 0; }
.list .k { color: var(--muted); min-width: 130px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-sm); margin: 0 0 16px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--border); }
th { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--bg2); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; }

.note {
  border-left: 3px solid var(--accent); background: var(--accent-soft);
  padding: 14px 18px; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin: 0 0 16px;
}
address { font-style: normal; line-height: 1.7; }

/* FAQ */
details {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-sm);
  margin-bottom: 8px;
}
summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 600; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details .answer { padding: 0 18px 16px; color: #d4d4d0; }
details .answer p:last-child { margin: 0; }

/* Formular */
form .field { margin-bottom: 14px; }
label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: 16px/1.4 var(--sans); color: var(--text);
  background: var(--bg3); border: 1px solid var(--border2); border-radius: var(--r-sm);
  padding: 12px 14px;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
.hint { color: var(--muted); font-size: 13px; margin-top: 10px; }

/* Status */
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.status-row:last-child { border-bottom: 0; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 8px; box-shadow: 0 0 0 3px rgba(48,209,88,.18); }

/* Datenschutz-Layout */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding-bottom: 72px; }
.toc { position: sticky; top: 84px; align-self: start; font-size: 14px; max-height: calc(100vh - 100px); overflow: auto; }
.toc p { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin: 0; }
.toc a { display: flex; gap: 10px; padding: 6px 10px; border-radius: 8px; color: var(--muted); line-height: 1.35; }
.toc a::before { content: counter(toc); min-width: 18px; color: var(--accent); font-variant-numeric: tabular-nums; }
.toc a:hover { background: var(--bg2); color: var(--text); text-decoration: none; }
.legal section { scroll-margin-top: 84px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--border); }
.legal section:last-child { border-bottom: 0; }
.legal h2 .n { color: var(--accent); margin-right: 10px; font-variant-numeric: tabular-nums; }
.legal p, .legal li { color: #dcdcd8; }

/* Fußzeile */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .legal { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; max-height: none; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; }
}
@media (max-width: 680px) {
  .container { padding: 0 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .page-head { padding: 40px 0 28px; }
  .lede { font-size: 16.5px; }
  .card { padding: 20px; }
  .site-header .container { height: auto; padding-top: 10px; padding-bottom: 10px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .nav { margin-left: -12px; }
  .nav a { font-size: 14px; padding: 6px 12px; }
  .list li { flex-direction: column; gap: 0; }
}
@media print {
  .site-header, .toc, .site-footer { display: none; }
  body { background: #fff; color: #000; }
  .legal { display: block; }
  .legal p, .legal li { color: #000; }
}
code { font: 14px/1.4 ui-monospace, "SF Mono", Menlo, monospace; background: var(--bg3); padding: 2px 6px; border-radius: 6px; }
