/* ==========================================================================
   Jonas Melzer – jonasmelzer.de
   Dark, ruhig, edel. Apple-artige Zurückhaltung statt Sales-Funnel.
   ========================================================================== */

:root {
  /* Farben */
  --bg: #0A0A0B;
  --bg-alt: #111113;
  --text: #F5F5F7;
  --text-secondary: #9A9AA2;
  --border: rgba(245, 245, 247, 0.1);
  --accent: #C9A15A; /* [ACCENT] – dezenter, warmer Gold-/Champagnerton, leicht austauschbar */

  /* Typografie */
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;

  /* Abstände */
  --section-padding: clamp(4rem, 10vw, 9rem);
  --content-max: 1180px;
  --content-narrow: 760px;

  /* Radius */
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ============ Fade-in on scroll ============ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ============ Header ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  padding: 1.5rem clamp(1.5rem, 4vw, 3rem);
}

.logo-anchor {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.logo-anchor:hover {
  opacity: 1;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(10, 10, 11, 0.96) 0%,
    rgba(10, 10, 11, 0.85) 28%,
    rgba(10, 10, 11, 0.45) 55%,
    rgba(10, 10, 11, 0.1) 80%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 clamp(1.5rem, 6vw, 6rem) clamp(4rem, 10vw, 7rem);
  max-width: 760px;
}

.kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 1.5rem;
}

.hero-subline {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.hero-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Mobile: Foto und Text stapeln statt überlagern, damit das Gesicht nie
   hinter der Headline verschwindet (Querformat-Foto vs. Hochformat-Viewport). */
@media (max-width: 720px) {
  .hero {
    display: block;
    min-height: 0;
  }

  .hero-media {
    position: relative;
    height: 52vh;
    min-height: 320px;
  }

  .hero-scrim {
    background: linear-gradient(
      to bottom,
      rgba(10, 10, 11, 0) 55%,
      rgba(10, 10, 11, 0.9) 92%,
      rgba(10, 10, 11, 1) 100%
    );
  }

  .hero-content {
    max-width: none;
    padding: 2.5rem 1.5rem 3rem;
    background: var(--bg);
  }
}

/* ============ Stats ============ */
.stats {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 6vw, 6rem);
  border-bottom: 1px solid var(--border);
}

.stats-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 4rem;
  justify-content: center;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: center;
  min-width: 140px;
}

.stat-number {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* ============ Sections ============ */
.section {
  padding: var(--section-padding) clamp(1.5rem, 6vw, 6rem);
}

.section-alt {
  background: var(--bg-alt);
}

.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.section-inner.narrow {
  max-width: var(--content-narrow);
}

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
}

.lead-text {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  max-width: 640px;
}

.lead-text:last-child {
  margin-bottom: 0;
}

.text-link {
  color: var(--text);
  border-bottom: 1px solid var(--accent);
  transition: color 0.3s ease, opacity 0.3s ease;
}

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

/* ============ Timeline ============ */
.timeline {
  max-width: var(--content-max);
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.timeline-step {
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.timeline-year {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.timeline-step h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-step p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

@media (max-width: 720px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ============ Social proof: logos ============ */
.proof-heading {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  text-align: center;
}

.logo-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem 3rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.logo-item {
  font-size: 0.9rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
}

.logo-item img {
  height: 28px;
  width: auto;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.55;
  transition: opacity 0.3s ease;
}

.logo-item img:hover {
  opacity: 0.85;
}

/* ============ Testimonials ============ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.testimonial-quote {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.testimonial-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--border);
}

.testimonial-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 161, 90, 0.14);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.testimonial-meta div {
  display: flex;
  flex-direction: column;
}

.testimonial-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.testimonial-result {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ============ Optional case studies (currently commented out in HTML) ============ */
.case-studies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.case-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.badges {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ============ Privat ============ */
.privat-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--content-max);
}

.privat-media {
  position: relative;
}

.privat-media img {
  border-radius: var(--radius);
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--bg-alt);
}

.media-caption {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-align: center;
}

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

  .privat-media {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* ============ Social links ============ */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.social-link {
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.3s ease, color 0.3s ease;
}

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

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem clamp(1.5rem, 6vw, 6rem);
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-name {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

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

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
