/* spinellastudiosde/public/assets/css/daniel.css
 * Bereich /daniel/ (Portfolio, Projekte, Trappeto). Baut auf studio.css auf: gleiche Farben (--p-*),
 * gleicher Kopf und Fuß, dazu Bausteine für Profil, Werdegang, Skills, Projektkarten und Galerie.
 */

/* ---------- Buttons (Ergänzung zu .btn aus studio.css) ---------- */
.btn { border: 1px solid transparent; transition: transform .15s ease, opacity .15s ease; }
.btn:hover { transform: translateY(-2px); color: #ffffff; }
.btn .icon { font-size: 15px; }
.btn--ghost {
  background: linear-gradient(var(--p-card), var(--p-card)) padding-box, var(--p-gradient-soft) border-box;
  color: var(--p-text);
}
.btn--ghost:hover { color: var(--p-text); }
.btn--small { padding: 10px 16px; border-radius: 12px; font-size: 14px; }
.actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Abschnitte ---------- */
.d-section { margin-top: 104px; scroll-margin-top: 24px; }
.d-section__head { max-width: 640px; }
.d-section__head .lead { margin-top: 12px; }

/* ---------- Profil (Kopf der Portfolio-Seite) ---------- */
.profile {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 48px;
  align-items: center;
}
.profile__title { font-size: clamp(40px, 7vw, 68px); line-height: 1.02; letter-spacing: -.04em; font-weight: 700; max-width: none; }
.profile .lead { margin-top: 20px; font-size: 18px; }
.profile__photo {
  position: relative;
  border-radius: 28px;
  padding: 2px;
  background: var(--p-gradient);
  box-shadow: 0 30px 80px var(--p-glow-violet), 0 0 0 1px var(--p-edge);
}
.profile__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 55% 40%; border-radius: 26px; }
.profile__photo::after {
  content: ""; position: absolute; inset: auto -40px -40px auto; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--p-glow-blue), transparent); pointer-events: none; z-index: -1;
}

.stats {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.stats li {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: linear-gradient(var(--p-card), var(--p-card)) padding-box, var(--p-gradient-soft) border-box;
}
.stats dt, .stats span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--p-muted); }
.stats strong { display: block; margin-top: 4px; font-size: 15px; font-weight: 700; }

/* ---------- Über mich ---------- */
.about-me {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}
.about-me p { font-size: 17px; line-height: 1.75; color: var(--p-muted); }
.about-me p + p { margin-top: 14px; }
.about-me strong { color: var(--p-text); font-weight: 600; }

/* ---------- Werdegang ---------- */
.timeline { margin-top: 40px; position: relative; display: grid; gap: 18px; padding-left: 34px; max-width: 820px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px;
  background: linear-gradient(var(--p-blue), var(--p-violet));
}
.timeline > li { position: relative; }
.timeline > li::before {
  content: ""; position: absolute; left: -31px; top: 26px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--p-gradient); box-shadow: 0 0 0 4px var(--p-bg), 0 0 16px var(--p-glow-violet);
}
.timeline .card { padding: 24px 26px; }
.timeline__time { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--p-blue); }
.timeline h3 { margin-top: 8px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.timeline h3 + p { margin-top: 2px; }
.timeline .card p, .timeline .card li { color: var(--p-muted); font-size: 15px; }
.timeline .card ul { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.timeline .card ul li { padding: 5px 11px; border-radius: 999px; background: var(--p-bg2); border: 1px solid var(--p-edge); font-size: 13px; }
.timeline__extra { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--p-edge); }

/* ---------- Skills ---------- */
.skills { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.skills .card { padding: 24px; }
.skills h3 { font-size: 17px; font-weight: 700; }
.skills p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--p-muted); }
.chips { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1px solid transparent;
  background: linear-gradient(var(--p-card), var(--p-card)) padding-box, var(--p-gradient-soft) border-box;
}

/* ---------- Projektkarten (erzeugt von tools/sync.mjs) ---------- */
.project-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 18px;
}
.project-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 22px;
  border: 1px solid transparent;
  background: linear-gradient(var(--p-card), var(--p-card)) padding-box, var(--p-gradient-soft) border-box;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px var(--p-glow-violet); }
.project-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; }
.project-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, var(--p-card)); }
.project-card__body { flex: 1; display: flex; flex-direction: column; padding: 4px 24px 24px; }
.project-card__title { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.project-card__subtitle { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--p-text); opacity: .85; }
.project-card__text { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--p-muted); }
.project-card__tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.project-card__tags li { padding: 5px 10px; border-radius: 999px; background: var(--p-bg2); border: 1px solid var(--p-edge); font-size: 12px; font-weight: 600; color: var(--p-muted); }
.project-card__actions { margin-top: auto; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Interessen ---------- */
.interests { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.interests figure { position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 4 / 3; }
.interests img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.interests figure:hover img { transform: scale(1.05); }
.interests figcaption {
  position: absolute; inset: auto 0 0 0; padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(8, 11, 18, .85)); color: #f8fafc; font-size: 14px; font-weight: 600;
}

/* ---------- Wurzeln-Teaser ---------- */
.roots {
  position: relative; overflow: hidden; margin-top: 104px; border-radius: 26px; min-height: 340px;
  display: flex; align-items: flex-end; padding: clamp(24px, 5vw, 44px);
  background: #080b12 url("/assets/images/daniel/trappeto/from-boat.webp") center / cover no-repeat;
  color: #f8fafc;
}
.roots::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(8, 11, 18, .9) 15%, rgba(37, 99, 235, .35) 60%, rgba(124, 58, 237, .35)); }
.roots > div { position: relative; max-width: 520px; }
.roots .eyebrow { background: none; color: #c7d2fe; -webkit-text-fill-color: currentColor; }
.roots h2 { margin-top: 10px; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; }
.roots p { margin-top: 12px; font-size: 16px; line-height: 1.65; color: #cbd5e1; }

/* ---------- Seitenkopf Projekte/Trappeto ---------- */
.page-head { max-width: 720px; }
.page-head .h1 { max-width: none; }
.page-head .lead { margin-top: 16px; }

/* ---------- Trappeto ---------- */
.trap-hero {
  position: relative; overflow: hidden; margin-top: 8px; border-radius: 28px; min-height: min(70vh, 620px);
  display: flex; align-items: flex-end; padding: clamp(24px, 5vw, 48px);
  background: #080b12 url("/assets/images/daniel/trappeto/from-boat.webp") center / cover no-repeat;
  color: #f8fafc;
}
.trap-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(8, 11, 18, .85)); }
.trap-hero > div { position: relative; max-width: 640px; }
.trap-hero .eyebrow { background: none; color: #c7d2fe; -webkit-text-fill-color: currentColor; }
.trap-hero h1 { margin-top: 10px; font-size: clamp(36px, 6vw, 60px); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; }
.trap-hero p { margin-top: 14px; font-size: 17px; line-height: 1.65; color: #e2e8f0; }

.trap-intro { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px 48px; align-items: start; }
.trap-intro > p { font-size: 17px; line-height: 1.75; color: var(--p-muted); }

.gallery { margin-top: 40px; columns: 3 280px; column-gap: 16px; }
.gallery > * { break-inside: avoid; margin-bottom: 16px; }
.photo { overflow: hidden; border-radius: 20px; border: 1px solid transparent; background: linear-gradient(var(--p-card), var(--p-card)) padding-box, var(--p-gradient-soft) border-box; }
.photo img { width: 100%; }
.photo figcaption { padding: 16px 18px 18px; }
.photo h3 { font-size: 16px; font-weight: 700; }
.photo p { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--p-muted); }
.fact { padding: 24px; border-radius: 20px; color: #ffffff; background: var(--p-gradient-strong); box-shadow: 0 18px 40px var(--p-glow-violet); }
.fact__label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.fact h3 { margin-top: 8px; font-size: 19px; font-weight: 700; }
.fact p { margin-top: 8px; font-size: 15px; line-height: 1.6; opacity: .92; }

/* 2-Klick-Einbettungen (Spotify, Google Maps): Platzhalter, bis man auf "laden" klickt (siehe daniel.js) */
.embed {
  display: grid; gap: 16px; place-items: center; text-align: center; padding: 32px 24px; border-radius: 22px;
  border: 1px solid transparent;
  background: linear-gradient(var(--p-card), var(--p-card)) padding-box, var(--p-gradient-soft) border-box;
}
.embed p { max-width: 52ch; font-size: 15px; line-height: 1.6; color: var(--p-muted); }
.embed p a { color: var(--p-blue); text-decoration: underline; text-underline-offset: 3px; }
.embed--spotify { min-height: 352px; align-content: center; }
.embed--map { margin-top: 36px; min-height: 420px; align-content: center; }
.embed-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.embed.is-loaded { padding: 0; display: block; background: none; border: 0; }
.embed.is-loaded iframe { display: block; width: 100%; border: 0; border-radius: 22px; }
.embed--spotify.is-loaded iframe { height: 352px; }
.embed--map.is-loaded iframe { height: 480px; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .profile { grid-template-columns: 1fr; gap: 32px; }
  .profile__photo { max-width: 420px; }
  .stats { grid-template-columns: 1fr; }
  .d-section { margin-top: 80px; }
}
@media (max-width: 640px) {
  .site-nav { gap: 14px; font-size: 14px; }
}
