:root { color-scheme:light; --font:system-ui,"Segoe UI",sans-serif; --max:1040px; }

/* happy-pc.ch – Dachmarke (Globales Design, Entscheid 119, Roger 28.11.2026).
   Grund Sand, happy-pc-Farbe Korall #d4553a (Text #b8452c) und Sonne #f2a541, eine Farbe pro Projekt:
   PPPTools Orange #e07820 (Text #a8520f, dunkel #f0a050), Immich Tools Immich-Blau #4250af (dunkel #adcbfa) mit Band der Logo-Farben,
   Event Tesserae Nachtblau #1e2230 + Bernstein #fac775 (Text #a15c00), Pink #d4537e nur als Punkt, Excel #2f8a5c (Text #2e7550, dunkel #7fcf9c).
   --pa = kräftiger Ton für Flächen/Icon/Tönung, --pt = Ton für Text, Links, Knopfgrund (AA). Dunkel: --pt = --pa.
   Kartenkopf: getönt mit 14 % Projektfarbe, Titel in --text; Ausnahmen Immich (blau) und Events (nachtblau). Korall nie im getönten Kopf. */
:root { --bg:#fbf6ef; --card:#fffdf9; --text:#2b231d; --muted:#76685b; --line:#ece2d4; --accent:#b8452c; --accent-fill:#d4553a; --on-accent:#fff; --sun:#f2a541; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) { color-scheme:dark; --bg:#1b1714; --card:#26211d; --text:#f3ece4; --muted:#b5a698; --line:#3d352e; --accent:#f08466; --accent-fill:#f08466; --on-accent:#1b1714; --sun:#f5b860; }
}
:root[data-theme=dark] { color-scheme:dark; --bg:#1b1714; --card:#26211d; --text:#f3ece4; --muted:#b5a698; --line:#3d352e; --accent:#f08466; --accent-fill:#f08466; --on-accent:#1b1714; --sun:#f5b860; }
:root .p-ppp    { --pa:#e07820; --pt:#a8520f; --pa-ink:#fff; }
:root .p-immich { --pa:#4250af; --pt:#4250af; --pa-ink:#fff; }
:root .p-events { --pa:#fac775; --pt:#a15c00; --pa-ink:#1e2230; }
:root .p-excel  { --pa:#2f8a5c; --pt:#2e7550; --pa-ink:#fff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .p-ppp    { --pa:#f0a050; --pa-ink:#16110d; }
  :root:not([data-theme=light]) .p-immich { --pa:#adcbfa; --pa-ink:#111; }
  :root:not([data-theme=light]) .p-events { --pa:#fac775; --pa-ink:#1e2230; }
  :root:not([data-theme=light]) .p-excel  { --pa:#7fcf9c; --pa-ink:#111; }
}
:root[data-theme=dark] .p-ppp    { --pa:#f0a050; --pa-ink:#16110d; }
:root[data-theme=dark] .p-immich { --pa:#adcbfa; --pa-ink:#111; }
:root[data-theme=dark] .p-events { --pa:#fac775; --pa-ink:#1e2230; }
:root[data-theme=dark] .p-excel  { --pa:#7fcf9c; --pa-ink:#111; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .tile { --pt:var(--pa); } }
:root[data-theme=dark] .tile { --pt:var(--pa); }
:root .tile { border-top:3px solid var(--pa); }
:root .tile a { color:var(--pt,var(--pa)); }
:root .tile .btn { background:var(--pt,var(--pa)); color:var(--pa-ink); }
:root .tile .ico svg { stroke:var(--pa); }
:root .tile .ico { background:none; border-color:var(--pa); }

/* Einstieg mit Farbfeld, Karten mit getönter Kopfzeile */
:root header.top { background:color-mix(in srgb,var(--card) 85%,transparent); backdrop-filter:blur(6px); }
:root .brand .word { font-size:21px; }
:root .brand .word b { background:linear-gradient(90deg,var(--accent-fill),var(--sun)); -webkit-background-clip:text; background-clip:text; color:transparent; }
:root .seg button.on { background:var(--accent); color:var(--on-accent); }
:root .hero { position:relative; margin:28px 0 28px; padding:48px 32px 44px; border-radius:20px; overflow:hidden;
  background:
    radial-gradient(circle at 12% 20%, color-mix(in srgb,#f2a541 45%,transparent) 0, transparent 42%),
    radial-gradient(circle at 88% 15%, color-mix(in srgb,#d4553a 38%,transparent) 0, transparent 45%),
    radial-gradient(circle at 70% 95%, color-mix(in srgb,#2f8f8a 30%,transparent) 0, transparent 45%),
    radial-gradient(circle at 25% 100%, color-mix(in srgb,#8a5ab8 25%,transparent) 0, transparent 40%),
    var(--card);
  border:1px solid var(--line); }
:root .hero h1 { font-size:clamp(32px,6vw,48px); }
:root .hero h1.word { font-weight:800; letter-spacing:-.02em; }
:root .hero h1.word b { background:linear-gradient(90deg,var(--accent-fill),var(--sun)); -webkit-background-clip:text; background-clip:text; color:transparent; }
:root .hero h1.word i { font-style:normal; color:var(--muted); font-weight:500; }
:root .hero p { color:var(--text); opacity:.82; }
:root .tile { padding:0; overflow:hidden; border-radius:14px; border-top:0; transition:transform .15s ease, box-shadow .15s ease; }
:root .tile:hover { transform:translateY(-3px); box-shadow:0 10px 28px color-mix(in srgb,var(--pa) 22%,transparent); }
:root .tile .head { padding:18px 22px; background:color-mix(in srgb,var(--pa) 14%,var(--card)); border-bottom:1px solid color-mix(in srgb,var(--pa) 25%,var(--line)); }
:root .tile > :not(.head) { margin-left:22px; margin-right:22px; }
:root .tile > :last-child { margin-bottom:20px; }
:root .tile .ico { width:46px; height:46px; border-radius:12px; border:0; background:var(--pa); }
:root .tile .ico svg { stroke:var(--pa-ink); }
:root .tile .btn { border-radius:999px; padding:8px 18px; }
:root .sub li { background:color-mix(in srgb,var(--pa) 6%,var(--card)); border-color:color-mix(in srgb,var(--pa) 20%,var(--line)); border-radius:10px; }
:root .sub .more { background:none; }
:root .badge { border-color:color-mix(in srgb,var(--pa,var(--accent)) 45%,var(--line)); color:var(--pt,var(--muted)); background:color-mix(in srgb,var(--pa,var(--accent)) 10%,transparent); border-radius:999px; }
/* Immich Tools: Kopf im Immich-Blau wie die Immich-Oberfläche, darunter ein Band in den Farben des Immich-Logos */
:root .p-immich .head { background:#4250af; color:#fff; border-bottom:0; position:relative; padding-bottom:22px; }
:root .p-immich .head::after { content:""; position:absolute; left:0; right:0; bottom:0; height:4px;
  background:linear-gradient(90deg,#fa2921 0 20%,#ffb400 20% 40%,#18c249 40% 60%,#1e83f7 60% 80%,#ed79b5 80% 100%); }
:root .p-immich .head h2 { color:#fff; }
:root .p-immich .head .kind { color:#dbe3fb; }
:root .p-immich .head .ico { background:#fff; }
:root .p-immich .head .ico svg { stroke:#4250af; }
:root .p-immich .sub li { border-left:3px solid #4250af; padding-left:10px; }
:root .p-immich .sub li:nth-child(2) { border-left-color:#ffb400; }
:root .p-immich .sub li:nth-child(3) { border-left-color:#18c249; }
:root .p-immich .sub li:nth-child(4) { border-left-color:#fa2921; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .p-immich .sub li:first-child { border-left-color:#adcbfa; } }
:root[data-theme=dark] .p-immich .sub li:first-child { border-left-color:#adcbfa; }
/* Event Tesserae: Kopf wie die Nachtleiste der Gästeseite (immich_events event-home.html) */
:root .p-events .head { background:#1e2230; border-bottom-color:#343a4f; color:#eef0f5; }
:root .p-events .head h2, :root .p-events .head h3 { color:#eef0f5; }
:root .p-events .head h2::after, :root .p-events .head h3::after { content:""; display:inline-block; width:9px; height:9px; margin-left:8px; border-radius:50%; background:#d4537e; vertical-align:2px; }
:root .p-events .head .kind, :root .p-events .head .muted, :root .p-events .head p, :root .p-events .head small { color:#8a8fa3; }
:root .p-events .head .badge { color:#fac775; border-color:#fac775; background:transparent; }
:root .tile { border-bottom:3px solid var(--pa); }   /* Linie unten in der Kopffarbe, alle Kacheln (Roger 28.11.2026) */
:root .p-immich { border-bottom-color:#4250af; }   /* wie der Immich-Kopf, auch dunkel */
:root .p-events .btn { background:#fac775; color:#1e2230; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .p-events { --pt:#fac775; } }
:root[data-theme=dark] .p-events { --pt:#fac775; }
:root footer { background:none; }
.brand .word { font-weight:800; letter-spacing:-.02em; }
.brand .word i { font-style:normal; color:var(--muted); font-weight:500; }


*,*::before,*::after { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body { margin:0; font:16px/1.5 var(--font); background:var(--bg); color:var(--text); }
html[lang=de] .en, html[lang=en] .de { display:none !important; }
button { font:inherit; color:inherit; }
a { color:var(--accent); text-underline-offset:2px; text-decoration-thickness:1px; }
a:hover { text-decoration-thickness:2px; }
a:focus-visible, button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; border-radius:3px; }

.wrap { max-width:var(--max); margin:0 auto; padding:0 16px; }

/* Kopf */
header.top { background:var(--card); border-bottom:1px solid var(--line); }
header.top .wrap { display:flex; align-items:center; gap:16px; min-height:60px; }
.brand { display:flex; align-items:center; gap:10px; font-weight:700; font-size:18px; color:var(--text); text-decoration:none; }
.tools { margin-left:auto; display:flex; gap:8px; align-items:center; }
.seg { display:inline-flex; border:1px solid var(--line); border-radius:6px; overflow:hidden; background:var(--bg); }
.seg button { border:0; background:none; padding:4px 10px; font-size:13px; cursor:pointer; }
.seg button.on { background:var(--accent); color:var(--on-accent); font-weight:600; }
.themeBtn { display:flex; align-items:center; justify-content:center; width:32px; height:30px; padding:0; border:1px solid var(--line); border-radius:6px; background:var(--bg); cursor:pointer; }
.themeBtn svg { width:16px; height:16px; stroke:currentColor; fill:none; stroke-width:1.8; }

/* Einstieg */
.hero { padding:56px 0 32px; }
.hero h1 { margin:0 0 8px; font-size:clamp(28px,5vw,40px); line-height:1.15; letter-spacing:-.01em; }
.hero p { margin:0; max-width:620px; font-size:18px; color:var(--muted); }

/* Kacheln */
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); gap:16px; padding-bottom:56px; }
.tile { display:flex; flex-direction:column; gap:10px; padding:22px 22px 20px; background:var(--card); border:1px solid var(--line); border-radius:8px; }
.tile .head { display:flex; align-items:center; gap:12px; }
.tile .ico { width:40px; height:40px; flex:none; display:grid; place-items:center; border-radius:8px; background:var(--bg); border:1px solid var(--line); }
.tile .ico svg { width:22px; height:22px; stroke:var(--accent); fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.tile h2 { margin:0; font-size:20px; line-height:1.2; }
.tile .kind { font-size:13px; color:var(--muted); }
.tile p { margin:0; }
.tile .links { margin-top:auto; padding-top:6px; display:flex; flex-wrap:wrap; gap:8px 16px; }
.btn { display:inline-flex; align-items:center; gap:6px; padding:7px 14px; border-radius:5px; background:var(--accent); color:var(--on-accent); font-weight:600; font-size:15px; text-decoration:none; }
.btn:hover { filter:brightness(1.08); }
.links a:not(.btn) { align-self:center; font-size:15px; }
.badge { display:inline-block; padding:0 7px; border:1px solid var(--line); border-radius:3px; font-size:12px; font-weight:600; line-height:1.7; color:var(--muted); }

/* Unterliste Immich Tools */
.sub { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.sub li { padding:10px 12px; border:1px solid var(--line); border-radius:6px; background:var(--bg); }
.sub b { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.sub span.t { display:block; font-size:14px; color:var(--muted); }
.sub .more { border-style:dashed; font-size:14px; color:var(--muted); background:none; }

footer { border-top:1px solid var(--line); background:var(--card); font-size:14px; color:var(--muted); }
footer .wrap { display:flex; flex-wrap:wrap; gap:8px 24px; padding-top:18px; padding-bottom:18px; }
footer .r { margin-left:auto; }
@media (max-width:520px) { footer .r { margin-left:0; } .hero { padding-top:36px; } }
