/* Base Styles - Grundlegende HTML und Typography Styles */

/* General Body & Font Styles */
html, body {
    font-family: 'Segoe UI', sans-serif;
    box-sizing: border-box;
    width: 100%;
    scroll-behavior: smooth;
    margin: 0 !important;
    background-color: #0b1724;
}

body.modal-open {
    overflow: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Garamond', cursive;
    color: #4275aa;
}

footer h3 {
    font-family: 'Inter', sans-serif;
    color: #fff;
}

/* Custom Buttons */
.btn-primary-custom, .btn-secondary-custom, .btn-secondary-custom-blue {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #fff;
    border: none;
    font-weight: 600;
}

.btn-primary-custom:disabled {
    background-color: #6b7280;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-primary-custom {
    background-color: #f97316;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-secondary-custom {
    background-color: #6b7280;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-primary-custom:hover {
    background-color: #4275aa;
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -3px rgba(66, 117, 170, 0.4);
}

.btn-primary-custom:disabled:hover {
    background-color: #6b7280;
    transform: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-secondary-custom:hover {
    background-color: #4a5568;
    transform: translateY(-2px);
}

.btn-secondary-custom-blue {
    background-color: #4275aa;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-secondary-custom-orange {
    background-color: #f97316;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-secondary-custom-orange:hover {
    background-color: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -3px rgba(249, 115, 22, 0.4);
}

.btn-secondary-custom-orange:disabled {
    background-color: #6b7280;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Give the blue secondary the same hover animation as primary but transition to orange */
.btn-secondary-custom-blue:hover {
    background-color: #f97316; /* orange on hover */
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -3px rgba(249, 115, 22, 0.4); /* orange glow */
}

.btn-secondary-custom-blue:disabled {
    background-color: #6b7280;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Accessibility Utilities */
.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.visually-hidden-focusable:active, .visually-hidden-focusable:focus {
    position: static !important;
    height: auto;
    width: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Focus styles for keyboard users */
:focus {
    outline: 3px solid #f97316;
    outline-offset: 3px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Highlight focused links and buttons */
a:focus, button:focus {
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.4);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Ensure interactive elements have sufficient contrast on focus */
button:focus, a:focus, input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 4px rgba(66,117,170,0.15);
}

/* Ensure high contrast for skip link when visible */
.skip-link {
    position: absolute;
    left: 0;
    top: -40px;
    background: #f97316;
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 10px;
}
