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

body {
    font-family: Arial;
    background: #0f172a;
    color: white;
}

/* OBERE LEISTE & FAHRRAD-ANIMATION */
.top-bar {
    width: 100%;
    height: 50px;
    background: #1e293b;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.bike-icon {
    font-size: 28px;
    position: absolute;
    right: 20px;
    cursor: pointer;
    user-select: none;
    filter: brightness(0) invert(1); 
}

.bike-driving {
    animation: driveAway 2.5s linear forwards;
}

@keyframes driveAway {
    0% { right: 20px; }
    45% { right: -60px; opacity: 1; }
    46% { right: -60px; opacity: 0; }
    47% { left: -60px; right: auto; opacity: 0; }
    50% { left: -60px; right: auto; opacity: 1; }
    100% { left: calc(100% - 50px); right: auto; }
}

header {
    text-align: center;
    padding: 25px 25px 15px 25px;
}

/* BEDIENBALKEN FÜR DIE SUCHE */
.control-bar {
    width: 100%;
    background: #1e293b;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    border-top: 1px solid #334155;
    border-bottom: 1px solid #334155;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    margin-bottom: 10px;
}

.search-box {
    width: 100%;
    max-width: 500px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 15px;
    font-size: 18px;
    color: #94a3b8;
}

#searchInput {
    width: 100%;
    padding: 12px 15px 12px 45px;
    font-size: 16px;
    border: 2px solid #334155;
    border-radius: 8px;
    background: #0f172a;
    color: white;
    outline: none;
    transition: 0.3s;
}

#searchInput:focus {
    border-color: #007aff;
    box-shadow: 0 0 10px rgba(0, 122, 255, 0.4);
}

/* KARTEN LAYOUT */
.wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.card {
    width: 320px;
    height: 480px;
    perspective: 1000px;
    cursor: pointer;
    transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s;
}

/* Wenn eine Karte ausgeblendet wird */
.card.hidden {
    transform: scale(0.8);
    opacity: 0;
    visibility: hidden;
    position: absolute;
    width: 0;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: 0.7s;
    transform-style: preserve-3d;
}

.inner.drehen {
    transform: rotateY(180deg);
}

.front, .back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    backface-visibility: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    padding: 15px;
}

.front {
    background: white;
    color: black;
    display: flex;
    flex-direction: column;
}

.front img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.front h2 {
    text-align: center;
    margin-top: 15px;
}

.back {
    background: #1e293b;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.back p {
    font-size: 0.95rem;
    line-height: 1.4;
}

.section-title {
    text-align: center;
    padding: 40px 20px 10px 20px;
}
