/*
Theme Name:   RhekTec Divi Child
Theme URI:    https://rhektec.at
Description:  Divi Child Theme für RhekTec – IT-Lösungen aus dem Binzgau. Modernes schwarz-weißes Design mit sauberen Animationen.
Author:       RhekTec – Julian Rheker
Author URI:   https://rheктec.de
Template:     Divi
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  rhektec.at
Tags:         it, tech, business, black-white, modern, clean
*/

/* ==========================================================================
   IMPORTS & FONTS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ==========================================================================
   CSS CUSTOM PROPERTIES
   ========================================================================== */
:root {
  /* Colors */
  --rt-black:       #0a0a0a;
  --rt-dark:        #141414;
  --rt-charcoal:    #1e1e1e;
  --rt-gray-800:    #2d2d2d;
  --rt-gray-600:    #4a4a4a;
  --rt-gray-400:    #8a8a8a;
  --rt-gray-200:    #d4d4d4;
  --rt-gray-100:    #f0f0f0;
  --rt-white:       #ffffff;
  --rt-off-white:   #fafafa;

  /* Accent */
  --rt-accent:      #0a0a0a;
  --rt-accent-light:#1e1e1e;
  --rt-highlight:   #e8e8e8;

  /* Typography */
  --rt-font-display: 'Outfit', sans-serif;
  --rt-font-body:    'DM Sans', sans-serif;

  /* Spacing */
  --rt-section-pad:  80px;
  --rt-max-width:    1280px;

  /* Transitions */
  --rt-ease:         cubic-bezier(0.16, 1, 0.3, 1);
  --rt-duration:     0.5s;

  /* Borders */
  --rt-border:       1px solid #e8e8e8;
  --rt-border-dark:  1px solid #2d2d2d;
  --rt-radius:       4px;
  --rt-radius-lg:    8px;
}

/* ==========================================================================
   RESET & BASE — Override Divi defaults
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body,
body.et_pb_pagebuilder_layout,
#page-container {
  font-family: var(--rt-font-body) !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
  color: var(--rt-charcoal) !important;
  background-color: var(--rt-white) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   TYPOGRAPHY — Override Divi
   ========================================================================== */
h1, h2, h3, h4, h5, h6,
.et_pb_module h1, .et_pb_module h2,
.et_pb_module h3, .et_pb_module h4 {
  font-family: var(--rt-font-display) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
  color: var(--rt-black) !important;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem) !important; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem) !important; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem) !important; }
h4 { font-size: 1.2rem !important; }

p,
.et_pb_module p,
.et_pb_text_inner p {
  font-family: var(--rt-font-body) !important;
  font-size: 1rem !important;
  line-height: 1.75 !important;
  color: var(--rt-gray-600) !important;
}

a {
  color: var(--rt-black);
  text-decoration: none;
  transition: color var(--rt-duration) var(--rt-ease),
              opacity var(--rt-duration) var(--rt-ease);
}

a:hover { color: var(--rt-gray-600); }

/* ==========================================================================
   DIVI GLOBAL OVERRIDES
   ========================================================================== */

/* Page width */
.et_pb_row,
.et_pb_section .et_pb_row {
  max-width: var(--rt-max-width) !important;
  width: 90% !important;
  margin: 0 auto !important;
}

/* Remove Divi default section padding */
.et_pb_section {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Divi module margins */
.et_pb_module {
  margin-bottom: 0 !important;
}

/* ==========================================================================
   NAVIGATION — HEADER
   ========================================================================== */
#main-header,
#main-header.et-fixed-header {
  background-color: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: var(--rt-border) !important;
  box-shadow: none !important;
  transition: background 0.3s ease, border 0.3s ease !important;
  padding: 0 !important;
}

#main-header.et-fixed-header.et-fixed-header--scrolled {
  background-color: rgba(255, 255, 255, 0.99) !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08) !important;
}

/* Logo */
#logo,
#main-header #logo {
  max-height: 50px !important;
  width: auto !important;
}

.logo-text-fallback {
  font-family: var(--rt-font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--rt-black);
  letter-spacing: -0.03em;
}

/* Nav links */
#top-menu li > a,
#top-menu li > a:hover,
.et_pb_menu .nav li a {
  font-family: var(--rt-font-body) !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  color: var(--rt-gray-600) !important;
  padding: 8px 0 !important;
  transition: color 0.2s ease !important;
}

#top-menu li > a:hover,
#top-menu li.current-menu-item > a,
#top-menu li.current_page_item > a {
  color: var(--rt-black) !important;
}

/* Dropdown */
#top-menu .sub-menu {
  background: var(--rt-white) !important;
  border: var(--rt-border) !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08) !important;
  border-radius: var(--rt-radius-lg) !important;
  padding: 8px !important;
}

#top-menu .sub-menu li a {
  border-radius: var(--rt-radius) !important;
  padding: 8px 16px !important;
  color: var(--rt-gray-600) !important;
  font-size: 0.85rem !important;
}

#top-menu .sub-menu li a:hover {
  background: var(--rt-gray-100) !important;
  color: var(--rt-black) !important;
}

/* CTA in nav */
.rt-nav-cta > a {
  background: var(--rt-black) !important;
  color: var(--rt-white) !important;
  padding: 10px 22px !important;
  border-radius: var(--rt-radius) !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: background 0.2s ease, transform 0.2s ease !important;
}

.rt-nav-cta > a:hover {
  background: var(--rt-gray-800) !important;
  color: var(--rt-white) !important;
  transform: translateY(-1px) !important;
}

/* Mobile menu */
#et_mobile_nav_menu .mobile_menu_bar::before,
.et_mobile_nav_menu .mobile_menu_bar::before {
  color: var(--rt-black) !important;
}

/* ==========================================================================
   BUTTONS — Override Divi
   ========================================================================== */
.et_pb_button,
a.et_pb_button,
.et_pb_button_module a {
  font-family: var(--rt-font-body) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em !important;
  padding: 14px 32px !important;
  border-radius: var(--rt-radius) !important;
  border: 2px solid var(--rt-black) !important;
  background: var(--rt-black) !important;
  color: var(--rt-white) !important;
  transition: all 0.25s ease !important;
  text-transform: none !important;
}

.et_pb_button::after { display: none !important; }

.et_pb_button:hover,
a.et_pb_button:hover {
  background: var(--rt-white) !important;
  color: var(--rt-black) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}

/* Ghost / outline button */
.et_pb_button.rt-btn-ghost {
  background: transparent !important;
  color: var(--rt-black) !important;
}

.et_pb_button.rt-btn-ghost:hover {
  background: var(--rt-black) !important;
  color: var(--rt-white) !important;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

/* Standard section padding */
.rt-section {
  padding: var(--rt-section-pad) 0;
}

.rt-section-sm { padding: 60px 0; }
.rt-section-lg { padding: 120px 0; }
.rt-section-xl { padding: 160px 0; }

/* Dark section */
.rt-section-dark {
  background: var(--rt-black) !important;
}

.rt-section-dark h1,
.rt-section-dark h2,
.rt-section-dark h3,
.rt-section-dark h4,
.rt-section-dark .et_pb_module h1,
.rt-section-dark .et_pb_module h2,
.rt-section-dark .et_pb_module h3 {
  color: var(--rt-white) !important;
}

.rt-section-dark p,
.rt-section-dark .et_pb_module p {
  color: rgba(255,255,255,0.6) !important;
}

/* Gray section */
.rt-section-gray {
  background: var(--rt-off-white) !important;
}

/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */
.rt-hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.rt-hero-inner {
  max-width: var(--rt-max-width);
  width: 90%;
  margin: 0 auto;
}

.rt-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--rt-font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rt-gray-400);
  margin-bottom: 24px;
}

.rt-hero-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--rt-gray-400);
}

.rt-hero-title {
  font-family: var(--rt-font-display) !important;
  font-size: clamp(3rem, 7vw, 6.5rem) !important;
  font-weight: 900 !important;
  line-height: 0.95 !important;
  letter-spacing: -0.04em !important;
  color: var(--rt-black) !important;
  margin-bottom: 32px !important;
}

.rt-hero-title .rt-outline {
  -webkit-text-stroke: 2px var(--rt-black);
  color: transparent;
}

.rt-hero-subtitle {
  font-size: 1.15rem !important;
  color: var(--rt-gray-600) !important;
  max-width: 560px;
  line-height: 1.8 !important;
  margin-bottom: 48px !important;
}

/* Hero background decoration */
.rt-hero-bg-dots {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  height: 80%;
  background-image: radial-gradient(circle, #d4d4d4 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  opacity: 0.5;
  pointer-events: none;
}

.rt-hero-bg-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rt-gray-200);
}

/* Page hero (subpages) */
.rt-page-hero {
  padding: 100px 0 80px;
  border-bottom: var(--rt-border);
  background: var(--rt-white);
}

/* ==========================================================================
   CARDS
   ========================================================================== */
.rt-card {
  background: var(--rt-white);
  border: var(--rt-border);
  border-radius: var(--rt-radius-lg);
  padding: 40px 36px;
  transition: transform var(--rt-duration) var(--rt-ease),
              box-shadow var(--rt-duration) var(--rt-ease),
              border-color var(--rt-duration) var(--rt-ease);
  position: relative;
  overflow: hidden;
}

.rt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.09);
  border-color: #d0d0d0;
}

.rt-card-dark {
  background: var(--rt-charcoal);
  border-color: var(--rt-gray-800);
}

.rt-card-dark:hover {
  border-color: var(--rt-gray-600);
}

/* Service card */
.rt-service-card {
  padding: 36px 32px;
  border: var(--rt-border);
  background: var(--rt-white);
  transition: all 0.35s var(--rt-ease);
  position: relative;
}

.rt-service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--rt-black);
  transition: height 0.35s var(--rt-ease);
}

.rt-service-card:hover::before { height: 100%; }

.rt-service-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  transform: translateX(4px);
}

.rt-service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rt-gray-100);
  border-radius: var(--rt-radius);
  margin-bottom: 20px;
  font-size: 1.4rem;
  transition: background 0.3s ease;
}

.rt-service-card:hover .rt-service-icon {
  background: var(--rt-black);
  color: var(--rt-white);
}

/* ==========================================================================
   GRID LAYOUTS
   ========================================================================== */
.rt-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

.rt-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .rt-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .rt-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .rt-grid-2,
  .rt-grid-3,
  .rt-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SECTION LABELS / TAGS
   ========================================================================== */
.rt-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--rt-font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rt-gray-400);
  margin-bottom: 20px;
}

.rt-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.rt-label-dark { color: rgba(255,255,255,0.4); }

/* ==========================================================================
   DIVIDERS & LINES
   ========================================================================== */
.rt-divider {
  height: 1px;
  background: var(--rt-gray-200);
  margin: 0;
}

.rt-divider-dark {
  background: var(--rt-gray-800);
}

/* Number list */
.rt-numbered-item {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  border-bottom: var(--rt-border);
}

.rt-numbered-item:first-child { padding-top: 0; border-top: var(--rt-border); }

.rt-numbered-item .num {
  font-family: var(--rt-font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--rt-gray-300);
  padding-top: 3px;
  flex-shrink: 0;
  min-width: 32px;
}

/* ==========================================================================
   STATS / NUMBERS
   ========================================================================== */
.rt-stat {
  border-left: 2px solid var(--rt-black);
  padding-left: 24px;
}

.rt-stat-num {
  font-family: var(--rt-font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--rt-black);
  line-height: 1;
  letter-spacing: -0.04em;
  display: block;
}

.rt-stat-label {
  font-size: 0.85rem;
  color: var(--rt-gray-400);
  margin-top: 6px;
  display: block;
}

/* ==========================================================================
   TESTIMONIALS / QUOTES
   ========================================================================== */
.rt-quote {
  border: var(--rt-border);
  border-radius: var(--rt-radius-lg);
  padding: 40px;
  position: relative;
}

.rt-quote::before {
  content: '"';
  font-family: var(--rt-font-display);
  font-size: 6rem;
  font-weight: 900;
  color: var(--rt-gray-200);
  position: absolute;
  top: 16px;
  left: 32px;
  line-height: 1;
}

.rt-quote-text {
  font-size: 1.1rem !important;
  color: var(--rt-charcoal) !important;
  line-height: 1.7 !important;
  margin-bottom: 24px !important;
  padding-top: 40px;
}

.rt-quote-author {
  font-weight: 600 !important;
  color: var(--rt-black) !important;
  font-size: 0.9rem !important;
}

.rt-quote-role {
  color: var(--rt-gray-400) !important;
  font-size: 0.8rem !important;
}

/* ==========================================================================
   CONTACT FORM — Override Divi / CF7
   ========================================================================== */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea,
.wpcf7 select,
.et_pb_contact_field input,
.et_pb_contact_field textarea {
  width: 100% !important;
  background: var(--rt-white) !important;
  border: var(--rt-border) !important;
  border-radius: var(--rt-radius) !important;
  padding: 14px 18px !important;
  font-family: var(--rt-font-body) !important;
  font-size: 0.95rem !important;
  color: var(--rt-black) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  outline: none !important;
  box-shadow: none !important;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.et_pb_contact_field input:focus,
.et_pb_contact_field textarea:focus {
  border-color: var(--rt-black) !important;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06) !important;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: var(--rt-gray-400) !important;
}

.wpcf7 textarea { min-height: 150px; resize: vertical; }

/* CF7 Submit button */
.wpcf7 input[type="submit"],
.et_pb_contact_submit {
  background: var(--rt-black) !important;
  color: var(--rt-white) !important;
  border: 2px solid var(--rt-black) !important;
  border-radius: var(--rt-radius) !important;
  padding: 14px 36px !important;
  font-family: var(--rt-font-body) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
}

.wpcf7 input[type="submit"]:hover,
.et_pb_contact_submit:hover {
  background: transparent !important;
  color: var(--rt-black) !important;
  transform: translateY(-2px) !important;
}

/* CF7 messages */
.wpcf7-not-valid-tip { color: #c0392b !important; font-size: 0.8rem !important; }
.wpcf7-mail-sent-ok { color: #27ae60 !important; }

/* ==========================================================================
   PARTNER LOGOS SECTION
   ========================================================================== */
.rt-partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.rt-partner-logo {
  border: var(--rt-border);
  border-radius: var(--rt-radius);
  padding: 18px 32px;
  font-family: var(--rt-font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--rt-gray-400);
  transition: all 0.25s ease;
  letter-spacing: -0.01em;
}

.rt-partner-logo:hover {
  color: var(--rt-black);
  border-color: var(--rt-black);
  background: var(--rt-black);
  color: var(--rt-white);
}

/* ==========================================================================
   PRICING TABLE
   ========================================================================== */
.rt-pricing-card {
  border: var(--rt-border);
  border-radius: var(--rt-radius-lg);
  padding: 40px 36px;
  transition: all 0.35s var(--rt-ease);
}

.rt-pricing-card.rt-featured {
  background: var(--rt-black);
  border-color: var(--rt-black);
}

.rt-pricing-card.rt-featured h3,
.rt-pricing-card.rt-featured p,
.rt-pricing-card.rt-featured li {
  color: var(--rt-white) !important;
}

.rt-price {
  font-family: var(--rt-font-display);
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--rt-black);
  line-height: 1;
}

.rt-pricing-card.rt-featured .rt-price { color: var(--rt-white); }

.rt-price-unit {
  font-size: 1rem;
  font-weight: 400;
  color: var(--rt-gray-400);
  vertical-align: super;
  font-size: 0.9rem;
}

.rt-pricing-features {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.rt-pricing-features li {
  padding: 10px 0;
  border-bottom: var(--rt-border);
  font-size: 0.9rem;
  color: var(--rt-gray-600);
  display: flex;
  align-items: center;
  gap: 10px;
}

.rt-pricing-features li::before {
  content: '✓';
  font-weight: 700;
  color: var(--rt-black);
  flex-shrink: 0;
}

.rt-pricing-card.rt-featured .rt-pricing-features li {
  border-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}

.rt-pricing-card.rt-featured .rt-pricing-features li::before {
  color: var(--rt-white);
}

/* ==========================================================================
   ACCORDION / FAQ
   ========================================================================== */
.rt-faq-item {
  border-bottom: var(--rt-border);
}

.rt-faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--rt-font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--rt-black);
  text-align: left;
  gap: 16px;
}

.rt-faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.rt-faq-item.rt-open .rt-faq-question::after {
  transform: rotate(45deg);
}

.rt-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--rt-ease), padding 0.3s ease;
  font-size: 0.95rem;
  color: var(--rt-gray-600);
  line-height: 1.75;
}

.rt-faq-item.rt-open .rt-faq-answer {
  max-height: 400px;
  padding-bottom: 20px;
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */
.rt-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--rt-gray-400);
  margin-bottom: 24px;
}

.rt-breadcrumb a { color: var(--rt-gray-400); }
.rt-breadcrumb a:hover { color: var(--rt-black); }
.rt-breadcrumb span { color: var(--rt-black); font-weight: 500; }
.rt-breadcrumb .sep { color: var(--rt-gray-300); }

/* ==========================================================================
   SCROLL ANIMATIONS
   ========================================================================== */
.rt-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--rt-ease), transform 0.7s var(--rt-ease);
}

.rt-animate.rt-visible {
  opacity: 1;
  transform: translateY(0);
}

.rt-animate-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s var(--rt-ease), transform 0.7s var(--rt-ease);
}

.rt-animate-left.rt-visible {
  opacity: 1;
  transform: translateX(0);
}

.rt-animate-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s var(--rt-ease), transform 0.6s var(--rt-ease);
}

.rt-animate-scale.rt-visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delay utilities */
.rt-delay-1 { transition-delay: 0.1s; }
.rt-delay-2 { transition-delay: 0.2s; }
.rt-delay-3 { transition-delay: 0.3s; }
.rt-delay-4 { transition-delay: 0.4s; }
.rt-delay-5 { transition-delay: 0.5s; }

/* ==========================================================================
   TICKER / MARQUEE
   ========================================================================== */
.rt-ticker {
  background: var(--rt-black);
  color: var(--rt-white);
  padding: 14px 0;
  overflow: hidden;
  border-top: 1px solid var(--rt-gray-800);
  border-bottom: 1px solid var(--rt-gray-800);
}

.rt-ticker-inner {
  display: inline-flex;
  gap: 64px;
  white-space: nowrap;
  animation: rtTicker 25s linear infinite;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.rt-ticker-inner span { color: rgba(255,255,255,0.25); }

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

/* ==========================================================================
   PROCESS STEPS
   ========================================================================== */
.rt-process-step {
  position: relative;
  padding-left: 60px;
}

.rt-process-step::before {
  content: attr(data-step);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--rt-font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--rt-gray-300);
  background: var(--rt-gray-100);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
#main-footer,
#footer-widgets {
  background: var(--rt-black) !important;
  color: var(--rt-white) !important;
  border-top: none !important;
}

#footer-widgets {
  padding: 80px 0 40px !important;
}

.footer-widget h4,
.footer-widget .et_pb_widget h4,
.footer-widget .widget-title {
  font-family: var(--rt-font-display) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: var(--rt-white) !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  margin-bottom: 20px !important;
}

.footer-widget p,
.footer-widget li,
.footer-widget a {
  font-size: 0.875rem !important;
  color: rgba(255,255,255,0.45) !important;
  line-height: 2 !important;
}

.footer-widget a:hover {
  color: var(--rt-white) !important;
}

.footer-widget ul { list-style: none !important; padding: 0 !important; }

/* Bottom bar */
#footer-bottom,
.et_pb_footer_bottom_bar {
  background: var(--rt-black) !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
  padding: 20px 0 !important;
}

.et_pb_footer_bottom_bar p,
#footer-bottom p {
  font-size: 0.8rem !important;
  color: rgba(255,255,255,0.3) !important;
}

/* Footer logo */
.footer-logo-text {
  font-family: var(--rt-font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--rt-white);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  display: block;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.rt-container {
  max-width: var(--rt-max-width);
  width: 90%;
  margin: 0 auto;
}

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

.rt-mt-0  { margin-top: 0 !important; }
.rt-mb-0  { margin-bottom: 0 !important; }
.rt-mb-8  { margin-bottom: 8px; }
.rt-mb-16 { margin-bottom: 16px; }
.rt-mb-24 { margin-bottom: 24px; }
.rt-mb-32 { margin-bottom: 32px; }
.rt-mb-48 { margin-bottom: 48px; }
.rt-mb-64 { margin-bottom: 64px; }

.rt-flex { display: flex; }
.rt-flex-center { align-items: center; justify-content: center; }
.rt-gap-16 { gap: 16px; }
.rt-gap-24 { gap: 24px; }
.rt-gap-32 { gap: 32px; }

.rt-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--rt-gray-100);
  border: var(--rt-border);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rt-gray-600);
}

.rt-badge-dark {
  background: var(--rt-charcoal);
  border-color: var(--rt-gray-800);
  color: rgba(255,255,255,0.5);
}

/* ==========================================================================
   MOBILE RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  :root {
    --rt-section-pad: 60px;
  }

  #main-header { padding: 0 !important; }

  .rt-hero {
    min-height: 80vh;
    padding: 100px 0 60px;
  }

  .rt-hero-bg-dots { display: none; }

  .rt-stat-num { font-size: 2.2rem; }
}

@media (max-width: 768px) {
  :root {
    --rt-section-pad: 50px;
  }

  .rt-grid-2 { grid-template-columns: 1fr; }

  .rt-card,
  .rt-service-card { padding: 28px 24px; }

  .rt-pricing-card { padding: 32px 24px; }
}

/* ==========================================================================
   DIVI BUILDER OVERRIDES (important overrides)
   ========================================================================== */

/* Fix Divi removing border-box */
.et_pb_module * { box-sizing: border-box !important; }

/* Remove Divi's forced letter-spacing on headings */
.et_pb_module h1,
.et_pb_module h2,
.et_pb_module h3 {
  letter-spacing: -0.02em !important;
}

/* Divi section full-width */
.et_pb_section.et_section_fullwidth > .et_pb_row {
  max-width: 100% !important;
  width: 100% !important;
}

/* Divi column vertical centering */
.et_pb_column.rt-v-center {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

/* ==========================================================================
   MOBILE OPTIMIERUNGEN (überarbeitet)
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .rt-hero-inner { max-width: 100%; }
  #ueber, [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns:1fr 1.1fr"],
  [style*="grid-template-columns:1fr 1.6fr"],
  [style*="grid-template-columns:1fr 2fr"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2,1fr) !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --rt-section-pad: 48px; }

  /* Hero */
  .rt-hero { padding: 96px 0 56px; min-height: auto; }
  .rt-hero-title { font-size: clamp(2.2rem, 10vw, 3.5rem) !important; }
  .rt-hero-inner { width: 90%; margin: 0 auto; }
  .rt-hero-bg-dots { display: none; }
  .rt-hero-subtitle { font-size: 0.95rem !important; }
  .rt-hero-stats { gap: 24px !important; margin-top: 48px !important; }

  /* Grids */
  .rt-grid-2, .rt-grid-3, .rt-grid-4,
  [style*="grid-template-columns:1fr 2fr"],
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* Process steps: 2 Spalten auf Mobile */
  [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2,1fr) !important;
  }

  /* Cards */
  .rt-card, .rt-service-card { padding: 24px 20px; }

  /* Stats */
  .rt-stat-num { font-size: 2rem !important; }
  [style*="display:flex;gap:48px"] { gap: 28px !important; flex-wrap: wrap; }

  /* Page hero */
  .rt-page-hero { padding: 90px 0 56px; }
  .rt-page-hero h1 { font-size: clamp(1.8rem, 8vw, 2.8rem) !important; }

  /* Section padding */
  .rt-section, section.rt-section { padding: 48px 0 !important; }
  section[style*="padding:80px 0"] { padding: 56px 0 !important; }

  /* Container width */
  .rt-container { width: 92%; }

  /* Buttons */
  .et_pb_button { padding: 12px 24px !important; font-size: 0.85rem !important; }
  [style*="display:flex;gap:16px;flex-wrap:wrap"] { flex-direction: column; }
  .rt-hero-inner [style*="display:flex;gap:16px"] { flex-direction: row !important; flex-wrap: wrap !important; }

  /* Kunden-Tabs */
  [data-filter-btn] { font-size: 0.75rem !important; padding: 6px 14px !important; }

  /* Über mich Foto */
  [style*="aspect-ratio:3/4"] { aspect-ratio: 4/3 !important; max-height: 360px; }
  [style*="aspect-ratio:3/4"] > div { aspect-ratio: 4/3 !important; }

  /* Contact grid */
  [style*="grid-template-columns:1fr 1.6fr"],
  [style*="grid-template-columns:1fr 1.1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Form row */
  [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }

  /* Partner section */
  [style*="grid-template-columns:1fr 1fr"][style*="gap:60px"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Ticker */
  .rt-ticker-inner { animation-duration: 15s !important; }

  /* Section title */
  h2 { font-size: clamp(1.6rem, 6vw, 2.4rem) !important; }
  h1 { font-size: clamp(2rem, 8vw, 3rem) !important; }
}

/* Small phones */
@media (max-width: 480px) {
  .rt-hero-title { font-size: clamp(2rem, 9vw, 3rem) !important; }
  .rt-hero-stats [style*="display:flex;gap"] { gap: 16px !important; }
  nav[id="main-header"] > div { padding: 0 16px !important; }
}

/* ==========================================================================
   FILTER BUTTONS (Referenzen)
   ========================================================================== */
[data-filter-btn].rt-active,
[data-filter-btn].et_pb_button.rt-active {
  background: #0a0a0a !important;
  color: #fff !important;
  border-color: #0a0a0a !important;
}

/* ==========================================================================
   SKILL BARS ANIMATION
   ========================================================================== */
.rt-skill-bar {
  width: 0 !important;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.rt-skill-bar.rt-visible {
  width: var(--skill-width, 80%) !important;
}

/* ==========================================================================
   PRINT STYLES (für Visitenkarten / Angebote)
   ========================================================================== */
@media print {
  #main-header, footer, .rt-ticker, [style*="background:#0a0a0a"],
  .rt-section-dark, .et_pb_button { display: none !important; }
  body { color: #000 !important; background: #fff !important; }
  .rt-container { width: 100% !important; }
}
