/********************************************
 * DIREKTCARD GRID LAYOUT (immer 2 Spalten)
 ********************************************/
.direktcard-wrapper {
    width: 100%;
}

.direktcard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Genau 2 Spalten */
    gap: 20px;
}

/********************************************
 * CARD AUSSENHÜLLE (GLEICHE HÖHEN)
 ********************************************/
.direktcard-item {
    display: flex;
    height: 100%;
}

.direktcard-inner {
    display: flex;
    flex-direction: row;
    background: #ffffff;
    border-radius: 5px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
}

/********************************************
 * BILD LINKS (50%) + HOVER-EFFEKT
 ********************************************/
.direktcard-image {
    position: relative;
    flex: 1 1 50%;
    max-width: 50%;
    overflow: hidden;
	min-height: 150px;
}

.direktcard-image-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.direktcard-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s ease;
}

/* Overlay unsichtbar (Grundzustand) */
.direktcard-image-link::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0);
    transition: 0.3s ease;
}

/********************************************
 * HOVER-EFFEKTE (GANZE CARD!)
 ********************************************/

/* Bild-Overlay aktivieren, sobald die Card gehovered wird */
.direktcard-inner:hover .direktcard-image-link::after {
    background: rgba(0,0,0,0.25);
}

/* Bild-Zoom + Abdunklung beim Hover der gesamten Card */
.direktcard-inner:hover .direktcard-image-link img {
    filter: brightness(0.9);
    transform: scale(1.02);
}

/********************************************
 * TEXT RECHTS (50%)
 ********************************************/
.direktcard-content {
    flex: 1 1 50%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.direktcard-content h3 {
    margin-top: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Hover-Effekt auf Titel */
.direktcard-content h3:hover {
    transform: scale(1.03);
    transition: transform 0.1s ease;
    color: #ac1313;
}

.direktcard-content a {
    text-decoration: none;
}

.direktcard-content p {
    margin-bottom: 20px;
	font-size: .9rem;
    line-height: 1.5;
    color: #00244b;
}

/********************************************
 * BUTTON
 ********************************************/
.direktcard-footer {
    margin-top: auto;
}

.direktcard-button {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #006cd9;
    background: #fff;
    border: 1px solid #5395d7;
    text-decoration: none;
    transition: background 0.2s ease;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
}

/*
.direktcard-button::after {
  content: "\f061";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: 8px;
  transition: transform .2s;
}
*/

.direktcard-button:hover,
.direktcard-button:active,
.direktcard-button:focus {
    background: #ac1313;
    color: #fff;
	text-decoration: none;
}

/********************************************
 * RESPONSIVE ANPASSUNG (MOBILE)
 ********************************************/
@media (max-width: 768px) {

    /* Grid mobil auf 1 Spalte */
    .direktcard-grid {
        grid-template-columns: 1fr !important;
    }

    /* Bild oben, Text unten */
    .direktcard-inner {
        flex-direction: column;
    }

    .direktcard-image,
    .direktcard-image img {
        max-width: 100%;
        height: auto;
    }
}
