/* ========================================
   Design System – Kamal Mohamed
   Türkis/Mint Farbschema
   ======================================== */

:root {
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --bg-primary: #d5f7f2;
    --bg-secondary: #e8faf7;
    --bg-white: #ffffff;
    --accent: #2ea8a8;
    --accent-dark: #238585;
    --accent-light: #45c2c2;
    --text-primary: #1a2e2b;
    --text-secondary: #3d5854;
    --text-muted: #6b8a85;
    --border-light: rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* ========================================
   Base Styles
   ======================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin-top: 0;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-dark);
}

h1:focus {
    outline: none;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.65rem 1.75rem;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.02em;
}

.btn-sm {
    font-size: 0.8rem;
    padding: 0.45rem 1.25rem;
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-outline-accent {
    background-color: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline-accent:hover {
    background-color: var(--accent);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn:focus, .btn:active:focus {
    box-shadow: 0 0 0 0.15rem rgba(46, 168, 168, 0.3);
    outline: none;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 2rem 0;
    min-height: 60vh;
}

.hero-avatar {
    width: 550px;
    height: 530px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 4px solid var(--border-color);
    box-shadow: 0 24px 29px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    -webkit-user-drag: none;
    user-select: none;
}

.hero-text {
    flex: 1;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1.25rem 0;
    line-height: 1.1;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.hero-divider {
    width: 480px;
    height: 2px;
    background: var(--accent);
    border: none;
    margin: 1.5rem 0;
}

.hero-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 1rem 0;
    }

    .hero-avatar {
        width: 200px;
        height: 200px;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .hero-divider {
        margin: 1.5rem auto;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ========================================
   Sections
   ======================================== */

.elegant-section {
    padding: 1rem 0;
}

.elegant-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0.03em;
}

.section-divider {
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    margin: 1.25rem auto 0;
    border-radius: 2px;
}

/* ========================================
   Cards
   ======================================== */

.card-dark {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.card-dark:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(46, 168, 168, 0.2);
}

.card-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.card-dark h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.card-dark p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.card-size {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========================================
   Download Grid
   ======================================== */

.download-filters {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .download-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Skill Badges
   ======================================== */

.skill-badge {
    display: inline-block;
    background-color: rgba(46, 168, 168, 0.1);
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    border: 1px solid rgba(46, 168, 168, 0.2);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* ========================================
   About Page
   ======================================== */

.about-content {
    display: grid;
    gap: 2rem;
}

.about-block {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    backdrop-filter: blur(8px);
}

.about-block:hover {
    box-shadow: var(--shadow-sm);
}

.about-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.about-block h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.branch-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
}

.branch-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.branch-list li i {
    color: var(--accent);
    width: 20px;
    text-align: center;
}

/* ========================================
   Tables (Wissen Page)
   ======================================== */

.wissen-content {
    display: grid;
    gap: 2.5rem;
}

.wissen-section h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.wissen-section h2 i {
    color: var(--accent);
}

.table-responsive {
    overflow-x: auto;
}

.elegant-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.elegant-table thead th {
    background-color: rgba(46, 168, 168, 0.08);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1.25rem;
    border-bottom: 2px solid rgba(46, 168, 168, 0.15);
}

.elegant-table tbody td {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.elegant-table tbody tr:last-child td {
    border-bottom: none;
}

.elegant-table tbody tr:hover {
    background-color: rgba(46, 168, 168, 0.03);
}

.text-warning {
    color: #d4a017 !important;
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-delay-1 {
    animation-delay: 0.1s;
    opacity: 0;
}

.animate-delay-2 {
    animation-delay: 0.2s;
    opacity: 0;
}

.animate-delay-3 {
    animation-delay: 0.3s;
    opacity: 0;
}

.animate-delay-4 {
    animation-delay: 0.4s;
    opacity: 0;
}

/* ========================================
   Timeline (Lebenslauf)
   ======================================== */

.timeline {
    position: relative;
    padding-left: 2.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: rgba(46, 168, 168, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2.5rem;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--accent);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 2px var(--accent);
    z-index: 1;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    backdrop-filter: blur(8px);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.timeline-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.timeline-date {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    background-color: rgba(46, 168, 168, 0.08);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    white-space: nowrap;
}

.timeline-company {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-style: italic;
}

.timeline-content ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.timeline-content li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

@media (max-width: 768px) {
    .timeline {
        padding-left: 2rem;
    }

    .timeline-marker {
        left: -2rem;
        width: 14px;
        height: 14px;
    }

    .timeline-header {
        flex-direction: column;
    }
}

/* ========================================
   CV Sections (Lebenslauf)
   ======================================== */

.cv-section {
    margin-bottom: 2.5rem;
}

.cv-section h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(46, 168, 168, 0.15);
    margin-bottom: 1.5rem;
}

.cv-section h2 i {
    color: var(--accent);
}

.cv-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.cv-contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all 0.25s ease;
}

.cv-contact-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(46, 168, 168, 0.2);
}

.cv-contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(46, 168, 168, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.cv-contact-icon i {
    color: var(--accent);
    font-size: 1rem;
}

.cv-contact-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cv-contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.15rem;
}

.cv-contact-details span,
.cv-contact-details a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    word-break: break-word;
}

.cv-contact-details a:hover {
    color: var(--accent);
}

.competence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.competence-category {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.competence-category h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.cert-list {
    list-style: none;
    padding: 0;
}

.cert-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.cert-list li i {
    color: var(--accent);
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.50rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
}

.language-item2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.00rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
}

.language-name {
    font-weight: 500;
    color: var(--text-primary);
}

.language-level {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========================================
   Password Gate (Lebenslauf)
   ======================================== */

.password-gate {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    padding: 2rem;
}

.password-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 3rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
}

.password-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.password-card h2 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.password-card > p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.password-form {
    display: flex;
    gap: 0.75rem;
}

.password-form .form-control {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
    background: #ffffff;
}

.password-form .form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(46, 168, 168, 0.15);
}

.text-danger {
    color: #c0392b !important;
    font-size: 0.85rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

/* ========================================
   Blazor Error UI
   ======================================== */

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ========================================
   Blazor Error Boundary
   ======================================== */

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcHA6MyI+PHJlY3QgeD0iMjM2LjA4NjEiIHk9IjQ5LjA1MTEwMyIgd2lkdGg9IjU2IiBoZWlnaHQ9IjQ5Ii8+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA9NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA6IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDg gNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzQgeD0iMTA2IiB5PSIxOTkuNzY5Ij48cmVjdCB4PSI4Mi43MjI1IiB5PSI5Ni4xMDY0NyIgd2lkdGg9IjU2IiBoZWlnaHQ9IjQ5Ii8+PHBhdGggZD0iTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA8NC4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "Ein Fehler ist aufgetreten.";
}

/* ========================================
   Image Protection
   ======================================== */

img {
    max-width: 100%;
    height: auto;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

/* ========================================
   Form Controls
   ======================================== */

.form-control:focus {
    box-shadow: 0 0 0 0.15rem rgba(46, 168, 168, 0.3);
    border-color: var(--accent);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

/* ========================================
   Utilities
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================================
   CV Header with Avatar
   ======================================== */

.cv-header-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    backdrop-filter: blur(8px);
}

.cv-header-info {
    flex: 1;
}

.cv-header-info p {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cv-header-info p i {
    color: var(--accent);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.cv-header-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.cv-header-divider {
    width: 50px;
    height: 2px;
    background-color: var(--accent);
    margin: 0.75rem 0;
    border-radius: 2px;
}

.cv-avatar {
    width: 120px;
    height: 120px;
    min-width: 120px;
    min-height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 3px solid var(--accent);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
}

@media (max-width: 768px) {
    .cv-header-banner {
        flex-direction: column-reverse;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .cv-header-info p {
        justify-content: center;
    }

    .cv-header-divider {
        margin: 0.75rem auto;
    }

    .cv-avatar {
        width: 100px;
        height: 100px;
        min-width: 100px;
        min-height: 100px;
    }
}

/* ===========================
   Sprachumschalter (Culture Selector)
   =========================== */
.culture-selector {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    margin-left: 1rem;
}

.btn-culture {
    background: transparent;
    border: 1px solid var(--accent, #888);
    color: inherit;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.btn-culture.active,
.btn-culture:hover {
    background: var(--accent, #333);
    color: #fff;
}

/* ===========================
   RTL (Arabisch) Unterstützung
   =========================== */
[dir="rtl"] .culture-selector {
    margin-left: 0;
    margin-right: 1rem;
}

[dir="rtl"] .site-nav {
    direction: rtl;
}

[dir="rtl"] .hero-text {
    text-align: right;
}

[dir="rtl"] .hero-cta {
    justify-content: flex-end;
}

[dir="rtl"] .about-block,
[dir="rtl"] .cv-section,
[dir="rtl"] .wissen-section,
[dir="rtl"] .elegant-section {
    text-align: right;
}

[dir="rtl"] .timeline-content {
    text-align: right;
}

[dir="rtl"] .footer-content {
    direction: rtl;
}

[dir="rtl"] .about-icon,
[dir="rtl"] .card-icon {
    margin-left: 1rem;
    margin-right: 0;
}

[dir="rtl"] .skill-badges {
    justify-content: flex-end;
}

[dir="rtl"] table {
    direction: rtl;
    text-align: right;
}
