/* =========================================================================
   Local Fonts
   ========================================================================= */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('../fonts/inter-regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: block;
    src: url('../fonts/inter-bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('../fonts/outfit-regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 700;
    font-display: block;
    src: url('../fonts/outfit-bold.ttf') format('truetype');
}

/* =========================================================================
   Design System & Variables
   ========================================================================= */
:root {
    /* Colors */
    --color-primary: #015A94;
    /* New Blue */
    --color-primary-light: #0173bc;
    --color-primary-dark: #01436e;

    --color-secondary: #34A80F;
    /* New Green */
    --color-secondary-light: #44db14;
    --color-secondary-dark: #24750a;

    --color-bg: #FBFFFE;
    /* New White */
    --color-surface: #FBFFFE;
    --color-bg-light: #f3f4f6;
    --color-bg-dark: #041e33;
    /* Deep, elegant dark blue for the footer */

    --color-text: #000000;
    /* Black text */
    --color-text-light: #333333;
    --color-text-white: #ffffff;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

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

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

body.dark-mode {
    --color-bg: #0f172a;
    /* Deep slate/navy for background */
    --color-surface: #1e293b;
    /* Lighter slate for cards */
    --color-bg-light: #1e293b;
    /* Re-using surface color for light backgrounds */
    --color-bg-dark: #020617;
    /* Even darker for footer */

    --color-text: #f8fafc;
    --color-text-light: #cbd5e1;
    --color-text-white: #ffffff;
}

/* Fix for unreadable text on hovered cards in Dark Mode */
body.dark-mode .feature-card,
body.dark-mode .service-item {
    background: rgba(30, 41, 59, 0.6);
}

body.dark-mode .feature-card:hover,
body.dark-mode .service-item:hover {
    background: rgba(30, 41, 59, 0.95);
}

/* Fix for form inputs in Dark Mode */
body.dark-mode .form-control {
    background: rgba(30, 41, 59, 0.8);
    color: var(--color-text);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .form-control:focus {
    background: var(--color-bg-dark);
    color: var(--color-text-white);
}

.theme-toggle {
    background: none;
    border: none;
    color: #FFD400;
    /* Kräftiges Gelb für Sonne und Mond */
    font-size: 1.4rem;
    /* Leicht vergrößert, damit die Strahlen besser wirken */
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    color: #FFC107;
    /* Etwas dunkleres Gelb beim Hover */
    transform: scale(1.1);
}

/* =========================================================================
   Reset & Base Styles
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 160px;
    /* Offset for fixed navbar */
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text);
}

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

a:hover {
    color: var(--color-primary-dark);
}

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

ul {
    list-style: none;
}

.text-white {
    color: var(--color-text-white);
}

.text-light {
    color: var(--color-text-light);
}

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

.text-secondary {
    color: var(--color-secondary);
}

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

.text-green {
    color: var(--color-secondary);
}

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

.bg-light {
    background-color: var(--color-bg-light);
}

.bg-dark {
    background-color: var(--color-bg-dark);
}

.bg-white {
    background-color: var(--color-surface);
}

/* =========================================================================
   Layout & Components
   ========================================================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

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

.section-header {
    margin-bottom: var(--space-lg);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-white);
    box-shadow: 0 4px 6px -1px rgba(1, 90, 148, 0.4);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(1, 90, 148, 0.5);
    color: var(--color-text-white);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-text-white);
    box-shadow: 0 4px 6px -1px rgba(52, 168, 15, 0.4);
}

.btn-secondary:hover {
    background-color: var(--color-secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(52, 168, 15, 0.5);
    color: var(--color-text-white);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-text-white);
    color: var(--color-text-white);
}

.btn-outline:hover {
    background-color: var(--color-text-white);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 700;
    /* Bolder to make it dominant */
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-blue {
    background-color: rgba(1, 90, 148, 0.1);
    color: var(--color-primary);
}

.badge-green {
    background-color: rgba(52, 168, 15, 0.1);
    color: var(--color-secondary);
}

/* Dark Mode Contrast Fixes for Badges */
body.dark-mode .badge-blue {
    background-color: rgba(56, 189, 248, 0.15);
    /* Soft bright blue bg */
    color: #38bdf8;
    /* Bright sky blue text */
}

body.dark-mode .badge-green {
    background-color: rgba(74, 222, 128, 0.15);
    /* Soft bright green bg */
    color: #4ade80;
    /* Bright lime green text */
}

.section-divider {
    width: 60%;
    margin: 0 auto;
    height: 1px;
    background: linear-gradient(to right,
            transparent,
            rgba(1, 90, 148, 0.4),
            /* Blue */
            rgba(52, 168, 15, 0.4),
            /* Green */
            transparent);
}

/* =========================================================================
   Navigation
   ========================================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--color-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-normal);
    padding: 0;
}

.navbar.scrolled {
    padding: 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 160px;
    /* Increased from 100px to make logo larger */
    transition: height 0.3s ease;
}

.navbar.scrolled .nav-container {
    height: 80px;
    /* Shrink to half height on scroll */
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 10px 0;
    opacity: 0;
    animation: slideInLeft 0.8s ease-out forwards;
}

.logo-img {
    height: 100%;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.navbar.scrolled .logo-img {
    transform: scale(0.9);
    /* Slightly scale down the image within its container */
}

.logo-img-footer {
    height: 50px;
    width: auto;
    display: block;
    background-color: var(--color-bg);
    padding: 5px;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    animation: slideInRight 0.8s ease-out forwards;
}

.nav-links a {
    color: var(--color-text);
    font-weight: 500;
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    /* Green underline */
    transition: width var(--transition-fast);
}

.nav-links a:not(.btn):hover,
.nav-links a.active:not(.btn) {
    color: var(--color-primary);
    /* Blue text when active/hovered */
}

.nav-links a:not(.btn):hover::after,
.nav-links a.active:not(.btn)::after {
    width: 100%;
}

.nav-btn {
    padding: 0.5rem 1.25rem;
}

.mobile-nav-controls {
    display: none;
    align-items: center;
    gap: 1rem;
}

#theme-toggle-mobile {
    display: none;
    /* Hidden on desktop */
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 3px;
    transition: all 0.3s;
}

/* =========================================================================
   Hero Section & Slider
   ========================================================================= */
.hero {
    position: relative;
    height: 80vh;
    /* More like ha-ga.de, not full screen */
    min-height: 500px;
    display: flex;
    align-items: center;
    color: var(--color-text-white);
    padding-top: 160px;
    /* Offset for navbar */
    overflow: hidden;
    background-color: transparent;
    /* Ensure no background covers the slider */
    z-index: 1;
    /* Create stacking context for the hero section */
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Changed from -1 to ensure it sits above the page background */
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    animation: sliderAnimation 15s infinite;
    /* 3 images * 5s each */
}

/* Delay for each slide: 5s interval */
.slide:nth-child(1) {
    animation-delay: 0s;
}

.slide:nth-child(2) {
    animation-delay: 5s;
}

.slide:nth-child(3) {
    animation-delay: 10s;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    /* Above images, below text */
}

@keyframes sliderAnimation {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    10% {
        opacity: 1;
    }

    33% {
        opacity: 1;
    }

    43% {
        opacity: 0;
        transform: scale(1.05);
    }

    /* Slight zoom effect while fading out */
    100% {
        opacity: 0;
        transform: scale(1.05);
    }
}

.hero-content {
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 2;
    /* Ensure content is above slider */
}

.hero-content h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    color: var(--color-text-white);
    margin-bottom: var(--space-sm);
    line-height: 1.1;
}

.hero-content h1 .text-blue,
.hero-content h1 .text-green {
    /* Using stacked text-shadows instead of text-stroke to avoid internal stroke overlap issues with certain fonts.
       This creates a fine (1px) solid white outline. */
    text-shadow:
        -1px -1px 0 rgba(255, 255, 255, 0.9),
        1px -1px 0 rgba(255, 255, 255, 0.9),
        -1px 1px 0 rgba(255, 255, 255, 0.9),
        1px 1px 0 rgba(255, 255, 255, 0.9),
        0px -1px 0 rgba(255, 255, 255, 0.9),
        0px 1px 0 rgba(255, 255, 255, 0.9),
        -1px 0px 0 rgba(255, 255, 255, 0.9),
        1px 0px 0 rgba(255, 255, 255, 0.9),
        /* Subtle drop shadow behind the white outline */
        0px 4px 15px rgba(0, 0, 0, 0.4);
}

.text-highlight {
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.logo-amp {
    color: var(--color-text-white);
    display: inline-block;
    padding: 0 5px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-text-white);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-20px) translateX(-50%);
    }

    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* =========================================================================
   Intro Section
   ========================================================================= */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: start;
    /* Fixes text moving down when cards expand */
}

.intro-text p {
    margin-bottom: var(--space-sm);
    font-size: 1.125rem;
    color: var(--color-text-light);
}

.intro-features {
    display: grid;
    gap: var(--space-sm);
}

.feature-card {
    background: rgba(240, 245, 250, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-left: 4px solid var(--color-secondary);
    border-top: 1px solid rgba(1, 90, 148, 0.05);
    /* Subtle border for glass edge */
    border-right: 1px solid rgba(1, 90, 148, 0.05);
    border-bottom: 1px solid rgba(1, 90, 148, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card-blue {
    border-left-color: var(--color-primary);
}

.feature-card-green {
    border-left-color: var(--color-secondary);
}

.feature-card:hover {
    transform: translateX(10px) scale(1.02);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08),
        0 0 20px rgba(1, 90, 148, 0.15),
        0 0 20px rgba(52, 168, 15, 0.15);
    border-top-color: rgba(1, 90, 148, 0.3);
    border-right-color: rgba(1, 90, 148, 0.3);
    border-bottom-color: rgba(1, 90, 148, 0.3);
}

/* --- Expandable Card Styles --- */
.feature-card.expandable,
.service-item.expandable {
    cursor: pointer;
    position: relative;
    /* Ensure absolute children are contained */
    overflow: hidden;
    /* Clip the header image to the card's border radius */
}

/* Image Swap Feature */
.feature-header-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 0;
}

.feature-icon-fading {
    transition: opacity 0.4s ease, visibility 0.4s ease;
    position: relative;
    z-index: 1;
    /* Keep above image initially */
}

/* When the card is expanded, OR when hovered */
.feature-card.has-header-image.expanded,
.feature-card.has-header-image:hover,
.service-item.has-header-image.expanded,
.service-item.has-header-image:hover {
    padding-top: calc(160px + var(--space-sm));
    /* Push content down to make room for fixed-height image */
}

.feature-card.has-header-image.expanded .feature-header-image,
.feature-card.has-header-image:hover .feature-header-image,
.service-item.has-header-image.expanded .feature-header-image,
.service-item.has-header-image:hover .feature-header-image {
    opacity: 1;
    visibility: visible;
}

.feature-card.has-header-image.expanded .feature-icon-fading,
.feature-card.has-header-image:hover .feature-icon-fading,
.service-item.has-header-image.expanded .feature-icon-fading,
.service-item.has-header-image:hover .feature-icon-fading {
    opacity: 0;
    visibility: hidden;
}

/* Ensure other content stays above the image */
.feature-card.has-header-image>h3,
.feature-card.has-header-image>p,
.feature-card.has-header-image>.expandable-content,
.feature-card.has-header-image>.expand-indicator,
.service-item.has-header-image>h4,
.service-item.has-header-image>p,
.service-item.has-header-image>.expandable-content,
.service-item.has-header-image>.expand-indicator {
    position: relative;
    z-index: 1;
}

.expandable-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.expandable-content p {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(1, 90, 148, 0.1);
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-cta-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.btn-service-cta {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 400;
    /* Weicher als das Standard-500 von .btn */
    border-radius: var(--radius-md);
}

.btn-primary.btn-service-cta {
    box-shadow: 0 1px 2px rgba(1, 90, 148, 0.15);
}

.btn-primary.btn-service-cta:hover {
    box-shadow: 0 3px 6px rgba(1, 90, 148, 0.25);
    transform: translateY(-1px);
}

.btn-secondary.btn-service-cta {
    box-shadow: 0 1px 2px rgba(52, 168, 15, 0.15);
}

.btn-secondary.btn-service-cta:hover {
    box-shadow: 0 3px 6px rgba(52, 168, 15, 0.25);
    transform: translateY(-1px);
}

.expand-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    /* Default Blue */
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
    transition: transform 0.3s ease;
}

/* Green indicator for green-themed cards */
.feature-card-green .expand-indicator,
.service-item:has(.text-green) .expand-indicator {
    color: var(--color-secondary);
}

.feature-card.expanded .expandable-content,
.service-item.expanded .expandable-content {
    max-height: 500px;
    /* Large enough to hold the content */
    opacity: 1;
}

.feature-card.expanded .expand-indicator i,
.service-item.expanded .expand-indicator i {
    transform: rotate(180deg);
}

.feature-card.expanded,
.service-item.expanded {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 30px rgba(1, 90, 148, 0.2);
}

.feature-icon {
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.125rem;
}

/* =========================================================================
   Hausfit & Gartentop Grids
   ========================================================================= */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Force 3 columns */
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

@media (max-width: 900px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cols on tablets */
    }
}

@media (max-width: 600px) {
    .service-grid {
        grid-template-columns: 1fr;
        /* 1 col on mobile */
    }
}

.service-item {
    background: rgba(240, 245, 250, 0.4);
    /* Slightly off-white to make it visible against a white background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: calc(var(--space-md) * 1.5);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    text-align: center;
    border: 1px solid rgba(1, 90, 148, 0.1);
    /* Very subtle blue border */
}

.service-item:hover {
    transform: translateY(-12px) scale(1.03);
    background: rgba(255, 255, 255, 0.95);
    /* Brighten up completely on hover */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08),
        0 0 30px rgba(1, 90, 148, 0.2),
        /* Stronger Blue Glow */
        0 0 30px rgba(52, 168, 15, 0.2);
    /* Stronger Green Glow */
    border: 1px solid rgba(1, 90, 148, 0.4);
    /* Clear blue border on hover */
}

.service-icon {
    width: 48px;
    height: 48px;
    font-size: 3rem;
    /* Scales the FontAwesome icon */
    line-height: 48px;
    /* Centers it vertically relative to height */
    margin-bottom: var(--space-sm);
}

.service-item h4 {
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
}

.service-item p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* =========================================================================
   Servicepakete Section
   ========================================================================= */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.package-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--color-text);
    position: relative;
    transition: transform var(--transition-normal);
}

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

.package-card.highlighted {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--color-secondary);
}

.package-card.highlighted:hover {
    transform: scale(1.05) translateY(-10px);
}

.package-header {
    background: var(--color-bg-light);
    padding: var(--space-md);
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.package-title {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.package-desc {
    color: var(--color-text-light);
    font-size: 0.9rem;
    font-style: italic;
}

.package-body {
    padding: var(--space-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.package-list {
    margin-bottom: var(--space-md);
    flex-grow: 1;
}

.package-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.package-list li::before {
    content: '✓';
    color: var(--color-secondary);
    font-weight: bold;
}

.package-price {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-align: center;
    color: var(--color-text);
    margin-top: auto;
}

.package-footer {
    padding: var(--space-md);
    background: var(--color-bg-light);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* =========================================================================
   Kontakt Section
   ========================================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    position: relative;
    z-index: 1;
}

/* Add a beautiful blurred blob behind the contact form to make the glass effect visible */
.contact-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(1, 90, 148, 0.15) 0%, rgba(52, 168, 15, 0.1) 100%);
    filter: blur(40px);
    border-radius: 50%;
    z-index: -1;
    transform: translateY(-50%);
}

.contact-details {
    margin-top: var(--space-lg);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(52, 168, 15, 0.1);
    color: var(--color-secondary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.3s ease, background 0.3s ease;
}

.contact-item:hover .icon-box {
    transform: scale(1.1);
    background: var(--color-secondary);
    color: var(--color-text-white);
}

.contact-item h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
    color: var(--color-text-light);
}

.contact-link {
    font-size: 1.25rem;
    font-weight: 500;
}

.contact-form-container {
    background: rgba(240, 245, 250, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(1, 90, 148, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    border-left: 1px solid rgba(255, 255, 255, 0.8);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text-light);
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrapper i {
    position: absolute;
    left: 1rem;
    color: var(--color-primary);
    font-size: 1.1rem;
    pointer-events: none;
    top: 1rem;
}

textarea.form-control {
    padding-top: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.8rem;
    border: 1px solid rgba(1, 90, 148, 0.2);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: rgba(255, 255, 255, 0.8);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 76, 143, 0.1);
    background: var(--color-surface);
}

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
    background-color: var(--color-primary-dark);
    /* Distinctly blue */
    color: var(--color-text-white);
    /* High contrast white text */
    padding: 1.5rem 0 1rem;
}

.footer-compact {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left {
    text-align: left;
}

.footer-line {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    color: var(--color-text-white);
}

.footer-right ul.footer-links-list {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-right ul.footer-links-list li {
    margin-bottom: 0;
}

.footer-right a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-right a:hover {
    color: var(--color-text-white);
}

/* =========================================================================
   Animations & Interactivity
   ========================================================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 200ms;
}

.delay-2 {
    transition-delay: 400ms;
}

/* Animations for Header */
@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =========================================================================
   Responsive Design
   ========================================================================= */
@media (max-width: 1024px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .package-card.highlighted {
        transform: none;
    }

    .package-card.highlighted:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .section {
        padding: var(--space-lg) 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Specific fix for small phones like iPhone 12/13 mini (390px-430px) */
@media (max-width: 430px) {
    .hero-content h1 {
        font-size: 2.1rem;
        /* Smaller font to fit "HAUS und GARTEN" on one line */
    }

    .logo-amp {
        padding: 0 3px;
        /* Slightly reduce padding around "und" */
    }

    .hero-actions {
        flex-direction: column;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-nav-controls {
        display: flex;
    }

    #theme-toggle-mobile {
        display: flex;
    }

    .nav-links #theme-toggle {
        display: none;
        /* Hide the one inside the menu on mobile */
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--color-surface);
        flex-direction: column;
        justify-content: center;
        transition: left 0.3s ease;
        padding: 2rem;
    }


    .nav-links.active {
        left: 0;
    }

    .nav-btn {
        width: 100%;
        text-align: center;
    }

    .footer-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .footer-right ul.footer-links-list {
        align-items: flex-start;
    }
}

/* =========================================================================
   Back to Top Button
   ========================================================================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: white;
}