:root {
  --bg: #0b0f17; --surface: #161d2e; --surface-2: #1d2740;
  --fg: #e6edf6; --muted: #9aa7bd; --accent: #4f8cff; --accent-2: #7c5cff;
  --border: #243049; --radius: 14px; --shadow: 0 10px 30px rgba(0,0,0,.35);
}
[data-theme="light"] {
  --bg: #f5f7fb; --surface: #ffffff; --surface-2: #eef2f9;
  --fg: #16202e; --muted: #5a6b85; --accent: #2f6bff; --accent-2: #6a3ff0;
  --border: #dde4ef; --shadow: 0 10px 30px rgba(40,70,120,.12);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; background: var(--bg); color: var(--fg); line-height: 1.6; min-height: 100vh; transition: background .3s,color .3s; }
.container { width: 100%; max-width: 820px; margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--accent); }

.site-header { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(10px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; height: 60px; }
.brand { font-weight: 700; font-size: 1.1rem; color: var(--fg); text-decoration: none; }
.brand-mark { font-size: 1.25rem; }
.brand-accent { color: var(--accent); }
.nav-actions { margin-left: auto; display: flex; gap: .6rem; }
.theme-toggle, .btn-ghost { background: var(--surface-2); border: 1px solid var(--border); color: var(--fg); min-width: 40px; height: 40px; border-radius: 10px; cursor: pointer; font-size: 1.05rem; padding: 0 .8rem; }
.theme-toggle:hover { transform: translateY(-1px); }

/* ---- Ad-Slots ---- */
.ad-slot { margin: 1.2rem 0; min-height: 90px; display: flex; align-items: center; justify-content: center; border-radius: 10px; overflow: hidden; }
.ad-slot.ad-empty { flex-direction: column; gap: .2rem; background: repeating-linear-gradient(45deg, var(--surface) 0 10px, var(--surface-2) 10px 20px); border: 1px dashed var(--border); color: var(--muted); }
.ad-label { font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; opacity: .7; }
.ad-ph-text { font-size: .85rem; opacity: .6; }
.ad-header { min-height: 90px; }
.ad-incontent { min-height: 250px; }
.ad-footer { min-height: 90px; }

/* ---- Tipp-Karte ---- */
main { padding: 1rem 0 3rem; }
.tip-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.tip-date { color: var(--accent); font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; margin-bottom: .4rem; }
.tip-card h1 { font-size: 1.6rem; line-height: 1.25; margin-bottom: 1rem; }
.tip-body p { margin: .7rem 0; color: var(--fg); }
.tip-body code, .tip-body pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: .1rem .4rem; font-family: ui-monospace, monospace; font-size: .9em; }
.tip-tags { margin-top: 1.2rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.tag { font-size: .72rem; padding: .2rem .6rem; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }

.more { margin-top: 2rem; }
.more h2 { font-size: 1.1rem; margin-bottom: .8rem; }
.tip-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.tip-list li { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: .7rem .9rem; font-size: .92rem; }
.li-date { color: var(--muted); font-size: .8rem; margin-right: .5rem; }
.hint { color: var(--muted); }

.site-footer { border-top: 1px solid var(--border); padding: 1.4rem 0; color: var(--muted); font-size: .85rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer-meta a { color: var(--muted); }

/* ---- Consent-Bar ---- */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; background: var(--surface); border-top: 1px solid var(--border); padding: 1rem 1.25rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; box-shadow: 0 -8px 30px rgba(0,0,0,.25); }
.consent[hidden] { display: none !important; }
.consent span { flex: 1; min-width: 200px; font-size: .9rem; color: var(--fg); }
.consent-actions { display: flex; gap: .6rem; }
.btn { padding: .6rem 1.1rem; border-radius: 9px; border: 1px solid transparent; cursor: pointer; font-weight: 600; font-size: .9rem; }
.btn-primary { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; }
.btn-ghost { background: var(--surface-2); border-color: var(--border); color: var(--fg); }
