/* Abschnitte About, Skills, Projekte, Galerie – nach dem Claude-Design „Uria Sections" (2026-09-30).
   Farben je Karte über --c und vorberechnete Alpha-Stufen (ohne relative Farbsyntax, für ältere Browser). */

.c-green  { --c: oklch(0.8 0.17 150);  --c08: oklch(0.8 0.17 150 / .08);  --c12: oklch(0.8 0.17 150 / .12);  --c16: oklch(0.8 0.17 150 / .16);  --c18: oklch(0.8 0.17 150 / .18);  --c20: oklch(0.8 0.17 150 / .2);  --c25: oklch(0.8 0.17 150 / .25); }
.c-cyan   { --c: oklch(0.78 0.13 220); --c08: oklch(0.78 0.13 220 / .08); --c12: oklch(0.78 0.13 220 / .12); --c16: oklch(0.78 0.13 220 / .16); --c18: oklch(0.78 0.13 220 / .18); --c20: oklch(0.78 0.13 220 / .2); --c25: oklch(0.78 0.13 220 / .25); }
.c-yellow { --c: oklch(0.83 0.15 80);  --c08: oklch(0.83 0.15 80 / .08);  --c12: oklch(0.83 0.15 80 / .12);  --c16: oklch(0.83 0.15 80 / .16);  --c18: oklch(0.83 0.15 80 / .18);  --c20: oklch(0.83 0.15 80 / .2);  --c25: oklch(0.83 0.15 80 / .25); }
.c-purple { --c: oklch(0.75 0.15 305); --c08: oklch(0.75 0.15 305 / .08); --c12: oklch(0.75 0.15 305 / .12); --c16: oklch(0.75 0.15 305 / .16); --c18: oklch(0.75 0.15 305 / .18); --c20: oklch(0.75 0.15 305 / .2); --c25: oklch(0.75 0.15 305 / .25); }

/* ---------- Rahmen ---------- */
.us-section { padding: 96px 32px; display: flex; justify-content: center; background: #07090c; font-family: 'Montserrat', sans-serif; color: #c9ced6; }
.us-section.alt { background: #0b0d11; }
.us-wrap { width: 100%; max-width: 1080px; display: flex; flex-direction: column; gap: 40px; }
.us-head { display: flex; flex-direction: column; gap: 10px; }
.us-title { display: flex; align-items: center; gap: 16px; margin: 0; font-size: 30px; font-weight: 800; color: #fff; line-height: 1.2; }
.us-title::before { content: ""; flex-shrink: 0; width: 40px; height: 3px; background: #1ec8e8; }
.us-grad { background: linear-gradient(90deg, #1ec8e8, #3b6cf0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.us-sub { font-size: 15px; color: #7d8491; padding-left: 56px; }

.us-card { position: relative; border: 1px solid #1c2129; border-radius: 14px; background: radial-gradient(circle at 100% 0%, var(--c16) 0%, transparent 55%), #10131a; box-sizing: border-box; }
.us-num { font-size: 64px; font-weight: 900; line-height: .8; color: transparent; -webkit-text-stroke: 1.5px var(--c); opacity: .55; flex-shrink: 0; }
.us-bar { width: 28px; height: 3px; border-radius: 2px; background: var(--c); }
.us-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); flex-shrink: 0; }
.us-pill { font-size: 13px; font-weight: 500; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); color: #e6e9ee; }
.us-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.bento { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-5 { grid-column: span 5; }

/* ---------- Logik & Kunst ---------- */
.about-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: stretch; }
.about-card { flex: 1 1 300px; padding: 36px; display: flex; flex-direction: column; gap: 26px; }
.about-kw { margin-top: auto; }
.about-card.left { background: radial-gradient(circle at 0% 0%, var(--c20) 0%, transparent 55%), #10131a; }
.about-card.right { background: radial-gradient(circle at 100% 0%, var(--c20) 0%, transparent 55%), #10131a; }
.about-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.about-role { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--c); }
.about-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .12em; color: #7d8491; }
.about-meta .us-dot { --c: oklch(0.8 0.17 150); }
.about-word { font-size: clamp(48px, 6vw, 72px); font-weight: 900; line-height: .85; color: transparent; -webkit-text-stroke: 1.5px var(--c); }
.about-card.right .about-word { text-align: right; }
.about-text { margin: 0; font-size: 16px; line-height: 1.75; color: #aeb4be; text-wrap: pretty; }
.about-text strong { color: #fff; font-weight: 700; }
.about-photo { flex: 1 1 260px; position: relative; min-height: 340px; border-radius: 14px; overflow: hidden; border: 1px solid #1c2129; box-shadow: 0 0 50px var(--c16); }
.about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kw { font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 999px; background: var(--c08); border: 1px solid var(--c25); }
.c-cyan .kw { color: #dff6fb; } .c-purple .kw { color: #f1e6fb; }

/* ---------- Fähigkeiten ---------- */
.skill-card { padding: 30px 30px 32px; display: flex; flex-direction: column; gap: 22px; transition: border-color .2s, transform .2s; }
.skill-card:hover { border-color: #2e3542; transform: translateY(-3px); }
.skill-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.skill-name { display: flex; flex-direction: column; gap: 6px; }
.skill-name h3 { margin: 0; font-size: 20px; font-weight: 800; color: #fff; line-height: 1.2; text-wrap: balance; }
.skill-card .us-pill { font-size: 14px; padding: 8px 14px; }
.skill-card .us-pill:hover { border-color: var(--c); background: rgba(255,255,255,.08); }

/* ---------- Projekte ---------- */
.proj-card { padding: 32px; display: flex; flex-direction: column; gap: 22px; transition: border-color .2s; }
.proj-card:hover { border-color: #2e3542; }
.proj-card.span-5 { background: radial-gradient(circle at 100% 0%, var(--c12) 0%, transparent 55%), #10131a; }
.proj-card:not(.span-5) { background: radial-gradient(circle at 100% 0%, var(--c18) 0%, transparent 55%), #10131a; }
.proj-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.proj-actions { display: flex; align-items: center; gap: 10px; }
.proj-badge { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .12em; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); color: var(--c); }
.proj-link { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); color: #fff; font-size: 16px; text-decoration: none; transition: background .2s, border-color .2s; }
.proj-link:hover { background: rgba(255,255,255,.08); border-color: var(--c); color: #fff; }
.proj-name { display: flex; flex-direction: column; gap: 8px; }
.proj-meta { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--c); }
.proj-name h3 { margin: 0; font-size: 26px; font-weight: 800; color: #fff; line-height: 1.15; }
.proj-desc { margin: 0; font-size: 15px; line-height: 1.7; color: #aeb4be; max-width: 620px; text-wrap: pretty; }

/* ---------- Galerie ---------- */
.gal-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.gal-btn { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .12em; padding: 13px 22px; border-radius: 999px; border: 1px solid #1ec8e8; color: #1ec8e8; text-decoration: none; transition: background .2s, color .2s; }
.gal-btn:hover { background: #1ec8e8; color: #07090c; }
.gal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 240px; gap: 14px; }
.gal-tile { position: relative; display: block; border-radius: 14px; overflow: hidden; border: 1px solid #1c2129; background: #10131a; text-decoration: none; transition: border-color .2s; }
.gal-tile:hover { border-color: #1ec8e8; }
.gal-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.gal-tile:hover img { transform: scale(1.04); }
.gal-tile.c2 { grid-column: span 2; } .gal-tile.c4 { grid-column: span 4; } .gal-tile.r2 { grid-row: span 2; }
.gal-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 22px 20px; background: linear-gradient(to top, rgba(7,9,12,.92), rgba(7,9,12,0)); pointer-events: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.gal-cap-text { display: flex; flex-direction: column; gap: 4px; }
.gal-title { font-size: 19px; font-weight: 800; color: #fff; line-height: 1.1; }
.gal-tile.r2 .gal-title { font-size: 30px; }
.gal-count { font-size: 12px; font-weight: 600; letter-spacing: .1em; color: #1ec8e8; }
.gal-arrow { font-size: 18px; color: #fff; }

/* ---------- Einblenden (nur mit JS; sonst sofort sichtbar) ---------- */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--d, 0ms), transform .6s var(--d, 0ms), border-color .2s; }
.js .in .rv, .js .rv.in { opacity: 1; transform: none; }
.js .chip-r { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--d, 0ms), transform .5s var(--d, 0ms), border-color .2s, background .2s; }
.js .in .chip-r { opacity: 1; transform: none; }
.js .rv-fade { opacity: 0; transition: opacity .8s .08s; }
.js .in .rv-fade { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .chip-r, .js .rv-fade { opacity: 1; transform: none; transition: none; }
  .skill-card, .gal-tile img { transition: none; }
}

/* ---------- Kleinere Bildschirme (Design ist für 1080 px Breite) ---------- */
@media (max-width: 900px) {
  .us-section { padding: 72px 20px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento > * { grid-column: auto; }
  .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; }
  .gal-tile.c4 { grid-column: span 2; }
}
@media (max-width: 560px) {
  .us-section { padding: 56px 16px; }
  .us-title { font-size: 24px; }
  .us-sub { padding-left: 0; }
  .about-card, .skill-card, .proj-card { padding: 24px; }
  .us-num { font-size: 48px; }
  .gal-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gal-tile.c2, .gal-tile.c4 { grid-column: auto; }
  .gal-tile.r2 { grid-row: auto; }
  .gal-tile.r2 .gal-title { font-size: 22px; }
}
