/* ==========================================================================
   FINDER Akademie - Visitenkarten Styles
   ========================================================================== */

/* CSS Custom Properties
   ========================================================================== */
:root {
    /* Farben (unveränderlich) */
    --color-primary: #036070;
    --color-primary-dark: #024a56;
    --color-dark: #1a1a1a;
    --color-gray: #666;
    --color-gray-medium: #777;
    --color-gray-light: #999;
    --color-border: #e0e0e0;
    --color-border-light: #f0f0f0;
    --color-bg: #f5f5f5;
    --color-bg-subtle: #fafafa;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Base Reset
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--color-bg);
    min-height: 100vh;
}

/* Focus States (Accessibility)
   ========================================================================== */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Reduced Motion Support
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   INDEX PAGE STYLES
   ========================================================================== */

/* Index Layout */
body.page-index {
    padding: 40px 20px;
}

.page-index .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Index Header */
.page-index header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeIn 0.6s ease-out;
}

.page-index header h1 {
    font-size: 48px;
    margin-bottom: 12px;
    color: var(--color-dark);
    font-weight: 700;
    letter-spacing: -1px;
}

.page-index header p {
    font-size: 18px;
    color: var(--color-gray);
    font-weight: 400;
}

/* Sections */
.section {
    margin-bottom: 60px;
}

.section h2 {
    color: var(--color-dark);
    font-size: 32px;
    margin-bottom: 30px;
    font-weight: 600;
    letter-spacing: -0.5px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-primary);
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Team Cards */
.team-card {
    background: white;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
    animation-fill-mode: both;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.team-card:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 4px;
    transform: translateY(-4px);
}

.team-card .card-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--color-dark);
}

.team-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.team-card:hover .card-image img {
    transform: scale(1.03);
}

.team-card .card-content {
    padding: 25px;
}

.team-card h3 {
    font-size: 20px;
    color: var(--color-dark);
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.team-card .title {
    font-size: 14px;
    color: var(--color-gray);
    line-height: 1.5;
    font-weight: 400;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 80px;
    padding: 50px 20px;
    background: white;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.footer-text {
    font-size: 14px;
    color: var(--color-gray-light);
    margin-bottom: 20px;
}

.footer-link {
    display: inline-block;
    padding: 12px 24px;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: background var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-link:hover {
    background: var(--color-primary-dark);
}

.footer-link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}

/* Index Page Responsive */
@media (min-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .page-index header h1 {
        font-size: 36px;
    }

    .section h2 {
        font-size: 26px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-card .card-image {
        height: 320px;
    }
}

/* ==========================================================================
   BUSINESS CARD PAGE STYLES
   ========================================================================== */

/* Card Page Layout */
body.page-card {
    padding: 20px;
}

.page-card .container {
    max-width: 450px;
    margin: 0 auto;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-gray);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: white;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.back-link:hover {
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateX(-2px);
}

.back-link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.back-link svg {
    transition: transform var(--transition-fast);
}

.back-link:hover svg {
    transform: translateX(-3px);
}

/* Main Card */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
}

.card-header {
    background: var(--color-dark);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.profile-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Header Content */
.header-content {
    padding: 30px 30px 25px;
    background: white;
}

.header-content h1 {
    color: var(--color-dark);
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: -0.5px;
}

.header-content .title {
    color: var(--color-gray);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Org Badge */
.org-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #eaeaea;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-dark);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.org-badge:hover {
    background: #e0e0e0;
    border-color: #d0d0d0;
}

.org-badge:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Card Body */
.card-body {
    padding: 0 30px 30px;
}

/* Info Section */
.info-section {
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.info-item:last-child {
    border-bottom: none;
}

.info-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--color-primary);
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 12px;
    color: var(--color-gray-light);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    line-height: 20px;
}

.info-value {
    font-size: 15px;
    color: var(--color-dark);
    word-break: break-word;
    line-height: 1.5;
}

.info-value a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.info-value a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* QR Section */
.qr-section {
    text-align: center;
    padding: 30px 20px;
    background: var(--color-bg-subtle);
    border-radius: var(--radius-sm);
    margin-bottom: 25px;
}

.qr-section h3 {
    font-size: 13px;
    color: var(--color-dark);
    margin-bottom: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.qr-code {
    background: white;
    padding: 16px;
    border-radius: var(--radius-sm);
    display: inline-block;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.qr-code img {
    width: 160px;
    height: 160px;
    display: block;
}

.qr-hint {
    font-size: 11px;
    color: var(--color-gray-light);
    margin-top: 12px;
    line-height: 1.5;
}

/* Action Buttons */
.actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn {
    padding: 14px 20px;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Ubuntu', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(3, 96, 112, 0.2);
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.btn-secondary {
    background: white;
    color: var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
}

/* Card Page Tablet */
@media (min-width: 481px) and (max-width: 768px) {
    .page-card .container {
        max-width: 600px;
    }

    .header-content h1 {
        font-size: 30px;
    }
}

@media (min-width: 600px) and (max-width: 899px) {
    .page-card .container {
        max-width: 700px;
    }

    .header-content {
        padding: 35px 35px 28px;
    }

    .header-content h1 {
        font-size: 32px;
    }

    .card-body {
        padding: 0 35px 35px;
    }
}

/* Card Page Desktop */
@media (min-width: 900px) {
    body.page-card {
        padding: 40px 20px;
    }

    .page-card .container {
        max-width: 1200px;
        margin: 0 auto;
    }

    .back-link {
        margin-bottom: 30px;
    }

    .card {
        display: flex;
        min-height: auto;
    }

    /* Left Column: Portrait */
    .card-header {
        flex: 0 0 420px;
        background: var(--color-dark);
        display: flex;
        align-items: stretch;
    }

    .profile-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 20%;
    }

    /* Right Column: Content */
    .card-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        background: white;
    }

    .header-content {
        padding: 45px 50px 30px;
        background: white;
        border-bottom: none;
    }

    .header-content h1 {
        font-size: 38px;
        margin-bottom: 8px;
        line-height: 1.1;
    }

    .header-content .title {
        font-size: 17px;
        color: var(--color-gray-medium);
        margin-bottom: 20px;
    }

    .card-body {
        flex: 1;
        padding: 0 50px 50px;
        display: grid;
        grid-template-columns: 1fr minmax(280px, 360px);
        gap: 40px;
        align-content: start;
    }

    /* Left Side: Info */
    .info-section {
        margin-bottom: 0;
    }

    .info-item {
        padding: 16px 0;
    }

    .info-label {
        font-size: 11px;
        letter-spacing: 0.8px;
    }

    .info-value {
        font-size: 15px;
    }

    /* Right Side: QR + Actions */
    .qr-actions-wrapper {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .qr-section {
        background: var(--color-bg-subtle);
        border: 1px solid #e8e8e8;
        padding: 28px 22px;
        margin-bottom: 0;
        border-radius: var(--radius-sm);
    }

    .qr-section h3 {
        font-size: 12px;
        margin-bottom: 14px;
        color: var(--color-gray);
    }

    .qr-code {
        background: white;
        padding: 12px;
    }

    .qr-code img {
        width: 140px;
        height: 140px;
    }

    .qr-hint {
        font-size: 10px;
        color: var(--color-gray-light);
        margin-top: 10px;
    }

    .actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
        padding: 17px 22px;
        font-size: 13px;
    }
}

/* Card Page Extra Large Desktop */
@media (min-width: 1400px) {
    .page-card .container {
        max-width: 1400px;
    }

    .card-header {
        flex: 0 0 480px;
    }

    .header-content {
        padding: 50px 60px 35px;
    }

    .header-content h1 {
        font-size: 42px;
    }

    .card-body {
        padding: 0 60px 60px;
        gap: 50px;
        grid-template-columns: 1fr 380px;
    }

    .qr-code img {
        width: 160px;
        height: 160px;
    }
}

/* Card Page Mobile */
@media (max-width: 480px) {
    body.page-card {
        padding: 0;
    }

    .page-card .container {
        max-width: 100%;
    }

    .back-link {
        margin: 15px;
        margin-bottom: 15px;
    }

    .header-content {
        padding: 25px 20px 20px;
    }

    .header-content h1 {
        font-size: 24px;
    }

    .card-body {
        padding: 0 20px 25px;
    }

    .actions {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
