/* ====================================
   SV Lengefeld Orientierungslauf
   Custom Styles & Animationen
   ==================================== */

/* --- Animationen --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.5s ease-out forwards;
}

.animate-slide-down {
    animation: slideDown 0.3s ease-out forwards;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* --- Scrollbar ausblenden für Tab-Navigation --- */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* --- Line Clamp (Textbegrenzung) --- */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Prose (Basis-Typografie für Content-Bereiche) --- */
.prose {
    line-height: 1.75;
    color: #374151;
}

.prose h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1E4620;
}

.prose h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1E4620;
}

.prose h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: #1E4620;
}

.prose p {
    margin-bottom: 1rem;
}

.prose a {
    color: #F97316;
    text-decoration: underline;
}

.prose a:hover {
    color: #EA580C;
}

.prose strong {
    color: #1E4620;
    font-weight: 700;
}

.prose img {
    border-radius: 0.75rem;
}

.prose-lg {
    font-size: 1.125rem;
}

.prose-sm {
    font-size: 0.875rem;
}

/* --- Base HTML/Body & Typography --- */
html, body {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* --- Scroll Margin für Section-Sprünge --- */
.scroll-mt-20 {
    scroll-margin-top: 5rem;
}

/* --- Hidden-Hilfsklasse (für Honeypot etc.) --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* --- Mobile Menu Animation --- */
.mobile-menu-enter {
    animation: slideDown 0.3s ease-out forwards;
}

/* --- Card Hover-Effekt --- */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* --- News Card Image Zoom --- */
.news-card-img {
    transition: transform 0.7s ease;
}

.news-card:hover .news-card-img {
    transform: scale(1.1);
}

/* --- Button Hover-Animation --- */
.btn-arrow {
    transition: transform 0.3s ease;
}

.group:hover .btn-arrow {
    transform: translateX(0.5rem);
}

/* --- Tab Active Indicator --- */
.tab-active {
    border-bottom-color: #F97316;
    color: white;
}

.tab-inactive {
    border-bottom-color: transparent;
    color: rgba(255, 255, 255, 0.5);
}

.tab-inactive:hover {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

/* --- Logo Background (Round & Stylish) --- */
.logo-container {
    background-color: white;
    padding: 4px;
    border-radius: 9999px; /* Round */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    width: fit-content;
    height: fit-content;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.logo-container img {
    border-radius: 9999px;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

.logo-container:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
