/*
Theme Name: RubinNova
Theme URI: https://rubinnova.de
Author: RubinNova
Author URI: https://rubinnova.de
Description: Offizielles Onepager-Theme für RubinNova – KI-gestützte Digitalisierung für Handwerksbetriebe.
Version: 3.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rubinnova
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Plus Jakarta Sans', 'Inter', Arial, Helvetica, sans-serif;
  color: var(--rubin-text-light);
  background: #FFFFFF;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--rubin-rot);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--rubin-hover);
}

/* ===== CSS VARIABLES – BRAND GUIDE ===== */
:root {
  /* Farbwelt */
  --rubin-rot: #E10613;           /* Primary Red */
  --rubin-hover: #C40012;         /* Hover State */
  --rubin-secondary: #7A000C;     /* Secondary Red */
  --rubin-bg: #0A0A0A;            /* Background Dark */
  --rubin-text-light: #F5F5F5;    /* Text Light */
  --rubin-muted: #888888;         /* Neutral Gray */
  --rubin-weiss: #FFFFFF;
  --rubin-border: #222222;
  --rubin-card-bg: #111111;
  --max-width: 1140px;
  --section-padding: 100px 0;
}

/* ===== UTILITY ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Alt sections: slightly lighter dark */
.section--alt {
  background: #0F0F0F;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rubin-rot);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Sora', 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--rubin-text-light);
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--rubin-muted);
  max-width: 640px;
  line-height: 1.6;
}

.text-center {
  text-align: center;
}

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ===== HEADER / NAVIGATION ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--rubin-bg);
  border-bottom: 1px solid var(--rubin-border);
  transition: box-shadow 0.3s ease;
  overflow: visible;
}

.site-header.scrolled {
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 160px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.site-logo {
  position: relative;
  z-index: 1001;
}

.site-logo img {
  height: 320px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(245, 245, 245, 0.6);
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rubin-rot);
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a:hover {
  color: var(--rubin-text-light);
}

.nav-cta {
  display: inline-block;
  padding: 10px 24px;
  background: var(--rubin-rot);
  color: var(--rubin-weiss) !important;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--rubin-hover);
  color: var(--rubin-weiss) !important;
  transform: translateY(-1px);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--rubin-text-light);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* ===== HERO ===== */
.hero {
  padding: 260px 0 140px;
  background: var(--rubin-bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -250px;
  right: -250px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(225, 6, 19, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(225, 6, 19, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(225, 6, 19, 0.1);
  border: 1px solid rgba(225, 6, 19, 0.25);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--rubin-rot);
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Sora', 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--rubin-text-light);
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-title span {
  color: var(--rubin-rot);
}

.hero-text {
  font-size: 1.2rem;
  color: var(--rubin-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS – UI Richtlinien ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

/* Primary: #E10613 mit weißem Text */
.btn-primary {
  background: var(--rubin-rot);
  color: var(--rubin-weiss);
  box-shadow: 0 4px 20px rgba(225, 6, 19, 0.25);
}

.btn-primary:hover {
  background: var(--rubin-hover);
  color: var(--rubin-weiss);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(225, 6, 19, 0.35);
}

/* Secondary: Outline Rot */
.btn-secondary {
  background: transparent;
  color: var(--rubin-rot);
  border: 2px solid var(--rubin-rot);
}

.btn-secondary:hover {
  background: rgba(225, 6, 19, 0.08);
  color: var(--rubin-rot);
  transform: translateY(-1px);
}

/* ===== FEATURES / LEISTUNGEN ===== */
.section--features {
  background: var(--rubin-bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.feature-card {
  background: var(--rubin-card-bg);
  border: 1px solid var(--rubin-border);
  border-radius: 12px;
  padding: 40px 32px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(225, 6, 19, 0.3);
  box-shadow: 0 8px 30px rgba(225, 6, 19, 0.06);
  transform: translateY(-4px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: rgba(225, 6, 19, 0.08);
  border: 1px solid rgba(225, 6, 19, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.feature-card h3 {
  font-family: 'Sora', 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--rubin-text-light);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--rubin-muted);
  line-height: 1.6;
}

/* ===== HOW IT WORKS ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 60px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 2px;
  background: var(--rubin-border);
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 64px;
  height: 64px;
  background: var(--rubin-rot);
  color: var(--rubin-weiss);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 24px rgba(225, 6, 19, 0.25);
}

.step h3 {
  font-family: 'Sora', 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rubin-text-light);
  margin-bottom: 10px;
}

.step p {
  font-size: 0.95rem;
  color: var(--rubin-muted);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

/* ===== TEAM / ÜBER UNS ===== */
.team-intro {
  max-width: 640px;
  font-size: 1.1rem;
  color: var(--rubin-muted);
  line-height: 1.7;
  margin-bottom: 60px;
}

.text-center .team-intro {
  margin-left: auto;
  margin-right: auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.team-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: 12px;
  background: var(--rubin-card-bg);
  border: 1px solid var(--rubin-border);
  transition: all 0.3s ease;
}

.team-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(225, 6, 19, 0.2);
}

.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rubin-rot), var(--rubin-secondary));
  color: var(--rubin-weiss);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.team-card h3 {
  font-family: 'Sora', 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rubin-text-light);
  margin-bottom: 4px;
}

.team-card .role {
  font-size: 0.85rem;
  color: var(--rubin-rot);
  font-weight: 600;
  margin-bottom: 12px;
}

.team-card p {
  font-size: 0.9rem;
  color: var(--rubin-muted);
  line-height: 1.5;
}

.team-email {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--rubin-rot);
  transition: color 0.2s ease;
}

.team-email:hover {
  color: var(--rubin-hover);
}

/* ===== CONTACT / CTA ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 60px;
  align-items: start;
}

.contact-info h3 {
  font-family: 'Sora', 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--rubin-text-light);
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--rubin-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: rgba(225, 6, 19, 0.08);
  border: 1px solid rgba(225, 6, 19, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail-text {
  font-size: 0.95rem;
  color: var(--rubin-text-light);
}

.contact-detail-text span {
  display: block;
  font-size: 0.8rem;
  color: var(--rubin-muted);
  margin-bottom: 2px;
}

.contact-form {
  background: var(--rubin-card-bg);
  border: 1px solid var(--rubin-border);
  border-radius: 12px;
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rubin-text-light);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--rubin-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--rubin-text-light);
  transition: border-color 0.2s ease;
  background: #0A0A0A;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--rubin-rot);
  background: #0F0F0F;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #555555;
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--rubin-rot);
  color: var(--rubin-weiss);
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.form-submit:hover {
  background: var(--rubin-hover);
}

/* ===== CTA BANNER ===== */
.cta-banner {
  padding: 80px 0;
  background: var(--rubin-bg);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--rubin-border);
  border-bottom: 1px solid var(--rubin-border);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(225, 6, 19, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-banner .container {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-family: 'Sora', 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--rubin-text-light);
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 1.1rem;
  color: var(--rubin-muted);
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--rubin-bg);
  border-top: 1px solid var(--rubin-rot);
  padding: 60px 0 40px;
  text-align: center;
}

.footer-logo img {
  height: 48px;
  margin-bottom: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.footer-col h4 {
  font-family: 'Sora', 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rubin-rot);
  margin-bottom: 14px;
}

.footer-col p {
  font-size: 0.85rem;
  color: rgba(245, 245, 245, 0.5);
  line-height: 1.7;
  margin: 0;
}

.footer-email {
  display: block;
  font-size: 0.85rem;
  color: rgba(245, 245, 245, 0.5);
  line-height: 2;
  transition: color 0.2s ease;
}

.footer-email:hover {
  color: var(--rubin-rot);
}

.footer-divider {
  width: 60px;
  height: 1px;
  background: var(--rubin-border);
  margin: 36px auto;
}

.footer-copyright {
  font-size: 0.8rem;
  color: rgba(245, 245, 245, 0.25);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .features-grid,
  .steps,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps::before {
    display: none;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 1.875rem;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 160px;
    left: 0;
    width: 100%;
    background: var(--rubin-bg);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--rubin-rot);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .main-nav.active {
    display: flex;
  }

  .hero {
    padding: 220px 0 100px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-text {
    font-size: 1.05rem;
  }

  .features-grid,
  .steps,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-logo img {
    height: 200px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
