:root {
  --bg: #0b0b10;
  --bg-elevated: #15151f;
  --border: #272734;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #ff7ac4;
  --accent-soft: rgba(255, 122, 196, 0.16);
  --accent-glow: rgba(255, 122, 196, 0.4);
  --radius-lg: 0.9rem;
  --radius-md: 0.6rem;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 20px rgba(255, 122, 196, 0.15);
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

/* Global */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(122, 36, 130, 0.25) 0%, transparent 60%),
    radial-gradient(circle at 80% 90%, rgba(255, 79, 191, 0.12) 0%, transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(88, 28, 135, 0.08) 0%, transparent 70%),
    #050511;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Haupt-Wrapper */
.shell,
.page-wrapper {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

@media (max-width: 768px) {
  .shell,
  .page-wrapper {
    padding: 2rem 1.4rem 3rem;
  }
}

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  text-decoration: underline;
  color: #ffa8d8;
}

/* Header / Nav */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3.5rem;
  gap: 2rem;
}

@media (max-width: 840px) {
  header {
    margin-bottom: 2.5rem;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-avatar {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.logo-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255, 122, 196, 0.3);
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.logo-name {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.logo-sub {
  font-size: 0.8rem;
  color: var(--muted);
}

nav {
  display: flex;
  gap: 1.3rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  position: relative;
  padding-bottom: 0.08rem;
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease-out;
}

nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

nav a:hover::after {
  width: 100%;
}

/* Intro (Index) */
.intro {
  margin-bottom: 3.5rem;
  max-width: 680px;
}

.intro-hi {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  color: var(--accent);
  font-weight: 500;
}

.intro-name {
  font-size: clamp(2.2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

.intro-meta {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
  margin: 0.8rem 0;
}

.badge:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.names-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 1rem;
  font-size: 0.92rem;
  margin-top: 1.2rem;
  margin-bottom: 1.2rem;
}

.names-label {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.8rem;
}

.intro-tagline {
  font-size: 1rem;
  margin-top: 1.2rem;
  line-height: 1.7;
  color: #d1d5db;
  max-width: 600px;
}

/* Layout main Spalten */
.layout-main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2.5rem;
}

@media (max-width: 840px) {
  .layout-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  nav {
    justify-content: flex-start;
  }
}

/* Karten */
.card,
.main-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(12, 10, 32, 0.5);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  padding: 1.4rem 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: rgba(255, 122, 196, 0.2);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  gap: 0.7rem;
}

.card-title {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card-sub {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Socials */
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #101018;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.social-icon:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.social-link {
  font-size: 0.85rem;
  font-weight: 500;
}

/* Sektionen */
.section {
  margin-top: 2.8rem;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
  letter-spacing: -0.01em;
}

.section-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

/* Accordion */
.accordion {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  background: #101018;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.accordion:hover {
  border-color: rgba(255, 122, 196, 0.3);
  box-shadow: var(--shadow-md);
}

.accordion + .accordion {
  margin-top: 0.8rem;
}

.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.9rem;
  user-select: none;
  transition: background 0.2s ease;
}

.accordion summary:hover {
  background: rgba(255, 255, 255, 0.02);
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary span.label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
}

.accordion-chevron {
  font-size: 0.8rem;
  transform: rotate(90deg);
  transition: transform 0.2s ease-out;
  color: var(--muted);
}

details[open] .accordion-chevron {
  transform: rotate(270deg);
}

.accordion-body {
  padding: 0.5rem 1rem 0.9rem;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Chips */
.chips {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 500;
  border: 1px solid rgba(255, 122, 196, 0.2);
  transition: all 0.2s ease;
}

.chip:hover {
  background: rgba(255, 122, 196, 0.25);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

@media (min-width: 720px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.project-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #101018;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 160px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  background: radial-gradient(circle at top left, rgba(255, 122, 196, 0.08), #101018);
}

.project-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.project-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.project-desc {
  font-size: 0.82rem;
  color: var(--muted);
  flex: 1 1 auto;
  line-height: 1.5;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  padding-top: 0.3rem;
}

/* Blog – neues Layout */
.blog-hero {
  max-width: 720px;
  margin-bottom: 2rem;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: flex-start;
}

@media (max-width: 860px) {
  .blog-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.blog-sidebar-title {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.blog-sidebar-text {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Timeline-Spalte */
.blog-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
  padding-left: 1.3rem;
  position: relative;
}

.blog-timeline::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  border-left: 1px dashed rgba(255, 122, 196, 0.2);
}

.blog-row {
  position: relative;
}

.blog-row::before {
  content: "";
  position: absolute;
  left: -1.7rem;
  top: 1rem;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 2px solid rgba(255, 122, 196, 0.4);
  box-shadow: 0 0 8px rgba(255, 122, 196, 0.3);
  transition: all 0.2s ease;
}

.blog-row:hover::before {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(255, 122, 196, 0.5);
  transform: scale(1.2);
}

.blog-row-link {
  display: block;
  padding: 0.9rem 1rem;
  border-radius: 0.8rem;
  background: rgba(8, 8, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.blog-row-link:hover {
  background: radial-gradient(circle at top left,
                rgba(255, 122, 196, 0.14),
                rgba(8, 8, 18, 0.98));
  border-color: rgba(255, 122, 196, 0.65);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.blog-row-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.blog-row-date {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.78rem;
  opacity: 0.9;
}

.blog-row-tag {
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: lowercase;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(255, 122, 196, 0.2);
  font-weight: 500;
}

.blog-row-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.blog-row-excerpt {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Blog-Post-Seiten */
.post {
  max-width: 750px;
  margin: 0 auto;
}

.post-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.blog-date {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.2rem 0.7rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-tag {
  font-size: 0.78rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(255, 122, 196, 0.2);
  font-weight: 500;
  text-transform: lowercase;
}

.post-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
}

.post-subtitle {
  font-size: 1.05rem;
  color: #b4b4b8;
  line-height: 1.6;
  font-weight: 400;
}

.post-body {
  font-size: 1rem;
  line-height: 1.8;
  color: #e4e4e7;
}

.post-body h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  position: relative;
  padding-bottom: 0.5rem;
}

.post-body h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.7;
}

.post-body p {
  margin-bottom: 1.3rem;
  color: #d4d4d8;
}

.post-body ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  list-style: none;
}

.post-body li {
  position: relative;
  padding-left: 1rem;
  color: #d4d4d8;
  line-height: 1.7;
}

.post-body li::before {
  content: "→";
  position: absolute;
  left: -0.8rem;
  color: var(--accent);
  font-weight: 600;
}

.post-body li + li {
  margin-top: 0.7rem;
}

.post-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin: 2.5rem 0;
}

.post-images img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.post-images img:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: rgba(255, 122, 196, 0.3);
}

.post-footer {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  font-size: 0.9rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.post-back::before {
  content: "←";
  transition: transform 0.2s ease;
}

.post-back:hover {
  background: var(--accent-soft);
  border-color: rgba(255, 122, 196, 0.4);
  color: var(--accent);
  transform: translateX(-3px);
  text-decoration: none;
}

.post-back:hover::before {
  transform: translateX(-3px);
}

/* Footer */
footer {
  margin-top: auto;
  margin-bottom: 10px;
  padding: 10px 0;
  font-size: 12px;
  color: #a8b2d1;
  text-align: center;
}

footer a {
  color: #cfd4ff;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--accent);
}

/* Schaukelbild (Index) */
.swing-wrapper {
  position: fixed;
  left: 7vw;
  top: -100px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
}

.swing-chris {
  height: 105vh;
  max-height: 1200px;
  width: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}

@media (max-width: 1024px) {
  .swing-wrapper {
    left: -5vw;
    top: -80px;
  }

  .swing-chris {
    height: 60vh;
    max-height: 600px;
  }
}

@media (max-width: 720px) {
  .swing-wrapper {
    left: 50%;
    transform: translateX(-50%);
    top: -40px;
  }

  .swing-chris {
    height: 45vh;
    max-height: 360px;
  }
}

/* Scroll-to-top hint */
.scroll-hint {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 100;
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.scroll-hint.visible {
  opacity: 1;
  pointer-events: all;
}

.scroll-hint:hover {
  background: rgba(255, 122, 196, 0.3);
  transform: translateY(-3px);
}