/* ==========================================================================
   RobbelRoot Homepage — Custom Styles & Animations
   ========================================================================== */

/* --- Custom Properties --- */
:root {
    --rr-primary: #e67e22;
    --rr-primary-dark: #cf6d17;
    --rr-primary-light: #f0a04b;
    --rr-dark: #1a1a2e;
    --rr-dark-mid: #16213e;
    --rr-dark-accent: #0f3460;
    --rr-text: #2d3436;
    --rr-text-light: #636e72;
    --rr-bg: #ffffff;
    --rr-bg-alt: #f7f8fa;
    --rr-border: #e2e6ea;
    --rr-radius: 12px;
    --rr-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --rr-shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.14);
    --rr-transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --rr-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

#container {
  margin: 0 !important;
}

.entry {
  padding: 0 !important;
  margin: 0 !important;
}

/* Nur den Theme-Seitentitel auf der Startseite ausblenden */
.home .entry-title,
.home .page-title {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
}

/* --- Reset & Base for Homepage --- */
.rr-home-wrapper {
    font-family: var(--rr-font);
    color: var(--rr-text);
    line-height: 1.7;
    overflow-x: hidden;
}

.rr-home-wrapper *,
.rr-home-wrapper *::before,
.rr-home-wrapper *::after {
    box-sizing: border-box;
}

/* Override theme blockquote::before that renders mispositioned quote mark */
.rr-home-wrapper blockquote::before {
    display: none;
}

/* --- Full-width section breakout --- */
.rr-home-full {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* --- Section base --- */
.rr-home-section {
    padding: 80px 24px;
}

.rr-home-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* --- Scroll Animations --- */
.rr-animate {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--rr-transition), transform 0.7s var(--rr-transition);
}

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

/* Stagger delays via data-delay attribute handled in JS */
.rr-animate[data-delay="1"] { transition-delay: 0.1s; }
.rr-animate[data-delay="2"] { transition-delay: 0.2s; }
.rr-animate[data-delay="3"] { transition-delay: 0.3s; }
.rr-animate[data-delay="4"] { transition-delay: 0.4s; }

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.rr-home-hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(-45deg, #1a1a2e, #16213e, #0f3460, #1a1a2e);
    background-size: 400% 400%;
    animation: rr-gradient-shift 18s ease infinite;
    position: relative;
    overflow: hidden;
}

/* Subtle grid pattern overlay */
.rr-home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

/* Radial glow behind text */
.rr-home-hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(230, 126, 34, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

@keyframes rr-gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.rr-home-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
    padding: 40px 24px;
}

.rr-home-hero-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--rr-primary);
    margin-bottom: 20px;
    opacity: 0;
    animation: rr-fade-down 0.8s 0.2s forwards;
}

.rr-home-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 12px 0;
    opacity: 0;
    animation: rr-fade-up 0.8s 0.4s forwards;
}

.rr-home-hero h1 .rr-home-highlight {
    color: var(--rr-primary);
}

.rr-home-hero-sub {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin: 0 0 32px 0;
    opacity: 0;
    animation: rr-fade-up 0.8s 0.6s forwards;
}

/* Tech Tags */
.rr-home-tech-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
    opacity: 0;
    animation: rr-fade-up 0.8s 0.8s forwards;
}

.rr-home-tech-tags span {
    display: inline-block;
    padding: 5px 16px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

.rr-home-tech-tags span:hover {
    border-color: var(--rr-primary);
    color: var(--rr-primary);
    background: rgba(230, 126, 34, 0.08);
}

/* Hero CTA Buttons */
.rr-home-hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: rr-fade-up 0.8s 1s forwards;
}

/* Hero Keyframes */
@keyframes rr-fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes rr-fade-down {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll indicator */
.rr-home-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0;
    animation: rr-fade-up 0.8s 1.4s forwards, rr-bounce 2s 2.2s infinite;
}

.rr-home-scroll-indicator svg {
    width: 28px;
    height: 28px;
    stroke: rgba(255, 255, 255, 0.35);
    fill: none;
    stroke-width: 2;
}

@keyframes rr-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ==========================================================================
   BUTTONS (shared)
   ========================================================================== */
.rr-home-btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    letter-spacing: 0.3px;
}

.rr-home-btn-primary {
    background: var(--rr-primary);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(230, 126, 34, 0.3);
}

.rr-home-btn-primary:hover {
    background: var(--rr-primary-dark);
    box-shadow: 0 6px 24px rgba(230, 126, 34, 0.4);
    transform: translateY(-2px);
    color: #ffffff;
    text-decoration: none;
}

.rr-home-btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.rr-home-btn-secondary:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
    color: #ffffff;
    text-decoration: none;
}

.rr-home-btn-outline {
    background: transparent;
    color: var(--rr-primary);
    border: 2px solid var(--rr-primary);
}

.rr-home-btn-outline:hover {
    background: var(--rr-primary);
    color: #ffffff;
    transform: translateY(-2px);
    text-decoration: none;
}

/* ==========================================================================
   SECTION HEADINGS (shared)
   ========================================================================== */
.rr-home-section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--rr-primary);
    margin-bottom: 12px;
}

.rr-home-section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: var(--rr-text);
    line-height: 1.3;
    margin: 0 0 16px 0;
}

.rr-home-section-title--light {
    color: #ffffff;
}

.rr-home-section-subtitle {
    font-size: 1.05rem;
    color: var(--rr-text-light);
    max-width: 640px;
    line-height: 1.7;
    margin: 0;
}

.rr-home-section-subtitle--light {
    color: rgba(255, 255, 255, 0.65);
}

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

.rr-home-mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   PAIN POINTS SECTION
   ========================================================================== */
.rr-home-pain {
    background: var(--rr-bg);
}

.rr-home-pain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.rr-home-pain-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--rr-bg-alt);
    border-radius: var(--rr-radius);
    border: 1px solid var(--rr-border);
    transition: all 0.3s ease;
}

.rr-home-pain-card:hover {
    border-color: var(--rr-primary);
    box-shadow: 0 2px 12px rgba(230, 126, 34, 0.08);
    transform: translateY(-2px);
}

.rr-home-pain-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 126, 34, 0.1);
    border-radius: 10px;
    color: var(--rr-primary);
    font-size: 1.2rem;
}

.rr-home-pain-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--rr-primary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rr-home-pain-text h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: var(--rr-text);
}

.rr-home-pain-text p {
    font-size: 0.9rem;
    color: var(--rr-text-light);
    margin: 0;
    line-height: 1.6;
}

.rr-home-pain-answer {
    margin-top: 40px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--rr-primary);
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.rr-home-services {
    background: var(--rr-bg-alt);
}

.rr-home-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.rr-home-service-card {
    background: var(--rr-bg);
    border-radius: var(--rr-radius);
    padding: 36px 28px;
    border: 1px solid var(--rr-border);
    transition: all var(--rr-transition);
    position: relative;
    overflow: hidden;
}

.rr-home-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--rr-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.rr-home-service-card:hover::before {
    transform: scaleX(1);
}

.rr-home-service-card:hover {
    box-shadow: var(--rr-shadow-hover);
    transform: translateY(-4px);
}

.rr-home-service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 126, 34, 0.1);
    border-radius: 12px;
    margin-bottom: 20px;
}

.rr-home-service-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--rr-primary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rr-home-service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--rr-text);
}

.rr-home-service-card p {
    font-size: 0.92rem;
    color: var(--rr-text-light);
    margin: 0;
    line-height: 1.7;
}

/* ==========================================================================
   NUMBERS / STATS SECTION
   ========================================================================== */
.rr-home-stats {
    background: linear-gradient(135deg, var(--rr-dark) 0%, var(--rr-dark-mid) 100%);
    padding: 60px 24px;
}

.rr-home-stats-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
}

.rr-home-stat-item {
    text-align: center;
}

.rr-home-stat-number {
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--rr-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.rr-home-stat-label {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.rr-home-projects {
    background: var(--rr-bg);
}

.rr-home-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 48px;
}

.rr-home-project-card {
    border-radius: var(--rr-radius);
    overflow: hidden;
    background: var(--rr-bg);
    border: 1px solid var(--rr-border);
    transition: all var(--rr-transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.rr-home-project-card:hover {
    box-shadow: var(--rr-shadow-hover);
    transform: translateY(-6px);
    text-decoration: none;
    color: inherit;
}

.rr-home-project-card:hover .rr-home-project-img img {
    transform: scale(1.05);
}

.rr-home-project-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--rr-bg-alt);
}

.rr-home-project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.rr-home-project-body {
    padding: 24px;
}

.rr-home-project-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--rr-text);
}

.rr-home-project-body p {
    font-size: 0.87rem;
    color: var(--rr-text-light);
    margin: 0 0 14px 0;
    line-height: 1.6;
}

.rr-home-project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rr-home-project-tags span {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    background: rgba(230, 126, 34, 0.08);
    color: var(--rr-primary);
    letter-spacing: 0.3px;
}

.rr-home-projects-more {
    text-align: center;
    margin-top: 40px;
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.rr-home-testimonials {
    background: var(--rr-bg-alt);
}

.rr-home-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 48px;
}

.rr-home-testimonial-card {
    background: var(--rr-bg);
    border-radius: var(--rr-radius);
    padding: 32px;
    border: 1px solid var(--rr-border);
    position: relative;
    transition: all 0.3s ease;
}

.rr-home-testimonial-card:hover {
    box-shadow: var(--rr-shadow);
}

.rr-home-testimonial-quote {
    font-size: 2.4rem;
    color: var(--rr-primary);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 8px;
    font-family: Georgia, serif;
}

.rr-home-testimonial-card blockquote {
    font-size: 0.95rem;
    color: var(--rr-text);
    line-height: 1.7;
    margin: 0 0 20px 0;
    padding: 0;
    border: none;
    font-style: normal;
}

.rr-home-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rr-home-testimonial-author img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.rr-home-testimonial-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--rr-text);
}

.rr-home-testimonial-role {
    font-size: 0.78rem;
    color: var(--rr-text-light);
}

/* ==========================================================================
   BLOG SECTION
   ========================================================================== */
.rr-home-blog {
    background: var(--rr-bg);
}

.rr-home-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.rr-home-blog-card {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 28px;
    background: var(--rr-bg-alt);
    border-radius: var(--rr-radius);
    border: 1px solid var(--rr-border);
    transition: all 0.3s ease;
}

.rr-home-blog-card:hover {
    box-shadow: var(--rr-shadow);
    border-color: var(--rr-primary);
    transform: translateY(-3px);
    text-decoration: none;
    color: inherit;
}

.rr-home-blog-card .rr-home-blog-category {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--rr-primary);
    margin-bottom: 10px;
    display: block;
}

.rr-home-blog-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--rr-text);
    line-height: 1.4;
}

.rr-home-blog-card p {
    font-size: 0.85rem;
    color: var(--rr-text-light);
    margin: 0;
    line-height: 1.6;
}

.rr-home-blog-card .rr-home-blog-arrow {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--rr-primary);
    transition: transform 0.3s ease;
}

.rr-home-blog-card:hover .rr-home-blog-arrow {
    transform: translateX(6px);
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.rr-home-cta {
    background: linear-gradient(135deg, var(--rr-dark) 0%, var(--rr-dark-accent) 100%);
    text-align: center;
    padding: 100px 24px;
    position: relative;
    overflow: hidden;
}

.rr-home-cta::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(230, 126, 34, 0.1) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.rr-home-cta-content {
    position: relative;
    z-index: 2;
}

.rr-home-cta h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 16px 0;
}

.rr-home-cta p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 36px 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
    .rr-home-pain-grid,
    .rr-home-services-grid,
    .rr-home-testimonials-grid {
        grid-template-columns: 1fr;
    }

    .rr-home-projects-grid,
    .rr-home-blog-grid {
        grid-template-columns: 1fr 1fr;
    }

    .rr-home-stats-grid {
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .rr-home-section {
        padding: 56px 16px;
    }

    .rr-home-hero {
        min-height: 85vh;
    }

    .rr-home-hero h1 {
        font-size: 1.8rem;
    }

    .rr-home-hero-sub {
        font-size: 0.95rem;
    }

    .rr-home-hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .rr-home-btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .rr-home-projects-grid,
    .rr-home-blog-grid {
        grid-template-columns: 1fr;
    }

    .rr-home-stats-grid {
        gap: 32px;
    }

    .rr-home-stat-number {
        font-size: 2rem;
    }
}
