@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600&display=swap');

:root {
  --blue: #003087;
  --red: #DA291C;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.hero-bg {
  background: linear-gradient(135deg, #003087 0%, #002266 55%, #1a3a6b 100%);
}

.handwerk-de-advantage {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 45%, #ffffff 100%);
  border: 2px solid #10b981;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
  border-radius: 1.25rem;
  padding: 1.5rem 1.75rem;
}

.nav-link {
  position: relative;
  transition: color 0.15s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #DA291C;
  transition: width 0.2s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta-soft {
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  transition: border-color 0.15s, background 0.15s;
}

.nav-cta-soft:hover {
  border-color: #003087;
  background: #f0f4ff;
}

/* Buttons — Form wie Startseite (thirdroom-solutions.html) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #DA291C;
  color: #fff;
  font-weight: 600;
  border-radius: 1rem;
  border: none;
  padding: 1rem 2rem;
  min-height: 3.25rem;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: 0 10px 25px -5px rgba(218, 41, 28, 0.35);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  background: #B81A14;
  color: #fff;
}

.btn-primary:active {
  transform: scale(0.985);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #fff;
  color: #003087;
  font-weight: 600;
  border: 2px solid #e5e7eb;
  border-radius: 1rem;
  padding: 0.9rem 1.75rem;
  min-height: 3.15rem;
  line-height: 1.25;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-secondary:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #003087;
}

/* Sekundär-CTA auf dunklem Hero — wie Startseiten-hero-secondary-cta */
.btn-secondary-on-dark,
.hero-secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  color: #fff;
  font-weight: 600;
  border-radius: 1.5rem;
  padding: 1rem 2rem;
  min-height: 3.25rem;
  line-height: 1.25;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-secondary-on-dark:hover,
.hero-secondary-cta:hover {
  background: #fff;
  color: #003087;
  border-color: #fff;
}

.btn-secondary-on-dark:active,
.hero-secondary-cta:active {
  transform: scale(0.985);
}

/* CTA-Zeile im Hero */
.hero-cta-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.25rem;
}

@media (min-width: 640px) {
  .hero-cta-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-content.open {
  max-height: 240px;
}

/* WhatsApp widget */
.trs-wa-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
}

.trs-wa-fab {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 9999px;
  background: #25D366;
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease;
}

.trs-wa-fab:hover {
  transform: scale(1.06);
}

.trs-wa-fab.is-open {
  background: #003087;
}

.trs-wa-panel {
  position: absolute;
  bottom: 4.75rem;
  right: 0;
  width: min(22rem, calc(100vw - 2rem));
  background: white;
  border-radius: 1.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.trs-wa-panel.hidden {
  display: none;
}

.trs-wa-header {
  background: linear-gradient(135deg, #003087, #002266);
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trs-wa-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.trs-wa-online {
  width: 0.5rem;
  height: 0.5rem;
  background: #25D366;
  border-radius: 9999px;
  display: inline-block;
  margin-right: 0.35rem;
}

.trs-wa-close {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: white;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  cursor: pointer;
  font-size: 1.25rem;
}

.trs-wa-body {
  padding: 1rem;
  max-height: 12rem;
  overflow-y: auto;
  background: #f0f2f5;
}

.trs-wa-bubble {
  max-width: 90%;
  padding: 0.65rem 0.85rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  line-height: 1.45;
}

.trs-wa-incoming {
  background: white;
  color: #1f2937;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.trs-wa-input {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid #f3f4f6;
}

.trs-wa-input input {
  flex: 1;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  outline: none;
}

.trs-wa-input button {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: none;
  background: #25D366;
  color: white;
  cursor: pointer;
}