/* AUTHEN7IC Financial Journey - Styling */

/* Fonts importieren */
@import url('https://fonts.googleapis.com/css2?family=Gothic+A1:wght@300;400;600;700&display=swap');

/* Century Gothic Alternative: Gothic A1 (Google Font) */

:root {
    --primary-dark: #1a2440;
    --primary-light: #2b7abf;
    --text-color: #333;
    --bg-color: #f5f5f5;
    --white: #ffffff;
    --success: #27ae60;
    --error: #e74c3c;
    --warning: #f39c12;
    
    --font-body: 'Gothic A1', 'Century Gothic', 'Arial', sans-serif;
    --font-heading: 'Gothic A1', 'Century Gothic', 'Arial', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background: var(--bg-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; text-align: center; }
h2 { font-size: 2rem; text-align: center; }
h3 { font-size: 1.5rem; text-align: center; }

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.progress-bar .step {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.progress-bar .step:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.1);
}

.progress-bar .step.active {
    background: var(--white);
    color: var(--primary-dark);
    font-weight: 600;
}

.progress-bar .step.done {
    opacity: 0.8;
}

/* Content Container */
.content-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    animation: fadeIn 0.5s ease;
}

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

/* Cards */
.card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.form-control, input, select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-family: 'Gothic A1', 'Century Gothic', 'Arial', sans-serif !important;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="password"],
select,
textarea {
    font-family: 'Gothic A1', 'Century Gothic', 'Arial', sans-serif !important;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(43, 122, 191, 0.1);
    transform: scale(1.01);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #6c757d;
}

.btn-success {
    background: var(--success);
}

.btn-danger {
    background: var(--error);
}

/* Zeitungsartikel (Fundamentale Fakten) */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.article-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.article-card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
    z-index: 10;
}

.article-card:hover img {
    transform: scale(1.1);
}

.article-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 36, 64, 0.9), transparent);
    color: var(--white);
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.article-card:hover .article-overlay {
    transform: translateY(0);
}

/* House of AUTHEN7IC */
.house-container {
    position: relative;
    padding: 3rem 0;
}

.house-layer {
    background: var(--white);
    padding: 2rem;
    margin: 1rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease forwards;
}

.house-layer:nth-child(1) { animation-delay: 0.1s; }
.house-layer:nth-child(2) { animation-delay: 0.2s; }
.house-layer:nth-child(3) { animation-delay: 0.3s; }
.house-layer:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.house-layer:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 24px rgba(43, 122, 191, 0.2);
    background: linear-gradient(135deg, var(--white), #f0f8ff);
}

.house-layer h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

/* Prioritäten */
.priority-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.priority-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    border: 3px solid transparent;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.priority-card:hover {
    border-color: var(--primary-light);
    transform: scale(1.05);
}

.priority-card.selected {
    border-color: var(--primary-dark);
    background: linear-gradient(135deg, #f0f8ff, var(--white));
    box-shadow: 0 8px 16px rgba(43, 122, 191, 0.3);
}

.priority-card h4 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(43, 122, 191, 0.3);
    border-top-color: var(--primary-light);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 9999;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--error); }
.toast.warning { border-left: 4px solid var(--warning); }

/* Tooltips */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    background-color: var(--primary-dark);
    color: var(--white);
    text-align: center;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
    font-size: 0.9rem;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .progress-bar {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .progress-bar .step {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .content-container {
        padding: 1rem;
        margin: 1rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}

/* Video Player */
video {
    width: 100%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem 2rem;
    background: var(--white);
    border-bottom: 1px solid #ddd;
}

.breadcrumbs a {
    color: var(--primary-light);
    text-decoration: none;
    margin-right: 0.5rem;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Print Styles */
@media print {
    .progress-bar, .btn, .nav-buttons {
        display: none;
    }
}


/* ========== FRAGESTRECKEN DESIGN ========== */

/* Card Block für Fragestrecken-Abschnitte */
.card-block {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.card-block h2 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: left;
}

.question-block {
    margin-bottom: 2rem;
}

.question-block:last-child {
    margin-bottom: 0;
}

.question-block h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
    text-align: left;
}

.question-block p.small {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

/* Tile Grid - Anklickbare Kacheln nebeneinander */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

/* Choice Tile - Einzelne anklickbare Kachel */
.choice-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 100px;
}

.choice-tile:hover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

/* Verstecke Checkbox/Radio */
.choice-tile input[type="checkbox"],
.choice-tile input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Ausgewählter Zustand */
.choice-tile input:checked ~ .tile-title,
.choice-tile input:checked ~ .tile-desc {
    color: white;
}

.choice-tile:has(input:checked) {
    background: linear-gradient(90deg, #1a2440, #2b7abf);
    border-color: #2b7abf;
    color: white;
}

.choice-tile:has(input:checked) .tile-title {
    color: white;
    font-weight: 600;
}

.choice-tile:has(input:checked) .tile-desc {
    color: rgba(255, 255, 255, 0.9);
}

/* Tile Titel */
.tile-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.3rem;
    transition: color 0.3s ease;
}

/* Tile Beschreibung */
.tile-desc {
    font-size: 0.85rem;
    color: #666;
    transition: color 0.3s ease;
}

/* Intro Text */
.intro-text {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Label für normale Inputs */
.card-block label:not(.choice-tile) {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}

.card-block label:not(.choice-tile):first-of-type {
    margin-top: 0;
}

/* Select und Input Felder */
.card-block select,
.card-block input[type="text"],
.card-block input[type="number"],
.card-block input[type="email"],
.card-block textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.card-block select:focus,
.card-block input:focus,
.card-block textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* Responsive für kleinere Bildschirme */
@media (max-width: 768px) {
    .tile-grid {
        grid-template-columns: 1fr;
    }
    
    .card-block {
        padding: 1.5rem;
    }
}
