/* ============================================================
   Prometheor – Styles
   Hell, ruhig, near-black Typo, gedaempfter Feuer-Akzent.
   Mobile-first, self-contained, keine externen Fonts/CDNs.
   ============================================================ */

:root {
  --bg: #fafaf8;
  --bg-alt: #f2f0ea;
  --card: #ffffff;
  --line: #e6e3da;

  --text: #1a1a1a;
  --text-dim: #55534d;
  --text-faint: #86837a;

  --accent: #c8743a;
  --accent-dim: #a45f2e;
  --accent-glow: rgba(200, 116, 58, 0.14);

  --live: #3f7d4e;
  --live-bg: #e9f2ea;
  --soon: #8a7a5c;
  --soon-bg: #f1ede3;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 16px 40px rgba(200, 116, 58, 0.10), 0 2px 8px rgba(26, 26, 26, 0.04);
  --shadow-hover: 0 20px 48px rgba(200, 116, 58, 0.18), 0 4px 14px rgba(26, 26, 26, 0.06);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);

  --container-w: 1080px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

p { margin: 0 0 1em; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 248, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  display: grid;
  place-items: center;
  color: var(--accent);
}

.brand-name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.main-nav {
  display: flex;
  gap: 24px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
  border-color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  text-align: center;
  overflow: clip;
}

/* Weiche, unscharfe Amber-Gradient-Blobs hinter dem Hero — moderne Tiefe
   ohne zusaetzliches Markup (uxpeak: Gradients + Blur). */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.hero::before {
  top: -120px;
  left: 50%;
  width: 480px;
  height: 480px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(200, 116, 58, 0.16), transparent 70%);
}

.hero::after {
  bottom: -140px;
  right: 10%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(200, 116, 58, 0.10), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-flame {
  display: inline-grid;
  place-items: center;
  margin-bottom: 24px;
  perspective: 700px;
  /* Scroll-Fortschritt (0..1), von script.js per IntersectionObserver gesetzt. */
  --scroll-progress: 1;
}

.flame {
  transform-origin: 50% 85%;
}

@keyframes flicker {
  0%, 100% { transform: scaleY(1) scaleX(1) rotate(0deg); opacity: 1; }
  25% { transform: scaleY(1.05) scaleX(0.98) rotate(-1deg); opacity: 0.96; }
  50% { transform: scaleY(0.97) scaleX(1.02) rotate(1deg); opacity: 1; }
  75% { transform: scaleY(1.03) scaleX(0.99) rotate(-0.5deg); opacity: 0.98; }
}

.flame-lg {
  animation: flicker 4s ease-in-out infinite;
}

/* 3D-Flamme auf Scroll: waehrend der Hero aus dem Viewport scrollt, kippt
   und schrumpft die Flamme leicht nach hinten (rotateX + scale + opacity),
   getrieben von --scroll-progress (siehe script.js, IntersectionObserver). */
.hero-flame-3d {
  transform: rotateX(calc((1 - var(--scroll-progress, 1)) * 24deg))
             scale(calc(0.82 + var(--scroll-progress, 1) * 0.18));
  opacity: calc(0.45 + var(--scroll-progress, 1) * 0.55);
  transition: transform 0.15s linear, opacity 0.15s linear;
  transform-style: preserve-3d;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.4em;
}

.hero-sub {
  max-width: 560px;
  margin: 0 auto 32px;
  color: var(--text-dim);
  font-size: 1.1rem;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s var(--ease-soft), background 0.25s var(--ease-soft),
              border-color 0.25s var(--ease-soft), box-shadow 0.25s var(--ease-soft);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(200, 116, 58, 0.30);
}

.btn-primary:active {
  transform: translateY(0) scale(0.97);
}

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

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-dim);
  background: var(--accent-glow);
  transform: translateY(-2px);
}

.btn-ghost:active {
  transform: translateY(0) scale(0.97);
}

/* ---------- Sections (generic) ---------- */
section {
  padding: 72px 0;
}

section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.01em;
}

.lead {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 640px;
}

.fade-section {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Philosophie ---------- */
.philosophie {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.value-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.value-list h3 {
  font-size: 1.05rem;
  color: var(--accent-dim);
  margin-bottom: 0.3em;
}

.value-list p {
  color: var(--text-dim);
  margin-bottom: 0;
}

@media (min-width: 720px) {
  .value-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Projekte ---------- */
.project-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 720px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 116, 58, 0.25);
  box-shadow: var(--shadow-hover);
}

.project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.project-head h3 {
  margin: 0;
  font-size: 1.15rem;
}

.status {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.status-live {
  color: var(--live);
  background: var(--live-bg);
}

.status-soon {
  color: var(--soon);
  background: var(--soon-bg);
}

.tagline {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.desc {
  color: var(--text-dim);
  font-size: 0.95rem;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  text-decoration: none;
  font-weight: 600;
  color: var(--accent-dim);
  transition: color 0.2s ease;
}

.card-link:hover {
  color: var(--accent);
}

.card-link-disabled {
  color: var(--text-faint);
  cursor: default;
}

/* ---------- Kontakt ---------- */
.kontakt {
  text-align: center;
}

.mail-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-dim);
  border-bottom: 2px solid var(--accent);
  transition: color 0.2s ease;
}

.mail-link:hover {
  color: var(--accent);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--text-faint);
}

.footer-brand {
  font-weight: 700;
  color: var(--text-dim);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .flame-lg {
    animation: none;
  }
  .fade-section {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .project-card,
  .btn {
    transition: none;
  }
  .hero-flame-3d {
    transition: none;
    transform: none;
    opacity: 1;
  }
}
