/* Landing Page – Projektübersicht */

:root {
  --color-bg: #f4f5f7;
  --color-surface: #ffffff;
  --color-text: #0f1117;
  --color-text-muted: #5f6577;
  --color-border: rgba(15, 17, 23, 0.08);
  --color-accent: #2563eb;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 1px 2px rgba(15, 17, 23, 0.04);
  --shadow-md: 0 12px 40px rgba(15, 17, 23, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 17, 23, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --section-bildung: #7c3aed;
  --section-software: #2563eb;
  --section-android: #059669;
  --section-music: #ea580c;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: #e8ecf2;
  color: var(--color-text);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Hintergrund */

.landing-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;
  contain: paint;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.landing-bg-base {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(155deg, #e4eaf4 0%, #f0f2f6 38%, #f6f3ef 72%, #ebe8f0 100%);
}

.landing-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 17, 23, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 17, 23, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 35%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 35%, black 20%, transparent 75%);
}

.landing-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(255, 255, 255, 0.85) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(255, 255, 255, 0.5) 0%, transparent 60%);
}

.landing-bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 128 128' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

.landing-blob {
  position: absolute;
  border-radius: 50%;
  contain: strict;
  animation: landing-blob-float 28s ease-in-out infinite;
}

.landing-blob--1 {
  width: 560px;
  height: 560px;
  top: -160px;
  right: -120px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.38) 0%, rgba(37, 99, 235, 0.12) 42%, transparent 68%);
  animation-delay: 0s;
}

.landing-blob--2 {
  width: 480px;
  height: 480px;
  bottom: 8%;
  left: -140px;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.28) 0%, rgba(5, 150, 105, 0.09) 42%, transparent 68%);
  animation-delay: -7s;
  animation-duration: 32s;
}

.landing-blob--3 {
  width: 420px;
  height: 420px;
  bottom: -90px;
  right: 18%;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.24) 0%, rgba(234, 88, 12, 0.08) 42%, transparent 68%);
  animation-delay: -14s;
  animation-duration: 30s;
}

.landing-blob--4 {
  width: 360px;
  height: 360px;
  top: 42%;
  left: 55%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, rgba(139, 92, 246, 0.06) 42%, transparent 68%);
  animation-delay: -4s;
  animation-duration: 34s;
}

@keyframes landing-blob-float {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(20px, -16px, 0);
  }
}

/* Layout */

.landing-page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 3rem;
}

/* Header */

.landing-header {
  text-align: center;
  margin-bottom: 2rem;
  animation: landing-fade-up 0.6s ease both;
}

.landing-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.landing-avatar:hover {
  transform: scale(1.05);
}

.landing-avatar img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
}

.landing-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.landing-projects-heading {
  text-align: center;
  margin: 1rem 0 2.25rem;
  animation: landing-fade-up 0.6s ease both;
}

.landing-title {
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.625rem;
}

.landing-lead {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 28rem;
  margin: 0 auto;
}

/* ——— Release Banner (Top Feature) ——— */

.landing-release-banner {
  position: relative;
  margin-bottom: 2.75rem;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, #1e1713 0%, #120e0b 60%, #1f1411 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(201, 164, 92, 0.35);
  box-shadow:
    0 16px 36px rgba(18, 14, 11, 0.28),
    0 0 0 1px rgba(201, 164, 92, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #f0e6d4;
  animation: landing-fade-up 0.65s 0.05s ease both;
  overflow: hidden;
}

.landing-release-banner::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(180, 35, 42, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.landing-release-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #b4232a;
  color: #ffffff;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(180, 35, 42, 0.4);
  margin-bottom: 0.85rem;
}

.release-pill-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
  animation: release-blink 1.8s infinite;
}

@keyframes release-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.landing-release-content {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.landing-release-cover {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid rgba(201, 164, 92, 0.4);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  background: #000;
}

.landing-release-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.landing-release-text {
  flex: 1;
  min-width: 0;
}

.landing-release-headline-wrap {
  margin-bottom: 0.25rem;
}

.landing-release-artist {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c9a45c;
  margin-bottom: 0.15rem;
}

.landing-release-title {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: #f0e6d4;
  line-height: 1.25;
}

.landing-release-desc {
  font-size: 0.88rem;
  color: #b8a990;
  margin-bottom: 0.85rem;
}

.landing-release-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.release-stream-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  color: #f0e6d4;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.18s ease;
}

.release-stream-btn svg {
  flex-shrink: 0;
}

.release-stream-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.release-stream-btn--amazon:hover {
  border-color: #ff9900;
  color: #ff9900;
}

.release-stream-btn--spotify:hover {
  border-color: #1db954;
  color: #1db954;
}

.release-stream-btn--apple:hover {
  border-color: #fc3c44;
  color: #fc3c44;
}

.release-stream-btn--beatport:hover {
  border-color: #00ff80;
  color: #00ff80;
}

.release-stream-btn--more {
  background: #c9a45c;
  color: #1a1410;
  border-color: #c9a45c;
  font-weight: 700;
}

.release-stream-btn--more:hover {
  background: #e8d7b8;
  color: #120e0b;
  border-color: #e8d7b8;
}

@media (max-width: 680px) {
  .landing-release-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .landing-release-cover {
    width: 64px;
    height: 64px;
  }
}

/* Sektionen */

.landing-sections {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.landing-section {
  animation: landing-fade-up 0.6s ease both;
}

.landing-section:nth-child(1) { animation-delay: 0.08s; }
.landing-section:nth-child(2) { animation-delay: 0.16s; }
.landing-section:nth-child(3) { animation-delay: 0.24s; }
.landing-section:nth-child(4) { animation-delay: 0.32s; }

.landing-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.landing-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
}

.landing-section-icon {
  font-size: 0.55rem;
  opacity: 0.7;
}

.landing-section--bildung .landing-section-icon { color: var(--section-bildung); }
.landing-section--software .landing-section-icon { color: var(--section-software); }
.landing-section--android .landing-section-icon { color: var(--section-android); }
.landing-section--music .landing-section-icon { color: var(--section-music); }

.landing-section-count {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.landing-grid--solo {
  grid-template-columns: 1fr;
  max-width: calc(50% - 0.5rem);
}

/* Karten */

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1.375rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.project-card-icon img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  transform: translateZ(0);
  backface-visibility: hidden;
}

@media (hover: hover) {
  .project-card:hover {
    border-color: rgba(15, 17, 23, 0.14);
    box-shadow: var(--shadow-md);
    transform: translate3d(0, -3px, 0);
  }
}

.project-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.project-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.project-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-sm);
  background: #f8f9fb;
  border: 1px solid var(--color-border);
}

.project-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: #b0b5c0;
  background: #f4f5f7;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

@media (hover: hover) {
  .project-card:hover .project-card-cta {
    color: var(--color-text);
    background: #ebedf2;
    transform: translate3d(2px, 0, 0);
  }
}

.project-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Badges / Banners */

.project-card-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.85rem;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.25;
  border-radius: 9999px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}

.project-badge::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* Lila / Purple - KI-Projekt */
.project-badge--purple {
  background: rgba(147, 51, 234, 0.09);
  color: #7e22ce;
  border: 1px solid rgba(147, 51, 234, 0.22);
}

/* Blau / Blue - KI-Assistiert */
.project-badge--blue {
  background: rgba(37, 99, 235, 0.09);
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.22);
}

/* Grün / Green - Musik komplett ohne KI */
.project-badge--green {
  background: rgba(16, 185, 129, 0.09);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.22);
}

/* Custom badge styling on dark cards */
.project-card--music .project-badge--purple,
.project-card--breaktime .project-badge--purple {
  background: rgba(192, 132, 252, 0.16);
  color: #e9d5ff;
  border-color: rgba(192, 132, 252, 0.35);
}

.project-card--music .project-badge--blue,
.project-card--breaktime .project-badge--blue {
  background: rgba(96, 165, 250, 0.16);
  color: #bfdbfe;
  border-color: rgba(96, 165, 250, 0.35);
}

.project-card--music .project-badge--green,
.project-card--breaktime .project-badge--green {
  background: rgba(52, 211, 153, 0.16);
  color: #a7f3d0;
  border-color: rgba(52, 211, 153, 0.35);
}

.project-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.project-card-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* Themen-Karten */

.project-card--music {
  background: linear-gradient(145deg, #1c1008 0%, #0a0604 100%);
  border-color: rgba(249, 115, 22, 0.3);
  color: #faf3ed;
}

.project-card--music .project-card-icon {
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.25);
}

.project-card--music .project-card-title {
  background: linear-gradient(90deg, #fbbf24, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.project-card--music .project-card-desc {
  color: #c4a48a;
}

.project-card--music .project-card-cta {
  color: #ea580c;
  background: rgba(249, 115, 22, 0.12);
}

@media (hover: hover) {
  .project-card--music:hover {
    border-color: rgba(251, 191, 36, 0.45);
    box-shadow: 0 16px 48px rgba(220, 38, 38, 0.18);
  }

  .project-card--music:hover .project-card-cta {
    color: #fbbf24;
    background: rgba(249, 115, 22, 0.2);
  }
}

.project-card--music .project-card-icon img {
  filter: drop-shadow(0 0 12px rgba(249, 115, 22, 0.35));
}

.project-card--breaktime {
  background: linear-gradient(145deg, #1a0a2e 0%, #0a0512 100%);
  border-color: rgba(168, 85, 247, 0.3);
  color: #f3ecff;
}

.project-card--breaktime .project-card-icon {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.25);
}

.project-card--breaktime .project-card-title {
  background: linear-gradient(90deg, #e879f9, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.project-card--breaktime .project-card-desc {
  color: #b8a8d4;
}

.project-card--breaktime .project-card-cta {
  color: #7c3aed;
  background: rgba(168, 85, 247, 0.15);
}

@media (hover: hover) {
  .project-card--breaktime:hover {
    border-color: rgba(34, 211, 238, 0.45);
    box-shadow: 0 16px 48px rgba(168, 85, 247, 0.22);
  }

  .project-card--breaktime:hover .project-card-cta {
    color: #22d3ee;
    background: rgba(168, 85, 247, 0.25);
  }
}

.project-card--breaktime .project-card-icon img {
  filter: drop-shadow(0 0 12px rgba(232, 121, 249, 0.4));
}

/* Footer */

.landing-footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
  animation: landing-fade-up 0.6s ease 0.32s both;
}

.landing-footer p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Animation */

@keyframes landing-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */

@media (max-width: 720px) {
  .landing-grid--solo {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .landing-page {
    padding: 2.5rem 1rem 2.5rem;
  }

  .landing-header {
    margin-bottom: 2.5rem;
  }

  .landing-sections {
    gap: 2.25rem;
  }

  .landing-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    padding: 1.25rem;
  }

  .project-card-desc {
    font-size: 0.8125rem;
  }

  .landing-blob--3,
  .landing-blob--4 {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-header,
  .landing-section,
  .landing-footer {
    animation: none;
  }

  .landing-blob {
    animation: none;
  }

  .project-card,
  .project-card-cta {
    transition: none;
  }

  .project-card:hover {
    transform: none;
  }
}

/* Badge Interaktivität & KI-Seite Styles */

.project-badge[role="button"] {
  cursor: pointer;
}

@media (hover: hover) {
  .project-badge[role="button"]:hover {
    transform: scale(1.05);
    filter: brightness(1.15);
  }
}

.ki-page-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 2.25rem;
  margin-top: 1rem;
}

.ki-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.ki-back-link:hover {
  transform: translateX(-3px);
  color: #1d4ed8;
}

.ki-intro-text {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* KI-Tabelle */

.ki-table-wrapper {
  overflow-x: auto;
  margin-bottom: 2.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: #fafbfc;
}

.ki-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.925rem;
}

.ki-table th {
  background: #f1f4f9;
  padding: 0.875rem 1.25rem;
  font-weight: 700;
  font-size: 0.825rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.ki-table td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

.ki-table tr:last-child td {
  border-bottom: none;
}

.ki-table tr:hover td {
  background: rgba(37, 99, 235, 0.03);
}

.table-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}

/* Detaillierte Infos */

.ki-details-section {
  margin-top: 2rem;
}

.ki-details-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.ki-details-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ki-detail-item {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid var(--color-border);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ki-detail-item:hover {
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

.ki-detail-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.975rem;
  margin-bottom: 0.35rem;
  color: var(--color-text);
}

.ki-detail-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .ki-page-card {
    padding: 1.25rem;
  }
}

