/* City Fahrschule Mayer Custom Styles */
:root {
    --cima-orange: #e74e18;
    --cima-orange-dark: #d43d0f;
    --cima-orange-light: #f37e5f;
}

/* Navbar */
.navbar-light .navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    color: var(--cima-orange);
}

.navbar-light .navbar-nav .nav-link.active {
    color: var(--cima-orange);
    font-weight: 600;
}

/* Dropdown menu */
.dropdown-menu {
    border-color: var(--cima-orange);
    border-width: 2px;
}

.dropdown-item {
    color: #333;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--cima-orange);
    color: white;
}

/* Buttons */
.btn-primary {
    background-color: var(--cima-orange);
    border-color: var(--cima-orange);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--cima-orange-dark);
    border-color: var(--cima-orange-dark);
}

/* Links */
main a {
    color: var(--cima-orange);
    text-decoration: underline;
    text-underline-offset: 2px;
}

main a:hover {
    color: var(--cima-orange-dark);
}

/* Footer */
footer h5 {
    color: white;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

footer a:hover {
    color: white;
}

/* Headings */
main h1, main h2, main h3, main h4, main h5, main h6 {
    color: #333;
}

main h1 {
    color: var(--cima-orange);
}

/* Hero Section - Full Width with Overlay */
.hero-fullwidth {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-fullwidth .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-fullwidth .hero-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-fullwidth .hero-content {
    max-width: 800px;
    text-align: center;
}

.hero-fullwidth .hero-title {
    color: var(--cima-orange);
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(1px);
    display: inline-block;
    border-radius: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-fullwidth .hero-subtitle {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 0;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(1px);
    display: inline-block;
    border-radius: 8px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .hero-fullwidth {
        height: 250px;
    }

    .hero-fullwidth .hero-title {
        font-size: 2rem;
    }

    .hero-fullwidth .hero-subtitle {
        font-size: 1rem;
    }

    .hero-fullwidth .hero-content {
        padding: 2rem;
    }
}

/* Rich Content */
main img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

main h2 {
    color: var(--cima-orange);
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(231, 78, 24, 0.15);
}

main h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

main p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

main blockquote {
    border-left: 4px solid var(--cima-orange);
    background: rgba(231, 78, 24, 0.05);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

main ul, main ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

main ul li, main ol li {
    margin-bottom: 0.4rem;
    line-height: 1.7;
}

main ul li::marker {
    color: var(--cima-orange);
}

main table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
}

main table th,
main table td {
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    text-align: left;
}

main table th {
    background-color: rgba(231, 78, 24, 0.08);
    font-weight: 600;
    color: #333;
}

main table tr:nth-child(even) {
    background-color: #f8f9fa;
}

main table tr:hover {
    background-color: rgba(231, 78, 24, 0.04);
}

main hr {
    border: none;
    border-top: 2px solid rgba(231, 78, 24, 0.15);
    margin: 2rem 0;
}

main s {
    color: #999;
}

/* Jobs Page Styling */
.accordion-item {
    border: 1px solid #e5e5e5;
    margin-bottom: 0.5rem;
    border-radius: 8px !important;
    overflow: hidden;
}

.accordion-item:last-child {
    margin-bottom: 0;
}

.accordion-button {
    color: #333;
    font-weight: 500;
    padding: 1rem 1.5rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(231, 78, 24, 0.08);
    color: var(--cima-orange);
    font-weight: 600;
    box-shadow: none;
}

.accordion-button:not(.collapsed)::after {
    filter: none;
}

.accordion-button:hover {
    background-color: rgba(231, 78, 24, 0.05);
}

.accordion-button:focus {
    border-color: transparent;
    box-shadow: none;
}

.accordion-button::after {
    transition: transform 0.2s ease;
}

.accordion-body {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 2px solid var(--cima-orange);
}

.badge.bg-info {
    background-color: var(--cima-orange) !important;
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 4px;
}

.alert-info {
    background-color: rgba(231, 78, 24, 0.08);
    border-color: var(--cima-orange);
    color: #333;
    border-radius: 8px;
}

/* License Classes Accordion */
.license-accordion .accordion-button {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.license-accordion .license-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    height: 3rem;
    background-color: var(--cima-orange);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 8px;
    flex-shrink: 0;
}

.license-accordion .license-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.license-accordion .license-info strong {
    font-size: 1.1rem;
}

.license-accordion .license-info small {
    color: #666;
    font-weight: 400;
}

.license-accordion .license-icon {
    max-width: 120px;
    height: auto;
    border-radius: 8px;
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.license-accordion .license-description h2 {
    font-size: 1.4rem;
    margin-top: 1.5rem;
}

.license-accordion .license-description h3 {
    font-size: 1.15rem;
    margin-top: 1.2rem;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background-color: var(--cima-orange);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background-color 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--cima-orange-dark);
}
