/*
 * apps@schüri - Stylesheet
 * Design-Konzept: dunkles Slate/Neon-System in der Familie der lucee-website, aber mit den Apps
 * als Hauptdarsteller: Kachelraster, Plattform-Filter, Geraeterahmen statt Code-Fenster.
 */

@import url('/web-libs/fonts/fonts.css');

:root {
  /* Farbpalette */
  --bg-color: #080c14;
  --bg-card: rgba(15, 22, 38, 0.55);
  --bg-card-hover: rgba(22, 32, 54, 0.75);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.16);

  --primary: #8b5cf6;   /* Violett */
  --secondary: #06b6d4; /* Cyan */
  --accent: #6366f1;    /* Indigo */
  --success: #22c55e;
  --warning: #f59e0b;

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;

  /* Schriftarten */
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Sonstiges */
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.18);
  --header-height: 72px;
}

/* Reset & Basis */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* Der Wert gehoert hierher, nicht nur an den body: Erst wenn html ihn an den Viewport abgibt,
     klippt der body wirklich selbst und die absolut positionierten Deko-Blobs weiten das Layout
     nicht mehr auf. */
  overflow-x: hidden;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.65;
  /* clip statt hidden: hidden auf EINER Achse zwingt die Gegenachse auf "auto", der body wird
     damit zum eigenen Scrollcontainer und es gibt zwei senkrechte Scrollbalken. clip klippt
     genauso, erzeugt aber keinen Scrollcontainer. */
  overflow: clip;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-headings);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}

::selection {
  background: rgba(139, 92, 246, 0.35);
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0;
}

.gradient {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

/* Deko-Blobs */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
  animation: float-blob 22s infinite ease-in-out alternate;
}
.blob-1 {
  top: 4%;
  left: 10%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}
.blob-2 {
  top: 45%;
  right: 6%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
  animation-delay: -7s;
}
.blob-3 {
  bottom: 2%;
  left: 25%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  animation-delay: -14s;
}

@keyframes float-blob {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(40px, -30px, 0) scale(1.12); }
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(8, 12, 20, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 600;
}
.logo svg,
.footer-logo svg {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 8px;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-primary {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.35);
}
.btn-secondary {
  background: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-main);
}
.btn-secondary:hover {
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

/* Hero */
.hero {
  padding-top: 72px;
  padding-bottom: 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 56px;
}
.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.9rem);
  font-weight: 700;
  margin-bottom: 22px;
}
.lead {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 56ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border-color);
}
.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-number {
  font-family: var(--font-headings);
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Geraeterahmen im Hero */
.hero-visual {
  display: flex;
  justify-content: center;
}
.phone-frame {
  position: relative;
  width: 280px;
  padding: 14px;
  border-radius: 40px;
  border: 1px solid var(--border-color-hover);
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.16), rgba(6, 182, 212, 0.1));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), var(--shadow-glow);
}
.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
}
.phone-screen {
  border-radius: 28px;
  background: rgba(8, 12, 20, 0.92);
  border: 1px solid var(--border-color);
  padding: 38px 18px 18px;
  min-height: 460px;
  display: flex;
  flex-direction: column;
}
.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.phone-brand {
  font-family: var(--font-headings);
  color: var(--text-main);
}
.phone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.phone-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  animation: tile-in 0.6s ease-out both;
}
.phone-tile:nth-child(2) { animation-delay: 0.05s; }
.phone-tile:nth-child(3) { animation-delay: 0.1s; }
.phone-tile:nth-child(4) { animation-delay: 0.15s; }
.phone-tile:nth-child(5) { animation-delay: 0.2s; }
.phone-tile:nth-child(6) { animation-delay: 0.25s; }
.phone-tile:nth-child(7) { animation-delay: 0.3s; }
.phone-tile:nth-child(8) { animation-delay: 0.35s; }
.phone-tile:nth-child(9) { animation-delay: 0.4s; }
.phone-tile:nth-child(10) { animation-delay: 0.45s; }
.phone-bar {
  width: 96px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  margin: auto auto 0;
}

@keyframes tile-in {
  from { opacity: 0; transform: translateY(12px) scale(0.92); }
  to   { opacity: 1; transform: none; }
}

/* Abschnitts-Kopf */
.section-header {
  text-align: center;
  max-width: 62ch;
  margin: 0 auto 48px;
}
.section-header h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin-bottom: 14px;
}
.section-header p {
  color: var(--text-muted);
}

/* Filterleiste */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}
.filter-chip {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 99px;
  padding: 8px 18px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.filter-chip:hover {
  color: var(--text-main);
  border-color: var(--border-color-hover);
}
.filter-chip.active {
  color: #fff;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  border-color: transparent;
}

/* App-Raster */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}
.app-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}
.app-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.app-card[hidden] {
  display: none;
}
.app-card-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 14px;
}
.app-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
}
.app-card-head h3 {
  font-size: 1.2rem;
}
.app-platforms {
  font-size: 0.82rem;
  color: var(--secondary);
}
.app-status {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  white-space: nowrap;
}
.status-live {
  color: var(--success);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.status-wip {
  color: var(--warning);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.app-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
}
.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.app-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 99px;
  padding: 4px 12px;
}
.app-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--secondary);
  transition: var(--transition-smooth);
}
.app-link:hover {
  gap: 12px;
  color: var(--text-main);
}
.app-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
}
.grid-empty {
  text-align: center;
  color: var(--text-muted);
  margin-top: 32px;
}

/* Technik */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.tech-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}
.tech-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-4px);
}
.tech-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(139, 92, 246, 0.14);
  color: var(--primary);
  margin-bottom: 18px;
}
.tech-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.tech-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Ueber mich */
.about-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 36px;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}
.about-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color-hover);
}
.about-text h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.about-text p {
  color: var(--text-muted);
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.skill-tag {
  font-size: 0.8rem;
  color: var(--text-main);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: 99px;
  padding: 5px 14px;
}
.about-text .about-social {
  justify-content: flex-start;
  margin-top: 20px;
}

/* Kontakt: das Formular gestaltet /web-libs/css/contact-form.css (bindet das Modul
   ui/contact-form selbst ein) und liest dafür die Tokens aus :root. */

/* Rechtsseiten (Inhalt aus cf-shared) */
.legal-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 24px 96px;
  color: var(--text-muted);
}
.legal-page h1,
.legal-page h2,
.legal-page h3 {
  color: var(--text-main);
  margin: 28px 0 12px;
}
.legal-page h1 {
  margin-top: 0;
}
.legal-page p,
.legal-page li {
  margin-bottom: 10px;
}
.legal-page ul {
  list-style: disc;
  padding-left: 22px;
}
.legal-page a {
  color: var(--secondary);
  text-decoration: underline;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 56px 0 40px;
  text-align: center;
}
footer .container > * + * {
  margin-top: 20px;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  transition: var(--transition-smooth);
}
.social-icon:hover {
  color: var(--text-main);
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
}
.site-link {
  width: auto;
  gap: 8px;
  padding: 0 16px 0 12px;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 600;
}
.site-link-accent {
  color: var(--primary);
}
/* Legal links and copyright belong together: closer than the footer's 20px rhythm */
.copyright + .copyright {
  margin-top: 6px;
}
.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.copyright a {
  color: var(--text-muted);
}
.copyright a:hover {
  color: var(--text-main);
}

/* Scroll-Reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-text {
    text-align: center;
  }
  .lead {
    margin: 0 auto;
  }
  .hero-actions,
  .hero-stats {
    justify-content: center;
  }
  .about-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .skill-tags,
  .about-text .about-social {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  section {
    padding: 72px 0;
  }
  .menu-btn {
    display: inline-flex;
  }
  .nav-links {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(8, 12, 20, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    /* Geschlossen ist das Menue nicht nur unsichtbar, sondern auch nicht fokussierbar -
       sonst wandert der Tastaturfokus in ein Menue, das niemand sieht. */
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    border-top: 1px solid var(--border-color);
  }
  .app-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    gap: 28px;
  }
}

@media (max-width: 400px) {
  .container {
    padding: 0 16px;
  }
  .phone-frame {
    width: 100%;
    max-width: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .glow-blob,
  .phone-tile {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
