/* ==========================================================================
   PDF AI Renamer — design tokens
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand: #E0553F;
    --brand-dark: #690000;
    --brand-tint: rgba(224, 85, 63, 0.08);
    --brand-tint-strong: rgba(224, 85, 63, 0.14);
    --gold: #7A5A1E;
    --gold-bg: #F5EEDD;
    --ink: #1D1D1F;
    --sub: #6E6E73;
    --sub2: #8E8E93;
    --line: rgba(0, 0, 0, 0.07);
    --bg: #FDFDFD;
    --bg-alt: #F7F7F8;
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --max-width: 1180px;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 32px);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(253, 253, 253, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
}

.logo img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: block;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 36px);
    flex-wrap: wrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--sub);
    transition: color 0.2s ease;
    cursor: pointer;
}

.nav-links a:hover {
    color: var(--ink);
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 3px;
}

.lang-btn {
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    color: var(--sub);
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn:hover {
    color: var(--ink);
}

.lang-btn.active {
    background: var(--ink);
    color: #fff;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--ink);
    padding: 0.4rem;
}

/* Mobile nav overlay */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(20, 12, 10, 0.5);
    backdrop-filter: blur(4px);
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-content {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(320px, 84vw);
    background: var(--bg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.2);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-nav-close {
    background: var(--bg-alt);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--ink);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style: none;
}

.mobile-nav-links a {
    font-size: 17px;
    font-weight: 600;
}

.mobile-lang-btns {
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
}

.mobile-lang-btns .lang-btn {
    flex: 1;
    text-align: center;
    border: 1px solid var(--line);
    padding: 8px 0;
}

/* ==========================================================================
   Page switching (SPA sections)
   ========================================================================== */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    padding: clamp(56px, 9vw, 110px) 0 0;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(180deg, var(--brand-tint-strong) 0%, var(--brand-tint) 45%, rgba(224, 85, 63, 0) 85%);
}

.hero .container {
    max-width: 820px;
}

.hero h1 {
    font-size: clamp(34px, 5.4vw, 70px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.hero .subtitle {
    font-size: clamp(16px, 1.9vw, 21px);
    color: var(--sub);
    font-weight: 400;
    line-height: 1.55;
    max-width: 600px;
    margin: 20px auto 0;
}

.app-store-badge {
    display: inline-block;
    margin-top: 32px;
    transition: transform 0.2s ease;
}

.app-store-badge:hover {
    transform: translateY(-2px);
}

.app-store-badge img {
    height: 54px;
    width: auto;
    display: block;
}

/* Stacked screenshot carousel */
.hero-carousel-stage {
    position: relative;
    max-width: var(--max-width);
    margin: clamp(40px, 7vw, 88px) auto 0;
    padding: 0 clamp(20px, 4vw, 32px);
}

.hero-carousel {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 100%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    height: clamp(320px, 32vw, 400px);
}

.hero-carousel img {
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(320px, 42vw, 560px);
    height: auto;
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.35));
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    transform: translate(-50%, -50%);
}

.hero-carousel img.pos-active {
    transform: translate(-50%, -50%) translateX(0) scale(1);
    opacity: 1;
    z-index: 3;
}

.hero-carousel img.pos-next {
    transform: translate(-50%, -50%) translateX(78%) scale(0.86);
    opacity: 0.55;
    z-index: 2;
}

.hero-carousel img.pos-prev {
    transform: translate(-50%, -50%) translateX(-78%) scale(0.86);
    opacity: 0.55;
    z-index: 2;
}

.hero-carousel img.pos-hidden {
    transform: translate(-50%, -50%) translateX(0) scale(0.7);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.carousel-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 4;
}

.carousel-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    transition: opacity 0.3s ease;
    opacity: 0.35;
}

.carousel-dots span.active {
    opacity: 1;
}

/* ==========================================================================
   Feature sections (alternating image / text)
   ========================================================================== */
.feature-section {
    padding: clamp(90px, 10vw, 140px) 0;
}

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

.features-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: clamp(40px, 6vw, 90px);
    align-items: center;
}

.features-layout.reverse .app-demo {
    order: 1;
}

.features-layout.reverse .features-content {
    order: 2;
}

.app-demo {
    display: flex;
    justify-content: center;
}

.app-demo img {
    width: 100%;
    max-width: 520px;
    height: auto;
    display: block;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: transform 0.25s ease;
}

.app-demo img:hover {
    transform: translateY(-4px);
}

.badge {
    display: inline-block;
    background: var(--brand-tint);
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.features-content h2 {
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 14px;
}

.features-content > p {
    font-size: 17px;
    color: var(--sub);
    line-height: 1.6;
    max-width: 520px;
    margin: 0 0 32px;
}

.features-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px 24px;
}

.feature-check {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.check-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

.feature-check span {
    font-size: 15px;
    font-weight: 500;
}

/* ==========================================================================
   Premium section
   ========================================================================== */
.premium-section {
    position: relative;
    padding: clamp(90px, 10vw, 140px) 0;
    background: radial-gradient(ellipse 900px 700px at 90% 10%, rgba(224, 85, 63, 0.30) 0%, transparent 60%),
        linear-gradient(160deg, #2E1A12 0%, #170D09 100%);
    color: #fff;
    overflow: hidden;
}

.premium-layout {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: clamp(40px, 6vw, 90px);
    align-items: center;
}

.premium-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.premium-content h2 {
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 14px;
}

.premium-content > .subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 520px;
    margin: 0 0 36px;
    text-align: left;
}

.premium-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.premium-feature {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 20px 22px;
}

.premium-feature h4 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.premium-feature h4 .new-badge {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--gold);
    background: var(--gold-bg);
    padding: 3px 8px;
    border-radius: 6px;
}

.premium-feature p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.55;
}

.premium-image {
    display: flex;
    justify-content: center;
}

.premium-image img {
    width: 100%;
    max-width: 520px;
    height: auto;
    display: block;
    border-radius: 14px;
    cursor: pointer;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.4));
    transition: transform 0.25s ease;
}

.premium-image img:hover {
    transform: translateY(-4px);
}

/* ==========================================================================
   Benefits grid
   ========================================================================== */
.benefits {
    padding: clamp(90px, 10vw, 140px) 0;
}

.benefits h2 {
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
    margin: 0 0 14px;
}

.benefits .subtitle {
    font-size: 17px;
    color: var(--sub);
    text-align: center;
    max-width: 560px;
    margin: 0 auto 56px;
    line-height: 1.6;
}

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

.benefit-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--brand-tint);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
}

.benefit-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.benefit-card p {
    font-size: 14.5px;
    color: var(--sub);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact {
    padding: clamp(90px, 10vw, 140px) 0;
}

.contact h2 {
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
    margin: 0 0 14px;
}

.contact .subtitle {
    font-size: 17px;
    color: var(--sub);
    text-align: center;
    max-width: 560px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.contact-form {
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: clamp(28px, 5vw, 44px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05);
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--sub);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    color: var(--ink);
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 10px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand);
    background: #fff;
}

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

.submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: var(--brand);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.submit-btn:hover:not(:disabled) {
    opacity: 0.92;
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-status {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
}

.form-status.success {
    background: #EAF7EE;
    color: #1F7A3D;
}

.form-status.error {
    background: #FCEAE8;
    color: #B3261E;
}

/* ==========================================================================
   Legal pages (Impressum / Datenschutz)
   ========================================================================== */
.legal-page {
    padding: clamp(90px, 10vw, 140px) 0;
}

.legal-content {
    max-width: 760px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 32px;
}

.legal-content h2 {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 40px 0 12px;
}

.legal-content h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 28px 0 10px;
}

.legal-content h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 20px 0 8px;
    color: var(--sub);
}

.legal-content p {
    font-size: 15px;
    color: var(--sub);
    line-height: 1.7;
    margin: 0 0 14px;
}

.legal-content small {
    font-size: 12.5px;
    color: var(--sub2);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    padding: clamp(64px, 8vw, 96px) 0 40px;
    border-top: 1px solid var(--line);
    background: linear-gradient(to bottom, var(--brand-tint) 0%, transparent 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 360px;
}

.footer-brand h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
}

.footer-brand h4::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: url('../images/appicon-light.png') center / cover;
}

.footer-brand p {
    font-size: 14.5px;
    color: var(--sub);
    line-height: 1.6;
    margin: 0 0 22px;
}

.app-store-button {
    display: inline-block;
    transition: opacity 0.2s ease;
}

.app-store-button:hover {
    opacity: 0.8;
}

.app-store-button img {
    height: 44px;
    width: auto;
    display: block;
}

.footer-section h5 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sub2);
    margin: 0 0 18px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-section a {
    font-size: 14.5px;
    color: var(--sub);
}

.footer-section a:hover {
    color: var(--ink);
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--sub2);
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 6, 5, 0.86);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 20px clamp(12px, 2.5vw, 56px);
}

.lightbox.active {
    display: flex;
}

.lightbox-image-wrap {
    position: relative;
    max-width: 100%;
    max-height: 100%;
}

.lightbox img {
    display: block;
    max-width: 96vw;
    max-height: 94vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: clamp(8px, 2vw, 32px);
}

.lightbox-next {
    right: clamp(8px, 2vw, 32px);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .language-switcher {
        display: none;
    }

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

@media (max-width: 768px) {
    .hero-carousel {
        height: clamp(240px, 60vw, 320px);
    }

    .hero-carousel img {
        width: clamp(220px, 62vw, 340px);
    }

    .features-layout.reverse .app-demo {
        order: 0;
    }

    .features-layout.reverse .features-content {
        order: 1;
    }

    .footer-content {
        gap: 36px;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 24px;
    }

    .lightbox-arrow {
        width: 40px;
        height: 40px;
    }
}
