/* TYPOWP — Landing/Verkaufsseite-Stil, orientiert an geohybrid.de.
 * Dark-Theme, Neon-Gruen #0cf57e. System-Fonts (kein Google-Fonts,
 * TYPOWP-Leitplanke „nichts von fremden Servern"). */

:root {
    --ty-bg-0: var(--token-canvas);
    --ty-bg-1: var(--token-surface);
    --ty-bg-2: var(--token-surface);
    --ty-bg-3: var(--token-surface);
    --ty-text: var(--token-text);
    --ty-text-muted: var(--token-text-muted);
    --ty-accent: var(--token-link);
    --ty-action: var(--token-accent);
    --ty-action-hover: var(--token-accent);
    --ty-line: var(--token-border);
}

*, *::before, *::after { box-sizing: border-box; }

body.typowp-landing {
    margin: 0;
    background: linear-gradient(180deg, var(--ty-bg-0) 0%, var(--ty-bg-1) 100%);
    color: var(--ty-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.typowp-landing a { color: var(--ty-accent); text-decoration: none; }
body.typowp-landing a:hover { text-decoration: underline; }
body.typowp-landing code {
    background: var(--ty-bg-3);
    color: var(--ty-text);
}

/* --- Layout --- */
.ty-wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.2rem; }
.ty-section { padding: 5rem 0; }
.ty-section--alt { background: var(--ty-bg-2); border-top: 1px solid var(--ty-line); border-bottom: 1px solid var(--ty-line); }

/* --- Header / Nav --- */
.ty-nav {
    position: sticky; top: 0; z-index: 50;
    background: var(--ty-bg-1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--ty-line);
}
.ty-nav .ty-wrap {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 0.9rem; padding-bottom: 0.9rem; flex-wrap: wrap; gap: .7rem;
}
.ty-nav-brand {
    font-weight: 700; font-size: 1.15rem; letter-spacing: 0.04em;
    color: var(--ty-text);
}
.ty-nav-brand .ty-dot { color: var(--ty-accent); }
.ty-nav-links { display: flex; gap: 1.4rem; align-items: center; font-size: 0.96rem; }
.ty-nav-links a { color: var(--ty-text-muted); }
.ty-nav-links a:hover { color: var(--ty-accent); text-decoration: none; }

/* --- Hero --- */
.ty-hero {
    padding: 6.5rem 0 4.5rem;
    background:
        radial-gradient(ellipse at top, color-mix(in srgb, var(--ty-accent) 10%, transparent) 0%, transparent 55%),
        var(--ty-bg-0);
    border-bottom: 1px solid var(--ty-line);
}
.ty-hero h1 {
    font-size: clamp(2.1rem, 4.8vw, 3.6rem);
    line-height: 1.15;
    margin: 0 0 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.ty-hero h1 .ty-accent-text { color: var(--ty-accent); }
.ty-hero-lead {
    font-size: clamp(1.05rem, 1.7vw, 1.25rem);
    color: var(--ty-text-muted);
    max-width: 42rem;
    margin: 0 0 2rem;
}
.ty-hero-bullets {
    list-style: none; padding: 0; margin: 0 0 2.5rem;
    display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem;
    color: var(--ty-text-muted); font-size: 0.96rem;
}
.ty-hero-bullets li::before {
    content: "✓"; color: var(--ty-accent); margin-right: 0.4em; font-weight: 700;
}

/* --- Buttons ---
 * Achtung: oben definiert `body.typowp-landing a` die Standard-Linkfarbe
 * (neon-grün). Diese Regel hat Specificity (0,1,2) und würde ein color:#000
 * auf .ty-btn überschreiben. Deshalb die Button-Regeln hier mit dem gleichen
 * body.typowp-landing-Präfix formulieren — gleiche Specificity, kommt
 * spaeter → gewinnt.
 */
body.typowp-landing .ty-btn {
    display: inline-block;
    padding: 0.9em 1.6em;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
    border: 2px solid var(--ty-action);
    background: var(--ty-action);
    color: var(--token-on-accent);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, transform 0.15s;
    text-decoration: none;
}
body.typowp-landing .ty-btn:hover {
    background: var(--ty-action-hover);
    border-color: var(--ty-action-hover);
    color: var(--token-on-accent);
    transform: translateY(-1px);
    text-decoration: none;
}
body.typowp-landing .ty-btn--ghost { background: transparent; color: var(--ty-accent); }
body.typowp-landing .ty-btn--ghost:hover { background: rgba(12, 245, 126, 0.1); color: var(--ty-accent); }

/* --- Headings in den Sektionen --- */
.ty-section h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 0 0 0.6rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.005em;
}
.ty-section-lead {
    color: var(--ty-text-muted);
    max-width: 44rem;
    font-size: 1.05rem;
    margin: 0 0 2.5rem;
}

/* --- Problem-Liste --- */
.ty-problems {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.4rem;
}
.ty-problem {
    background: var(--ty-bg-2);
    border: 1px solid var(--ty-line);
    border-radius: 8px;
    padding: 1.4rem 1.4rem 1.5rem;
}
.ty-problem-num {
    display: inline-block; font-family: ui-monospace, Menlo, Consolas, monospace;
    color: var(--ty-accent); font-size: 0.85rem; letter-spacing: 0.1em;
    margin-bottom: 0.6rem;
}
.ty-problem h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.ty-problem p { margin: 0; color: var(--ty-text-muted); font-size: 0.95rem; }

/* --- Features-Grid --- */
.ty-features {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 1.4rem;
}
.ty-feature {
    background: var(--ty-bg-2);
    border: 1px solid var(--ty-line);
    border-radius: 8px;
    padding: 1.6rem;
    transition: border-color 0.15s, transform 0.15s;
}
.ty-feature:hover { border-color: var(--ty-accent); transform: translateY(-2px); }
.ty-feature-icon {
    width: 2.4rem; height: 2.4rem; border-radius: 6px;
    background: rgba(12, 245, 126, 0.13);
    color: var(--ty-accent); display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin-bottom: 1rem; font-weight: 700;
}
.ty-feature h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.ty-feature p { margin: 0; color: var(--ty-text-muted); font-size: 0.95rem; }
.ty-feature ul { margin: 0.6rem 0 0; padding-left: 1.2rem; color: var(--ty-text-muted); font-size: 0.9rem; }
.ty-feature ul li { margin: 0.2rem 0; }

/* --- Vergleichs-Tabelle --- */
.ty-compare { overflow-x: auto; }
.ty-compare table {
    width: 100%; border-collapse: collapse; min-width: 36rem;
    background: var(--ty-bg-2); border: 1px solid var(--ty-line); border-radius: 8px;
}
.ty-compare th, .ty-compare td {
    padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--ty-line);
    font-size: 0.95rem;
}
.ty-compare thead th {
    background: var(--ty-bg-3); font-weight: 600;
}
.ty-compare tbody tr:last-child td { border-bottom: 0; }
.ty-compare td.ty-yes { color: var(--ty-accent); font-weight: 600; }
.ty-compare td.ty-no  { color: #ff7878; }
.ty-compare td.ty-mid { color: #ffd23f; }

/* --- Audience-Block --- */
.ty-audience {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1.4rem;
}
.ty-audience-card {
    background: var(--ty-bg-2); border: 1px solid var(--ty-line);
    border-radius: 8px; padding: 1.6rem;
}
.ty-audience-card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; color: var(--ty-accent); }
.ty-audience-card p { color: var(--ty-text-muted); font-size: 0.95rem; margin: 0; }

/* --- Trust-Block --- */
.ty-trust {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 1.2rem 2rem;
}
.ty-trust-item { text-align: center; }
.ty-trust-num { display: block; font-size: 2.2rem; font-weight: 700; color: var(--ty-accent); line-height: 1; }
.ty-trust-label { color: var(--ty-text-muted); font-size: 0.92rem; margin-top: 0.3rem; }

/* --- Screenshots --- */
.ty-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1.4rem; }
.ty-shot {
    background: var(--ty-bg-2); border: 1px solid var(--ty-line); border-radius: 8px;
    overflow: hidden;
}
.ty-shot img { width: 100%; height: auto; display: block; }
.ty-shot-placeholder {
    aspect-ratio: 16 / 10;
    display: flex; align-items: center; justify-content: center;
    color: var(--ty-text-muted); background: var(--ty-bg-3);
    font-size: 0.92rem; text-align: center;
}
.ty-shot-caption {
    padding: 0.8rem 1.1rem; color: var(--ty-text-muted); font-size: 0.92rem;
}

/* --- FAQ --- */
.ty-faq details {
    background: var(--ty-bg-2); border: 1px solid var(--ty-line); border-radius: 8px;
    padding: 0.4rem 1.2rem; margin-bottom: 0.7rem;
}
.ty-faq summary {
    cursor: pointer; padding: 0.8rem 0; font-weight: 600; font-size: 1.02rem;
    list-style: none;
}
.ty-faq summary::-webkit-details-marker { display: none; }
.ty-faq summary::before {
    content: "+"; color: var(--ty-accent); display: inline-block; width: 1.2em;
    font-weight: 700; transition: transform 0.15s;
}
.ty-faq details[open] summary::before { content: "−"; }
.ty-faq details[open] summary { color: var(--ty-accent); }
.ty-faq details > div { padding: 0 0 1rem 1.2em; color: var(--ty-text-muted); font-size: 0.97rem; }

/* --- Kontakt-Block (umschliesst den Plugin-Shortcode) --- */
.ty-contact {
    background: var(--ty-bg-2); border: 1px solid var(--ty-accent); border-radius: 8px;
    padding: 2rem; max-width: 38rem;
}
.ty-contact h2 { margin-top: 0; }
.ty-contact form { display: grid; gap: 0.9rem; }
.ty-contact label { display: block; font-size: 0.95rem; color: var(--ty-text-muted); }
.ty-contact input,
.ty-contact textarea,
.ty-contact select {
    width: 100%; padding: 0.7em 0.9em; font: inherit; color: var(--ty-text);
    background: var(--ty-bg-1); border: 1px solid var(--ty-line); border-radius: 4px;
    margin-top: 0.3rem;
}
.ty-contact input:focus,
.ty-contact textarea:focus,
.ty-contact select:focus { outline: 2px solid var(--token-focus-ring); outline-offset: 1px; }
.ty-contact button[type="submit"] { justify-self: start; }
.ty-contact .flash-success { background: rgba(12, 245, 126, 0.12); border: 1px solid var(--ty-accent); padding: 0.8em; border-radius: 4px; color: var(--ty-accent); }
.ty-contact .flash-error { background: rgba(255, 120, 120, 0.12); border: 1px solid #ff7878; padding: 0.8em; border-radius: 4px; color: #ff7878; }

/* --- Footer --- */
.ty-footer {
    background: var(--ty-bg-1); border-top: 1px solid var(--ty-line);
    padding: 2.5rem 0; color: var(--ty-text-muted); font-size: 0.92rem;
}
.ty-footer .ty-wrap { display: flex; flex-wrap: wrap; gap: 1.4rem; justify-content: space-between; align-items: center; }
.ty-footer-links a { color: var(--ty-text-muted); margin-right: 1rem; }
.ty-footer-links a:hover { color: var(--ty-accent); }

/* --- Mobile-Tweaks --- */
@media (max-width: 640px) {
    .ty-section { padding: 3.5rem 0; }
    .ty-hero { padding: 4rem 0 3rem; }
    .ty-nav .ty-wrap { flex-direction: column; gap: 0.6rem; align-items: flex-start; }
    .ty-nav-links { flex-wrap: wrap; gap: 0.9rem; }
    .ty-problems,
    .ty-features,
    .ty-audience,
    .ty-trust,
    .ty-shots { grid-template-columns: minmax(0, 1fr); }
    .ty-status-check { grid-template-columns: auto minmax(0, 1fr); }
    .ty-status-check-body { min-width: 0; overflow-wrap: anywhere; }
    .ty-status-check-state { grid-column: 2; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    .ty-feature, .ty-btn { transition: none; }
}

/* Skip-Link auf Landing braucht angepasste Farben fuer Dark-Mode */
body.typowp-landing .skip-link { background: var(--ty-action); color: var(--token-on-accent); }

/* --- Markenhinweis-Asterisk und Footer-Block --- */
.ty-tm-ref {
    color: var(--ty-accent);
    text-decoration: none;
    font-size: 0.7em;
    vertical-align: super;
    margin-left: 0.05em;
    font-weight: 400;
}
.ty-tm-ref:hover { text-decoration: underline; }
.ty-footer-top {
    display: flex; flex-wrap: wrap; gap: 1.4rem;
    justify-content: space-between; align-items: center;
}
.ty-footer-marken {
    margin-top: 1.5rem; padding-top: 1.4rem;
    border-top: 1px solid var(--ty-line);
}
.ty-footer-marken-title {
    font-size: 0.9rem; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--ty-text);
    margin: 0 0 0.5rem;
}
.ty-footer-marken p {
    color: var(--ty-text-muted); font-size: 0.85rem;
    line-height: 1.55; margin: 0; max-width: 60em;
}
.ty-footer-marken em { font-style: normal; font-weight: 600; color: var(--ty-text); }

/* --- Status-Seite (/status) --- */
.ty-status-overall {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.4rem 1.6rem; border-radius: 8px;
    background: var(--ty-bg-2); border: 1px solid var(--ty-line);
    margin-bottom: 1.5rem;
}
.ty-status-overall--ok   { border-color: var(--ty-accent); }
.ty-status-overall--warn { border-color: #ffd23f; }
.ty-status-overall--fail { border-color: #ff7878; }

.ty-status-dot {
    width: 14px; height: 14px; border-radius: 50%;
    flex-shrink: 0; background: #777;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.04);
}
.ty-status-overall--ok   .ty-status-dot,
.ty-status-check--ok     .ty-status-dot { background: var(--ty-action); box-shadow: 0 0 0 4px rgba(12,245,126,0.18); }
.ty-status-overall--warn .ty-status-dot,
.ty-status-check--warn   .ty-status-dot { background: #ffd23f; box-shadow: 0 0 0 4px rgba(255,210,63,0.18); }
.ty-status-overall--fail .ty-status-dot,
.ty-status-check--fail   .ty-status-dot { background: #ff7878; box-shadow: 0 0 0 4px rgba(255,120,120,0.18); }

.ty-status-text { line-height: 1.4; }
.ty-status-text strong { display: block; font-size: 1.1rem; }
.ty-status-text .small { font-size: 0.85rem; color: var(--ty-text-muted); margin-top: 0.2rem; display: inline-block; }

.ty-status-checks { display: grid; gap: 0.7rem; }
.ty-status-check {
    display: grid; grid-template-columns: auto 1fr auto;
    gap: 0.9rem; align-items: center;
    padding: 0.9rem 1.1rem; border-radius: 6px;
    background: var(--ty-bg-2); border: 1px solid var(--ty-line);
}
.ty-status-check-name { font-weight: 600; }
.ty-status-check-msg  { color: var(--ty-text-muted); font-size: 0.92rem; margin-top: 0.15rem; }
.ty-status-check-state { font-size: 0.85rem; color: var(--ty-text-muted); }
.ty-status-check--ok   .ty-status-check-state { color: var(--ty-accent); }
.ty-status-check--warn .ty-status-check-state { color: #ffd23f; }
.ty-status-check--fail .ty-status-check-state { color: #ff7878; }

body.typowp-landing .muted { color: var(--ty-text-muted); }

/* --- contact-form-Plugin im Dark-Theme der Landing-Seite ueberschreiben --- */
body.typowp-landing .ty-contact .typowp-contact-form {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 1rem 0 0;
    max-width: none;
}
body.typowp-landing .ty-contact .typowp-contact-form label {
    color: var(--ty-text-muted);
}
body.typowp-landing .ty-contact .typowp-contact-form input,
body.typowp-landing .ty-contact .typowp-contact-form textarea {
    background: var(--ty-bg-1);
    color: var(--ty-text);
    border: 1px solid var(--ty-line);
    padding: 0.7em 0.9em;
}
body.typowp-landing .ty-contact .typowp-contact-form input:focus,
body.typowp-landing .ty-contact .typowp-contact-form textarea:focus {
    outline: 2px solid var(--token-focus-ring);
    outline-offset: 1px;
    border-color: var(--token-focus-ring);
}
body.typowp-landing .ty-contact .typowp-contact-form button {
    background: var(--ty-action);
    color: var(--token-on-accent);
    font-weight: 600;
    padding: 0.9em 1.6em;
    border-radius: 4px;
    border: 0;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}
body.typowp-landing .ty-contact .typowp-contact-form button:hover {
    background: var(--ty-action-hover);
    color: var(--token-on-accent);
    transform: translateY(-1px);
}
body.typowp-landing .ty-contact .typowp-contact-form .err {
    background: rgba(255, 120, 120, 0.12);
    color: #ff7878;
    border: 1px solid #ff7878;
}
body.typowp-landing .ty-contact .typowp-contact-thanks {
    background: rgba(12, 245, 126, 0.12);
    color: var(--ty-accent);
    border: 1px solid var(--ty-accent);
}

/* =========================================================================
 * LIGHTBOX — Soft-Zoom-Effekt (Effekt 1, ausgewaehlt durch biostream/NOLTE.PRO).
 * Klick auf einen Screenshot vergroessert ihn auf 80 vw, Schliessen via X,
 * Overlay-Klick oder Escape-Taste. JS in /assets/js/lightbox.js (CSP-konform).
 * ========================================================================= */

/* Klickbare Screenshot-Trigger im Block .ty-shots */
body.typowp-landing .ty-shot button.ty-shot-trigger {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    color: inherit;
    font: inherit;
    text-align: left;
}
body.typowp-landing .ty-shot button.ty-shot-trigger:hover img {
    transform: scale(1.015);
    filter: brightness(1.05);
}
body.typowp-landing .ty-shot button.ty-shot-trigger img {
    transition: transform 0.2s ease-out, filter 0.2s ease-out;
}

/* Body-Klasse während die Lightbox offen ist: Scroll sperren */
body.typowp-lightbox-noscroll { overflow: hidden; }

/* Lightbox-Container — fix-positioniert ueber allem */
.typowp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5vh 4vw;
    visibility: hidden;
    pointer-events: none;
}
.typowp-lightbox.is-open,
.typowp-lightbox.is-closing { visibility: visible; pointer-events: auto; }

.typowp-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    opacity: 0;
}

.typowp-lightbox-content {
    position: relative;
    width: 80vw;
    max-width: 1400px;
    z-index: 2;
    opacity: 0;
}

.typowp-lightbox-img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    display: block;
    border-radius: 6px;
    background: #131820;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

/* X-Schliessen-Knopf, rechts oben am Bild — pflichtgemaess deutlich sichtbar */
.typowp-lightbox-close {
    position: absolute;
    top: -2.4rem;
    right: 0;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    background: #0cf57e;
    color: #000;
    border: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: background 0.15s, transform 0.15s;
}
.typowp-lightbox-close:hover,
.typowp-lightbox-close:focus-visible {
    background: #fff;
    transform: scale(1.06);
    outline: 2px solid #0cf57e;
    outline-offset: 3px;
}

.typowp-lightbox-caption {
    text-align: center;
    color: #b6c0cc;
    margin-top: 0.8rem;
    font-size: 0.95rem;
}

/* Animation: Soft-Zoom (cubic-bezier mit leichtem Spring-Ueberschwung) */
.typowp-lightbox.is-open .typowp-lightbox-overlay {
    animation: typowp-lb-overlay-in 350ms ease-out forwards;
}
.typowp-lightbox.is-open .typowp-lightbox-content {
    animation: typowp-lb-zoom-in 450ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.typowp-lightbox.is-closing .typowp-lightbox-overlay {
    animation: typowp-lb-overlay-out 250ms ease-in forwards;
}
.typowp-lightbox.is-closing .typowp-lightbox-content {
    animation: typowp-lb-zoom-out 250ms ease-in forwards;
}

@keyframes typowp-lb-overlay-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes typowp-lb-overlay-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes typowp-lb-zoom-in {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}
@keyframes typowp-lb-zoom-out {
    from { transform: scale(1);    opacity: 1; }
    to   { transform: scale(0.92); opacity: 0; }
}

/* Reduced-Motion-Anwender bekommen nur sanftes Fade, kein Zoom */
@media (prefers-reduced-motion: reduce) {
    .typowp-lightbox.is-open .typowp-lightbox-content,
    .typowp-lightbox.is-closing .typowp-lightbox-content {
        animation: typowp-lb-overlay-in 200ms ease-out forwards;
    }
}

/* Mobile: X-Knopf rueckt INS Bild damit er nicht aus dem Viewport faellt */
@media (max-width: 720px) {
    .typowp-lightbox { padding: 2vh 3vw; }
    .typowp-lightbox-content { width: 94vw; }
    .typowp-lightbox-close {
        top: 0.6rem;
        right: 0.6rem;
        width: 1.8rem;
        height: 1.8rem;
        font-size: 0.95rem;
    }
}
