/* ========================================
   Box2B – Style
   ======================================== */

/* --- Custom Properties --- */
:root {
  --color-bg: #0a0a0a;
  --color-bg-alt: #111827;
  --color-surface: #1a1a2e;
  --color-accent: #ff6b35;
  --color-accent-hover: #e55a2b;
  --color-text: #e5e7eb;
  --color-text-muted: #9ca3af;
  --color-white: #ffffff;
  --color-border: rgba(255, 255, 255, 0.08);

  --font-body: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;

  --container-max: 1200px;
  --section-padding: 6rem 0;
  --nav-height: 72px;
  --radius: 12px;
  --radius-sm: 8px;

  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

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

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

ul {
  list-style: none;
}

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

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-padding);
}

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

.section__label {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 3rem;
  line-height: 1.2;
}

.section__title span {
  color: var(--color-accent);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
}

/* --- Fade-in Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ========================================
   Navigation
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background-color var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--color-border);
}

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
}

.nav__logo span {
  color: var(--color-accent);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.nav__link:hover {
  color: var(--color-white);
}

.nav__link--cta {
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
}

.nav__link--cta:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-white);
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  transition: all var(--transition);
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

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

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255, 107, 53, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
    var(--color-bg);
  z-index: 0;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-height);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero__title span {
  color: var(--color-accent);
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

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

/* ========================================
   About
   ======================================== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__text p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* CSS-only 3D Box Graphic */
.about__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about__box-graphic {
  perspective: 600px;
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__box {
  width: 160px;
  height: 140px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-15deg) rotateY(-25deg);
  animation: boxFloat 4s ease-in-out infinite;
}

@keyframes boxFloat {
  0%, 100% { transform: rotateX(-15deg) rotateY(-25deg) translateY(0); }
  50% { transform: rotateX(-15deg) rotateY(-25deg) translateY(-15px); }
}

.about__box-front {
  position: absolute;
  width: 160px;
  height: 120px;
  bottom: 0;
  background: linear-gradient(135deg, var(--color-accent), #e55a2b);
  border-radius: 4px;
  transform: translateZ(40px);
}

.about__box-side {
  position: absolute;
  width: 80px;
  height: 120px;
  bottom: 0;
  right: 0;
  background: linear-gradient(135deg, #cc4a20, #b3401b);
  border-radius: 4px;
  transform: rotateY(90deg) translateZ(40px);
  transform-origin: right;
}

.about__box-lid {
  position: absolute;
  width: 160px;
  height: 80px;
  top: -10px;
  background: linear-gradient(135deg, #ff8c5a, var(--color-accent));
  border-radius: 4px;
  transform: rotateX(60deg) translateZ(40px);
  transform-origin: bottom;
  animation: lidOpen 4s ease-in-out infinite;
}

@keyframes lidOpen {
  0%, 100% { transform: rotateX(60deg) translateZ(40px); }
  50% { transform: rotateX(75deg) translateZ(40px); }
}

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

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
}

.service-card:hover {
  border-color: rgba(255, 107, 53, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(255, 107, 53, 0.1);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========================================
   Process
   ======================================== */
.process {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.process__step {
  flex: 1;
  max-width: 300px;
  text-align: center;
  padding: 2rem 1.5rem;
}

.process__number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 1rem;
}

.process__step h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.process__step p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.process__connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  margin-top: 3.5rem;
  flex-shrink: 0;
}

/* ========================================
   Stats / Vorteile
   ======================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.stat {
  text-align: center;
  padding: 2rem 1rem;
}

.stat__number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  display: inline;
}

.stat__suffix {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  display: inline;
}

.stat__label {
  color: var(--color-text-muted);
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.usps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.usp {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.usp__check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 107, 53, 0.15);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.usp h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.usp p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ========================================
   Contact
   ======================================== */
.contact {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form__group--full {
  grid-column: 1 / -1;
}

.form__group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.form__group input,
.form__group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition);
  outline: none;
}

.form__group input::placeholder,
.form__group textarea::placeholder {
  color: var(--color-text-muted);
}

.form__group input:focus,
.form__group textarea:focus {
  border-color: var(--color-accent);
}

.form__group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact__form .btn {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 1rem;
}

.contact__detail h4 {
  color: var(--color-accent);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.375rem;
}

.contact__detail p {
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.6;
}

/* Form success message */
.form__success {
  grid-column: 1 / -1;
  padding: 1.25rem;
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: var(--radius-sm);
  color: var(--color-accent);
  text-align: center;
  font-weight: 500;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand p {
  color: var(--color-text-muted);
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer__links h4,
.footer__social h4 {
  color: var(--color-white);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer__links li {
  margin-bottom: 0.5rem;
}

.footer__links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer__social-icons {
  display: flex;
  gap: 1rem;
}

.footer__social-icons a {
  color: var(--color-text-muted);
  transition: color var(--transition);
}

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

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  text-align: center;
}

.footer__bottom p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .about {
    gap: 3rem;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 4rem 0;
  }

  /* Mobile Nav */
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--color-bg-alt);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 1.5rem;
    transition: right var(--transition);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
  }

  .nav__menu.open {
    right: 0;
  }

  .nav__link {
    font-size: 1.1rem;
  }

  .nav__link--cta {
    margin-top: 1rem;
  }

  /* About */
  .about {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about__visual {
    order: -1;
  }

  .about__box-graphic {
    width: 180px;
    height: 180px;
  }

  .about__box {
    width: 120px;
    height: 100px;
  }

  .about__box-front {
    width: 120px;
    height: 90px;
  }

  .about__box-side {
    width: 60px;
    height: 90px;
  }

  .about__box-lid {
    width: 120px;
    height: 60px;
  }

  /* Process */
  .process {
    flex-direction: column;
    align-items: center;
  }

  .process__connector {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, var(--color-accent), transparent);
    margin: 0;
  }

  /* Contact */
  .contact {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

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