/* Global Styles */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navigation Styles */
.nav-item {
    transition: all 0.3s ease;
}

.nav-item:hover:not(.active-tab) {
    background: linear-gradient(135deg, #D4AF37 0%, #E5C558 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(212, 175, 55, 0.3);
}

/* Active Tab Style - Goldene Umrandung */
.active-tab {
    background-color: transparent !important;
    border: 2px solid #D4AF37;
    color: #D4AF37 !important;
    font-weight: 700;
    box-shadow: inset 0 0 5px rgba(212, 175, 55, 0.1);
}

/* Active Tab Hover - Nur Umrandung */
.active-tab:hover {
    background-color: transparent !important;
    border: 2px solid #D4AF37;
    color: #D4AF37 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(212, 175, 55, 0.3);
}

/* Aurora / Shimmer Text Effekt */
.aurora-text {
    background: linear-gradient(110deg,
            #B59026 0%,
            #D4AF37 30%,
            #ffffff 50%,
            #D4AF37 70%,
            #B59026 100%);
    background-size: 200% auto;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    animation: shine 5s linear infinite;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.2));
    display: inline-block;
}

@keyframes shine {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dark ::-webkit-scrollbar-track {
    background: #171717;
}

::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 4px;
}

/* Copyright Text */
.copyright-text {
    opacity: 0.5;
    transition: all 0.5s ease-in-out;
}

.copyright-text:hover {
    opacity: 1;
    color: #D4AF37;
}

/* Search Overlay */
#search-overlay {
    backdrop-filter: blur(10px);
}

/* Form Input Focus */
.form-input:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* Custom Checkbox/Radio Styling */
input[type="radio"]:checked+label span,
input[type="checkbox"]:checked+label span {
    background-color: #D4AF37;
    border-color: #D4AF37;
}

/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Zoom Animation */
@keyframes zoomSlow {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.75);
    }
}

.animate-zoom-slow {
    animation: zoomSlow 25s ease-in-out forwards;
}

/* Responsive Background Height */
@media (max-width: 3850px) {
    .responsive-bg-height {
        height: 550px !important;
    }
}

/* Responsive Background Height */
@media (max-width: 2950px) {
    .responsive-bg-height {
        height: 450px !important;
    }
}

/* Responsive Background Height */
@media (max-width: 1599px) {
    .responsive-bg-height {
        height: 300px !important;
    }
}

@media (max-width: 1023px) {
    .responsive-bg-height {
        height: 200px !important;
    }
}

@media (max-width: 767px) {
    .responsive-bg-height {
        height: 150px !important;
    }
}

/* Responsive Header Anpassungen */
/* Höhere Spezifität, damit Chrome Tailwind Utilities garantiert überschreibt */

/* Ab 1400px */
@media (max-width: 1400px) {

    header #header-logo {
        height: 60px !important;
        max-height: 60px !important;
    }

    header img.zertifikat-img {
        height: 50px !important;
        max-height: 50px !important;
    }

    header nav .nav-item {
        padding: 1px 5px !important;
        font-size: 12px !important;
    }

    header nav {
        gap: 5px !important;
    }

    header .container {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    header #theme-toggle {
        width: 20px !important;
        height: 15px !important;
    }

    header #theme-toggle-dot {
        width: 10px !important;
        height: 10px !important;
    }
}

/* Ab 1200px */
@media (max-width: 1199px) {

    header #header-logo {
        height: 38px !important;
        max-height: 38px !important;
    }

    header img.zertifikat-img {
        height: 30px !important;
        max-height: 30px !important;
    }

    header nav .nav-item {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }

    header #theme-toggle {
        width: 40px !important;
        height: 20px !important;
    }

    header #theme-toggle-dot {
        width: 10px !important;
        height: 10px !important;
    }
}

/* Ab 992px */
@media (max-width: 991px) {

    header #header-logo {
        height: 38px !important;
        max-height: 38px !important;
    }

    header nav {
        gap: 15px !important;
    }

    header nav .nav-item {
        padding: 6px 8px !important;
        font-size: 12px !important;
    }

    header img.zertifikat-img {
        height: 30px !important;
        max-height: 50px !important;
    }

    header .flex-col {
        gap: 8px !important;
    }
}

/* Dark Mode Fix for IT-Recht Kanzlei Iframe */
html.dark .itrk-legaltext iframe {
    color-scheme: light !important;
    background-color: white !important;
    filter: invert(1) hue-rotate(180deg);
}

/* Popup Styles */
.popup {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.popup-hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.popup>div {
    transition: opacity 0.3s ease-in-out;
}

/* Popup Farben */
.popup[data-type="success"] .border-t-4 {
    border-top-color: #10B981;
}

.popup[data-type="warning"] .border-t-4 {
    border-top-color: #F59E0B;
}

.popup[data-type="error"] .border-t-4 {
    border-top-color: #EF4444;
}

/* Button Farben für Popups */
.popup[data-type="success"] button {
    background-color: #10B981;
}

.popup[data-type="success"] button:hover {
    background-color: #059669;
}

.popup[data-type="warning"] button {
    background-color: #F59E0B;
}

.popup[data-type="warning"] button:hover {
    background-color: #D97706;
}

.popup[data-type="error"] button {
    background-color: #EF4444;
}

.popup[data-type="error"] button:hover {
    background-color: #DC2626;
}

/* Animation für Popup erscheinen */
@keyframes popupIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup:not(.popup-hidden)>div>div {
    animation: popupIn 0.3s ease-out;
}