/**
 * 🃏 Card Components
 * Wiederverwendbare Karten-Layouts
 */

/* ═══════════════════════════════════════════════════════════
   CRAFTCLON REIHE (craftclon-reihe.html.twig)
   ═══════════════════════════════════════════════════════════ */

.reihe-container {
    pointer-events: auto;
    width: 100%;
    margin: 8px 0;
    text-decoration: none;
    display: block;
    box-sizing: border-box;
    
    /* Glassmorphism Base */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.reihe-container:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--trenner-titel-color, #00ffcc);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
}

/* Inner Border (optional - kann entfernt werden) */
.reihe-inner-border {
    width: 100%;
    border-radius: 14px;
    display: flex;
    align-items: center;
}

/* Content */
.reihe-content {
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Farbvarianten ENTFERNT - Glassmorphism ist uniform */
/* .color-gelb, .color-blau, .color-grün - GELÖSCHT */

/* ═══════════════════════════════════════════════════════════
   IMAGE-TITEL CARD (image-titel.html.twig)
   ═══════════════════════════════════════════════════════════ */

.image-title-card {
    pointer-events: auto;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 380px;        /* ← GEÄNDERT: Von 280px auf 380px */
    aspect-ratio: 2 / 3;     /* ← Verhältnis bleibt gleich */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.image-title-card:hover {
    transform: translateY(-8px);
    border-color: var(--trenner-titel-color, #00ffcc);
    cursor: pointer;
    box-shadow: 0 12px 40px 0 rgba(0, 255, 204, 0.3);
}

.card-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.card-header {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;  /* ← GEÄNDERT: Von 10px auf 15px */
}

.card-header h3 {
    margin: 0;
    font-size: 1.1rem;  /* ← GEÄNDERT: Von 1rem auf 1.1rem */
    color: var(--trenner-titel-color, #00ffcc);
    text-align: center;
    line-height: 1.3;
}

.card-body {
    flex: 5;
    padding: 20px;  /* ← GEÄNDERT: Von 15px auf 20px */
    display: flex;
}

.image-inner-container {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

/* Responsive: Mobile kleiner */
@media (max-width: 768px) {
    .image-title-card {
        max-width: 320px;  /* ← Mobile: etwas kleiner */
    }
    
    .card-header h3 {
        font-size: 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   KRIT-BOX (krit-box.html.twig)
   ═══════════════════════════════════════════════════════════ */

.krit-glass-card {
    width: 100%;
    max-width: var(--max-w);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px) saturate(160%);
    -webkit-backdrop-filter: blur(15px) saturate(160%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.krit-inner {
    padding: 10px;
}

.krit-content {
    padding: 2.5rem;
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.krit-content p strong {
    color: var(--trenner-titel-color, #00ffcc);
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.krit-content ul {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
}

/* ═══════════════════════════════════════════════════════════
   TRENNER / SECTION DIVIDER (trenner.html.twig)
   ═══════════════════════════════════════════════════════════ */

.section-divider {
    grid-column: 1 / -1;
    width: calc(100% - (2 * (100% / 9)));
    margin: 40px auto;
    min-height: var(--height-val);
    display: flex;
    background-color: var(--color-start);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: scrollPhase linear both;
    animation-timeline: view();
    animation-range: entry 10% exit 90%;
    overflow: hidden;
}

.trenner-flex-row {
    display: flex;
    width: 100%;
    padding: 30px;
    align-items: center;
}

.trenner-titel {
    color: var(--trenner-titel-color, #00ffcc);
    margin: 0;
    font-size: 1.8rem;
}

.trenner-text {
    color: rgba(255, 255, 255, var(--trenner-text-opacity, 0.9));
    margin: 0;
    line-height: 1.5;
}

.trenner-col-1-3 {
    flex: 1;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 25px;
}

.trenner-col-2-3 {
    flex: 2;
    padding-left: 25px;
}

/* ═══════════════════════════════════════════════════════════
   VORSTELLUNG CARD (vorstellung.html.twig)
   ═══════════════════════════════════════════════════════════ */

.intro-card {
    grid-column: 1 / -1;
    width: calc(100% - (2 * (100% / 9)));
    margin: 40px auto;
    aspect-ratio: 2 / 1;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.intro-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.intro-header {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.intro-header h2 {
    color: var(--trenner-titel-color, #00ffcc);
    font-size: 1.5rem;
    text-transform: uppercase;
}

.intro-body {
    flex: 8;
    display: flex;
    height: 100%;
}

.intro-col-photo {
    flex: 1;
    padding: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.photo-inner {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
}

.intro-col-text {
    flex: 2;
    padding: 30px;
    overflow-y: auto;
}

.text-inner {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 1.1rem;
}