/* Sprachorbit Styles - styles.css */
:root {
    --bg: #e4eaff;
    --text: #00022F;
    --accent: #FF8F00;
    --accent2: #EBEBEB;
    --muted: #42506A;
    --card: rgba(3, 14, 79, 0.06)
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: 'Nunito', ui-sans-serif, system-ui, Segoe UI, Roboto, 'Helvetica Neue', Arial;
    background: var(--bg);
    color: var(--text);
    line-height: 1.45
}

/* Page transition overlay — sits below header (z-index 100) */
#nav-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg);
    opacity: 0;
    pointer-events: none;
    z-index: 50;
    transition: opacity 0.15s ease;
}

#nav-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

#nav-overlay.leaving {
    pointer-events: auto;
}

#nav-overlay.visible {
    opacity: 1;
}

#nav-overlay.leaving {
    pointer-events: auto;
}

/* Stars */
.sky {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -2
}

.star {
    position: absolute;
    background: radial-gradient(#fff, rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    opacity: .9
}

/* Orbit rings */
.orbit-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none
}

.ring {
    border: 1px solid rgba(96, 165, 250, 0.08);
    border-radius: 50%;
    position: absolute;
    mix-blend-mode: screen
}

.ring.r1 {
    width: 1400px;
    height: 1400px;
    animation: spin 60s linear infinite
}

.ring.r2 {
    width: 900px;
    height: 900px;
    animation: spin 90s linear reverse infinite
}

@keyframes spin {
    from {
        transform: rotate(0)
    }

    to {
        transform: rotate(360deg)
    }
}

header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 0 rgba(3, 14, 79, 0.07);
    padding: 0 20px;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    filter: drop-shadow(0 12px 36px rgba(3, 14, 79, 0.38));
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-title {
    font-size: 2rem;
    font-weight: 700;
    font-style: italic;
    color: var(--text);
    letter-spacing: 0.01em;
    line-height: 1.1;
}

.nav-tagline {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.01em;
}

.nav-links {
    display: flex;
    gap: 28px;
    border-bottom: 2px solid rgba(3, 14, 79, 0.12);
    padding-bottom: 6px;
}

.nav-link {
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    color: #6b7280;
    transition: opacity .15s;
}

.nav-link:hover {
    opacity: .65;
}

.nav-link.active {
    color: var(--accent);
    font-weight: 700;
}

.brand {
    display: flex;
    gap: 14px;
    align-items: center
}

.logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06)
}

h1 {
    font-size: clamp(28px, 6vw, 48px);
    margin: 0 0 12px
}

h2 {
    font-size: clamp(22px, 3.5vw, 34px);
    margin: 0 0 12px
}

.hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

.hero-logo img {
    width: 220px;
    max-width: 100%;
    border-radius: 16px;
    display: block;
}

.card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 28px;
    border-radius: 16px
}

.hero-left p.lead {
    color: var(--muted);
    margin: 0 0 20px;
    font-size: 1.65rem;
    line-height: 1.65;
}

.hl {
    color: var(--text);
    font-weight: 700;
    background: linear-gradient(120deg, rgba(255,143,0,0.18) 0%, rgba(255,143,0,0.08) 100%);
    border-radius: 4px;
    padding: 0 4px;
}

.cta {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    background: var(--accent);
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none
}

.cta,
.submit {
    transition: transform .14s ease, box-shadow .14s ease, filter .14s ease
}

.cta:hover,
.submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(255, 117, 31, 0.16)
}

.cta:active,
.submit:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(255, 117, 31, 0.12)
}

.cta:focus,
.submit:focus {
    outline: 3px solid rgba(255, 117, 31, 0.14);
    outline-offset: 3px
}

/* Astronaut SVG */
.astro-wrap {
    display: flex;
    align-items: center;
    justify-content: center
}

.astro {
    width: 100%;
    max-width: 360px
}

/* Section wrappers */
main {
    padding: 0
}

.sec-wrap {
    background: var(--bg);
    padding: 40px 20px 60px
}

.sec-blue {
    background: var(--bg)
}


.section {
    max-width: 1100px;
    margin: 32px auto;
    display: grid;
    gap: 20px
}

.video-placeholder {
    position: relative;
    background: linear-gradient(180deg, #071126 0%, #071631 100%);
    height: 320px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center
}

.video-placeholder .play {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer
}

.ebook-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: start
}

.pain-item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.005));
    border-radius: 12px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.03)
}

.photo-placeholder {
    height: 140px;
    border-radius: 8px;
    border: 1px dashed rgba(3, 14, 79, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    margin-top: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(3, 14, 79, 0.02))
}

.pain-item h4 {
    margin: 0 0 8px
}

.pain-item p {
    margin: 0;
    color: var(--muted)
}

.ebook-cover {
    background: linear-gradient(135deg, var(--accent2), var(--accent));
    height: 260px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #012;
    font-weight: 700;
    font-size: 1.2rem
}

.signup {
    max-width: 520px
}

.signup h3 {
    font-size: 1.6rem;
    margin-top: 0;
}

/* Logo section layout */
.logo-grid {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 24px;
    align-items: start
}

.logo-box {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    background: var(--card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text);
    border: 1px solid rgba(3, 14, 79, 0.06)
}

.checklist {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.checklist .row {
    display: flex;
    align-items: flex-start;
    gap: 12px
}

.check {
    color: var(--accent);
    font-weight: 700;
    margin-top: 3px
}

/* Testimonials section */
.t-section {
    padding: 36px 0 50px;
    text-align: center;
    border-top: 1px solid rgba(3, 14, 79, 0.12);
}

.t-title {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 700;
    color: var(--text);
    margin: 0 0 36px;
}

.t-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 680px;
    margin: 0 auto;
}

.t-stage {
    flex: 1;
    min-width: 0;
    position: relative;
}

.t-card {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0s 0.5s;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    text-align: left;
}

.t-card.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease;
    position: relative;
    pointer-events: auto;
}

.t-text {
    background: #fff;
    border-radius: 12px;
    padding: 24px 28px;
    color: #1a1a1a;
    line-height: 1.75;
    font-size: 1rem;
}

.t-text p {
    margin: 0;
}

.t-author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.t-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    color: #fff;
    flex-shrink: 0;
}

.t-name {
    font-size: 1.05rem;
    font-style: italic;
    color: #1a1a1a;
    font-weight: 600;
}

.t-arrow {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 3.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    flex-shrink: 0;
    transition: opacity .15s;
}

.t-arrow:hover {
    opacity: .6;
}

.t-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.t-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .2s;
}

.t-dot.active {
    background: var(--accent);
}

.t-quote {
    max-width: 680px;
    margin: 40px auto 0;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text);
    line-height: 1.85;
    border: none;
    padding: 0;
}

/* Kontakt section */
.kontakt-section {
    max-width: 1100px;
    margin: 48px auto 0;
    scroll-margin-top: 120px;
}

.kontakt-inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
    padding: 48px 0 80px;
    border-top: 1px solid rgba(3, 14, 79, 0.1);
}

.kontakt-title {
    font-size: clamp(36px, 7vw, 64px);
    font-weight: 700;
    margin: 0 0 36px;
    line-height: 1.1;
}

.kontakt-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kontakt-row {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--accent);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 700;
}

.kontakt-row:hover {
    text-decoration: underline;
}

.kontakt-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.kontakt-icon svg {
    width: 20px;
    height: 20px;
}

.kontakt-social {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--text);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity .15s;
}

.social-icon:hover {
    opacity: .75;
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.kontakt-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}

.req {
    color: var(--accent);
}

.field input,
.field textarea,
.field select {
    border: 1.5px solid var(--text);
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: var(--text);
    outline: none;
    transition: border-color .15s;
    resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: var(--accent);
}

.nav-cta {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .15s;
}

.nav-cta:hover {
    opacity: .85;
}

.kontakt-send {
    background: var(--text);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity .15s;
}

.kontakt-send:hover {
    opacity: .8;
}

footer {
    background: #fff;
    border-top: 1px solid rgba(3, 14, 79, 0.1);
    padding: 18px 24px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notice {
    font-size: 0.85rem;
    color: var(--muted);
}

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

.footer-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.footer-link:hover {
    text-decoration: underline;
}

/* ========== MOBILE RESPONSIVE ========== */

/* Mobile hamburger (hidden on desktop) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    z-index: 1002;
    position: relative;
}

.mobile-menu-toggle:hover {
    opacity: 0.7;
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* Simple mobile breakpoint */
@media (max-width: 768px) {
    /* Navigation */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none !important;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 350px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 60px 24px 24px;
        border-bottom: none;
        border-left: none;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        pointer-events: auto;
    }

    .nav-links.active {
        display: flex !important;
        animation: slideIn 0.3s ease forwards;
    }

    @keyframes slideIn {
        from {
            transform: translateX(100%);
        }
        to {
            transform: translateX(0);
        }
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 16px 0;
        border-bottom: 1px solid rgba(3, 14, 79, 0.06);
        color: #000 !important;
        font-weight: 600 !important;
        pointer-events: auto;
        position: relative;
        display: block !important;
        width: 100%;
    }

    .nav-link:active {
        background: rgba(255, 143, 0, 0.1);
    }

    @keyframes slideIn {
        from {
            transform: translateX(100%);
        }
        to {
            transform: translateX(0);
        }
    }

    /* Overlay when menu is open */
    .mobile-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 900;
    }

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

    /* Navbar adjustments */
    .nav-logo {
        width: 50px;
        height: 50px;
    }

    .nav-title {
        font-size: 1.3rem;
    }

    .nav-tagline {
        font-size: 0.75rem;
    }

    .nav-cta {
        display: none; /* Hide CTA button on mobile, navigation handles it */
    }

    /* Hero section */
    .hero {
        padding: 40px 16px;
    }

    .hero-left p.lead {
        font-size: 1.2rem;
        line-height: 1.6;
    }

    /* Ebook grid - stack vertically */
    .ebook-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .signup {
        max-width: 100%;
    }

    /* Testimonials carousel - adjust for mobile */
    .t-section {
        padding: 40px 0 30px;
    }

    .t-carousel {
        gap: 8px;
    }

    .t-arrow {
        font-size: 2rem;
        padding: 0 2px;
    }

    .t-text {
        padding: 18px 20px;
        font-size: 0.95rem;
    }

    .t-avatar {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }

    .t-name {
        font-size: 0.95rem;
    }

    .t-dot {
        width: 9px;
        height: 9px;
    }

    /* Kontakt section - stack layout */
    .kontakt-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 0 48px;
    }

    .kontakt-name-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .kontakt-title {
        margin-bottom: 20px;
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

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

    /* Section padding adjustments */
    .sec-wrap {
        padding: 32px 16px 48px;
    }

    .section {
        margin: 24px auto;
    }

    /* Adjust card padding for mobile */
    .card {
        padding: 20px;
    }

    /* Orbit rings - adjust size for mobile */
    .ring.r1 {
        width: 600px;
        height: 600px;
    }

    .ring.r2 {
        width: 400px;
        height: 400px;
    }
}

/* Smaller mobile devices */
@media (max-width: 480px) {
    .nav-brand-text {
        display: flex;
        flex-direction: column;
        gap: 1px;
    }

    .nav-title {
        font-size: 1.1rem;
    }

    .nav-tagline {
        font-size: 0.7rem;
    }

    .nav-links {
        width: 85%;
        max-width: none;
    }

    .t-carousel {
        max-width: 100%;
    }

    .t-text {
        padding: 16px;
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .t-quote {
        font-size: 1rem;
        padding: 0 8px;
    }
}

/* Additional fixes for specific page layouts */
@media (max-width: 768px) {
    /* ueber-mich.html - flex layout with image, stack vertically */
    .card[style*="display:flex;gap:32px"] {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .card[style*="display:flex;gap:32px"] > div:first-child[style*="width:340px"] {
        width: 100% !important;
    }

    .card[style*="display:flex;gap:32px"] img {
        height: 300px !important;
    }

    /* lernangebot.html - 2 column grid, stack on mobile */
    .section > div[style*="grid-template-columns:repeat(2,1fr)"],
    .card-container[style*="grid-template-columns:repeat(2,1fr)"],
    div[style*="grid-template-columns:repeat(2,1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* blog.html - 3 column grid, stack on mobile */
    div[style*="grid-template-columns:repeat(3,1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* Methodik page - LESSA letters */
    div[style*="font-size:3.2rem"] {
        font-size: 2.5rem !important;
        min-width: 40px !important;
    }

    .section p {
        font-size: 1rem !important;
    }

    .section h2 {
        font-size: 1.1rem !important;
    }

    /* Adjust padding on smaller screens */
    .sec-wrap {
        padding: 24px 16px 36px !important;
    }

    .section {
        margin: 16px auto !important;
    }
}