/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6c5ce7;
    --primary-light: #a29bfe;
    --primary-dark: #4a3db8;
    --accent: #00cec9;
    --accent-light: #81ecec;
    --bg: #f8f9fe;
    --bg-card: #ffffff;
    --text: #2d3436;
    --text-light: #636e72;
    --text-muted: #b2bec3;
    --border: #dfe6e9;
    --success: #00b894;
    --warning: #fdcb6e;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 20px rgba(108, 92, 231, 0.1);
    --shadow-lg: 0 8px 40px rgba(108, 92, 231, 0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== Screens ===== */
.screen {
    display: none;
    min-height: 100vh;
    padding: 2rem 1rem;
    animation: fadeIn 0.4s ease;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* ===== Hero / Home ===== */
.hero {
    text-align: center;
    padding: 3rem 0 2rem;
}

.logo {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.logo .accent {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.25rem;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.description {
    color: var(--text-light);
    max-width: 480px;
    margin: 0 auto 2rem;
    font-size: 0.95rem;
}

/* ===== Buttons ===== */
.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(108, 92, 231, 0.45);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--primary);
    border: 2px solid var(--primary-light);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-tertiary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--border);
    font-size: 0.95rem;
    padding: 0.7rem 1.6rem;
}

.btn-tertiary:hover {
    color: var(--primary);
    border-color: var(--primary-light);
    background: var(--bg-card);
}

.btn-icon {
    font-size: 1.2rem;
    transition: var(--transition);
}

.btn-primary:hover .btn-icon {
    transform: translateX(3px);
}

.btn-back {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.btn-back:hover {
    color: var(--primary-dark);
}

/* ===== Info Cards ===== */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-top: 3rem;
}

.info-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.info-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.info-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== Quiz ===== */
.quiz-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
    transition: width 0.4s ease;
    width: 0%;
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
    white-space: nowrap;
}

.quiz-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: slideIn 0.35s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.quiz-question {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.likert-scale {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.likert-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    font-size: 1rem;
}

.likert-btn:hover {
    border-color: var(--primary-light);
    background: white;
}

.likert-btn.selected {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.08);
}

.likert-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    flex-shrink: 0;
    transition: var(--transition);
    position: relative;
}

.likert-btn:hover .likert-dot {
    border-color: var(--primary-light);
}

.likert-btn.selected .likert-dot {
    border-color: var(--primary);
    background: var(--primary);
}

.likert-btn.selected .likert-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.likert-label {
    color: var(--text);
    font-weight: 500;
}

/* ===== Results ===== */
.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 2rem;
}

.subsection-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 2.5rem 0 1.25rem;
}

.chart-container {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.chart-bar-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.chart-label {
    width: 130px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: right;
    flex-shrink: 0;
}

.chart-bar-bg {
    flex: 1;
    height: 24px;
    background: var(--bg);
    border-radius: 12px;
    overflow: hidden;
}

.chart-bar-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 4px;
}

.chart-value {
    width: 35px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
}

/* ===== Top Motives ===== */
.top-motives {
    display: grid;
    gap: 1rem;
}

.top-motive-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.top-motive-card .motive-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    margin-right: 0.75rem;
}

.top-motive-card h4 {
    display: inline;
    font-size: 1.15rem;
}

.top-motive-card .motive-desc {
    color: var(--text-light);
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.top-motive-card .motive-traits {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.trait-tag {
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===== Education Filter ===== */
.education-filter {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.education-filter-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
}

.education-filter-buttons {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.edu-filter-btn {
    padding: 0.4rem 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    background: white;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.edu-filter-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.edu-filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== Career Suggestions ===== */
.career-suggestions {
    display: grid;
    gap: 1rem;
}

.career-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.career-card h4 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.career-card .career-match {
    font-size: 0.85rem;
    color: var(--success);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.career-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.career-tag {
    background: var(--bg);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

/* ===== Combo Career Cards ===== */
.combo-intro {
    color: var(--text-light);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.combo-card {
    border-left: 4px solid var(--primary-light);
    transition: var(--transition);
}

.combo-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.combo-triple {
    border-left-color: var(--accent);
    background: linear-gradient(135deg, var(--bg-card), rgba(0, 206, 201, 0.03));
}

.combo-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.combo-badge {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.combo-card .combo-badge {
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary);
}

.combo-triple .combo-badge {
    background: rgba(0, 206, 201, 0.15);
    color: var(--accent);
}

.combo-why {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.combo-card .career-match {
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* ===== Explore / Motive Grid ===== */
.explore-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.explore-header .section-title {
    text-align: left;
    flex: 1;
    font-size: 1.6rem;
}

.motive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.motive-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.motive-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.motive-card .motive-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.motive-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.motive-card p {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* ===== Detail ===== */
.detail-content {
    margin-top: 1.5rem;
}

.detail-content .detail-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.detail-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.detail-content .detail-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.detail-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.25rem;
}

.detail-section h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
}

.detail-section ul {
    list-style: none;
    padding: 0;
}

.detail-section li {
    padding: 0.35rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text);
}

.detail-section li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* ===== Education Card ===== */
.education-card {
    animation: fadeIn 0.4s ease;
}

.education-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.education-hint {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.education-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.education-btn {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    font-size: 1rem;
}

.education-btn:hover {
    border-color: var(--primary-light);
    background: white;
}

.education-btn.selected {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.08);
}

.edu-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.edu-label {
    font-weight: 500;
    color: var(--text);
}

.edu-desc {
    width: 100%;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-left: 2.05rem;
    margin-top: -0.2rem;
}

.edu-filter-info {
    background: rgba(108, 92, 231, 0.06);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    border-left: 3px solid var(--primary-light);
}

/* ===== Career Search ===== */
.career-search-container {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.career-search-intro {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.career-search-input-wrap {
    position: relative;
    margin-bottom: 1rem;
}

.career-search-input {
    width: 100%;
    padding: 0.9rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: var(--transition);
}

.career-search-input:focus {
    outline: none;
    border-color: var(--primary-light);
    background: white;
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

.career-search-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    max-height: 280px;
    overflow-y: auto;
}

.career-suggestion-item {
    padding: 0.7rem 1.25rem;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.15s ease;
}

.career-suggestion-item:hover {
    background: rgba(108, 92, 231, 0.08);
    color: var(--primary-dark);
}

.career-search-result {
    min-height: 0;
}

.search-no-result {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
    padding: 0.5rem 0;
}

.search-result-card {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    animation: fadeIn 0.3s ease;
}

.search-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.search-result-header h4 {
    font-size: 1.1rem;
    color: var(--text);
}

.search-score {
    font-weight: 700;
    font-size: 1rem;
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    white-space: nowrap;
}

.search-score-high {
    background: rgba(0, 184, 148, 0.15);
    color: var(--success);
}

.search-score-mid {
    background: rgba(253, 203, 110, 0.25);
    color: #e67e22;
}

.search-score-low {
    background: rgba(231, 76, 60, 0.12);
    color: #e74c3c;
}

.search-edu-warning {
    background: rgba(253, 203, 110, 0.15);
    border-left: 3px solid var(--warning);
    padding: 0.5rem 0.75rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.search-score-bar-bg {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.search-score-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.search-score-bar-fill.search-score-high { background: var(--success); }
.search-score-bar-fill.search-score-mid { background: #fdcb6e; }
.search-score-bar-fill.search-score-low { background: #e74c3c; }

.search-motive-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.search-motive-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.search-motive-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    font-size: 0.9rem;
}

.search-motive-name {
    color: var(--text);
}

.search-motive-score {
    font-weight: 600;
    color: var(--text-light);
}

/* ===== Erdmännchen-Familie ===== */
.meerkat-family {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0.5rem;
    margin: 1.5rem auto 0;
    padding: 0 1rem;
    max-width: 500px;
}

.meerkat {
    display: block;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.1));
    cursor: pointer;
    transition: filter 0.3s ease;
}

.meerkat:hover {
    filter: drop-shadow(0 6px 12px rgba(108, 92, 231, 0.25));
}

.meerkat-papa {
    width: 90px;
    height: 170px;
    animation: meerkatBob 3s ease-in-out infinite;
}

.meerkat-mama {
    width: 78px;
    height: 150px;
    animation: meerkatBob 3.5s ease-in-out infinite 0.5s;
}

.meerkat-kid {
    width: 62px;
    height: 130px;
    animation: meerkatBounce 2s ease-in-out infinite;
}

.meerkat-baby {
    width: 48px;
    height: 100px;
    animation: meerkatBob 2.8s ease-in-out infinite 1s;
}

/* Kopf-Animationen */
.meerkat-look {
    transform-origin: center bottom;
    animation: meerkatLook 4s ease-in-out infinite alternate;
}

.meerkat-tilt {
    transform-origin: center bottom;
    animation: meerkatTilt 3s ease-in-out infinite alternate;
}

/* Blinzel-Animation */
.meerkat-blink {
    animation: meerkatBlink 4s ease-in-out infinite;
}

/* Fragezeichen-Animation */
.meerkat-question-mark {
    animation: meerkatFloat 2s ease-in-out infinite alternate;
}

/* Sternchen-Animation */
.meerkat-sparkle {
    animation: meerkatSparkle 2s ease-in-out infinite;
}

.meerkat-sparkle-2 {
    animation-delay: 0.7s;
}

/* ---- Quiz-Begleiter ---- */
.meerkat-quiz-companion {
    display: flex;
    justify-content: flex-end;
    margin-bottom: -1rem;
    margin-right: 1rem;
}

.meerkat-curious {
    width: 70px;
    height: 120px;
    animation: meerkatBob 3s ease-in-out infinite;
    opacity: 0.85;
}

/* ---- Ergebnis-Header mit Erdmännchen ---- */
.result-header-with-meerkats {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.result-header-with-meerkats .section-title {
    margin-bottom: 0;
}

.meerkat-celebrate-left {
    width: 65px;
    height: 110px;
    animation: meerkatCelebrate 1.5s ease-in-out infinite;
}

.meerkat-celebrate-right {
    width: 55px;
    height: 95px;
    animation: meerkatCelebrate 1.5s ease-in-out infinite 0.3s;
}

/* ---- Explore-Wächter ---- */
.explore-header {
    position: relative;
}

.meerkat-lookout {
    width: 50px;
    height: 100px;
    flex-shrink: 0;
    animation: meerkatBob 3s ease-in-out infinite;
}

/* ===== Erdmännchen Keyframes ===== */
@keyframes meerkatBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes meerkatBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(-2deg); }
    75% { transform: translateY(-3px) rotate(2deg); }
}

@keyframes meerkatLook {
    0% { transform: rotate(-3deg); }
    100% { transform: rotate(3deg); }
}

@keyframes meerkatTilt {
    0% { transform: rotate(-5deg); }
    100% { transform: rotate(5deg); }
}

@keyframes meerkatBlink {
    0%, 42%, 44%, 96%, 98%, 100% { transform: scaleY(1); }
    43%, 97% { transform: scaleY(0.1); }
}

@keyframes meerkatFloat {
    0% { transform: translateY(0); opacity: 0.4; }
    100% { transform: translateY(-5px); opacity: 0.8; }
}

@keyframes meerkatSparkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes meerkatCelebrate {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-12px) rotate(-3deg); }
    75% { transform: translateY(-4px) rotate(3deg); }
}

/* Hover-Keyframes */
@keyframes meerkatJumpScare {
    0% { transform: translateY(0) scale(1); }
    20% { transform: translateY(-30px) scale(1.05); }
    40% { transform: translateY(-25px) rotate(-8deg) scale(1.05); }
    60% { transform: translateY(-25px) rotate(8deg) scale(1.05); }
    80% { transform: translateY(-10px) rotate(0deg); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes meerkatSpin {
    0% { transform: rotateY(0deg) scale(1); }
    50% { transform: rotateY(180deg) scale(1.1); }
    100% { transform: rotateY(360deg) scale(1); }
}

@keyframes meerkatExcited {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

@keyframes meerkatWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-12deg); }
    75% { transform: rotate(12deg); }
}

@keyframes meerkatNod {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    30% { transform: translateY(5px) rotate(5deg); }
    60% { transform: translateY(-3px) rotate(-2deg); }
}

@keyframes meerkatBackflip {
    0% { transform: translateY(0) rotate(0deg); }
    30% { transform: translateY(-40px) rotate(-10deg); }
    60% { transform: translateY(-35px) rotate(360deg); }
    80% { transform: translateY(-10px) rotate(365deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

@keyframes meerkatStretch {
    0%, 100% { transform: scaleY(1) translateY(0); }
    50% { transform: scaleY(1.2) translateY(-10px); }
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .screen {
        padding: 1.25rem 0.75rem;
    }

    .logo {
        font-size: 2.25rem;
    }

    .tagline {
        font-size: 1.05rem;
    }

    .quiz-card {
        padding: 1.75rem 1.25rem;
    }

    .quiz-question {
        font-size: 1.1rem;
    }

    .chart-label {
        width: 90px;
        font-size: 0.75rem;
    }

    .motive-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .motive-card {
        padding: 1rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    /* Erdmännchen kleiner auf Mobile */
    .meerkat-family {
        gap: 0.25rem;
        max-width: 320px;
    }

    .meerkat-papa {
        width: 65px;
        height: 122px;
    }

    .meerkat-mama {
        width: 56px;
        height: 108px;
    }

    .meerkat-kid {
        width: 45px;
        height: 94px;
    }

    .meerkat-baby {
        width: 36px;
        height: 75px;
    }

    .meerkat-curious {
        width: 50px;
        height: 85px;
    }

    .meerkat-celebrate-left {
        width: 45px;
        height: 76px;
    }

    .meerkat-celebrate-right {
        width: 40px;
        height: 68px;
    }

    .meerkat-lookout {
        width: 38px;
        height: 76px;
    }
}

@media (max-width: 380px) {
    .motive-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Clickable Info Cards ===== */
.info-card-clickable {
    cursor: pointer;
    transition: var(--transition);
}

.info-card-clickable:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.info-card-clickable:active {
    transform: translateY(-1px);
}

/* ===== About Page ===== */
.about-hero {
    text-align: center;
    padding: 2rem 0 1.5rem;
}

.about-hero h1 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.about-subtitle {
    color: var(--text-light);
    font-size: 1.05rem;
}

.about-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.8rem;
    margin-bottom: 1.2rem;
    box-shadow: var(--shadow);
}

.about-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
}

.about-section p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.about-section p:last-child {
    margin-bottom: 0;
}

.about-motive-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
}

.about-motive-chip {
    background: rgba(108, 92, 231, 0.08);
    color: var(--primary-dark);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.about-steps {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.about-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.about-step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-step-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.about-step-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

.about-disclaimer {
    border-left: 4px solid var(--warning);
}

.about-source {
    font-size: 0.8rem !important;
    color: var(--text-muted) !important;
    font-style: italic;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.about-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 2rem 0;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .about-hero h1 {
        font-size: 1.4rem;
    }

    .about-section {
        padding: 1.3rem;
    }
}

/* ===== Intro Section (Startseite) ===== */
.intro-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.intro-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.intro-text {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.intro-text:last-of-type {
    margin-bottom: 0.5rem;
}

.intro-source {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

/* ===== Detail Page (Motive) ===== */
.detail-text-section {
    margin-bottom: 1.5rem;
}

.detail-paragraph {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.detail-paragraph:last-child {
    margin-bottom: 0;
}

.detail-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-traits-high,
.detail-traits-low {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 1.2rem;
}

.detail-traits-high h3,
.detail-traits-low h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.trait-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.trait-tag-detail {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
}

.trait-high {
    background: rgba(108, 92, 231, 0.12);
    color: var(--primary-dark);
}

.trait-low {
    background: rgba(0, 206, 201, 0.12);
    color: #00897b;
}

.detail-careers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ===== Career Cards (Detail View) ===== */
.detail-career-list {
    display: grid;
    gap: 0.75rem;
}

.career-card-detail {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 1rem 1.2rem;
    border-left: 3px solid var(--primary-light);
    transition: var(--transition);
}

.career-card-detail:hover {
    border-left-color: var(--primary);
    box-shadow: var(--shadow);
}

.career-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.career-type-icon {
    font-size: 1.1rem;
}

.career-card-header strong {
    font-size: 0.95rem;
    color: var(--text);
}

.career-card-field {
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    padding-left: 1.6rem;
}

.career-card-level {
    font-size: 0.78rem;
    color: var(--text-muted);
    padding-left: 1.6rem;
}

/* ===== Rich Career Tags (Quiz Results) ===== */
.career-tag-rich {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.9rem;
    border-left: 3px solid var(--primary-light);
    width: 100%;
}

.career-tag-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.career-tag-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.career-tag-info strong {
    font-size: 0.88rem;
    color: var(--text);
}

.career-tag-field {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
}

.search-training-info {
    font-size: 0.9rem;
    color: var(--text);
    padding: 0.5rem 0.8rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.career-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (max-width: 600px) {
    .detail-columns {
        grid-template-columns: 1fr;
    }

    .intro-section {
        padding: 1.5rem;
    }

    .career-card-detail {
        padding: 0.8rem 1rem;
    }
}
