/* ============================================================
   FLORIAN BERNTSEN — Neue minimalistische Website
   Schwarz · Editorial · Glowing Orb
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: #000;
  color: #f0ede8;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

*, *::before, *::after {
  cursor: none !important;
}

a, button, [role="button"], input[type="submit"], input[type="button"], label[for], select {
  cursor: pointer !important;
}

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

ul {
  list-style: none;
}

em {
  font-style: italic;
}

/* ---------- Animated Background Gradients ---------- */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

.bg-orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(60, 30, 140, 0.35) 0%, transparent 70%);
  top: -180px;
  left: -150px;
  animation: bgDrift1 20s ease-in-out infinite alternate;
}

.bg-orb-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(140, 40, 60, 0.28) 0%, transparent 70%);
  bottom: 10%;
  right: -120px;
  animation: bgDrift2 26s ease-in-out infinite alternate;
}

.bg-orb-3 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(20, 60, 160, 0.22) 0%, transparent 70%);
  top: 45%;
  left: 35%;
  animation: bgDrift3 32s ease-in-out infinite alternate;
}

@keyframes bgDrift1 {
  0%   { transform: translate(0, 0) scale(1);      filter: blur(100px) hue-rotate(0deg); }
  100% { transform: translate(100px, 140px) scale(1.25); filter: blur(110px) hue-rotate(60deg); }
}
@keyframes bgDrift2 {
  0%   { transform: translate(0, 0) scale(1);      filter: blur(100px) hue-rotate(0deg); }
  100% { transform: translate(-80px, -100px) scale(1.15); filter: blur(90px) hue-rotate(-80deg); }
}
@keyframes bgDrift3 {
  0%   { transform: translate(0, 0) scale(1);      filter: blur(100px) hue-rotate(0deg); }
  100% { transform: translate(60px, -80px) scale(0.85); filter: blur(120px) hue-rotate(120deg); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-orb { animation: none; }
}

/* ---------- Orb Cursor ---------- */
#orb {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.10) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  will-change: transform;
}

@media (hover: none) {
  #orb { display: none; }
}

/* ---------- Layout ---------- */
.container {
  width: 90%;
  max-width: 1160px;
  margin: 0 auto;
}

/* ---------- Navigation ---------- */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 5%;
  transition: background 0.4s ease, padding 0.4s ease;
}

#nav.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px 5%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  z-index: 1;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(240, 237, 232, 0.65);
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.4);
}

.nav-links .nav-cta {
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.45em 1.1em;
  border-radius: 2px;
  color: #fff;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.nav-links .nav-cta:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.12);
}

/* Burger (mobile) */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-burger.open span:first-child {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-burger.open span:last-child {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  text-align: center;
}

.mobile-menu a {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  transition: opacity 0.2s ease;
}

.mobile-menu a:hover {
  opacity: 0.6;
}

/* ---------- Hero ---------- */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 0 5%;
  overflow: hidden;
}

.hero-inner {
  padding-top: 100px;
  padding-bottom: 120px;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

.hero-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240, 237, 232, 0.45);
  margin-bottom: 2rem;
}

.hero-headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 2rem;
}

.hero-headline .accent-italic {
  color: rgba(240, 237, 232, 0.55);
  font-style: italic;
  font-weight: 700;
}

.hero-sub {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: rgba(240, 237, 232, 0.5);
  letter-spacing: 0.04em;
  margin-bottom: 3rem;
}

/* Ticker */
.hero-ticker-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  padding: 14px 0;
  background: rgba(0, 0, 0, 0.3);
}

.hero-ticker {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: ticker 22s linear infinite;
  width: max-content;
  will-change: transform;
}

.hero-ticker span {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240, 237, 232, 0.35);
}

.hero-ticker .ticker-sep {
  color: rgba(240, 237, 232, 0.15);
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #000;
  background: #fff;
  padding: 0.85em 2.2em;
  border-radius: 2px;
  border: 1px solid #fff;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn-primary:hover {
  background: transparent;
  color: #fff;
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.18);
}

.btn-outline {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(240, 237, 232, 0.65);
  padding: 0.85em 2.2em;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* ---------- Section Label ---------- */
.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240, 237, 232, 0.35);
  margin-bottom: 3.5rem;
}

/* ---------- Services ---------- */
#services {
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

.services-grid {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.service-card {
  display: grid;
  grid-template-columns: 56px 1fr 1.4fr;
  gap: 0 4rem;
  align-items: start;
  padding: 2.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.03);
}

.service-num {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  color: rgba(240, 237, 232, 0.2);
  padding-top: 0.25rem;
  transition: color 0.3s ease;
}

.service-card:hover .service-num {
  color: rgba(240, 237, 232, 0.5);
}

.service-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  transition: text-shadow 0.3s ease;
}

.service-card:hover .service-title {
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.service-desc {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(240, 237, 232, 0.45);
  padding-top: 0.3rem;
}

/* ---------- Stats ---------- */
#stats {
  padding: 100px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
  z-index: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  align-items: start;
}

.stat {
  padding: 1rem 0;
  align-self: start;
}

.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.1em;
}

.stat-value.stat-text {
  font-size: clamp(2.4rem, 4vw, 4rem);
  letter-spacing: -0.02em;
}

.stat-suffix {
  font-size: 0.6em;
  color: rgba(240, 237, 232, 0.5);
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(240, 237, 232, 0.4);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

/* ---------- Testimonials ---------- */
#testimonials {
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.testimonial {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 2rem;
}

.testimonial-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 400;
  line-height: 1.65;
  color: rgba(240, 237, 232, 0.85);
  margin-bottom: 1.8rem;
  font-style: italic;
}

.testimonial footer {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.testimonial footer strong {
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  font-style: normal;
}

.testimonial footer span {
  font-size: 0.78rem;
  color: rgba(240, 237, 232, 0.35);
  letter-spacing: 0.03em;
}

/* ---------- About ---------- */
#about {
  padding: 120px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
  z-index: 1;
}

.about-text {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.about-body {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.8;
  color: rgba(240, 237, 232, 0.65);
  margin-bottom: 1.2rem;
}

/* ---------- Kontakt ---------- */
#kontakt {
  padding: 140px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
  z-index: 1;
}

.contact-email {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 3rem;
  transition: opacity 0.25s ease;
  line-height: 1.2;
  word-break: break-all;
}

.contact-email:hover {
  opacity: 0.75;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.25);
}

.contact-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Contact Form ---------- */
.contact-form {
  max-width: 680px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-group label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 237, 232, 0.35);
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  color: #f0ede8;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  padding: 0.85em 1.1em;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
  resize: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(240, 237, 232, 0.2);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.04);
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.form-status {
  font-size: 0.85rem;
  line-height: 1.5;
  display: none;
}

.form-status.visible {
  display: block;
}

.form-success {
  color: rgba(120, 220, 150, 0.9);
}

.form-error {
  color: rgba(220, 100, 100, 0.85);
}

.form-error a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */
#footer {
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
  z-index: 1;
}

#footer p {
  font-size: 0.8rem;
  color: rgba(240, 237, 232, 0.3);
  letter-spacing: 0.03em;
}

#footer a {
  color: rgba(240, 237, 232, 0.5);
  transition: color 0.2s ease;
}

#footer a:hover {
  color: #fff;
}

/* ---------- Scroll Reveal ---------- */

/* Base: sanftes Hochfahren (Hero & generisch) */
.reveal,
.reveal-line {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible,
.reveal-line.visible {
  opacity: 1;
  transform: none;
}

/* Variante: von links */
.reveal-left {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Variante: von rechts */
.reveal-right {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Variante: Scale + Hochfahren (für große Hero-Elemente) */
.reveal-scale {
  opacity: 0;
  transform: scale(0.88) translateY(24px);
  transition: opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Variante: leichter Blur-Fade (für Stats) */
.reveal-up {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Stagger delays for hero lines */
.hero-headline .reveal-line:nth-child(1) { transition-delay: 0.1s; }
.hero-headline .reveal-line:nth-child(2) { transition-delay: 0.22s; }
.hero-headline .reveal-line:nth-child(3) { transition-delay: 0.34s; }

/* Services: cards von links, gestaffelt */
.services-grid .service-card:nth-child(1) { transition-delay: 0s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.13s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.26s; }

/* Stats: scale-up, gestaffelt */
.stats-grid .stat:nth-child(1) { transition-delay: 0s; }
.stats-grid .stat:nth-child(2) { transition-delay: 0.1s; }
.stats-grid .stat:nth-child(3) { transition-delay: 0.2s; }
.stats-grid .stat:nth-child(4) { transition-delay: 0.3s; }

/* Testimonials: jedes anders, natürlich */
.testimonials-grid .testimonial:nth-child(1) { transition-delay: 0s; }
.testimonials-grid .testimonial:nth-child(2) { transition-delay: 0.18s; }
.testimonials-grid .testimonial:nth-child(3) { transition-delay: 0.06s; }

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-line,
  .reveal-left, .reveal-right,
  .reveal-scale, .reveal-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-ticker { animation: none; }
  #orb { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  .service-card {
    grid-template-columns: 40px 1fr;
    gap: 0 1.5rem;
  }

  .service-desc {
    grid-column: 2;
    padding-top: 0.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 560px) {
  .service-card {
    grid-template-columns: 1fr;
    gap: 0.6rem 0;
  }

  .service-num {
    margin-bottom: 0.2rem;
  }

  .service-desc {
    grid-column: 1;
    padding-top: 0.4rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
