/* 
  H.D. Dienstleistungen - Global Styles
  Theme: Ultra-Modern / Bright / Minimalist
*/

:root {
    /* Colors */
    --clr-brand-primary: #FF5A00;
    /* Vibrant modern orange */
    --clr-brand-primary-hover: #E04D00;

    --clr-bg-page: #F8FAFC;
    /* Slate 50 - Off-white cool */
    --clr-bg-surface: #FFFFFF;
    /* Pure white cards */
    --clr-bg-surface-alt: #F1F5F9;
    /* Slate 100 - Alternate surface */

    --clr-text-main: #0F172A;
    /* Slate 900 - Near black */
    --clr-text-muted: #64748B;
    /* Slate 500 - Subdued text */

    --clr-border: #E2E8F0;
    /* Slate 200 - Soft borders */
    --clr-border-glow: rgba(255, 90, 0, 0.2);

    /* Typography - Scaled down for elegance */
    --font-main: 'Outfit', system-ui, -apple-system, sans-serif;

    --fs-xl: clamp(2rem, 4vw + 1rem, 3.5rem);
    /* Hero Title, noticeably smaller than before */
    --fs-lg: clamp(1.5rem, 2.5vw + 1rem, 2rem);
    /* Section Title */
    --fs-md: 1.125rem;
    --fs-base: 1rem;
    /* Reset base to default */
    --fs-sm: 0.875rem;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Misc */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-pill: 100px;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 10px 25px -5px rgba(255, 90, 0, 0.3);
}

/* Base Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

img,
picture,
svg {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul,
ol {
    list-style: none;
}

button,
input,
textarea {
    font: inherit;
    border: none;
    background: transparent;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.section {
    padding-block: var(--space-xl);
}

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

.text-brand {
    color: var(--clr-brand-primary);
}

.text-muted {
    color: var(--clr-text-muted);
}

/* Typography */
h1,
h2,
h3,
h4 {
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.03em;
    /* Tighter letter spacing for modern feel */
}

h1 {
    font-size: var(--fs-xl);
}

h2 {
    font-size: var(--fs-lg);
    margin-bottom: var(--space-md);
}

h3 {
    font-size: var(--fs-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: var(--fs-base);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--clr-brand-primary);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background-color: var(--clr-brand-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -5px rgba(255, 90, 0, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--clr-text-main);
    border: 1.5px solid var(--clr-border);
}

.btn-outline:hover {
    border-color: var(--clr-text-main);
    background-color: var(--clr-text-main);
    color: var(--clr-bg-surface);
}

/* Tags/Badges */
.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: var(--clr-bg-page);
    color: var(--clr-text-main);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-pill);
    font-size: var(--fs-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

/* Animations (Scroll Reveals) */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Hero Section & WoW Effect --- */
@keyframes floatBox {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 4rem;
    overflow: hidden;
    background-color: #0A0F1A;
    color: #FFFFFF;
}

/* Glowing floating orbs for WoW effect */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.6;
    animation: floatBox 15s infinite ease-in-out;
}

.hero-glow-1 {
    width: 400px;
    height: 400px;
    background: rgba(255, 90, 0, 0.4);
    top: -10%;
    right: -5%;
}

.hero-glow-2 {
    width: 300px;
    height: 300px;
    background: rgba(0, 50, 255, 0.2);
    /* Deep blue contrast glow */
    bottom: -10%;
    left: 10%;
    animation-delay: -5s;
    animation-duration: 20s;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/img/hero_bg.png');
    /* Reverted to the original dark image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark gradient fade */
    background: linear-gradient(135deg, rgba(10, 15, 26, 0.95) 0%, rgba(10, 15, 26, 0.5) 100%);
    z-index: 0;
}

.hero-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    z-index: 2;
}

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

.hero-subtitle {
    font-size: var(--fs-md);
    color: #A0ABC0;
    /* Light muted for dark background */
    margin-block: 1.5rem 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-trust {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: var(--fs-sm);
    color: #CBD5E1;
    /* Light text */
    font-weight: 500;
}

.hero-trust i {
    color: #CBD5E1;
    /* Remove orange, match slate */
    font-size: 1.2rem;
}

/* --- Trust Bar --- */
.trust-bar {
    border-bottom: 1px solid var(--clr-border);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: transform var(--transition-normal);
}

.trust-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
}

/* --- Benefits Section --- */
.benefits {
    background-color: var(--clr-bg-page);
    position: relative;
    z-index: 2;
}

.section-header {
    max-width: 700px;
    margin-inline: auto;
    margin-bottom: var(--space-xl);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.benefit-card {
    background-color: var(--clr-bg-surface);
    padding: 3.5rem 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-border);
    transition: all var(--transition-normal);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 90, 0, 0.2);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    margin-inline: auto;
    background: var(--clr-bg-page);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--clr-text-main);
    /* Slate instead of Orange */
    margin-bottom: 2rem;
    transition: transform var(--transition-normal);
    border: 1px solid var(--clr-border);
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.05) translateY(-5px);
    background: var(--clr-bg-surface-alt);
}

.benefit-card h3 {
    margin-bottom: 1rem;
}

/* --- Process Section --- */
.process {
    background-color: var(--clr-bg-surface);
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    counter-reset: process-counter;
}

.process-step {
    position: relative;
    padding: 2.5rem 2rem;
    background: var(--clr-bg-page);
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-border);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--clr-text-main);
    opacity: 0.05;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    line-height: 1;
    transition: color var(--transition-normal), opacity var(--transition-normal);
}

.process-step:hover .step-number {
    color: var(--clr-text-main);
    opacity: 0.15;
}

.process-step h3 {
    margin-block: 1.5rem 1rem;
}

/* --- Contact / Lead Gen Section --- */
.contact {
    background-color: var(--clr-bg-page);
    position: relative;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.contact-info .badge {
    margin-bottom: 1.5rem;
}

.info-items {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--clr-bg-surface);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-normal);
}

.info-item:hover {
    box-shadow: var(--shadow-md);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--clr-bg-page);
    color: var(--clr-text-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 1px solid var(--clr-border);
}

/* Contact Form */
.contact-form-container {
    background: var(--clr-bg-surface);
    padding: 3.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--clr-text-main);
}

input,
textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--clr-bg-page);
    border: 1.5px solid var(--clr-border);
    border-radius: var(--radius-md);
    color: var(--clr-text-main);
    font-weight: 500;
    transition: all var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
    color: #94A3B8;
    /* Slate 400 */
    font-weight: 400;
}

input:focus,
textarea:focus {
    outline: none;
    background: var(--clr-bg-surface);
    border-color: var(--clr-brand-primary);
    box-shadow: 0 0 0 4px rgba(255, 90, 0, 0.1);
}

.btn-block {
    width: 100%;
    padding: 1.25rem;
}

/* --- Footer --- */
.footer {
    background-color: rgba(10, 15, 26, 0.98);
    /* Matching dark header */
    padding-block: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #CBD5E1;
    /* Light slate */
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-logo {
    font-size: 1.25rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #CBD5E1;
    font-size: var(--fs-sm);
    font-weight: 500;
}

.footer-links a:hover {
    color: #FFFFFF;
}

.footer-copyright {
    font-size: var(--fs-sm);
    color: #94A3B8;
    /* Muted light slate */
}

/* --- Savings Calculator Custom Range Slider --- */
.calc-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    border-radius: 4px;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--clr-brand-primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 126, 39, 0.4);
    border: 3px solid #fff;
    transition: transform 0.2s;
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.calc-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--clr-brand-primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 126, 39, 0.4);
    border: 3px solid #fff;
    transition: transform 0.2s;
}

.calc-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .comparison-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .d-none-mobile {
        display: none !important;
    }

    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
        text-align: center;
    }

    .about-image {
        margin-top: 1.5rem;
    }

    .hero {
        text-align: center;
        padding-top: 130px;
    }

    .hero-content {
        margin-inline: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 2rem;
    }

    .hero-trust {
        justify-content: center;
    }

    .footer-top {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .footer-top .footer-widget ul {
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem !important;
    }

    .footer-bottom .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-container {
        padding: 2.5rem 1.5rem;
    }
}