/* 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; }
}

/* ---- About-Foto: breiter Sucher mit Endlos-Farbanimation (2026-10-03) ---- */
/* ---- About: photo as a "viewfinder" frame (proposal 2026-10-03) ---- */
.about-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.about-photo { grid-column: 1 / -1; position: relative; min-height: 0; aspect-ratio: 21 / 9; border-radius: 14px; overflow: hidden; isolation: isolate;
  border: 1px solid transparent; background: linear-gradient(#07090c, #07090c) padding-box, linear-gradient(110deg, oklch(0.78 0.13 220 / .7), oklch(0.75 0.15 305 / .7)) border-box;
  box-shadow: -30px 0 60px -30px oklch(0.78 0.13 220 / .35), 30px 0 60px -30px oklch(0.75 0.15 305 / .35); }
.about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform: scale(1.04); transition: transform 1.6s cubic-bezier(.2, .7, .2, 1), filter .8s; filter: saturate(.92) contrast(1.04); }
.about-photo:hover img { transform: scale(1.1); filter: saturate(1.08) contrast(1.06); }
/* soft vignette + bottom fade for the caption */
.about-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(7, 9, 12, .55) 100%), linear-gradient(to top, rgba(7, 9, 12, .85) 0%, transparent 38%); }
/* viewfinder corners */
.vf { position: absolute; z-index: 2; inset: 18px; pointer-events: none; }
.vf i { position: absolute; width: 26px; height: 26px; border: 2px solid rgba(255, 255, 255, .85); transition: inset .6s cubic-bezier(.2, .7, .2, 1); }
.vf i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.vf i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.vf i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.vf i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.about-photo:hover .vf i:nth-child(1) { top: 8px; left: 8px; } .about-photo:hover .vf i:nth-child(2) { top: 8px; right: 8px; }
.about-photo:hover .vf i:nth-child(3) { bottom: 8px; left: 8px; } .about-photo:hover .vf i:nth-child(4) { bottom: 8px; right: 8px; }
/* focus point */
.vf b { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border: 1.5px solid oklch(0.8 0.17 150); border-radius: 4px; opacity: 0; transform: scale(1.6); transition: opacity .3s, transform .5s cubic-bezier(.2, .7, .2, 1); }
.about-photo:hover .vf b { opacity: .9; transform: none; }
/* HUD caption */
.vf-hud { position: absolute; z-index: 3; left: 32px; right: 32px; bottom: 28px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; font: 700 11px/1.4 'Fira Code', ui-monospace, monospace; letter-spacing: .12em; color: rgba(255, 255, 255, .8); }
.vf-hud .rec { display: inline-flex; align-items: center; gap: 8px; }
.vf-hud .rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 10px #ff4d4d; animation: vfblink 1.6s infinite; }
.vf-hud .exif { color: rgba(255, 255, 255, .55); text-align: right; }
@keyframes vfblink { 50% { opacity: .25; } }
@media (max-width: 760px) {
  .about-row { grid-template-columns: minmax(0, 1fr); }
  .about-photo { aspect-ratio: 4 / 3; }
  .about-photo img { object-position: 42% 70%; }
  .vf { inset: 12px; } .vf i { width: 18px; height: 18px; }
  .vf-hud { left: 22px; right: 22px; bottom: 20px; font-size: 10px; }
  .vf-hud .exif { display: none; }
}
@media (prefers-reduced-motion: reduce) { .about-photo img, .vf i, .vf b { transition: none; } .vf-hud .rec::before { animation: none; } }
/* ---- colour effects ---- */
/* 1) rotating gradient border cyan → purple → green */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.about-photo { background: linear-gradient(#07090c, #07090c) padding-box, conic-gradient(from var(--ang), oklch(0.78 0.13 220), oklch(0.75 0.15 305), oklch(0.8 0.17 150), oklch(0.78 0.13 220)) border-box; animation: abspin 8s linear infinite; }
@keyframes abspin { to { --ang: 360deg; } }
/* 2) "darkroom": starts as cyan/purple duotone, develops into full colour when it scrolls into view */
.about-photo .tone { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(115deg, oklch(0.62 0.13 220), oklch(0.55 0.17 305)); mix-blend-mode: color; opacity: 1; transition: opacity 2.4s 1s ease; }
.about-photo img { filter: grayscale(1) contrast(1.15) brightness(.85); transition: transform 1.6s cubic-bezier(.2, .7, .2, 1), filter 2.4s 1s ease; }
.in .about-photo .tone, .about-photo.in .tone { opacity: 0; }
.in .about-photo img, .about-photo.in img { filter: saturate(.95) contrast(1.04); }
/* 3) hover: colour wave sweeps across + shine */
.about-photo .wave { position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: soft-light; opacity: 0; transition: opacity .5s;
  background: linear-gradient(100deg, oklch(0.78 0.13 220 / .0) 0%, oklch(0.78 0.13 220 / .9) 30%, oklch(0.75 0.15 305 / .9) 55%, oklch(0.83 0.15 80 / .8) 75%, transparent 100%); background-size: 250% 100%; }
.about-photo:hover .wave { opacity: 1; animation: abwave 3.5s ease-in-out infinite; }
@keyframes abwave { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
.about-photo .shine { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .22) 50%, transparent 60%); transform: translateX(-100%); }
.about-photo:hover .shine { transform: translateX(100%); transition: transform 1.1s ease; }
.in .about-photo:hover img, .about-photo.in:hover img { transform: scale(1.1); filter: saturate(1.15) contrast(1.06); }
@media (prefers-reduced-motion: reduce) { .about-photo, .about-photo:hover .wave { animation: none; } .about-photo .tone, .about-photo img { transition: none; } }
/* ---- continuous loop (overrides the one-time "develop") ---- */
/* colour ↔ duotone cycle, the duotone hue itself drifts (cyan/purple → green/blue → gold/pink …) */
.about-photo .tone { transition: none; animation: abtone 14s ease-in-out infinite, abhue 42s linear infinite; }
@keyframes abtone { 0%, 12% { opacity: .95; } 30%, 72% { opacity: 0; } 90%, 100% { opacity: .95; } }
@keyframes abhue { to { filter: hue-rotate(360deg); } }
.about-photo img { transition: filter .8s; animation: abimg 14s ease-in-out infinite, abkb 24s ease-in-out infinite alternate; }
@keyframes abimg { 0%, 12% { filter: grayscale(1) contrast(1.15) brightness(.85); } 30%, 72% { filter: saturate(1.05) contrast(1.05); } 90%, 100% { filter: grayscale(1) contrast(1.15) brightness(.85); } }
/* slow Ken-Burns drift */
@keyframes abkb { 0% { transform: scale(1.04) translate(0, 0); } 100% { transform: scale(1.12) translate(-2%, -1.5%); } }
/* colour wave always running, stronger on hover */
.about-photo .wave { opacity: .45; animation: abwave 7s ease-in-out infinite; }
.about-photo:hover .wave { opacity: 1; animation-duration: 3.5s; }
/* shine passes every few seconds */
.about-photo .shine { animation: abshine 7s ease-in-out infinite; }
@keyframes abshine { 0%, 70% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
/* viewfinder corners breathe, focus box pulses */
.vf i { animation: abbreathe 4s ease-in-out infinite; }
@keyframes abbreathe { 50% { margin: 6px; border-color: oklch(0.78 0.13 220); } }
.vf b { animation: abfocus 7s ease-in-out infinite; }
@keyframes abfocus { 0%, 55% { opacity: 0; transform: scale(1.6); } 62%, 80% { opacity: .9; transform: none; } 90%, 100% { opacity: 0; transform: none; } }
.vf i:nth-child(2) { animation-delay: .5s; } .vf i:nth-child(3) { animation-delay: 1.5s; } .vf i:nth-child(4) { animation-delay: 1s; }
@media (prefers-reduced-motion: reduce) { .about-photo .tone, .about-photo img, .about-photo .wave, .about-photo .shine, .vf i, .vf b { animation: none; } .about-photo .tone { opacity: 0; } }
.about-photo { margin: 0; }
