/* ==========================================================================
   TraidMerce – Hauptstyles
   ========================================================================== */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

.section {
  padding: 110px 0;
  position: relative;
}

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

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-600);
  background: var(--pastel-lavender);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

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

.section-header h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 14px;
  background: linear-gradient(120deg, var(--purple-900), var(--purple-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-header p { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(120deg, var(--purple-600), var(--purple-500));
  background-size: 200% 200%;
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover {
  background-position: 100% 0;
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
}

.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: background var(--transition-base), box-shadow var(--transition-base), padding var(--transition-base);
}

.site-header.scrolled {
  background: rgba(250, 248, 255, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(42, 24, 85, 0.08);
  padding: 10px 0;
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; }

.logo {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition-base);
}
.site-header.scrolled .logo { color: var(--purple-900); }

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pastel-peach);
  box-shadow: 0 0 0 5px rgba(255, 227, 236, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-base);
}
.site-header.scrolled .nav-links a { color: var(--text-main); }

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width var(--transition-base);
}
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition-base);
}
.site-header.scrolled .nav-toggle span { background: var(--purple-900); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  background-size: 300% 300%;
  animation: gradientShift 16s ease infinite;
  overflow: hidden;
  padding-top: 100px;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.55;
}
.hero-blob.b1 {
  width: 320px; height: 320px;
  background: var(--pastel-pink);
  top: -60px; right: 8%;
  animation: floatSlow 9s ease-in-out infinite;
}
.hero-blob.b2 {
  width: 220px; height: 220px;
  background: var(--pastel-blue);
  bottom: -40px; left: 6%;
  animation: floatSlower 11s ease-in-out infinite;
}
.hero-blob.b3 {
  width: 160px; height: 160px;
  background: var(--pastel-mint);
  top: -20px; left: 14%;
  animation: floatSlow 13s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 26px;
  backdrop-filter: blur(6px);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 22px;
}

.hero h1 span {
  background: linear-gradient(120deg, var(--pastel-peach), var(--pastel-pink), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 38px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-stats div { text-align: center; }
.hero-stats strong { display: block; font-size: 1.8rem; font-weight: 700; }
.hero-stats span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); }

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

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 38px 30px;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 0;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-strong);
  border-color: transparent;
}

.service-card > * { position: relative; z-index: 1; }

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pastel-lavender);
  font-size: 1.5rem;
  margin-bottom: 22px;
  transition: transform var(--transition-base);
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(-4deg); }

.service-card h3 { font-size: 1.25rem; margin-bottom: 12px; font-weight: 600; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 18px; }

.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.service-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--purple-700);
  background: var(--pastel-lavender);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------- Prozess ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: 30px 24px 24px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.process-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }

.process-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--purple-600), var(--purple-400));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 18px;
}

.process-step h3 { font-size: 1.05rem; margin-bottom: 8px; font-weight: 600; }
.process-step p { color: var(--text-muted); font-size: 0.9rem; }

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

.about-visual {
  position: relative;
  aspect-ratio: 4/3.4;
  border-radius: var(--radius-lg);
  background: var(--gradient-hero);
  background-size: 250% 250%;
  animation: gradientShift 14s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-strong);
}

.about-visual-badge {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 22px 30px;
  border-radius: var(--radius-md);
  text-align: center;
  animation: floatSlow 7s ease-in-out infinite;
}
.about-visual-badge strong { display: block; font-size: 2rem; }
.about-visual-badge span { font-size: 0.85rem; opacity: 0.85; }

.about-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 20px;
  font-weight: 700;
}

.about-text p { color: var(--text-muted); margin-bottom: 18px; }

.about-list { display: grid; gap: 14px; margin-top: 26px; }
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
}
.about-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--pastel-mint);
  color: var(--purple-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---------- Kontakt ---------- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.contact-info {
  background: var(--gradient-hero);
  background-size: 250% 250%;
  animation: gradientShift 16s ease infinite;
  color: #fff;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info h3 { font-size: 1.5rem; margin-bottom: 14px; font-weight: 700; }
.contact-info p { color: rgba(255, 255, 255, 0.85); margin-bottom: 30px; font-size: 0.95rem; }

.contact-detail { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.contact-detail .icon-bubble {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.social-row { display: flex; gap: 12px; margin-top: 30px; }
.social-row a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition-base), transform var(--transition-base);
}
.social-row a:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-4px); }

.contact-form { padding: 50px 40px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--text-main); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-soft);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg-body);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.field textarea { resize: vertical; min-height: 120px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--purple-500);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.14);
}

.hp-field { position: absolute; left: -9999px; top: -9999px; }

.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  display: none;
}
.form-status.show { display: block; animation: popIn 0.4s ease; }
.form-status.success { background: var(--pastel-mint); color: #14532d; }
.form-status.error { background: var(--pastel-peach); color: #9f1239; }

/* ---------- Erfolgs-Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(28, 16, 51, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.modal-overlay.show {
  display: flex;
  opacity: 1;
}

.modal-box {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  padding: 44px 38px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  transform: scale(0.9);
  opacity: 0;
  animation: popIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--purple-600), var(--purple-400));
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  animation: pulseGlow 2s ease-out 1;
}

.modal-box h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 10px; }
.modal-box p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 26px; }

/* ---------- Rechtstexte (Impressum/Datenschutz) ---------- */
.legal-hero {
  background: var(--gradient-hero);
  background-size: 250% 250%;
  animation: gradientShift 16s ease infinite;
  color: #fff;
  padding: 150px 0 60px;
}
.legal-hero h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 700; }

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 70px 24px 100px;
}
.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 40px 0 14px;
  color: var(--purple-800);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--text-muted); margin-bottom: 12px; }
.legal-content ul { margin: 0 0 12px 20px; color: var(--text-muted); }
.legal-content li { margin-bottom: 6px; list-style: disc; }
.legal-content strong { color: var(--text-main); }
.legal-content a { color: var(--purple-600); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--purple-950);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; font-weight: 600; }
.footer-grid li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-grid a { transition: color var(--transition-base); }
.footer-grid a:hover { color: var(--pastel-pink); }

.footer-brand p { font-size: 0.9rem; margin: 14px 0 20px; max-width: 280px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid,
  .contact-wrapper { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    background: var(--bg-surface);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-strong);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { color: var(--text-main) !important; font-size: 1.1rem; }
  .nav-cta .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
}
