/* ==========================================================================
   Portfolio Max Mustermann — globales Stylesheet
   ========================================================================== */

:root {
  --bg: #0b0f14;
  --bg-soft: #10151d;
  --card: #141c26;
  --card-hover: #18222e;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e6edf3;
  --muted: #93a1b3;
  --accent: #5eead4;
  --accent-2: #38bdf8;
  --gradient: linear-gradient(120deg, var(--accent), var(--accent-2));
  --radius: 14px;
  --maxw: 1120px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: rgba(94, 234, 212, 0.3);
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #fff;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Typografie
   -------------------------------------------------------------------------- */

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 750;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 0.6rem;
}

h3 {
  font-size: 1.12rem;
}

p {
  color: var(--muted);
}

.lead {
  font-size: 1.12rem;
}

.accent-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 20, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.header.is-scrolled {
  border-color: var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo .dot {
  color: var(--accent);
}

.nav ul {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 550;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  width: 42px;
  height: 42px;
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  position: absolute;
  left: 11px;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle span {
  top: 20px;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--gradient);
  color: #06211c;
}

.btn-primary:hover {
  color: #06211c;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(94, 234, 212, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(90px, 16vh, 160px) 0 clamp(70px, 12vh, 120px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto -20%;
  height: 80%;
  background:
    radial-gradient(600px 400px at 20% 20%, rgba(56, 189, 248, 0.16), transparent 60%),
    radial-gradient(700px 450px at 80% 30%, rgba(94, 234, 212, 0.14), transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 780px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(94, 234, 212, 0.06);
  margin-bottom: 24px;
}

.eyebrow .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.6);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(94, 234, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0); }
}

.hero h1 {
  margin-bottom: 20px;
}

.hero p.lead {
  max-width: 620px;
  font-size: 1.15rem;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  margin-top: 54px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat strong em {
  font-style: normal;
  color: var(--accent);
}

.stat span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: clamp(70px, 10vh, 110px) 0;
}

.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head p {
  margin-top: 8px;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   Skills
   -------------------------------------------------------------------------- */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: rgba(94, 234, 212, 0.4);
  background: var(--card-hover);
}

.skill-card .icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(94, 234, 212, 0.1);
  border: 1px solid rgba(94, 234, 212, 0.2);
  color: var(--accent);
  margin-bottom: 16px;
}

.skill-card h3 {
  margin-bottom: 8px;
}

.skill-card p {
  font-size: 0.92rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Projekte
   -------------------------------------------------------------------------- */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 22px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(94, 234, 212, 0.35);
}

.project-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
}

.project-thumb .initial {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.project-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 24px;
}

.project-meta {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.project-body h3 {
  margin-bottom: 10px;
}

.project-body p {
  font-size: 0.94rem;
  margin-bottom: 18px;
  flex: 1;
}

.project-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  font-weight: 600;
}

.arrow {
  transition: transform 0.2s ease;
}

.project-links a:hover .arrow {
  transform: translateX(4px);
}

.section-cta {
  margin-top: 40px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Info-Box / Zitate
   -------------------------------------------------------------------------- */

.info-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 44px;
}

.info-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.info-item .label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.info-item strong {
  display: block;
  font-size: 1.02rem;
}

.quote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 22px;
  font-size: 1.15rem;
  color: var(--muted);
  font-style: italic;
  max-width: 720px;
}

/* --------------------------------------------------------------------------
   Kontakt CTA
   -------------------------------------------------------------------------- */

.contact {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  inset: auto -10% -60% -10%;
  height: 80%;
  background: radial-gradient(560px 320px at 50% 100%, rgba(94, 234, 212, 0.12), transparent 65%);
  pointer-events: none;
}

.contact .container {
  position: relative;
}

.contact h2 {
  max-width: 640px;
  margin: 0 auto 18px;
}

.contact p {
  max-width: 560px;
  margin: 0 auto 32px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 56px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 0.92rem;
  margin-top: 10px;
  max-width: 280px;
}

.footer h4 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 9px;
}

.footer a {
  color: var(--text);
  font-size: 0.93rem;
}

.footer a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  color: var(--accent);
  border-color: rgba(94, 234, 212, 0.4);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-bottom .links {
  display: flex;
  gap: 20px;
}

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

.page-hero {
  padding: clamp(60px, 10vh, 100px) 0 40px;
}

.page-hero .eyebrow {
  margin-bottom: 18px;
}

.page-hero h1 {
  margin-bottom: 14px;
}

.page-hero p {
  max-width: 640px;
}

.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: 1.4rem;
  margin: 34px 0 12px;
}

.prose h3 {
  margin: 26px 0 10px;
}

.prose p,
.prose li {
  color: var(--muted);
  margin-bottom: 14px;
}

.prose ul {
  padding-left: 22px;
  margin-bottom: 14px;
}

.prose li::marker {
  color: var(--accent);
}

.prose address {
  font-style: normal;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 20px;
}

.prose .placeholder {
  color: var(--accent);
  font-weight: 600;
}

.prose blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 18px;
  margin-bottom: 18px;
  color: var(--muted);
  font-style: italic;
}

/* Timeline (Lebenslauf) */
.timeline {
  position: relative;
  margin: 30px 0;
  padding-left: 26px;
  max-width: 760px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--border));
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
}

.timeline-item h3 {
  margin-bottom: 4px;
}

.timeline-item .when {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.timeline-item p {
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Reveal-Animation
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

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

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(11, 15, 20, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
  }

  .hero-actions .btn {
    flex: 1;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}