/* PassGrid V3 - "Efficient Trust" Design System */

:root {
    /* --- Color Tokens (Trust Palette) --- */
    --color-white: #FFFFFF;
    --color-bg-subtle: #F8FAFC;
    /* Slate 50 - Very subtle */

    /* Typography Colors */
    --color-text-title: #0F172A;
    /* Slate 900 - Deep Navy */
    --color-text-body: #334155;
    /* Slate 700 - Highly readable */
    --color-text-muted: #64748B;
    /* Slate 500 */

    /* Brand Colors */
    --color-primary: #2563EB;
    /* Royal Blue */
    --color-primary-light: #60A5FA;
    --color-primary-hover: #1D4ED8;
    --color-success: #10B981;
    /* Emerald */
    --color-border: #E2E8F0;
    /* Slate 200 */

    /* --- Spacing System --- */
    --spacing-xs: 0.5rem;
    /* 8px */
    --spacing-sm: 1rem;
    /* 16px */
    --spacing-md: 2rem;
    /* 32px */
    --spacing-lg: 4rem;
    /* 64px */
    --spacing-xl: 8rem;
    /* 128px */

    /* --- Typography --- */
    /* -- Local Font: Inter -- */
    @font-face {
        font-family: 'Inter';
        font-style: normal;
        font-weight: 400;
        font-display: swap;
        src: url('../fonts/web/Inter-Regular.woff2') format('woff2'),
            url('../fonts/web/Inter-Regular.woff') format('woff');
    }

    @font-face {
        font-family: 'Inter';
        font-style: normal;
        font-weight: 500;
        font-display: swap;
        src: url('../fonts/web/Inter-Medium.woff2') format('woff2'),
            url('../fonts/web/Inter-Medium.woff') format('woff');
    }

    @font-face {
        font-family: 'Inter';
        font-style: normal;
        font-weight: 600;
        font-display: swap;
        src: url('../fonts/web/Inter-SemiBold.woff2') format('woff2'),
            url('../fonts/web/Inter-SemiBold.woff') format('woff');
    }

    @font-face {
        font-family: 'Inter';
        font-style: normal;
        font-weight: 700;
        font-display: swap;
        src: url('../fonts/web/Inter-Bold.woff2') format('woff2'),
            url('../fonts/web/Inter-Bold.woff') format('woff');
    }

    --font-sans: 'Inter',
    system-ui,
    -apple-system,
    sans-serif;

    /* --- Shadows (SaaS Depth) --- */
    --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-float: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* --- Radius --- */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-full: 9999px;
}

/* --- Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-body);
    line-height: 1.6;
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    scroll-behavior: smooth;
    /* Smooth scrolling */
}

/* --- Animations --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

h1,
h2,
h3 {
    font-family: var(--font-sans);
    color: var(--color-text-title);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

/* --- Components --- */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    /* Lift effect */
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    /* Stronger shadow */
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-body);
}

.btn-ghost:hover {
    background: var(--color-bg-subtle);
    color: var(--color-primary);
}

/* Navbar Responsive */
.navbar {
    border-bottom: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Desktop Links */
.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 100;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-text-title);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Mobile State */
@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
    }

    /* Hamburger Animation */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}

.navbar.scrolled {
    padding: 0.5rem 0;
    /* Shrink padding */
    background: rgba(255, 255, 255, 0.95);
    /* More opaque */
    box-shadow: var(--shadow-sm);
}

.logo-img {
    height: 70px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar.scrolled .logo-img {
    height: 50px;
    /* Shrink logo */
}

/* --- Nav Dropdown --- */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-text-body);
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    line-height: 1.5;
    transition: color 0.2s;
}

.nav-dropdown-toggle:hover {
    color: var(--color-primary);
}

.nav-dropdown-arrow {
    font-size: 0.65em;
    display: inline-block;
    transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-arrow,
.nav-dropdown.open .nav-dropdown-arrow {
    transform: rotate(180deg);
}

/* Desktop panel */
@media (min-width: 901px) {
    .nav-dropdown-menu {
        position: absolute;
        top: calc(100% + 0.75rem);
        left: 50%;
        transform: translateX(-50%) translateY(-6px);
        min-width: 230px;
        background: #fff;
        border: 1px solid var(--color-border);
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        padding: 0.4rem 0;
        z-index: 200;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
    }

    /* Bridge the gap between button and panel so hover doesn't break */
    .nav-dropdown-menu::before {
        content: '';
        position: absolute;
        bottom: 100%;
        left: 0;
        right: 0;
        height: 0.75rem;
    }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown.open .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .nav-dropdown-menu a {
        display: block;
        padding: 0.55rem 1.25rem;
        font-size: 0.875rem;
        color: var(--color-text-body);
        white-space: nowrap;
        transition: background 0.1s, color 0.1s;
    }

    .nav-dropdown-menu a:hover {
        background: var(--color-bg-subtle);
        color: var(--color-primary);
    }
}

/* Mobile panel */
@media (max-width: 900px) {
    .nav-dropdown-menu {
        position: static;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        border-left: 2px solid var(--color-border);
        margin: 0.25rem 0 0 0;
        transition: max-height 0.25s ease;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        max-height: 280px;
    }

    .nav-dropdown-menu a {
        display: block;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        color: var(--color-text-body);
    }

    .nav-dropdown-menu a:hover {
        color: var(--color-primary);
    }
}

/* --- Responsive Layouts --- */

/* Feature Band (Mobile First: Stacked) */
.feature-band {
    padding: var(--spacing-md) 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
    position: relative;
}

.feature-band .text-col,
.feature-band .visual-col {
    width: 100%;
}

/* Desktop: Side-by-Side */
@media (min-width: 900px) {
    .feature-band {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
    }

    .feature-band.ratio-text {
        grid-template-columns: 1.2fr 0.8fr;
    }

    .feature-band.ratio-visual {
        grid-template-columns: 0.8fr 1.2fr;
    }

    /* Order reset for grid */
    .feature-band.reversed .text-col {
        order: 2;
    }

    .feature-band.reversed .visual-col {
        order: 1;
    }
}

/* Visuals */
.feature-visual {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    width: 100%;
    /* Ensure full width on mobile */
}

/* Gradient Blobs */
.blob-bg {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    opacity: 0.4;
    max-width: 100%;
    /* Prevent overflow */
}

.blob-blue {
    background: #3B82F6;
}

.blob-cyan {
    background: #06B6D4;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Stacked by default */
    gap: 1.5rem;
    padding: var(--spacing-lg) 0;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.bento-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: all 0.2s;
}

.bento-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

/* Typo Response */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }
}

/* Badges */
.trust-badge {
    background: #ECFDF5;
    color: #047857;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
}

/* Custom Checkmark Icon */
.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: var(--color-primary);
    /* Branded Blue */
    color: white;
    border-radius: 50%;
    font-size: 12px;
    margin-right: 10px;
    flex-shrink: 0;
}

/* --- Contact Page Grids --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile: Stacked */
    gap: 3rem;
}

.form-grid-2col {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile: Stacked */
    gap: 1.5rem;
}

@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
        gap: 4rem;
    }

    .form-grid-2col {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Testimonial Slider --- */
.testimonial-container {
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.testimonial-slide {
    display: none;
    animation: fadeUp 0.5s ease-out;
}

.testimonial-slide.active {
    display: block;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border);
    cursor: pointer;
    transition: all 0.2s;
}

/* --- Form Components (Contact Page) --- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text-title);
    font-size: 0.95rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text-body);
    transition: all 0.2s;
    background: #FFFFFF;
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* --- FAQ Accordion --- */
details {
    margin-bottom: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: white;
    overflow: hidden;
}

summary {
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    position: relative;
    color: var(--color-text-title);
    transition: background 0.2s;
}

summary::-webkit-details-marker {
    display: none;
}

summary:hover {
    background: var(--color-bg-subtle);
}

summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

details[open] summary::after {
    content: '−';
}

.faq-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--color-text-body);
    font-size: 0.95rem;
    line-height: 1.6;
    border-top: 1px solid var(--color-border);
}

details[open] .faq-content {
    animation: fadeUp 0.3s ease-out;
}

.category-title {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
}

/* --- Nav Dropdown (Lösungen) --- */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-trigger {
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--color-text-body);
    transition: color 0.2s;
}

.nav-dropdown-trigger::after {
    content: '▾';
    font-size: 0.7rem;
    opacity: 0.6;
    transition: transform 0.2s;
    line-height: 1;
}

.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown.active .nav-dropdown-trigger {
    color: var(--color-primary);
}

.nav-dropdown:hover .nav-dropdown-trigger::after,
.nav-dropdown.active .nav-dropdown-trigger::after {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-float);
    min-width: 250px;
    padding: 0.5rem;
    z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.active .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--color-text-body);
    transition: background 0.15s, color 0.15s;
    font-weight: 400;
}

.nav-dropdown-menu a:hover {
    background: var(--color-bg-subtle);
    color: var(--color-primary);
}

@media (max-width: 900px) {
    .nav-dropdown {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0.25rem;
    }

    .nav-dropdown-trigger::after {
        display: none;
    }

    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--color-border);
        border-radius: 0;
        display: block;
        padding: 0.25rem 0.75rem;
        min-width: unset;
        width: 100%;
    }

    .nav-dropdown-menu a {
        padding: 0.4rem 0;
        font-size: 0.9rem;
    }
}