:root {
    --jo-orange: #f97316;
    --jo-dark: #111827;
    --jo-gray: #6b7280;
    --jo-bg: #f9fafb;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--jo-bg);
    color: var(--jo-dark);
}

.jo-wrap {
    max-width: 480px;
    margin: 0 auto;
    padding: 32px 20px 60px;
    text-align: center;
}

h1 { font-size: 1.8rem; margin-bottom: 8px; }
.jo-sub { color: var(--jo-gray); margin-bottom: 24px; }
.jo-hint { color: var(--jo-gray); font-size: 0.85rem; margin-top: 16px; }

.jo-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    text-align: left;
}

.jo-card label { display: block; font-weight: 600; margin: 16px 0 6px; font-size: 0.9rem; }
.jo-card label:first-child { margin-top: 0; }

.jo-card input[type="text"],
.jo-card input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
}

.jo-btn-primary {
    display: inline-block;
    background: var(--jo-orange);
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.jo-btn-secondary {
    display: inline-block;
    background: #fff;
    color: var(--jo-dark);
    border: 1px solid #e5e7eb;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.jo-block { display: block; width: 100%; margin-top: 12px; }
#jo-form button { width: 100%; margin-top: 20px; }

.jo-link-field {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.jo-question-card {
    text-align: center;
    position: relative;
    min-height: 280px;
}

.jo-brand {
    color: var(--jo-orange);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.jo-buttons {
    position: relative;
    height: 180px;
    margin-top: 24px;
}

.jo-ja-btn {
    position: absolute;
    left: 20px;
    top: 60px;
}

.jo-nein-btn {
    position: absolute;
    right: 20px;
    top: 60px;
    transition: transform 0.15s ease, left 0.2s ease, top 0.2s ease;
}

.jo-result { margin-top: 24px; }
.jo-result-text { font-size: 1.2rem; font-weight: 700; }

/* --- Header / Hero / Landingpage-Erweiterungen --- */

.jo-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}
.jo-logo {
    font-weight: 800;
    color: var(--jo-dark);
    text-decoration: none;
    font-size: 1.1rem;
}
.jo-logo::first-letter { color: var(--jo-orange); }

.jo-hero { text-align: center; padding: 24px 0 8px; }
.jo-eyebrow {
    color: var(--jo-orange);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.jo-hero h1 { font-size: 2rem; margin: 8px 0 12px; }
.jo-hero .jo-btn-primary { margin-top: 16px; }

.jo-example { margin: 32px 0; }
.jo-example-card { text-align: center; }
.jo-example-question { font-size: 1.2rem; font-weight: 700; margin: 12px 0 20px; }
.jo-example-buttons { display: flex; justify-content: center; gap: 16px; }
.jo-example-ja, .jo-example-nein {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 700;
}
.jo-example-ja { background: var(--jo-orange); color: #fff; }
.jo-example-nein { background: #fff; border: 1px solid #e5e7eb; color: var(--jo-gray); }

.jo-form-section { margin-top: 24px; }
.jo-form-section h2 { text-align: center; margin-bottom: 16px; }

.jo-honeypot { position: absolute; left: -9999px; top: -9999px; }

.jo-checkbox-label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 0.82rem;
    color: var(--jo-gray);
    margin-top: 14px;
    font-weight: 400;
}
.jo-checkbox-label input { margin-top: 3px; }

.jo-share-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
}
.jo-share-btn {
    display: block;
    text-align: center;
    padding: 10px 6px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    color: var(--jo-dark);
    font-size: 0.85rem;
    font-weight: 600;
}

.jo-qr { display: block; margin: 16px auto 0; border-radius: 8px; }

.jo-stats { text-align: left; }
.jo-question-preview { font-weight: 700; margin-bottom: 16px; }
.jo-stat-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.jo-viral {
    text-align: center;
    margin-top: 20px;
}
.jo-viral-text { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }

.jo-legal-notice {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    font-size: 0.85rem;
    margin-bottom: 16px;
}
.jo-legal-text h2 { font-size: 1rem; margin-top: 18px; }
.jo-legal-text h2:first-child { margin-top: 0; }
.jo-legal-text p { font-size: 0.9rem; color: #374151; line-height: 1.5; }

.jo-footer {
    text-align: center;
    padding: 24px 0 40px;
    font-size: 0.85rem;
}
.jo-footer a { color: var(--jo-gray); text-decoration: none; margin: 0 10px; }

/* --- Pro-Feature: Foto-Avatar, Formular-Details --- */

.jo-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 8px;
    display: block;
    border: 2px solid var(--jo-orange);
}

.jo-pro-details {
    margin-top: 16px;
    border: 1px dashed #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
}
.jo-pro-details summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
}
.jo-pro-details label { margin-top: 12px; }
.jo-pro-details select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.jo-avatar-icon {
    background: #f9fafb;
    padding: 8px;
    border-color: #e5e7eb;
}

/* --- "Sag's uns"-Feedback --- */
.jo-feedback-toggle-btn {
    background: none;
    border: none;
    color: var(--jo-gray);
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
    display: block;
    margin: 16px auto 0;
}
.jo-feedback-form { margin-top: 16px; }
.jo-feedback-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 8px;
}
