/* 
   Velkaro - Stylesheet
   Design: Sky Blue Layout, Dark Cards, Glassmorphism
   Colors: Sky Blue (#87CEEB), Logo Blues, Dark Navy Cards
   Inspired by: planet-reinigungsservice.de
*/

/* System font stack matching planet-reinigungsservice.de */

:root {
    /* === Logo-aligned brand blues === */
    --logo-blue-bright: #4fc3f7;   /* Velkaro script / sparkle blue */
    --logo-blue-mid: #2196f3;      /* House blue */
    --logo-blue-navy: #0d3d6b;     /* REINIGUNG banner navy */
    --logo-blue-deep: #0a2d52;     /* Deep logo navy */
    --nav-bg: #ffffff;             /* White menu section background */
    --nav-text: #0d3d6b;           /* Dark blue menu item text */
    --nav-text-hover: #0a2d52;     /* Deeper navy on hover */
    --nav-bg-hover: rgba(13, 61, 107, 0.08);
    --nav-border: rgba(13, 61, 107, 0.12);
    --primary: #4fc3f7;            /* Logo bright blue – primary interactive */
    --primary-rgb: 79, 195, 247;
    --primary-light: #2196f3;      /* Logo mid blue for hover states */
    --primary-dark: #0d3d6b;       /* Logo navy for pressed states */
    --accent: #2196f3;             /* Logo mid blue accent */
    --accent-hover: #4fc3f7;       /* Logo bright blue for hover */
    --accent-light: rgba(79, 195, 247, 0.12); /* Soft logo blue tint */
    --whatsapp-green: #25d366;
    --whatsapp-hover: #128c7e;

    /* === Page backgrounds (planet-reinigungsservice.de sky blue) === */
    --bg-sky: #87CEEB;
    --bg-sky-alt: #9fd4ef;
    --bg-light: #9fd4ef;           /* Alt section – lighter sky */
    --bg-white: #87CEEB;           /* Main page background */
    --bg-card: #0f1a2e;            /* Dark cards on sky blue */
    --bg-card-hover: #142035;

    /* === Text === */
    --text-on-sky: #0d1117;        /* Headings on sky blue sections */
    --text-on-sky-muted: #1e293b;  /* Body text on sky blue sections */
    --text-dark: #e5e7eb;          /* Text inside dark cards/panels */
    --text-muted: #9ca3af;         /* Muted text inside dark cards */
    --text-light: #ffffff;

    /* === Borders & Shadows === */
    --border-color: rgba(148, 163, 184, 0.15);
    --border-accent: rgba(56, 189, 248, 0.25);

    --shadow-sm: 0 2px 12px rgba(13, 61, 107, 0.12);
    --shadow-md: 0 10px 35px rgba(13, 61, 107, 0.18);
    --shadow-lg: 0 18px 45px rgba(13, 61, 107, 0.22);
    --shadow-blue: 0 14px 35px rgba(56, 189, 248, 0.3);
    --shadow-purple: 0 10px 30px rgba(168, 85, 247, 0.3);

    /* === Transitions === */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* === Radius === */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    background-color: var(--bg-sky);
    color: var(--text-on-sky-muted);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    color: var(--text-on-sky);
    font-weight: 700;
    line-height: 1.25;
}

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

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

ul {
    list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-sky);
}
::-webkit-scrollbar-thumb {
    background: rgba(13, 61, 107, 0.25);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-sky);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 7rem 0;
    position: relative;
}

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

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

.section-header {
    max-width: 700px;
    margin: 0 auto 4.5rem;
}

.section-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.55);
    color: #1d4ed8;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
    border: 1px solid rgba(29, 78, 216, 0.2);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
    color: var(--text-on-sky);
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-on-sky-muted);
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #0b1120;
    font-weight: 700;
    box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(56, 189, 248, 0.45);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: rgba(56, 189, 248, 0.08);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    box-shadow: var(--shadow-purple);
}

.btn-accent:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(168, 85, 247, 0.45);
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: white;
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.25);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--nav-border);
    transition: var(--transition-normal);
}

.header.scrolled {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(13, 61, 107, 0.1);
    padding: 0.5rem 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    transition: var(--transition-normal);
}

.header.scrolled .header-container {
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 64px;
    width: auto;
    max-width: min(220px, 52vw);
    object-fit: contain;
    transition: var(--transition-normal);
}

.header.scrolled .logo-img {
    height: 52px;
}

.footer .logo-img {
    height: 85px;
    filter: brightness(0) invert(1);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--nav-text);
    position: relative;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-full);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.15rem;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: calc(100% - 1rem);
    height: 2px;
    background: linear-gradient(90deg, var(--logo-blue-navy), var(--logo-blue-mid));
    border-radius: var(--radius-full);
    transition: transform 0.25s ease;
}

.nav-link:hover {
    color: var(--nav-text-hover);
    background: var(--nav-bg-hover);
}

.nav-link-legal {
    display: none;
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-whatsapp-btn {
    background-color: var(--whatsapp-green);
    color: white;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-normal);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    cursor: pointer;
}

.nav-whatsapp-btn:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.nav-phone-btn {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--nav-text);
    border: 1px solid rgba(13, 61, 107, 0.25);
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(13, 61, 107, 0.06);
    transition: var(--transition-normal);
}

.nav-phone-btn:hover {
    background: rgba(13, 61, 107, 0.12);
    border-color: var(--logo-blue-navy);
    color: var(--nav-text-hover);
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, var(--logo-blue-navy), var(--logo-blue-mid));
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 130px;
    background: linear-gradient(rgba(5, 8, 22, 0.55), rgba(5, 8, 22, 0.88)), url('../images/hero.webp') no-repeat center center/cover;
    display: flex;
    align-items: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(transparent, var(--bg-sky));
    pointer-events: none;
}

.hero-content {
    max-width: 780px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.25rem;
    display: inline-block;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 0.3rem 0.9rem;
    border-radius: var(--radius-full);
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    color: var(--text-light);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 18px rgba(5, 8, 22, 0.85), 0 1px 4px rgba(5, 8, 22, 0.9);
}

.hero-title span {
    color: var(--primary);
    text-shadow: 0 0 30px rgba(56, 189, 248, 0.5);
}

.hero-desc {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 2px 12px rgba(0, 0, 0, 0.75);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

/* Service Grid Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
}

.service-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-blue);
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
}

.service-img-wrapper {
    position: relative;
    height: 230px;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.service-card:hover .service-img {
    transform: scale(1.08);
}

.service-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(56, 189, 248, 0.85);
    color: #0b1120;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    z-index: 2;
    backdrop-filter: blur(8px);
}

.service-badge.hausmeister {
    background: rgba(168, 85, 247, 0.85);
    color: white;
}

.service-card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    transition: var(--transition-normal);
}

.service-card:hover .service-card-icon {
    background: rgba(56, 189, 248, 0.2);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.service-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
}

.service-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-card-btn {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    align-self: flex-start;
    transition: var(--transition-fast);
}

.service-card-btn i {
    transition: var(--transition-fast);
}

.service-card:hover .service-card-btn {
    color: var(--accent);
}

.service-card:hover .service-card-btn i {
    transform: translateX(5px);
}

/* Why Choose Us Section */
.why-section {
    position: relative;
    overflow: hidden;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.why-card {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
    height: 100%;
    transition: var(--transition-normal);
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-normal);
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-blue);
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
}

.why-card:hover::before {
    transform: scaleX(1);
}

.why-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(56, 189, 248, 0.15);
    line-height: 1;
    margin-bottom: 1rem;
    transition: var(--transition-normal);
}

.why-card:hover .why-number {
    color: rgba(56, 189, 248, 0.35);
    transform: scale(1.1);
}

.why-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
}

.why-desc {
    color: var(--text-muted);
    font-size: 0.925rem;
}

/* About Us Section */
#angebot-anfordern {
    scroll-margin-top: 100px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
    align-items: center;
}

.about-content {
    animation: fadeInLeft 0.8s ease-out;
}

.about-desc {
    font-size: 1.1rem;
    color: var(--text-on-sky-muted);
    margin-bottom: 1.5rem;
}

.about-highlight {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--logo-blue-navy);
    border-left: 3px solid var(--logo-blue-navy);
    background: rgba(255, 255, 255, 0.45);
    padding: 1rem 1.25rem;
    margin: 2rem 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.about-owners {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(13, 61, 107, 0.15);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.owner-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.owner-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: rgba(56, 189, 248, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    border: 1px solid var(--border-accent);
}

.owner-name {
    font-weight: 700;
    color: var(--text-on-sky);
    font-size: 1.05rem;
}

.owner-role {
    font-size: 0.825rem;
    color: var(--text-on-sky-muted);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

.stat-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-blue);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.stat-number span {
    color: var(--accent);
}

.stat-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* FAQ Section (Accordion) */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-item:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-light);
    user-select: none;
}

.faq-icon-box {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition-normal);
}

.faq-item.active .faq-icon-box {
    background: var(--primary);
    color: #0b1120;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer-inner {
    padding: 0 2rem 1.75rem;
    color: var(--text-muted);
    font-size: 1rem;
    border-top: 1px solid transparent;
}

.faq-item.active .faq-answer-inner {
    border-top-color: var(--border-color);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 4.5fr 7.5fr;
    gap: 4.5rem;
    align-items: stretch;
}

.contact-info {
    background: linear-gradient(145deg, #0f1a2e, #0b1120);
    color: var(--text-light);
    padding: 4rem 3rem;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-accent);
}

.contact-info::before {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 250px;
    height: 250px;
    border-radius: var(--radius-full);
    background: rgba(56, 189, 248, 0.06);
    pointer-events: none;
}

.contact-info-title {
    color: var(--text-light);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.contact-info-desc {
    color: rgba(255,255,255,0.8);
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.contact-info > div,
.contact-socials {
    position: relative;
    z-index: 1;
}

.contact-detail-icon-link {
    flex-shrink: 0;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.contact-detail-icon-link:hover .contact-detail-icon,
.contact-detail-icon-link:focus-visible .contact-detail-icon {
    background: var(--accent);
    color: var(--text-light);
    transform: translateY(-2px);
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-normal);
    cursor: pointer;
}

.contact-detail-content h4 {
    color: var(--text-light);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-detail-content p, 
.contact-detail-content a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.contact-detail-content a:hover {
    color: var(--accent);
}

.contact-socials {
    display: flex;
    gap: 1rem;
}

.contact-social-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.1);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    cursor: pointer;
}

.contact-social-whatsapp:hover {
    background: var(--whatsapp-green);
    color: #ffffff;
}

.contact-social-btn:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
}

.contact-form-card {
    background: var(--bg-card);
    padding: 4rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.contact-form-card .form-title,
.contact-form-card h3 {
    color: var(--text-light);
}

.form-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

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

.form-full-width {
    grid-column: span 2;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-light);
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    font-family: inherit;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    background: rgba(11, 17, 32, 0.85);
    border-radius: var(--radius-md);
    color: var(--text-dark);
    transition: var(--transition-normal);
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239ca3af' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    padding-right: 2.75rem;
    cursor: pointer;
}

.form-select:required:invalid {
    color: var(--text-muted);
}

.form-select option {
    background-color: #0f1a2e;
    color: #e5e7eb;
}

.form-select option[value=""][disabled] {
    color: #9ca3af;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

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

.form-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-checkbox-group input {
    margin-top: 0.25rem;
}

.form-checkbox-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-checkbox-label a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
}

.form-checkbox-label a:hover {
    color: var(--accent);
}

/* Footer Section */
.footer {
    background: #020510;
    color: rgba(255,255,255,0.6);
    padding: 6rem 0 2.5rem;
    border-top: 1px solid var(--border-accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 4fr 2.5fr 2.5fr 3fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col-title {
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    position: relative;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.footer-about-desc {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.925rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-link {
    font-size: 0.925rem;
}

.footer-link:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    font-size: 0.925rem;
}

.footer-contact-item i {
    color: var(--accent);
    margin-top: 0.25rem;
    font-size: 1.05rem;
}

.footer-contact-item a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.875rem;
    position: relative;
    z-index: 10001;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
    position: relative;
    z-index: 10002;
    margin-right: 5.5rem;
    flex-wrap: wrap;
}

.footer-bottom-link {
    position: relative;
    z-index: 10002;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.5rem 0.25rem;
    color: rgba(255, 255, 255, 0.75);
    -webkit-tap-highlight-color: rgba(56, 189, 248, 0.25);
    touch-action: manipulation;
}

.footer-bottom-link:hover {
    color: var(--accent);
}

/* Modals (Service Detail Popup) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none; /* JS toggled */
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overscroll-behavior: contain;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 32, 18, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-accent);
    animation: modalReveal 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.modal-swipe-zone {
    display: none;
}

.modal-drag-bar {
    display: block;
    width: 44px;
    height: 5px;
    background: rgba(148, 163, 184, 0.55);
    border-radius: var(--radius-full);
}

.modal-swipe-hint {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.72rem;
    color: rgba(148, 163, 184, 0.85);
    letter-spacing: 0.02em;
}

@keyframes modalReveal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.modal-close:hover {
    background: var(--primary);
    color: #0b1120;
}

.modal-hero {
    height: 300px;
    position: relative;
}

.modal-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem;
    background: linear-gradient(transparent, rgba(5, 8, 22, 0.95));
}

.modal-title {
    color: var(--text-light);
    font-size: 2.2rem;
    font-weight: 800;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.modal-body {
    padding: 3rem;
    background: var(--bg-card);
}

.modal-desc {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.modal-features-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.modal-features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.modal-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #ffffff;
    min-width: 0;
    overflow-wrap: anywhere;
    word-wrap: break-word;
}

.modal-feature-item span {
    flex: 1;
    min-width: 0;
}

.modal-feature-item i {
    color: var(--accent);
}

.modal-cta-box {
    background: rgba(56, 189, 248, 0.06);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.modal-cta-text h4 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
    color: var(--text-light);
}

.modal-cta-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background-color: var(--whatsapp-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: var(--transition-normal);
    -webkit-tap-highlight-color: rgba(37, 211, 102, 0.3);
    touch-action: manipulation;
    cursor: pointer;
    pointer-events: auto;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    isolation: isolate;
    text-decoration: none;
}

.floating-whatsapp i {
    pointer-events: none;
}

.floating-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: auto;
    z-index: 3000;
    /* Hidden toast must never block footer legal links on mobile */
    pointer-events: none;
    max-width: min(360px, calc(100vw - 5.5rem));
}

.toast {
    background: var(--primary);
    color: var(--text-light);
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    transform: translateY(100px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                visibility 0.4s;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.toast i {
    color: var(--accent);
}

/* Keyframes for animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Legal Pages (Impressum, Datenschutz, AGB) Layout */
.legal-page-header {
    background: linear-gradient(rgba(5, 8, 22, 0.8), rgba(5, 8, 22, 0.95)), url('../images/hero.webp') no-repeat center center/cover;
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
    border-bottom: 1px solid var(--border-accent);
}

.legal-page-header h1 {
    color: white;
    font-size: 3rem;
    font-weight: 800;
}

.legal-content {
    background: var(--bg-sky);
    padding: 5rem 0;
}

.legal-rich-text {
    max-width: 900px;
    margin: 0 auto;
}

.legal-rich-text h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(13, 61, 107, 0.15);
    color: var(--text-on-sky);
}

.legal-rich-text h3 {
    font-size: 1.25rem;
    margin: 1.75rem 0 1rem;
    color: var(--text-on-sky);
}

.legal-rich-text h4 {
    color: var(--logo-blue-navy);
}

.legal-rich-text p {
    margin-bottom: 1.25rem;
    color: var(--text-on-sky-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.legal-rich-text ul {
    margin: 1.25rem 0 1.25rem 2rem;
    list-style: disc;
}

.legal-rich-text li {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    color: var(--text-on-sky-muted);
}

/* Media Queries (Responsive Design) */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 991px) {
    .header-container {
        height: 80px;
    }

    .header .container.header-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .logo-img {
        height: 56px;
        max-width: min(200px, 58vw);
    }
    
    .menu-toggle {
        display: flex;
        flex-shrink: 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        height: calc(100vh - 80px);
        height: calc(100dvh - 80px);
        background: var(--nav-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        padding: 2rem 1.25rem;
        gap: 1.25rem;
        transition: transform var(--transition-normal);
        transform: translateX(-100%);
        z-index: 999;
        box-shadow: 0 15px 30px rgba(13, 61, 107, 0.15);
        overflow-y: auto;
        overflow-x: hidden;
        border-right: none;
        border-radius: 0;
        box-sizing: border-box;
    }
    
    .nav-menu.open {
        transform: translateX(0);
        pointer-events: auto;
    }

    .nav-menu:not(.open) {
        pointer-events: none;
    }
    
    .nav-link {
        font-size: 1.1rem;
        display: block;
        padding: 0.65rem 0.75rem;
        color: var(--nav-text);
        border-radius: var(--radius-md);
        border-left: 3px solid transparent;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-wrap: break-word;
    }

    .nav-link:hover {
        color: var(--nav-text-hover);
        background: var(--nav-bg-hover);
        border-left-color: var(--logo-blue-navy);
    }

    .nav-link::after {
        display: none;
    }

    .nav-link-legal {
        display: block;
        font-size: 1rem;
        opacity: 0.9;
    }
    
    .nav-actions {
        flex-direction: column;
        align-items: stretch;
        margin-top: 0.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    .nav-whatsapp-btn,
    .nav-phone-btn {
        display: flex;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        justify-content: center;
        padding: 0.75rem 0.5rem;
        white-space: normal;
        overflow-wrap: anywhere;
        word-wrap: break-word;
        text-align: center;
        font-size: 0.8rem;
        line-height: 1.35;
    }

    .modal {
        padding: 0;
        align-items: stretch;
        overflow: hidden;
    }

    .modal-content {
        max-width: 100%;
        width: 100%;
        max-height: 100vh;
        max-height: 100dvh;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin: 0;
        box-sizing: border-box;
    }

    .modal-swipe-zone {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 1.25rem 1rem 0.5rem;
        margin-top: 0.5rem;
    }

    .modal-hero {
        height: 200px;
    }

    .modal-hero-overlay {
        padding: 1.25rem 1rem;
    }

    .modal-title {
        font-size: 1.4rem;
        padding-right: 2.5rem;
    }

    .modal-body {
        padding: 1.25rem 1rem 2rem;
        box-sizing: border-box;
        max-width: 100%;
    }

    .modal-desc {
        font-size: 1rem;
        overflow-wrap: anywhere;
    }

    .modal-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .modal-features-list {
        grid-template-columns: 1fr;
    }

    .modal-cta-box {
        text-align: center;
        justify-content: center;
        padding: 1.25rem;
        flex-direction: column;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4.5rem 0;
    }
    
    .hero-content {
        padding: 0;
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-desc {
        font-size: 1.1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .about-owners {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    #ueber-uns .about-grid,
    #ueber-uns .about-content,
    #ueber-uns .about-stats {
        max-width: 100%;
        min-width: 0;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .stat-card {
        padding: 1.5rem 1.25rem;
    }

    .stat-number {
        font-size: 2.25rem;
        line-height: 1.1;
        overflow-wrap: anywhere;
    }

    .stat-label {
        font-size: 0.85rem;
        overflow-wrap: anywhere;
        line-height: 1.4;
    }

    .about-highlight {
        font-size: 1rem;
        padding: 0.875rem 1rem;
        overflow-wrap: anywhere;
    }

    .about-desc {
        font-size: 1rem;
    }

    .owner-card {
        min-width: 0;
    }

    .owner-name {
        font-size: 0.95rem;
        overflow-wrap: anywhere;
    }

    #angebot-anfordern {
        scroll-margin-top: 90px;
    }
    
    .contact-form-card {
        padding: 2.5rem 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-full-width {
        grid-column: span 1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding-bottom: 6.5rem;
        padding-right: 0;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0.25rem;
        margin-right: 0;
        width: min(100%, calc(100% - 4.75rem));
    }

    .footer-bottom-link {
        width: 100%;
        max-width: 220px;
        padding: 0.65rem 0;
    }

    .legal-page-header {
        padding: 7rem 0 3rem;
    }

    .legal-page-header h1 {
        font-size: 2.25rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .modal-body {
        padding: 1rem 0.875rem 1.75rem;
    }

    .modal-hero {
        height: 160px;
    }

    .modal-title {
        font-size: 1.25rem;
    }
    
    .floating-whatsapp {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 56px;
        height: 56px;
        min-width: 56px;
        min-height: 56px;
        font-size: 1.6rem;
    }
}
