/* sebastiao.org – Stylesheet. Nachtblau-Indigo + Sonnenuntergangs-Orange aus dem Skyline-Bild,
   dunkle Kopfbänder mit Leuchten und Farbverlauf (Formensprache wie StudioGoat). */

:root {
  --bg: #f7f6fb;
  --surface: #ffffff;
  --tint: #efedf7;
  --ink: #17142f;
  --muted: #5d5a73;
  --line: #e3e0ee;
  --brand: #2b2766;
  --brand-2: #ee6f2d;
  --link: #c2531a;
  --accent: #ee6f2d;
  --code-bg: #f0edf6;
  --night: #0c0a22;
  --verlauf: linear-gradient(90deg, #ffb38a, #ee6f2d 45%, #b98bff);
  --streifen: linear-gradient(90deg, #ee6f2d, #ff5f8f 40%, #6d5dfc);
  --shadow: 0 1px 2px rgb(23 20 47 / .05), 0 12px 32px rgb(23 20 47 / .07);
  --shadow-hover: 0 2px 4px rgb(23 20 47 / .06), 0 20px 44px rgb(23 20 47 / .14);
  --radius: 20px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0c24;
    --surface: #17152f;
    --tint: #131130;
    --ink: #eeecf6;
    --muted: #a9a6c2;
    --line: #2a2750;
    --brand: #ee6f2d;
    --brand-2: #ffa25c;
    --link: #ffae6e;
    --accent: #ff8a4c;
    --code-bg: #221f40;
    --night: #08071a;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px rgb(0 0 0 / .3);
    --shadow-hover: 0 2px 4px rgb(0 0 0 / .35), 0 20px 44px rgb(0 0 0 / .45);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-underline-offset: .15em; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -.025em; margin: 0 0 .5em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 40; }
.skip:focus { left: 16px; }

:focus-visible { outline: 3px solid #ffa25c; outline-offset: 2px; border-radius: 6px; }

/* ---------- Kopf ---------- */

.site-header {
  position: sticky; top: 0; z-index: 20; color: #fff;
  background: rgb(12 10 34 / .78);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid rgb(255 255 255 / .08);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.1rem; letter-spacing: -.02em; }
.brand .mark { width: 32px; height: 32px; flex: none; }
.brand .tld { color: #ffa25c; }

.site-header nav { display: flex; gap: 4px; }
.site-header nav:first-of-type { margin-left: auto; }
.site-header nav a {
  color: rgb(255 255 255 / .72); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 8px 14px; border-radius: 999px; transition: color .15s, background .15s;
}
.site-header nav a:hover { color: #fff; background: rgb(255 255 255 / .08); }
.site-header nav a[aria-current] { color: #fff; background: rgb(255 255 255 / .12); }
.site-header .lang { gap: 0; padding: 3px; margin-left: 8px; border-radius: 999px; background: rgb(255 255 255 / .06); }
.site-header .lang a { font-size: .74rem; font-weight: 800; letter-spacing: .05em; padding: 5px 8px; }
.site-header .lang a[aria-current] { background: #ee6f2d; color: #17142f; }

/* ---------- Dunkle Bänder: Hero und Seitenköpfe ---------- */

.hero, .page-hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background: radial-gradient(120% 140% at 85% 0%, #3b2370 0%, #17163f 45%, var(--night) 100%);
}
.hero::before, .page-hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: -30% -10% auto auto; width: 60vmax; height: 60vmax;
  background: radial-gradient(circle, rgb(238 111 45 / .32), transparent 60%);
  filter: blur(20px);
}
.hero::after, .page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgb(255 255 255 / .045) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 30% 40%, #000 20%, transparent 75%);
}

.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 128px); }
.hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 22px; padding: .35rem .9rem;
  border: 1px solid rgb(255 255 255 / .22); border-radius: 999px; background: rgb(255 255 255 / .06);
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgb(255 255 255 / .9);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #ee6f2d; animation: puls 2.2s infinite; }

.hero h1 { font-size: clamp(3rem, 7.4vw, 5.6rem); font-weight: 850; letter-spacing: -.05em; line-height: .98; margin-bottom: 26px; }
.hero h1 span { background: var(--verlauf); -webkit-background-clip: text; background-clip: text; color: transparent; }

.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; margin: 0; }
.hero .lead, .page-hero .lead { color: rgb(255 255 255 / .74); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 0; }

.btn {
  display: inline-flex; align-items: center; padding: 13px 22px; border-radius: 999px;
  background: var(--brand); color: #fff; font-weight: 700; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--brand-2); }

.hero .btn:not(.ghost), .about .btn:not(.ghost) {
  background: linear-gradient(135deg, #ff8a4c, #e5531c); color: #fff;
  box-shadow: 0 .5rem 1.5rem rgb(238 111 45 / .4);
}
.hero .btn:not(.ghost):hover, .about .btn:not(.ghost):hover { box-shadow: 0 .75rem 2rem rgb(238 111 45 / .55); }
.hero .btn.ghost, .about .btn.ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .3); }
.hero .btn.ghost:hover, .about .btn.ghost:hover { background: rgb(255 255 255 / .08); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .6); }

.badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: 32px 0 0; padding: 0; list-style: none; }
.badges li { padding: .4rem .8rem; border-radius: .6rem; background: rgb(255 255 255 / .08); font-size: .9rem; color: rgb(255 255 255 / .85); }
.badges strong { color: #ffb38a; font-size: 1.02rem; margin-right: .15rem; }

.hero-art {
  min-width: 0; padding: 10px; border-radius: 32px;
  background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12);
  box-shadow: 0 40px 90px rgb(0 0 0 / .45), 0 0 120px rgb(109 93 252 / .25);
  animation: schweben 7s ease-in-out infinite;
}

.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(44px, 6vw, 72px); }
.page-hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.8rem); font-weight: 850; letter-spacing: -.045em; max-width: 18em; }
.page-hero .note { background: rgb(255 255 255 / .08); color: rgb(255 255 255 / .8); }
.article-hero .wrap { max-width: 800px; }
.article-hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.article-hero .meta { color: rgb(255 255 255 / .65); font-size: .92rem; margin: 0 0 14px; }
.article-hero .meta a { color: #ffb38a; text-decoration: none; font-weight: 700; }

/* ---------- Abschnitte ---------- */

.section { padding: 80px 0; }
.section.tint { background: var(--tint); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 850; letter-spacing: -.04em; margin: 0; }
.section-head a {
  font-weight: 700; font-size: .92rem; text-decoration: none; color: var(--ink);
  padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  transition: border-color .15s, color .15s;
}
.section-head a:hover { border-color: var(--brand-2); color: var(--link); }

/* ---------- Karten ---------- */

.grid { display: grid; gap: 18px; }
.grid.projects { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid.sheets { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid.posts { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid.bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.project { display: flex; gap: 18px; padding: 22px; overflow: hidden; }
.project::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--streifen);
  opacity: 0; transition: opacity .2s;
}
.project:hover::before { opacity: 1; }
.project > img { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; flex: none; background: var(--tint); box-shadow: 0 4px 14px rgb(23 20 47 / .1); }
.project h3 { font-size: 1.18rem; margin: 2px 0 6px; }
.project p { margin: 0 0 14px; color: var(--muted); font-size: .95rem; line-height: 1.5; }

.bento .feature {
  grid-column: span 2; grid-row: span 2; flex-direction: column; justify-content: space-between; padding: 36px;
  color: #fff; border-color: transparent;
  background: radial-gradient(90% 90% at 100% 0%, #3b2370 0%, #17163f 55%, var(--night) 100%);
}
.bento .feature::before { opacity: 1; height: 5px; }
.bento .feature::after {
  content: ""; position: absolute; inset: -25% -15% auto auto; width: 75%; aspect-ratio: 1; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgb(238 111 45 / .3), transparent 62%); filter: blur(10px);
}
.bento .feature > * { position: relative; z-index: 1; }
.bento .feature > img { width: 132px; height: 132px; border-radius: 30px; background: transparent; box-shadow: 0 20px 50px rgb(0 0 0 / .45); }
.bento .feature h3 { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 850; letter-spacing: -.045em; margin-top: 32px; }
.bento .feature p { font-size: 1.1rem; max-width: 30em; color: rgb(255 255 255 / .75); }
/* Screenshot hinten, läuft nach links und unten ins Dunkle aus; Logo und Text liegen darüber */
.bento .feature > .shot {
  position: absolute; z-index: 0; top: 36px; right: 28px; width: 80%; height: auto;
  border-radius: 14px; box-shadow: 0 30px 80px rgb(0 0 0 / .5);
  transform: perspective(1600px) rotateY(-10deg) rotateX(2deg); transform-origin: right center;
  opacity: .92;
  -webkit-mask-image: linear-gradient(to left, #000 55%, transparent 100%), linear-gradient(to bottom, #000 50%, transparent 92%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to left, #000 55%, transparent 100%), linear-gradient(to bottom, #000 50%, transparent 92%);
  mask-composite: intersect;
  transition: transform .4s ease, opacity .4s ease;
}
.bento .feature:hover > .shot { transform: perspective(1600px) rotateY(-6deg) rotateX(1deg); opacity: 1; }
.bento .has-shot > img:not(.shot) {
  z-index: 2; width: 150px; height: 150px; border-radius: 0; background: none; box-shadow: none;
  filter: drop-shadow(0 18px 30px rgb(0 0 0 / .55));
}
.bento .has-shot > div { z-index: 2; }
.bento .feature .chip { background: rgb(255 255 255 / .1); color: #fff; padding: 7px 14px; }
.bento .feature .chip:hover { background: #ee6f2d; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: .82rem; font-weight: 700; text-decoration: none; color: var(--link);
  background: var(--tint); padding: 5px 12px; border-radius: 999px; transition: background .15s, color .15s;
}
.chip:hover { background: var(--brand-2); color: #fff; }
.chip.soon { color: var(--muted); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.chip.soon:hover { color: var(--muted); background: transparent; }

.sheet { display: flex; flex-direction: column; overflow: hidden; color: inherit; text-decoration: none; }
.sheet-thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.sheet-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .4s ease; }
.sheet:hover .sheet-thumb img { transform: scale(1.05); }
.sheet-icon {
  position: absolute; top: 12px; left: 12px; font: 800 .7rem/1 var(--font); letter-spacing: .06em;
  background: linear-gradient(135deg, #ff8a4c, #e5531c); color: #fff; padding: 6px 9px; border-radius: 7px;
  box-shadow: 0 4px 10px rgb(238 111 45 / .35);
}
.sheet-body { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 20px; }
.sheet-body strong { font-size: 1.12rem; letter-spacing: -.01em; }
.sheet-body span { color: var(--muted); font-size: .93rem; line-height: 1.45; }
.sheet-body small { color: var(--muted); margin-top: 8px; font-size: .8rem; }
.sheet-arrow {
  position: absolute; right: 16px; bottom: 16px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--tint); color: var(--link); font-weight: 800;
  transition: background .15s, color .15s;
}
.sheet:hover .sheet-arrow { background: linear-gradient(135deg, #ff8a4c, #e5531c); color: #fff; }

.post-card { display: flex; flex-direction: column; padding: 24px 24px 56px; overflow: hidden; }
.post-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--streifen); }
.post-meta { margin: 0 0 10px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.post-card h3 { font-size: 1.28rem; margin: 0 0 10px; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card:hover h3 a { color: var(--link); }
.post-card p:last-of-type { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.post-arrow {
  position: absolute; left: 24px; bottom: 18px; color: var(--link); font-weight: 800; font-size: 1.2rem;
  transition: transform .2s;
}
.post-card:hover .post-arrow { transform: translateX(6px); }

/* ---------- Unterseiten ---------- */

.page { padding-top: 56px; }
.group { margin-bottom: 56px; }
.group h2 {
  display: flex; align-items: center; gap: 14px;
  font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 18px;
}
.group h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.notfound { text-align: center; padding-block: 96px 32px; }
.notfound h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 850; letter-spacing: -.04em; }
.notfound .lead { margin-inline: auto; }
.notfound .actions { justify-content: center; }

/* ---------- Artikel ---------- */

.article { max-width: 800px; padding-top: 48px; }
.cover { border-radius: var(--radius); margin: 0 0 36px; width: 100%; box-shadow: var(--shadow); }

.prose { font-size: 1.08rem; line-height: 1.75; }
.prose::after { content: ""; display: table; clear: both; }
.prose h2 { font-size: 1.55rem; letter-spacing: -.03em; margin: 2em 0 .6em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--brand-2); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.5em 0; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--code-bg); padding: .1em .35em; border-radius: 5px; }
.prose figure { margin: 1.8em 0; }
.prose figure img { border-radius: 14px; border: 1px solid var(--line); margin-inline: auto; }
.prose figure.float-left { float: left; width: 150px; margin: .3em 24px 12px 0; }
.prose figure.float-left img { border: 0; }
.media-text { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 28px; align-items: center; margin: 1.8em 0; }
.media-text figure { margin: 0; }
.media-text > div > :last-child { margin-bottom: 0; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.pager a {
  display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 700; line-height: 1.35;
  box-shadow: var(--shadow); transition: border-color .15s, transform .15s;
}
.pager a:hover { border-color: var(--brand-2); transform: translateY(-2px); }
.pager small { display: block; color: var(--muted); font-weight: 600; font-size: .8rem; margin-bottom: 4px; }
.pager .next { grid-column: 2; text-align: right; }

.progress { display: none; }
@supports (animation-timeline: scroll()) {
  .progress {
    display: block; position: fixed; top: 0; left: 0; z-index: 30; width: 100%; height: 3px;
    background: var(--streifen); transform-origin: 0 50%;
    animation: fortschritt linear both; animation-timeline: scroll(root);
  }
}

.note {
  margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; font-size: .92rem;
  background: var(--tint); color: var(--muted); border-left: 3px solid var(--brand-2);
}
.section-head + .note { margin: -12px 0 24px; }

/* ---------- Über mich ---------- */

.about {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(160deg, #1a1748 0%, #3a2a78 45%, #b8452f 100%);
}
.about.has-bg { background: #1a1748 var(--about-bg) center 35% / cover no-repeat; }
.about::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgb(12 10 34 / .94) 0%, rgb(12 10 34 / .86) 60%, rgb(12 10 34 / .45) 100%);
}
.about .wrap { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; padding-block: 96px; }
.portrait {
  width: 240px; height: 240px; border-radius: 50%; object-fit: cover; object-position: center 25%;
  padding: 5px; background: linear-gradient(135deg, #ffb38a, #ee6f2d 45%, #b98bff);
  box-shadow: 0 20px 60px rgb(0 0 0 / .45);
}
.portrait-empty { display: grid; place-items: center; font-size: 4rem; font-weight: 800; color: #fff; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 800; color: var(--link); margin: 0 0 16px; }
.about .eyebrow { color: #ffb38a; }
.about h2 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 850; letter-spacing: -.04em; margin-bottom: 18px; }
.about p { max-width: 38em; color: rgb(255 255 255 / .86); margin: 0 0 14px; font-size: 1.05rem; }
.about a:not(.btn) { color: #ffc08a; }
.about .actions { margin-top: 28px; }

/* ---------- Roboter-Bild mit Code-Fenster ---------- */

.robo { position: relative; container-type: inline-size; }
.robo-bild {
  aspect-ratio: 1672 / 941; border-radius: 22px;
  background: #fbf9f5 url(/img/roboter-szene.webp) left top / 100% 100% no-repeat;
}
.robo-code {
  position: absolute; left: 54.1%; top: 15.4%; width: 43.8%; height: 63.8%;
  background: #161b38; color: #e9e7f5; border-radius: 2.4cqw;
  box-shadow: 0 1.5cqw 4cqw rgb(22 27 56 / .25); overflow: hidden;
}
.robo-punkte { display: flex; gap: 1cqw; padding: 1.7cqw 2.2cqw; background: #1d2346; }
.robo-punkte i { width: 1.5cqw; height: 1.5cqw; border-radius: 50%; background: #8f8aa6; }
.robo-punkte i:nth-child(1) { background: #f39a3a; }
.robo-punkte i:nth-child(2) { background: #b8aee8; }
.robo-titel { margin: 2cqw 3.2cqw 1.2cqw; font: 800 3.4cqw/1.1 var(--font); color: #fff; letter-spacing: -.02em; }
.robo-titel span { color: #f39a3a; }
.robo-code pre { margin: 0; padding: 0 2cqw; font: 1.65cqw/1.6 var(--mono); white-space: pre; }
.robo-code .ln { display: inline-block; width: 3.4cqw; margin-right: 1.4cqw; color: #6c7192; text-align: right; border-right: 1px solid #2c3358; padding-right: 1cqw; }
.robo-code .kw { color: #b98cf5; }
.robo-code .ty { color: #f39a3a; }
.robo-code .fn { color: #6fa8ff; }
.robo-code .nr { color: #f39a3a; }

/* ---------- Fuß ---------- */

.page, .article, .notfound { padding-bottom: 96px; }
.site-footer { color: rgb(255 255 255 / .7); background: var(--night); font-size: .93rem; position: relative; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--streifen); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-block: 56px 32px; }
.foot-brand p { margin: 12px 0 0; }
.foot-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.site-footer a:not(.brand) { color: rgb(255 255 255 / .7); text-decoration: none; }
.site-footer a:not(.brand):hover { color: #fff; }
.foot-base { border-top: 1px solid rgb(255 255 255 / .08); padding-block: 20px 28px; font-size: .85rem; color: rgb(255 255 255 / .5); }
.foot-base p { margin: 0; }

/* ---------- Bewegung ---------- */

@keyframes puls { 0% { box-shadow: 0 0 0 0 rgb(238 111 45 / .7); } 70% { box-shadow: 0 0 0 .6rem rgb(238 111 45 / 0); } 100% { box-shadow: 0 0 0 0 rgb(238 111 45 / 0); } }
@keyframes schweben { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes fortschritt { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes auftauchen { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes einblenden { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }

@media (prefers-reduced-motion: no-preference) {
  .hero-grid > div:first-child > *, .page-hero .wrap > * { animation: einblenden .7s ease both; }
  .hero-grid > div:first-child > :nth-child(2), .page-hero .wrap > :nth-child(2) { animation-delay: .08s; }
  .hero-grid > div:first-child > :nth-child(3), .page-hero .wrap > :nth-child(3) { animation-delay: .16s; }
  .hero-grid > div:first-child > :nth-child(4) { animation-delay: .24s; }
  .hero-grid > div:first-child > :nth-child(5) { animation-delay: .32s; }
  @supports (animation-timeline: view()) {
    .card, .section-head, .about .wrap > * {
      animation: auftauchen linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Schmale Bildschirme ---------- */

@media (max-width: 960px) {
  .grid.bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento .feature { grid-row: auto; }
  .bento > :last-child { grid-column: span 2; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-art { max-width: 460px; }
  .robo-bild { aspect-ratio: 760 / 820; background-size: 220% auto; background-position: 15.4% 40%; }
  .robo-code { position: static; width: auto; height: auto; margin-top: 10px; border-radius: 16px; }
  .robo-punkte { gap: 6px; padding: 10px 14px; }
  .robo-punkte i { width: 10px; height: 10px; }
  .robo-titel { margin: 14px 16px 8px; font-size: 1.25rem; }
  .robo-code pre { padding: 0 12px 14px; font-size: clamp(10.5px, 3vw, 13px); overflow-x: auto; }
  .robo-code .ln { width: 18px; margin-right: 10px; padding-right: 6px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: span 2; }
}

@media (max-width: 700px) {
  .about .wrap { grid-template-columns: 1fr; gap: 28px; padding-block: 64px; }
  .portrait { width: 160px; height: 160px; }
  .about::before { background: rgb(12 10 34 / .84); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .bar { min-height: 56px; gap: 8px; }
  .brand { font-size: 1rem; gap: 8px; }
  .brand .mark { width: 28px; height: 28px; }
  .site-header nav a { padding: 6px 10px; font-size: .88rem; }
  .grid.projects, .grid.bento, .grid.posts { grid-template-columns: 1fr; }
  .bento .feature, .bento > :last-child { grid-column: auto; }
  .bento .feature { padding: 24px; }
  .bento .feature > img { width: 88px; height: 88px; border-radius: 22px; }
  .bento .feature > .shot {
    position: relative; top: auto; right: auto; width: calc(100% + 48px); max-width: none; margin: -24px -24px 0;
    border-radius: 0; transform: none; box-shadow: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 95%); mask-image: linear-gradient(to bottom, #000 45%, transparent 95%);
  }
  .bento .feature:hover > .shot { transform: none; }
  .bento .has-shot > img:not(.shot) { width: 104px; height: 104px; margin-top: -64px; }
  .bento .has-shot h3 { margin-top: 12px; }
  .project > img { width: 56px; height: 56px; border-radius: 14px; }
  .media-text { grid-template-columns: 1fr; gap: 16px; }
  .prose figure.float-left { width: 110px; margin-right: 16px; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: auto; text-align: left; }
  .section { padding: 56px 0; }
  .foot { grid-template-columns: 1fr; gap: 24px; padding-block: 44px 24px; }
  .foot-brand { grid-column: auto; }
}

@media (max-width: 520px) {
  .bar { flex-wrap: wrap; row-gap: 0; padding-bottom: 8px; }
  .site-header .lang { order: 3; margin: -2px 0 0 auto; }
}

@media (max-width: 420px) {
  .site-header nav { gap: 0; }
  .site-header nav a { padding: 6px 8px; font-size: .85rem; }
  .brand { font-size: .95rem; }
  .brand .tld { display: none; }
}

@media (max-width: 330px) {
  .brand > span { display: none; }
}

/* VisuCode-Familie: Band unter dem Kopf der Startseite, jedes Werkzeug in seiner Markenfarbe */
.familie { position: relative; z-index: 2; margin-top: -44px; }
.familie .wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 22px 20px; }
.familie-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.familie-kopf h2 { margin: 0; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.familie-kopf a { font-weight: 700; font-size: .95rem; color: var(--link); text-decoration: none; }
.familie-kopf a:hover { text-decoration: underline; }
.familie-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.familie-liste a {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px 10px;
  border-radius: 14px; text-decoration: none; color: var(--ink); border-bottom: 3px solid transparent;
  transition: background .2s, border-color .2s, transform .2s;
}
.familie-liste a:hover, .familie-liste a:focus-visible { background: color-mix(in srgb, var(--farbe) 9%, transparent); border-bottom-color: var(--farbe); transform: translateY(-2px); }
.familie-liste img { width: 48px; height: 48px; object-fit: contain; border-radius: 12px; }
.familie-liste span { font-weight: 800; font-size: .98rem; letter-spacing: -.01em; }
.familie-liste b { color: var(--farbe); }
@media (prefers-color-scheme: dark) { .familie-liste b { color: color-mix(in srgb, var(--farbe) 55%, white); } }
@media (max-width: 860px) { .familie-liste { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 480px) { .familie { margin-top: -28px; } .familie .wrap { padding: 14px 10px; } .familie-liste { gap: 2px; } .familie-liste a { padding: 10px 2px 8px; gap: 6px; } .familie-liste img { width: 40px; height: 40px; } .familie-liste span { font-size: .74rem; } }
@media (prefers-reduced-motion: reduce) { .familie-liste a { transition: none; } .familie-liste a:hover { transform: none; } }

/* „Neu“ auf Spickzettel-Karten */
.sheet-neu { position: absolute; top: 12px; right: 12px; padding: 5px 10px; border-radius: 999px; background: var(--streifen); color: #fff; font: 800 .72rem/1 var(--font); letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 4px 12px rgb(23 20 47 / .2); }

/* Projektkarten der Visu-Werkzeuge: Streifen, Schriftzug und Links in der Markenfarbe (wie auf visucode.de) */
.project.visu::before { background: var(--farbe); opacity: 1; }
.project.visu h3 b { color: var(--farbe); font-weight: inherit; }
.project.visu .chip { color: var(--farbe); background: color-mix(in srgb, var(--farbe) 10%, transparent); }
.project.visu .chip:hover { color: #fff; background: var(--farbe); }
.project.visu:hover { border-color: color-mix(in srgb, var(--farbe) 35%, var(--line)); }
@media (prefers-color-scheme: dark) {
  .project.visu h3 b, .project.visu .chip { color: color-mix(in srgb, var(--farbe) 55%, white); }
  .project.visu .chip { background: color-mix(in srgb, var(--farbe) 22%, transparent); }
}
/* VisuCode: Verlauf durch alle Produktfarben */
.project.visu[style*="#6d5dfc"]::before { background: linear-gradient(90deg, #4f46e5, #9333ea, #db2777, #ea580c, #65a30d, #059669, #0891b2); }
.project.visu[style*="#6d5dfc"] h3 b { background: linear-gradient(90deg, #4f46e5, #db2777, #ea580c, #0891b2); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Große dunkle Karte (VisuBot): helle Markenfarbe */
.bento .feature.visu h3 b { color: color-mix(in srgb, var(--farbe) 70%, white); }
.bento .feature.visu .chip { color: #fff; background: rgb(255 255 255 / .1); }
.bento .feature.visu .chip:hover { background: var(--farbe); }
