/* ========================================
   dineXtion – Apple-Inspired Design
   Hell, clean, dunkle Akzente
   ======================================== */

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

:root {
    --black: #1d1d1f;
    --black-rich: #000000;
    --gray-900: #1d1d1f;
    --gray-700: #424245;
    --gray-600: #6e6e73;
    --gray-400: #86868b;
    --gray-300: #d2d2d7;
    --gray-200: #e8e8ed;
    --gray-100: #f5f5f7;
    --white: #ffffff;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition: 0.4s var(--ease);
    --radius: 16px;
    --radius-sm: 10px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--gray-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

/* --- Focus Styles (Accessibility) --- */
*:focus-visible {
    outline: 2px solid var(--black);
    outline-offset: 2px;
}

.btn:focus-visible {
    outline: 2px solid var(--black);
    outline-offset: 3px;
}

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 2000;
    padding: 12px 24px;
    background: var(--black);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    color: var(--white);
}

/* --- Screen Reader Only --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Body Scroll Lock (Mobile Menu) --- */
body.menu-open {
    overflow: hidden;
}

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

ul { list-style: none; }

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    border-radius: 980px;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: -0.01em;
}

.btn-dark {
    background: var(--black);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--gray-700);
}

.btn-outline {
    background: transparent;
    color: var(--black);
    border: 1.5px solid var(--gray-300);
}

.btn-outline:hover {
    border-color: var(--black);
}

.btn-full {
    width: 100%;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.nav-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
}

.nav-logo-img {
    height: 28px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--gray-700);
    letter-spacing: 0;
    transition: color var(--transition);
}

.nav-link:hover {
    color: var(--black);
}

.nav-link-cta {
    background: var(--black);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 980px;
    font-weight: 500;
}

.nav-link-cta:hover {
    background: var(--gray-700);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--black);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* --- Hero --- */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    background: var(--white);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo-wrapper {
    width: 280px;
    height: 280px;
    background: var(--black-rich);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 48px;
    box-shadow:
        0 2px 4px rgba(0,0,0,0.04),
        0 12px 28px rgba(0,0,0,0.12),
        0 40px 80px rgba(0,0,0,0.08);
}

.hero-logo {
    width: 200px;
    height: auto;
}

.hero-slogan {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    color: var(--gray-600);
    line-height: 1.5;
    max-width: 480px;
    margin-bottom: 40px;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* --- Trust Bar --- */
.trust-bar {
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    padding: 20px 0;
    background: var(--gray-100);
}

.trust-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
    letter-spacing: -0.01em;
}

.trust-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gray-400);
    flex-shrink: 0;
}

/* --- Sections --- */
.section {
    padding: 140px 0;
}

.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-600);
    margin-bottom: 12px;
}

.section-eyebrow.light {
    color: var(--gray-400);
}

.section-headline {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--black);
    margin-bottom: 64px;
}

.section-headline.light {
    color: var(--white);
}

/* --- About --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-text p {
    color: var(--gray-700);
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-text .large-text {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--gray-900);
    line-height: 1.6;
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-card {
    background: var(--gray-100);
    padding: 36px;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.about-card:hover {
    background: var(--gray-200);
}

.about-card-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-400);
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.about-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.about-card p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* --- Services (Dark Section) --- */
.section-dark {
    background: var(--black-rich);
    color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.service-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 48px 40px;
    transition: all var(--transition);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.service-number {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: 20px;
    line-height: 1;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--white);
    letter-spacing: -0.02em;
}

.service-desc {
    color: var(--gray-400);
    margin-bottom: 28px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-list li {
    position: relative;
    padding-left: 16px;
    font-size: 0.9rem;
    color: var(--gray-300);
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gray-400);
}

/* --- Contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 80px;
    align-items: start;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--gray-900);
    background: var(--gray-100);
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: var(--white);
    border-color: var(--black);
}

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

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2386868b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-status {
    margin-top: 16px;
    font-size: 0.9rem;
    text-align: center;
}

.form-status.success { color: #34c759; }
.form-status.error { color: #ff3b30; }

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-top: 8px;
}

.contact-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
}

.contact-info-item a {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--black);
}

.contact-info-item a:hover {
    color: var(--gray-600);
}

.contact-info-item p {
    font-size: 1.05rem;
    color: var(--gray-700);
    line-height: 1.5;
}

/* --- Footer --- */
.footer {
    background: var(--gray-100);
    padding: 48px 0;
    border-top: 1px solid var(--gray-200);
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo-img {
    height: 24px;
    width: auto;
}

.footer-nav {
    display: flex;
    gap: 28px;
}

.footer-nav a {
    font-size: 0.82rem;
    color: var(--gray-600);
    transition: color var(--transition);
}

.footer-nav a:hover {
    color: var(--black);
}

.footer-bottom {
    border-top: 1px solid var(--gray-200);
    padding-top: 24px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--gray-400);
}

/* --- Legal Pages --- */
.legal {
    padding: 140px 0 80px;
}

.legal h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--black);
    margin-bottom: 48px;
}

.legal h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--black);
    margin: 32px 0 12px;
}

.legal h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 20px 0 8px;
}

.legal p,
.legal li {
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 8px;
}

.legal a {
    color: var(--black);
    text-decoration: underline;
}

.legal ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.legal ul li {
    list-style: disc;
}

.back-link {
    display: inline-block;
    margin-bottom: 32px;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.back-link:hover {
    color: var(--black);
}

/* --- Scroll Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 52px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        flex-direction: column;
        align-items: center;
        padding: 28px 0;
        gap: 20px;
        border-bottom: 1px solid var(--gray-200);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero-logo-wrapper {
        width: 200px;
        height: 200px;
        border-radius: 32px;
        margin-bottom: 36px;
    }

    .hero-logo {
        width: 140px;
    }

    .section {
        padding: 100px 0;
    }

    .section-headline {
        margin-bottom: 48px;
    }

    .about-grid,
    .services-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 32px 28px;
    }

    .footer-top {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero-slogan {
        font-size: 1.8rem;
    }

    .section-headline {
        font-size: 2rem;
    }

    .trust-bar-inner {
        gap: 12px;
        font-size: 0.8rem;
    }
}
