/* Fotospot Landingpage
   Ruhig, typografisch, viel Weißraum. Nutzt die Tokens aus style.css. */

.landing,
.l-nav {
    letter-spacing: 0;
}

.landing {
    --l-wrap: 1240px;
    --l-gutter: clamp(1.25rem, 4vw, 3rem);
    --l-section: clamp(5rem, 11vw, 9rem);
}

[data-theme="light"] .landing,
[data-theme="light"] .l-nav {
    --l-line: rgba(0, 0, 0, 0.12);
}

.landing,
.l-nav {
    --l-line: rgba(255, 255, 255, 0.12);
}

.l-wrap {
    max-width: var(--l-wrap);
    margin: 0 auto;
    padding: 0 var(--l-gutter);
}

/* ---------- Typografie ---------- */

.l-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.l-display {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(3rem, 7.2vw, 6.25rem);
    line-height: 0.98;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.l-display em {
    font-style: italic;
    color: var(--text-secondary);
}

.l-display--sm {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    margin-bottom: 1.25rem;
}

.l-h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.015em;
    text-wrap: balance;
    max-width: 18ch;
}

.l-h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.l-lead {
    font-size: clamp(1.075rem, 1.5vw, 1.25rem);
    line-height: 1.6;
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 34rem;
    margin-top: 2rem;
}

.l-muted {
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.65;
}

/* ---------- Buttons ---------- */

.l-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.l-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0 1.6rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    border: 1px solid var(--text-primary);
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.l-btn--solid {
    background: var(--text-primary);
    color: var(--bg-color);
}

.l-btn--solid:hover {
    background: transparent;
    color: var(--text-primary);
}

.l-btn--line {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--l-line);
}

.l-btn--line:hover {
    border-color: var(--text-primary);
}

.l-btn:focus-visible,
.l-nav a:focus-visible,
.l-theme:focus-visible,
.landing summary:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 3px;
}

/* ---------- Navigation ---------- */

.l-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding-top: env(safe-area-inset-top, 0px);
}

.l-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    height: 5rem;
    max-width: var(--l-wrap, 1240px);
    padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.l-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.l-nav__links {
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.l-nav__links a:hover,
.l-nav__demo:hover {
    color: var(--text-primary);
}

.l-nav__end {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.l-nav__demo {
    font-size: 0.875rem;
    font-weight: 500;
}

.l-theme {
    width: 2.5rem !important;
    height: 2.5rem !important;
}

/* ---------- Hero ---------- */

.l-hero {
    padding-top: clamp(7rem, 14vw, 10rem);
}

.l-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: end;
}

.l-hero__text {
    padding-bottom: clamp(0rem, 3vw, 2.5rem);
}

.l-hero__media {
    margin: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--bg-surface);
}

.l-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% 50%;
}

.l-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: clamp(3rem, 7vw, 5.5rem);
    border-top: 1px solid var(--l-line);
}

.l-facts > div {
    padding: 1.5rem 1.5rem 0 0;
}

.l-facts > div + div {
    padding-left: 1.5rem;
    border-left: 1px solid var(--l-line);
}

.l-facts dt {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.l-facts dd {
    font-size: 0.975rem;
    line-height: 1.45;
}

/* ---------- Sections ---------- */

.l-section {
    padding: var(--l-section) 0;
}

.l-section--surface {
    background: var(--bg-surface);
}

.l-head {
    margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

/* Ablauf */
.l-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 3.5rem);
    counter-reset: none;
}

.l-steps li {
    border-top: 1px solid var(--l-line);
    padding-top: 1.75rem;
}

.l-steps__num {
    display: block;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 2.75rem;
    line-height: 1;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.l-steps h3 {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.6rem;
}

.l-steps p {
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.65;
    max-width: 30rem;
}

/* Funktionen */
.l-spec {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: clamp(2.5rem, 7vw, 7rem);
    align-items: start;
}

.l-spec__intro {
    position: sticky;
    top: 2rem;
}

.l-spec__intro .l-muted {
    margin-top: 1.5rem;
    max-width: 24rem;
}

.l-spec__list > div {
    display: grid;
    grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.6rem 0;
    border-top: 1px solid var(--l-line);
}

.l-spec__list > div:last-child {
    border-bottom: 1px solid var(--l-line);
}

.l-spec__list dt {
    font-weight: 500;
}

.l-spec__list dd {
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.65;
}

/* Bildgrößen */
.l-sizes {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: clamp(2.5rem, 7vw, 7rem);
    align-items: end;
    margin-top: clamp(5rem, 10vw, 8rem);
}

.l-sizes__text .l-muted {
    max-width: 26rem;
}

.l-sizes__row {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.l-sizes__frame {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--bg-color);
    position: relative;
}

/* Ausschnitt vergrößert, damit der Schärfeunterschied sichtbar wird */
.l-sizes__frame img {
    position: absolute;
    width: 600%;
    max-width: none;
    height: auto;
    left: -322%;
    top: -94%;
}

.l-sizes__row li:first-child .l-sizes__frame img {
    filter: blur(6px);
    transform: scale(1.04);
}

.l-sizes__row span {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.l-sizes__row strong {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
}

/* Preise */
.l-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--l-line);
}

.l-plan {
    display: flex;
    flex-direction: column;
    padding: clamp(2rem, 4vw, 3.25rem);
}

.l-plan + .l-plan {
    border-left: 1px solid var(--l-line);
}

.l-plan--accent {
    background: var(--bg-surface);
}

.l-plan h3 {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.l-plan__price {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin: 1.25rem 0 1rem;
    line-height: 1;
}

.l-plan__price span {
    font-size: clamp(3.5rem, 6vw, 4.75rem);
    letter-spacing: -0.03em;
}

.l-plan__price small {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-left: 0.25rem;
}

.l-plan ul {
    list-style: none;
    margin: 2rem 0;
    flex-grow: 1;
}

.l-plan li {
    padding: 0.85rem 0;
    border-top: 1px solid var(--l-line);
    font-size: 0.975rem;
}

.l-plan li:last-child {
    border-bottom: 1px solid var(--l-line);
}

.l-plan .l-btn {
    align-self: flex-start;
}

.l-reqs {
    margin: -0.75rem 0 2rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.l-reqs summary {
    cursor: pointer;
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    list-style: none;
    width: fit-content;
}

.l-reqs summary::-webkit-details-marker {
    display: none;
}

.l-reqs p {
    margin-top: 0.75rem;
    line-height: 1.6;
    font-weight: 300;
}

/* Fragen */
.l-faq {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: clamp(2.5rem, 7vw, 7rem);
    align-items: start;
}

.l-faq .l-head {
    margin-bottom: 0;
}

.l-faq__list details {
    border-top: 1px solid var(--l-line);
}

.l-faq__list details:last-child {
    border-bottom: 1px solid var(--l-line);
}

.l-faq__list summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.4rem 0;
    cursor: pointer;
    list-style: none;
    font-size: 1.0625rem;
    font-weight: 500;
}

.l-faq__list summary::-webkit-details-marker {
    display: none;
}

.l-faq__list summary::after {
    content: '';
    flex-shrink: 0;
    width: 0.6rem;
    height: 0.6rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-25%) rotate(45deg);
    transition: transform 0.2s ease;
    opacity: 0.6;
    margin-right: 0.25rem;
}

.l-faq__list details[open] summary::after {
    transform: translateY(25%) rotate(-135deg);
}

.l-faq__list details p {
    padding: 0 3rem 1.5rem 0;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.7;
    max-width: 40rem;
}

/* Kontakt */
.l-cta {
    text-align: left;
}

.l-cta .l-muted {
    max-width: 30rem;
}

.l-cta__mail {
    display: inline-block;
    margin-top: 2.5rem;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3.4vw, 2.5rem);
    border-bottom: 1px solid var(--l-line);
    padding-bottom: 0.3rem;
    overflow-wrap: anywhere;
    transition: border-color 0.2s ease;
}

.l-cta__mail:hover {
    border-color: var(--text-primary);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .l-nav__links {
        display: none;
    }

    .l-hero__grid,
    .l-spec,
    .l-sizes,
    .l-faq {
        grid-template-columns: 1fr;
    }

    .l-hero__media {
        aspect-ratio: 4 / 3;
    }

    .l-spec__intro {
        position: static;
    }

    .l-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .l-facts > div:nth-child(3) {
        border-left: 0;
        padding-left: 0;
    }

    .l-facts > div {
        padding-bottom: 1.5rem;
    }

    .l-facts > div:nth-child(n + 3) {
        border-top: 1px solid var(--l-line);
    }

    .l-steps {
        grid-template-columns: 1fr;
    }

    .l-steps__num {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 640px) {
    .l-nav__inner {
        height: 4.25rem;
    }

    .l-plans {
        grid-template-columns: 1fr;
    }

    .l-plan + .l-plan {
        border-left: 0;
        border-top: 1px solid var(--l-line);
    }

    .l-spec__list > div {
        grid-template-columns: 1fr;
        gap: 0.4rem;
        padding: 1.25rem 0;
    }

    .l-sizes__row {
        gap: 0.5rem;
    }

    .l-sizes__row span {
        font-size: 0.75rem;
    }

    .l-actions .l-btn {
        flex: 1 1 auto;
    }

    .l-faq__list details p {
        padding-right: 0;
    }
}

@media (max-width: 340px) {
    .l-facts {
        grid-template-columns: 1fr;
    }

    .l-facts > div,
    .l-facts > div + div {
        border-left: 0;
        padding-left: 0;
    }

    .l-facts > div + div {
        border-top: 1px solid var(--l-line);
    }
}
