:root {
    --primary-color: #051772; /* Royalblau */
    --secondary-color: #FFFFFF; /* Weiß */
    --accent-gold: #d4af37; /* Gold */
    --font-size-base: 1rem;
    --font-size-h3: 1.25rem;
    --font-size-h2: 1.563rem;
    --font-size-h1: 1.953rem;
    --line-height-body: 1.6;
    --line-height-heading: 1.2;
    color-scheme: dark;
}

body {
    font-family: "Inter", sans-serif;
    font-size: var(--font-size-base);
    color: #ffffff;
    color: var(--secondary-color);
    background-color: #051772;
    background-color: var(--primary-color);
    line-height: var(--line-height-body);
    forced-color-adjust: none;
}

::selection {
    background: #051772;
    color: #ffffff;
}

a:focus,
a:focus-visible,
button:focus,
button:focus-visible,
input:focus,
input:focus-visible,
select:focus,
select:focus-visible,
textarea:focus,
textarea:focus-visible,
[role="button"]:focus,
[role="button"]:focus-visible {
    outline: 3px solid #d4af37;
    outline: 3px solid var(--accent-gold);
    outline-offset: 4px;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.25);
}

.navbar a:focus,
.navbar a:focus-visible,
.site-footer a:focus,
.site-footer a:focus-visible {
    outline: none;
    box-shadow: none;
}

.navbar a:focus-visible,
.site-footer a:focus-visible {
    text-decoration: underline;
    text-decoration-color: #d4af37;
    text-decoration-color: var(--accent-gold);
    text-underline-offset: 8px;
}

.btn:focus,
.btn:focus-visible,
.nav-cta-btn:focus,
.nav-cta-btn:focus-visible,
.accordion-button:focus,
.accordion-button:focus-visible,
.navbar-toggler:focus,
.navbar-toggler:focus-visible {
    transform: scale(1.02);
}

* {
    scrollbar-width: thin;
    scrollbar-color: #c5a059 #051772;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: #051772;
}

*::-webkit-scrollbar-thumb {
    background-color: #c5a059;
    border-radius: 8px;
    border: 2px solid #051772;
}

.navbar {
    background-color: transparent !important;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 1100;
    transition: all 0.4s ease-in-out;
}

.navbar .container {
    align-items: flex-start;
}

.navbar-brand,
.nav-link {
    color: var(--secondary-color) !important;
}

.navbar-brand {
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.navbar-brand-text {
    font-family: "Oswald", sans-serif;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-brand-text:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.brand-main {
    font-weight: 700;
}

.brand-sub {
    font-weight: 300;
    font-size: 0.85rem;
}

.brand-divider {
    display: inline-block;
    width: 36px;
    height: 2px;
    background-color: #c5a059;
    opacity: 1;
    margin: 0 12px;
    vertical-align: middle;
}

h1,
h2,
h3 {
    font-family: "Oswald", sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    line-height: var(--line-height-heading);
    letter-spacing: 0.06em;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 1.953rem;
    font-size: var(--font-size-h1);
    line-height: 1.1;
    letter-spacing: 0.08em;
    margin-bottom: 1.75rem;
}

h2 {
    font-size: 1.563rem;
    font-size: var(--font-size-h2);
    line-height: 1.15;
    letter-spacing: 0.07em;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.25rem;
    font-size: var(--font-size-h3);
    line-height: 1.2;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

p {
    margin-bottom: 1.25rem;
    line-height: var(--line-height-body);
}

#about-me h3 {
    display: block;
    width: 100%;
    text-align: left;
}

.hero-logo-wrap {
    position: relative;
    display: inline-block;
    width: 250px;
    max-width: 70vw;
}

.hero-logo {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    transition: transform 0.45s ease, opacity 0.45s ease, filter 0.45s ease;
}

.hero-logo--base {
    position: relative;
    z-index: 1;
    opacity: 1;
}

.hero-logo--gold {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

@media (hover: hover) {
    .hero-logo-wrap:hover .hero-logo--base {
        opacity: 0;
        transform: scale(1.1);
    }

    .hero-logo-wrap:hover .hero-logo--gold {
        opacity: 1;
        transform: scale(1.1);
        filter: drop-shadow(0 8px 20px rgba(212, 175, 55, 0.45))
            drop-shadow(0 0 22px rgba(212, 175, 55, 0.35));
    }
}

.nav-link:hover {
    color: var(--secondary-color) !important;
    text-decoration: underline;
    text-decoration-color: #c5a059;
    text-underline-offset: 8px;
}

.nav-link {
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.nav-lang {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-lang-divider {
    color: #c5a059;
    opacity: 0.9;
}

.nav-lang-link.active {
    color: #c5a059 !important;
    text-decoration: none;
}

.nav-cta-btn {
    margin-left: 30px;
    background-color: rgba(197, 160, 89, 0.3);
    border: 1px solid #c5a059;
    color: #ffffff;
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    font-size: 1.06rem;
    letter-spacing: 0.1em;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    line-height: 1;
}

.nav-cta-btn:hover {
    background-color: #c5a059;
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.4);
    color: #ffffff;
}

.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--secondary-color);
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 0;
}

.hero-background,
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background {
    background-size: cover;
    background-position: center;
    filter: brightness(0.5); /* Dunkelt das Bild ab */
}

.hero-video {
    object-fit: cover;
    filter: brightness(0.6);
}

.hero-content {
    z-index: 1;
    padding-top: 100px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.hero-outline {
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px #ffffff;
    text-stroke: 1px #ffffff;
}

.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px;
    color: var(--secondary-color);
    background-image: linear-gradient(rgba(5, 23, 114, 0.65), rgba(5, 23, 114, 0.65)), url("https://images.unsplash.com/photo-1517836357463-d25dfeac3438?auto=format&fit=crop&w=1920&h=1080&q=80");
    background-size: cover;
    background-position: center;
}

.error-page-content {
    max-width: 680px;
}

.error-page h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.error-page p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-accent-line {
    width: 80px;
    height: 2px;
    background-color: #c5a059;
    margin: 0 auto 1.5rem auto;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
}

.btn-primary {
    background-color: #051772;
    border-color: #c5a059;
    color: var(--secondary-color);
    font-weight: bold;
}

.btn {
    font-family: "Oswald", sans-serif;
    text-transform: uppercase;
}

.btn-primary:hover {
    background-color: #030d45;
    border-color: #c5a059;
    color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.4);
}

.btn-gold {
    background-color: #c5a059;
    border: 1px solid #c5a059;
    color: #ffffff;
    font-weight: 700;
}

.btn-gold:hover {
    background-color: #b68c4f;
    border-color: #b68c4f;
    color: #ffffff;
}

.about-me-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.services-section {
    padding: 80px 0;
    background-color: #f4f6ff;
    color: var(--primary-color);
}

.training-section {
    padding: 140px 0;
    background-color: #fbfcff;
    color: var(--primary-color);
}

.training-section h2 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #051772;
    letter-spacing: 0.3em;
    margin-bottom: 3rem;
    text-align: center;
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    counter-reset: training;
}

.training-item {
    display: flex;
    flex-direction: column;
    gap: 24px;
    --training-offset: 0px;
    opacity: 0;
    transform: translateY(calc(var(--training-offset) + 30px));
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.training-item.is-visible {
    opacity: 1;
    transform: translateY(var(--training-offset));
}

.reveal-media {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    will-change: opacity, transform;
}

.reveal-media.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.training-vignette {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(5, 23, 114, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(5, 23, 114, 0.12);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.9s ease;
}

.carousel-image--one {
    opacity: 1;
    z-index: 1;
}

.carousel-image--two {
    z-index: 2;
}

.carousel-image--three {
    z-index: 3;
}

.training-item:hover .training-vignette,
.training-item:hover .image-carousel-container {
    transform: scale(1.04);
    box-shadow: 0 0 0 1px #c5a059, 0 12px 28px rgba(5, 23, 114, 0.14);
}

@media (hover: hover) and (pointer: fine) {
    .training-item:hover .image-carousel-container .carousel-image {
        animation-duration: 6s;
        animation-iteration-count: infinite;
        animation-timing-function: linear;
    }

    .training-item:hover .image-carousel-container .carousel-image--one {
        animation-name: precision-img1;
    }

    .training-item:hover .image-carousel-container .carousel-image--two {
        animation-name: precision-img2;
    }

    .training-item:hover .image-carousel-container .carousel-image--three {
        animation-name: precision-img3;
    }
}

@keyframes precision-img1 {
    0% {
        opacity: 1;
    }
    15% {
        opacity: 0;
    }
    70% {
        opacity: 0;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 1;
    }
}

@keyframes precision-img2 {
    0% {
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    35% {
        opacity: 1;
    }
    45% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

@keyframes precision-img3 {
    0% {
        opacity: 0;
    }
    35% {
        opacity: 0;
    }
    45% {
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    80% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.training-content {
    position: relative;
    padding-top: 8px;
}

.training-content::before {
    counter-increment: training;
    content: "0" counter(training);
    position: absolute;
    top: -18px;
    left: 0;
    font-size: 3.5rem;
    font-family: "Oswald", sans-serif;
    color: #c5a059;
    opacity: 0.2;
    line-height: 1;
    pointer-events: none;
}

.training-accent {
    width: 36px;
    height: 2px;
    background-color: #c5a059;
    margin-bottom: 14px;
}

.training-icon {
    color: #c5a059;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.training-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.training-content p {
    margin: 0;
}

.cta-divider {
    background-color: #030d45;
    color: var(--secondary-color);
    padding: 60px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cta-divider h2 {
    margin: 0;
    font-family: "Oswald", sans-serif;
}

.contact-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    transition: opacity 0.3s ease;
}

.map-container {
    margin-bottom: 50px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(5, 23, 114, 0.15);
    background-color: #030d45;
    color: #ffffff;
}

.map-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 22px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    text-align: center;
}

.map-address {
    text-align: center;
}

.map-address p {
    margin: 0;
    font-weight: 600;
    color: #ffffff;
}

.map-title {
    font-family: "Oswald", sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.map-kicker {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}

.map-actions .nav-cta-btn {
    white-space: nowrap;
}

.map-actions .nav-cta-btn {
    margin: 0;
    font-size: 0.95rem;
    padding: 9px 22px;
}

.map-frame {
    padding: 0 22px 0;
    background-color: #030d45;
}

.map-frame iframe {
    width: 100%;
    height: 420px;
    border-radius: 12px;
}

.map-note {
    margin: 12px 32px 22px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
}

.map-container iframe {
    border: 0;
    display: block;
    filter: grayscale(20%) contrast(1.1);
    transition: filter 0.3s ease;
}

.map-container:hover iframe {
    filter: none;
}

.contact-form.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.contact-section .form-control,
.contact-section .form-select {
    border: 1px solid #d0d6ea;
    padding: 0.75rem 1rem;
}

.contact-section .form-label {
    font-size: 1.05rem;
    font-weight: 600;
}

.contact-section .form-control:focus,
.contact-section .form-select:focus {
    outline: none;
    border-color: #051772;
    box-shadow: 0 0 0 0.2rem rgba(5, 23, 114, 0.25);
}

.services-section h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    text-align: center;
    color: #051772;
    letter-spacing: 0.3em;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    align-items: stretch;
}

.service-card {
    background-color: transparent;
    color: var(--secondary-color);
    border-radius: 15px;
    box-shadow: inset 0 0 0 1px #c5a059, 0 15px 45px rgba(5, 23, 114, 0.15);
    perspective: 1000px;
    position: relative;
    transition: box-shadow 0.3s ease;
    transform-origin: center;
    cursor: pointer;
    min-height: 280px;
    grid-column: span 5;
}

.service-card--featured {
    grid-column: span 7;
    grid-row: span 2;
    min-height: 420px;
}

.service-card:hover {
    box-shadow: inset 0 0 0 1px #c5a059, 0 20px 55px rgba(5, 23, 114, 0.25);
    z-index: 3;
}

.service-card.is-zoomed {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.2);
    width: min(540px, 90vw);
    min-height: 340px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1050;
    box-shadow: inset 0 0 0 1px #c5a059, 0 24px 50px rgba(5, 23, 114, 0.35);
}

.service-card.is-zoomed .service-card-inner {
    min-height: 340px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 260px;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.service-card.is-flipped .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    backface-visibility: hidden;
    box-sizing: border-box;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.service-card-front {
    color: var(--secondary-color);
}

.service-card-front::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(5, 23, 114, 0.2);
    z-index: 1;
}

.service-card-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 0.4s ease;
    z-index: 0;
}

.service-card:hover .service-card-media {
    transform: scale(1.05);
}

.service-card-content {
    position: relative;
    z-index: 2;
    margin: auto 18px 18px;
    padding: 18px 20px;
    background: rgba(5, 23, 114, 0.35);
    border-radius: 15px;
    transform: translateY(12px);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.service-accent {
    display: inline-block;
    width: 40px;
    height: 2px;
    background-color: #c5a059;
    margin-bottom: 0.75rem;
}

.service-card-back {
    transform: rotateY(180deg);
    overflow-y: auto;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 32px;
    padding-top: 64px;
    position: relative;
    border-radius: 15px;
}

.service-card.is-zoomed .service-card-back {
    background-color: rgba(255, 255, 255, 0.9);
}

.service-back-title {
    font-family: "Oswald", Arial, sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.03em;
    margin: 0 0 0.75rem 0;
}

.service-back-icon {
    color: #051772;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.service-card-icon {
    font-size: 1.75rem;
    color: #c5a059;
}


.close-icon-style {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #051772;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(5, 23, 114, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.close-icon-style i {
    font-size: 1.1rem;
}

.close-icon-style:hover {
    transform: scale(1.1);
}

.close-card {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.service-card h3 {
    font-family: "Oswald", Arial, sans-serif;
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
    color: inherit;
}

.services-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(5, 23, 114, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1040;
}

.services-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .hero-logo {
        max-width: 220px;
        min-width: 180px;
    }

    .navbar-brand-text {
        letter-spacing: 0.06em;
        font-size: 0.75rem;
        max-width: 260px;
        display: block;
        line-height: 1.2;
        white-space: normal;
    }

    .brand-sub {
        display: inline;
        font-size: 0.7rem;
    }

    .brand-divider {
        margin: 0 6px;
    }

    .nav-cta-btn {
        margin-left: 12px;
        margin-top: 10px;
        font-size: 1.125rem;
        padding: 9px 22px;
    }

    .nav-right {
        align-items: flex-end;
        margin-left: 0;
        width: 100%;
    }

    .lang-switcher {
        margin-bottom: 10px;
    }

    .modal-intro {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-me-section .text-end {
        text-align: center !important;
    }

    .about-me-image {
        margin: 0 auto;
    }

    .signature-img {
        max-height: 84px;
        margin-top: 4px;
    }

    .accordion-button {
        padding: 1rem 1.25rem;
        line-height: 1.35;
    }

    .hero-content {
        padding-top: 70px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-content p {
        margin-bottom: 0.75rem;
        line-height: 1.3;
        font-size: 1.2rem;
    }

    .hero-outline {
        font-size: 2rem;
        line-height: 1.2;
        display: inline-block;
    }

    .hero-accent-line {
        height: 2px;
    }

    .hero-content .btn-primary {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        white-space: normal;
        font-size: 0.95rem;
        padding: 0.75rem 1.25rem;
        line-height: 1.2;
        display: inline-block;
    }

    .service-card.is-zoomed {
        width: 95vw;
        transform: translate(-50%, -50%) scale(1);
    }

    .service-card.is-zoomed .service-card-inner {
        min-height: 320px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 280px;
    }

    .service-card--featured {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 320px;
    }

    .service-card-content {
        transform: translateY(0);
    }

    .image-divider {
        background-attachment: scroll;
    }

    .map-header {
        flex-direction: column;
        align-items: center;
    }

    .map-address {
        text-align: center;
    }

    .map-actions {
        width: 100%;
    }

    .map-actions .nav-cta-btn {
        width: 100%;
    }

    .map-frame {
        padding: 0 18px 0;
    }

    .map-note {
        margin: 10px 18px 18px;
    }

    .map-container iframe {
        height: 320px;
    }

    .training-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (min-width: 769px) {
    .training-item:nth-child(2) {
        --training-offset: 50px;
    }
}

.about-me-section h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin: 0 auto 2rem;
    text-align: center;
    display: block;
    width: fit-content;
    transition: none;
    color: #051772;
    letter-spacing: 0.3em;
}

.about-me-image {
    width: auto;
    aspect-ratio: 1 / 1;
    max-height: 450px;
    object-fit: cover;
    border-radius: 15px;
    display: block;
    margin-left: auto;
    margin-right: 0;
    box-shadow: 0 15px 45px rgba(5, 23, 114, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-me-image:hover {
    transform: scale(1.04);
    box-shadow: 0 0 0 1px #c5a059, 0 12px 28px rgba(5, 23, 114, 0.14);
}

.signature-wrap {
    margin-top: 18px;
    margin-right: 25px;
    text-align: right;
}

.signature-img {
    max-height: 110px;
    margin-top: 6px;
    width: auto;
    display: inline-block;
    filter: drop-shadow(0 6px 14px rgba(5, 23, 114, 0.35));
}

.image-divider {
    height: 300px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.value-item {
    margin-bottom: 1rem;
}

.accordion-item {
    background-color: transparent !important;
    border: none !important;
    margin-bottom: 1rem !important;
    width: 100% !important;
    display: block;
}

.accordion-header {
    width: 100% !important;
    display: block;
}

.accordion-button {
    background-color: var(--primary-color) !important;
    color: var(--secondary-color) !important;
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1rem 1.5rem !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 20px rgba(5, 23, 114, 0.15) !important;
    text-align: left !important;
    transition: transform 0.3s ease, background-color 0.3s ease !important;
    flex: 1 1 auto;
}

.accordion-button:hover {
    transform: scale(1.02);
    background-color: #0b2a9a !important;
}

.accordion-button::after {
    margin-left: auto !important;
    margin-right: 0 !important;
    background-image: none !important;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f078';
    color: var(--secondary-color);
    transition: transform 0.3s ease !important;
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(180deg) !important;
}

.accordion-body {
    color: var(--primary-color) !important;
    background-color: transparent !important;
    padding: 1.5rem 0 !important;
    box-shadow: none !important;
    border: none !important;
}

.site-footer {
    background-color: #030d45;
    color: var(--secondary-color);
    padding: 20px 0;
}

.footer-logo img {
    width: 100px;
    min-width: 100px;
    height: auto;
    display: block;
    padding: 4px 8px;
}

.footer-logo {
    flex-shrink: 0;
}

.footer-logo .hero-logo {
    width: 100px;
    min-width: 100px;
    padding: 4px 8px;
}

.footer-address-text {
    text-align: left;
    font-size: 0.85rem;
    line-height: 1.3;
}

.footer-copyright {
    text-align: center;
    font-size: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    margin-top: 20px;
}

.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid #c5a059;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 12px 35px rgba(5, 23, 114, 0.15);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 1250;
    pointer-events: none;
}

.cookie-banner.show-banner {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-text {
    font-size: 0.85rem;
    color: #051772;
    line-height: 1.4;
    margin-bottom: 12px;
}

.cookie-text a {
    color: #051772;
    text-decoration: underline;
    text-decoration-color: #c5a059;
    text-underline-offset: 4px;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.cookie-btn {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.625rem;
}

.cookie-btn-primary {
    background-color: #c5a059;
    border: 1px solid #c5a059;
    color: #ffffff;
}

.cookie-btn-primary:hover {
    background-color: #b68c4f;
    border-color: #b68c4f;
    color: #ffffff;
}

.cookie-btn-secondary {
    background-color: transparent;
    border: 1px solid #c5a059;
    color: #c5a059;
}

.cookie-btn-secondary:hover {
    background-color: rgba(197, 160, 89, 0.15);
    color: #c5a059;
}

.custom-context-menu {
    position: fixed;
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(5, 23, 114, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid #c5a059;
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.8rem;
    z-index: 2000;
    box-shadow: 0 12px 35px rgba(5, 23, 114, 0.2);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.custom-context-menu.is-visible {
    display: inline-flex;
    opacity: 1;
    transform: translateY(0);
}

.to-top-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #d4af37;
    border: 1px solid var(--accent-gold);
    background-color: rgba(5, 23, 114, 0.35);
    color: #ffffff;
    color: var(--secondary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 30px rgba(5, 23, 114, 0.25);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1200;
}

.to-top-btn.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.to-top-btn:hover {
    box-shadow: 0 0 0 1px #d4af37, 0 14px 32px rgba(5, 23, 114, 0.3);
    transform: translateY(-2px);
}

#cookie-banner.show-banner ~ .to-top-btn {
    bottom: 260px;
}

.custom-context-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--secondary-color);
    font-size: 0.9rem;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s ease, text-decoration-color 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.modal-backdrop.show {
    backdrop-filter: blur(8px);
    background-color: rgba(5, 23, 114, 0.5);
}

body.modal-open .navbar {
    z-index: 1030 !important;
}

.modal {
    z-index: 1150 !important;
}

.modal-backdrop {
    z-index: 1140 !important;
}

.modal-content {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    border: none;
    box-shadow: 0 24px 60px rgba(5, 23, 114, 0.2);
    backdrop-filter: blur(6px);
}

.legal-modal .modal-content {
    background-color: #051772;
    background-color: var(--primary-color);
    color: #ffffff;
    color: var(--secondary-color);
    border: 1px solid #d4af37;
    border: 1px solid var(--accent-gold);
    box-shadow: 0 24px 60px rgba(5, 23, 114, 0.35);
}

.legal-modal .modal-header {
    background-color: #051772;
    background-color: var(--primary-color);
    color: #ffffff;
    color: var(--secondary-color);
    border-bottom: 1px solid #d4af37;
    border-bottom: 1px solid var(--accent-gold);
}

.legal-modal .modal-title {
    color: #ffffff;
    color: var(--secondary-color);
    letter-spacing: 0.08em;
}

.legal-modal .modal-body {
    color: #ffffff;
    color: var(--secondary-color);
    font-family: "Inter", sans-serif;
    line-height: var(--line-height-body);
}

.legal-modal .modal-body h3 {
    color: #ffffff;
    color: var(--secondary-color);
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    font-size: var(--font-size-h3);
    letter-spacing: 0.06em;
}

.legal-modal .close-icon-style {
    background-color: #d4af37;
    background-color: var(--accent-gold);
    color: #051772;
    color: var(--primary-color);
    border: 1px solid #d4af37;
    border: 1px solid var(--accent-gold);
}

.navbar-scrolled {
    background-color: #051772 !important;
    transition: background-color 0.3s ease;
}

@media (max-width: 768px) {
    .header-scrolled .brand-sub {
        display: none;
    }
}

.lang-link {
    color: var(--secondary-color);
    text-decoration: none;
    letter-spacing: 0.08em;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.lang-link.active {
    color: #c5a059;
}

.lang-divider {
    color: #c5a059;
    opacity: 0.9;
    margin: 0 8px;
    padding: 0;
}

.header-scrolled .navbar {
    top: 0;
    background-color: #051772 !important;
}

.nav-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: auto;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--secondary-color);
    font-size: 1.5rem;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.footer-social a:hover {
    opacity: 1;
}

.modal-body {
    color: var(--primary-color);
    padding-bottom: 2rem;
}

.modal-header {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-bottom: none;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    padding: 25px 30px;
    position: relative;
}

.modal-title {
    font-family: "Oswald", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.modal-body h3 {
    font-family: "Oswald", sans-serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.modal-body h3 + p {
    margin-bottom: 1.5rem;
}

.modal-intro {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}

.modal-profile-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(5, 23, 114, 0.12);
    flex-shrink: 0;
}

.modal-quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.modal-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.modal-action-whatsapp {
    border: 1px solid #c5a059;
    color: #c5a059;
    background-color: transparent;
}

.modal-action-whatsapp:hover {
    background-color: #c5a059;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(197, 160, 89, 0.35);
}

.modal-action-phone {
    background-color: #051772;
    color: #ffffff;
}

.modal-action-phone:hover {
    background-color: #0b2a9a;
    box-shadow: 0 0 12px rgba(5, 23, 114, 0.25);
    color: #ffffff;
}

.modal-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #051772;
    font-weight: 600;
}

.modal-divider::before,
.modal-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: rgba(5, 23, 114, 0.2);
}

.modal-submit-btn {
    background-color: #c5a059;
    border: 1px solid #c5a059;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.modal-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-submit-spinner {
    display: none;
}

.modal-submit-btn.is-loading .modal-submit-text {
    display: none;
}

.modal-submit-btn.is-loading .modal-submit-spinner {
    display: inline-block;
}

.modal-success {
    text-align: center;
    padding: 24px 0 8px;
}

.modal-success i {
    font-size: 3rem;
    color: #c5a059;
    margin-bottom: 12px;
}

.modal-success p {
    color: #051772;
    font-weight: 600;
}

.modal-submit-btn:hover {
    background-color: #b68c4f;
    border-color: #b68c4f;
    color: #ffffff;
}

.modal-quick-form .form-control:invalid:not(:placeholder-shown) {
    border-color: #d9534f;
    box-shadow: 0 0 0 0.15rem rgba(217, 83, 79, 0.2);
}

.modal-quick-form .form-control:valid {
    border-color: #c5a059;
}


@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-brand {
        flex-direction: column;
        text-align: center;
    }

    .footer-address-text {
        text-align: center;
    }
}
