/* --------------------------------------------------------------
   GLOBAL
-------------------------------------------------------------- */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

:root {
    /* OAG Corporate Colors */
    --primary: #005687;          /* Dunkles Blau (Hauptfarbe) */
    --primary-medium: #4a82a6;   /* Mittleres Blau */
    --primary-light: #a8c5d8;    /* Helles Blau */
    --primary-lightest: #c9dce8; /* Sehr helles Blau */
    
    --gray-dark: #5a5a5a;        /* Dunkelgrau (OAG Text) */
    --gray-medium: #888888;      /* Mittelgrau */
    
    --dark: #1d1d1b;
    --light: #f4f7f9;            /* Angepasst an Blauton */
    --white: #ffffff;

    --font-family-base: Calibri, Tahoma, Geneva, Verdana, sans-serif;

    --oag-container-width: 1450px;
    --oag-section-padding: 80px 0;
    --oag-section-padding-mobile: 40px 0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family-base);
    font-size: 20px;
    line-height: 1.7;
    color: var(--dark);
    overflow-x: hidden;
    background-color: var(--white);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-medium);
    text-decoration: underline;
}

.inside {
    max-width: var(--oag-container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}


/* --------------------------------------------------------------
   TYPOGRAPHY
-------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-dark);
    font-weight: 700;
}

p {
    margin-bottom: 1em;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--gray-dark);
}

.section-title h2::after,
.ueberschrift h2::after,
.content-text h2::after,
.content-text h3::after,
.content-text h4::after,
.content-text h5::after,
.content-text h6::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    margin: 20px auto;
    border-radius: 2px;
}

.card h3,
.ueberschrift h2,
.content-text h3,
.content-text h4,
.content-text h5,
.content-text h6 {
    display: block;
    font-size: 1.9rem;
    font-weight: 700;
    text-align: center;
}

.ueberschrift h2 {
    font-size: 2.5rem;
    margin-top: 50px;
}


/* --------------------------------------------------------------
   HEADER & NAVIGATION
-------------------------------------------------------------- */

#top-custom {
    padding: 10px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0, 86, 135, 0.1);
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary-lightest) 100%) 1;
}

#top-custom a {
    text-decoration: none;
    font-weight: 600;
    padding: 10px 18px;
    transition: all 0.3s ease;
    border-radius: 2px;
    color: #ffffff;
}

#top-custom a:hover {
    color: #ffffff;
    background-color: var(--light);
    text-decoration: underline;
}

#top-custom nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

#top-custom nav a {
    font-size: 1rem;
    position: relative;
}

#top-custom nav a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

#top-custom nav a:hover::after {
    width: 60%;
}

#top-custom .logo a {
    font-size: 1.3rem;
    font-weight: 700;
   
    padding: 0;
}

#top-custom .logo a:hover {
    background-color: transparent;
}

#top-custom .logo a::after {
    display: none;
}

#header {
    background: linear-gradient(135deg, var(--primary-lightest) 0%, var(--white) 50%, var(--light) 100%);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 400px;
    box-shadow: inset 0 -5px 15px rgba(0, 86, 135, 0.05);
    position: relative;
}

#header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-lightest) 0%, var(--primary-light) 50%, var(--primary-medium) 100%);
    opacity: 0.3;
    clip-path: polygon(100% 0, 100% 100%, 0 100%, 30% 0);
}

#header .inside {
    padding: 50px 20px;
    position: relative;
    z-index: 1;
}

#header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 10px;
    color: var(--gray-dark);
}


/* --------------------------------------------------------------
   HERO
-------------------------------------------------------------- */

.hero-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    font-family: 'object-fit: cover;';
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 86, 135, 0.7) 0%, rgba(168, 197, 216, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    text-align: center;
    padding: 20px;
}

.hero-content h1 {
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}


/* --------------------------------------------------------------
   BUTTONS
-------------------------------------------------------------- */

.btn {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(135deg, #005687 0%, #2f7fa8 100%);
    font-color: #ffffff;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 10px rgba(0,86,135,0.35);
}

.btn:hover {
    background: linear-gradient(135deg, #00486f 0%, #005687 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,86,135,0.45);
    color: #ffffff;
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0,86,135,0.35);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

/* --------------------------------------------------------------
   CARDS / LEISTUNGEN
-------------------------------------------------------------- */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 50px 0;
}

.card {
    background: var(--white);
    padding: 40px;
    color: var(--dark);
    border-top-left-radius: 30px;
    border-bottom-right-radius: 30px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 5px 25px rgba(0, 86, 135, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-lightest) 0%, transparent 100%);
    border-bottom-left-radius: 80px;
}

.card:hover {
    border-left-color: var(--primary-medium);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 86, 135, 0.15);
}

.card h3 {
    color: var(--gray-dark);
}

.card p {
    color: #555;
    line-height: 1.8;
}

.card a {
    color: var(--primary);
    font-weight: 600;
}

.card a:hover {
    color: var(--primary-medium);
}


/* --------------------------------------------------------------
   GALERIE
-------------------------------------------------------------- */

#para {
    background: linear-gradient(180deg, var(--light) 0%, var(--white) 100%);
    padding: 70px 0 50px 0;
    scroll-margin-top: 80px;
}

.content-gallery.content-gallery--cols-4 ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    list-style: none;
    padding: 0;
    margin-top: 50px;
}

.content-gallery.content-gallery--cols-4 img {
    display: block;
    width: 100%;
    height: auto;
    border-top-left-radius: 20px;
    border-bottom-right-radius: 20px;
    border: 3px solid var(--white);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    backface-visibility: hidden;
    box-shadow: 0 5px 15px rgba(0, 86, 135, 0.1);
}

.content-gallery.content-gallery--cols-4 img:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 15px 40px rgba(0, 86, 135, 0.25);
    border-color: var(--primary-light);
}


/* --------------------------------------------------------------
   STEPS
-------------------------------------------------------------- */

.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
    padding: 20px;
}

.step-num {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-medium) 100%);
    color: white;
    border-radius: 20px;
    border-top-left-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(0, 86, 135, 0.3);
    transition: all 0.3s ease;
}

.step:hover .step-num {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 86, 135, 0.4);
}

.step h4 {
    margin-bottom: 10px;
    color: var(--gray-dark);
}

.step p {
    color: #666;
}


/* --------------------------------------------------------------
   SECTIONS
-------------------------------------------------------------- */

section {
    padding: 100px 0;
}

.bg-light {
    background: var(--light);
}

.bg-gradient {
    background: linear-gradient(180deg, var(--white) 0%, var(--light) 50%, var(--white) 100%);
}


/* --------------------------------------------------------------
   REVEAL ANIMATION
-------------------------------------------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.is-visible,
.reveal.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.hero h1.reveal,
.hero p.reveal {
    opacity: 1 !important;
    transform: none !important;
}

@media (prefers-reduced-motion: no-preference) {
    [data-js-ready="true"] .reveal:not(.active) {
        opacity: 0;
        transform: translateY(30px);
    }
}


/* --------------------------------------------------------------
   BACK TO TOP BUTTON
-------------------------------------------------------------- */

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-medium) 100%);
    color: white;
    border: none;
    border-radius: 5px;
    border-top-left-radius: 25px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 6px 20px rgba(0, 86, 135, 0.4);
}

#backToTop:hover {
    background: linear-gradient(135deg, var(--primary-medium) 0%, var(--primary) 100%);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 86, 135, 0.5);
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}


/* --------------------------------------------------------------
   FOOTER
-------------------------------------------------------------- */

#footer {
    background: linear-gradient(180deg, var(--light) 0%, #e8eff4 100%);
    color: var(--dark);
    padding: 60px 0;
    text-align: center;
    scroll-margin-top: 80px;
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, var(--primary-lightest) 0%, var(--primary) 50%, var(--primary-lightest) 100%) 1;
}

#footer a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

#footer a:hover {
    color: var(--primary-medium);
    text-decoration: underline;
}


/* --------------------------------------------------------------
   STICKY SIDEBAR
-------------------------------------------------------------- */

.sticky-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 1002;
}

.sticky-sidebar button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-medium) 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    margin-bottom: 5px;
    width: 160px;
    border-radius: 8px 0 0 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transform: translateX(115px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: -3px 3px 10px rgba(0, 86, 135, 0.2);
}

.sticky-sidebar button .icon {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sticky-sidebar button:hover {
    transform: translateX(0);
    background: var(--gray-dark);
}


/* --------------------------------------------------------------
   MODAL
-------------------------------------------------------------- */

dialog[open] {
    animation: fadeIn 0.3s ease-out;
}

dialog {
    width: 90%;
    max-width: 800px;
    min-height: 300px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 50px;
    border: none;
    border-radius: 20px;
    border-top-left-radius: 40px;
    background: var(--white);
    box-shadow: 0 25px 60px rgba(0, 86, 135, 0.4);
    overflow-y: auto;
    max-height: 90vh;
}

dialog::backdrop {
    background: rgba(0, 40, 70, 0.85);
    backdrop-filter: blur(8px);
}

dialog h3 {
    font-size: 2.2rem;
    color: var(--gray-dark);
    margin-bottom: 25px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
    padding-bottom: 10px;
}

dialog p {
    line-height: 1.8;
    color: #444;
}

dialog a {
    color: var(--primary);
    font-weight: 600;
}

dialog a:hover {
    color: var(--primary-medium);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--light);
    border: none;
    font-size: 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--gray-dark);
}

.modal-close-btn:hover {
    background: var(--primary);
    color: white;
}

body.dark-mode dialog {
    background: #1d1d1b;
    color: white;
    border: 1px solid #444;
}

body.dark-mode dialog p {
    color: #ccc;
}

body.dark-mode dialog a {
    color: var(--primary-light);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}


/* --------------------------------------------------------------
   ACTION HUB
-------------------------------------------------------------- */

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.hub-card {
    background: var(--white);
    border: 2px solid var(--primary-light);
    padding: 40px 20px;
    border-radius: 15px;
    border-top-left-radius: 30px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hub-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-medium) 100%);
    transform: scale(0);
    transition: transform 0.5s ease;
    z-index: 0;
    border-radius: 50%;
}

.hub-card:hover::before {
    transform: scale(1);
}

.hub-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 86, 135, 0.2);
}

.hub-card:hover h3,
.hub-card:hover p,
.hub-card:hover .hub-icon {
    color: white;
    position: relative;
    z-index: 1;
}

.hub-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    color: var(--primary);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.hub-card h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.hub-card p {
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.8;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

body.dark-mode .hub-card {
    background: #2a2a28;
    border-color: var(--primary);
}

body.dark-mode .hub-card:hover {
    background: transparent;
}


/* --------------------------------------------------------------
   MEDIA QUERIES
-------------------------------------------------------------- */

@media (max-width: 1024px) {
    .content-gallery.content-gallery--cols-4 ul {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        gap: 20px;
    }

    #top-custom nav {
        gap: 5px;
    }

    #top-custom nav a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    #header::before {
        width: 200px;
    }
}

@media (max-width: 768px) {
    #top-custom {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    #top-custom nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    #header .inside {
        padding: 100px 20px;
    }

    #header::before {
        display: none;
    }

    .grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .content-gallery.content-gallery--cols-4 ul {
        grid-template-columns: 1fr;
    }

    section {
        padding: 60px 0;
    }

    .ueberschrift h2 {
        font-size: 2rem;
    }

    .card {
        padding: 25px;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        max-width: 400px;
        width: 100%;
    }

    .sticky-sidebar {
        display: none;
    }

    dialog {
        padding: 30px 20px;
        width: 95%;
    }

    dialog h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .hero-container {
        height: 350px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    #backToTop {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    #top-custom nav a {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    #top-custom nav a::after {
        display: none;
    }
}
