/* Ultroweb – dunkles Design mit Gold-Akzent (Anklang an die alte Seite), Glas-Karten */
:root {
  --bg: #07080b;
  --bg2: #0e1118;
  --surface: rgba(255, 255, 255, .045);
  --surface-hover: rgba(255, 255, 255, .08);
  --border: rgba(255, 255, 255, .10);
  --text: #eef0f4;
  --muted: #9aa3b2;
  --gold: #f5c542;
  --gold-2: #ffdd7a;
  --violet: #8b7bff;
  --ok: #4ade80;
  --radius: 18px;
  --max: 1080px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7f6f2;
    --bg2: #efede6;
    --surface: rgba(255, 255, 255, .75);
    --surface-hover: #fff;
    --border: rgba(20, 20, 30, .10);
    --text: #16181d;
    --muted: #5b6270;
    --gold: #a77a00;
    --gold-2: #c99700;
    --violet: #5b4bdb;
    --ok: #15803d;
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html { background: var(--bg2); }
body {
  margin: 0; min-height: 100vh; color: var(--text);
  font: 16px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(900px 500px at 85% -10%, color-mix(in srgb, var(--violet) 22%, transparent), transparent 70%),
    radial-gradient(800px 500px at -10% 10%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  background-repeat: no-repeat;
}
a { color: var(--gold); text-underline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Kopf */
header.site { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 70%, transparent); border-bottom: 1px solid var(--border); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .02em; text-decoration: none; color: var(--text); font-size: 1.1rem; }
.logo .mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--gold), var(--violet)); color: #0b0b0f; font-weight: 900; font-size: .95rem; }
.logo b { font-weight: 800; }
.logo b span { color: var(--gold); }
nav.main { display: flex; flex-wrap: wrap; gap: 4px 6px; }
nav.main a { text-decoration: none; color: var(--muted); font-size: .95rem; padding: 6px 12px; border-radius: 999px; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--text); background: var(--surface-hover); }
nav.main a.lock { color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); }

main { padding: 48px 0 64px; }
h1 { font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.08; margin: 0 0 16px; letter-spacing: -.02em; }
h2 { font-size: 1.45rem; margin: 48px 0 14px; letter-spacing: -.01em; }
h3 { font-size: 1.08rem; margin: 0 0 6px; }
.grad { background: linear-gradient(90deg, var(--gold-2), var(--gold) 40%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; margin: 0 0 28px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.muted { color: var(--muted); }

/* Hero */
.hero { padding: 24px 0 8px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; padding: 11px 20px; border-radius: 999px; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #15120a; border: 0; }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn:hover { filter: brightness(1.06); }

/* Karten */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { position: relative; display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; transition: transform .18s ease, background .18s ease, border-color .18s ease; overflow: hidden; }
a.card:hover { transform: translateY(-3px); background: var(--surface-hover); border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card .icon { font-size: 1.7rem; line-height: 1; margin-bottom: 14px; display: block; }
.card .tag { position: absolute; top: 16px; right: 16px; font-size: .72rem; font-weight: 700; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; }
.card.feature { grid-column: span 2; background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 14%, transparent), color-mix(in srgb, var(--violet) 14%, transparent)); }
@media (max-width: 560px) { .card.feature { grid-column: auto; } }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin: 16px 0; }
.note { border-left: 3px solid var(--gold); background: var(--surface); border-radius: 12px; padding: 14px 16px; margin: 16px 0; font-size: .95rem; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 20px 0; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.stat b { display: block; font-size: 1.8rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .85rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.chips li { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; font-size: .9rem; }

/* Interner Bereich */
.svc-group { margin-top: 28px; }
.svc { display: flex; gap: 14px; align-items: flex-start; }
.svc .dot { flex: none; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.svc small { display: block; color: var(--muted); }
code { font-size: .88em; background: var(--surface); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; }

article { max-width: 760px; }
footer.site { border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
footer.site a { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Ulrikes Homepage (/uhinueber/) – Dunkelrot und kursive Serifenschrift wie die alte Seite */
.uh-hero {
  --uh-red: #6b0000;
  position: relative; overflow: hidden; margin: 24px 0 8px; border-radius: var(--radius);
  min-height: 320px; display: flex; align-items: flex-end;
  background: linear-gradient(180deg, var(--uh-red) 0%, color-mix(in srgb, var(--uh-red) 88%, transparent) 38%, color-mix(in srgb, var(--uh-red) 35%, transparent) 75%, rgba(0, 0, 0, .1) 100%),
    url("/uhinueber/bilder/berge.jpg") center 70% / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, .12); color: #fff;
}
.uh-hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 28px; width: 100%; background: linear-gradient(0deg, rgba(40, 0, 0, .55), transparent); }
.uh-portrait { width: 96px; height: 128px; object-fit: cover; border-radius: 14px; border: 3px solid rgba(255, 255, 255, .85); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.uh-eyebrow { color: #ffd9d9; margin-bottom: 6px; }
.uh-name { margin: 0 0 12px; font: italic 700 clamp(2.2rem, 7vw, 3.6rem)/1.05 "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; letter-spacing: .01em; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.uh-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.uh-nav a { color: #fff; text-decoration: none; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.uh-nav a:hover { background: rgba(255, 255, 255, .26); }
.uh-section { margin: 36px 0 8px; scroll-margin-top: 90px; }
.uh-h2 { font: italic 700 1.9rem/1.2 "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; margin: 0 0 14px; }
.uh-h3 { font: italic 700 1.4rem/1.25 "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; margin: 0 0 6px; }
.uh-photo { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.uh-photo img { display: block; width: 100%; height: auto; max-height: 440px; object-fit: cover; }
.uh-photo figcaption { padding: 10px 16px; color: var(--muted); font-size: .9rem; }
.uh-grid { margin-top: 20px; }
.uh-card { scroll-margin-top: 90px; border-top: 3px solid #8b1a1a; }
.uh-back { margin: 28px 0 8px; }
@media (max-width: 480px) { .uh-hero { min-height: 260px; } .uh-hero-inner { padding: 20px; } }
.uh-lead { max-width: 760px; }
.uh-gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.uh-gallery .uh-photo img { aspect-ratio: 4 / 3; object-fit: cover; max-height: none; }
.uh-gallery figcaption b { color: var(--text); }
.uh-src { font-size: .85rem; margin-top: 14px; }
.uh-timeline { list-style: none; margin: 8px 0 28px; padding: 0 0 0 22px; border-left: 2px solid color-mix(in srgb, #8b1a1a 70%, var(--border)); }
.uh-timeline li { position: relative; margin: 0 0 18px; }
.uh-timeline li::before { content: ""; position: absolute; left: -29px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: #8b1a1a; box-shadow: 0 0 0 4px color-mix(in srgb, #8b1a1a 25%, transparent); }
.uh-timeline b { display: block; font-size: 1.05rem; }
.uh-timeline p { margin: 4px 0 0; color: var(--muted); }
.uh-sub { margin: 8px 0 14px; }
.uh-card h4 { margin: 0 0 6px; font-size: 1.05rem; }

footer.site nav.sites { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
footer.site nav.sites b { color: var(--text); font-weight: 700; margin-right: 4px; }
footer.site nav.sites small { font-size: .75em; }

.social-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.social-grid .card p { font-size: .9rem; }
.social-note { font-size: .85rem; margin: 10px 0 28px; }
footer.site nav.social { padding-top: 4px; }
