@font-face {
    font-family: "Patrick Hand";
    src: url("/../fonts/PatrickHand-Regular.woff2") format("woff2"),
        url("/../fonts/PatrickHand-Regular.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
h1,
p {
    font-family: "Patrick Hand";
    font-weight: normal;
    font-style: normal;
}
p {
    font-size: 1.25rem; /* ca. 20 px */
}
.topbar {
    background-color: #116ba5; /* deine Primärfarbe */
    color: #fff;
    font-size: 0.9rem;
    padding: 0.4rem 0;
}
.topbar a {
    color: #fff;
    text-decoration: none;
}
.topbar a:hover {
    text-decoration: underline;
}
.navbar-nav {
    display: flex;
    align-items: center;
}

.divider {
    display: inline-block;
    width: 3px; /* Breite des Strichs */
    height: 24px; /* Höhe des Strichs */
    background-color: currentColor; /* passt zur Linkfarbe */
    border-radius: 2px; /* abgerundete Enden */
    margin-top: 5px;
}
body {
    font-family: system-ui, sans-serif;
}

.fi {
    width: 24px;
    height: 24px;
    border-radius: 33%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fi:hover {
    transform: scale(1.1);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

.col-md-4 {
    display: flex;
    justify-content: center; /* horizontal zentrieren */
    align-items: center; /* vertikal zentrieren (optional) */
}

.hero {
    position: relative;
    width: 100%;
}

.hero-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 1rem;
    display: block;
    filter: brightness(0.6); /* Abdunklung, 0 = schwarz, 1 = Original */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    background-color: rgba(0, 0, 0, 0.2); /* Abdunklung */
}

.hero-text {
    position: absolute;
    top: 63%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    padding: 0 1rem;
}

.hero-text h1 {
    font-size: clamp(1rem, 5vw, 4rem);
}
.hero-text p {
    font-size: clamp(0.5rem, 1.67vw, 1.33rem);
}

.thumb img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}
.thumb img:hover {
    transform: scale(1.03);
}
footer {
    background: #f8f9fa;
    padding: 2rem 0;
    margin-top: 3rem;
}

section.container.my-5 {
    max-width: 80%; /* Container etwas schmaler als Bildschirm */
    margin: 0 auto;
}

.flip-card {
    background-color: transparent;
    width: 300px;
    height: 200px;
    perspective: 1000px;
    border-radius: 1rem;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.flip-card:hover .flip-card-inner {
    transform: rotateX(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1rem;
}

.flip-card-front {
    background-color: #bbb;
    color: black;
}

.flip-card-back {
    background-color: #116ba5;
    color: white;
    transform: rotateX(180deg);
    /* 👇 Zentrierung: */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    padding: 1rem;
}

@media (min-width: 1700px) {
    section.container.my-5 {
        max-width: 80%; /* Container etwas schmaler als Bildschirm */
        margin: 0 auto;
    }

    .thumb .flip-card {
        transform: scale(1.5); /* Karten minimal größer */
        transition: transform 0.3s ease;
        margin-top: 50px;
    }

    .thumb .flip-card:hover {
        transform: scale(1.5);
    }
}

.partners {
    text-align: center;
}

.partner-logo {
    max-width: 140px; /* typische Logogröße */
    height: auto;
    opacity: 0.9;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.partner-logo:hover {
    transform: scale(1.05);
    opacity: 1;
}

.partners .col-auto {
    padding: 30px;
}

/* Bei schmalen Bildschirmen nebeneinander zu groß → automatisch umbrechen */
@media (max-width: 768px) {
    .partner-logo {
        max-width: 120px;
    }
}
