:root {
    --primary: #003087;
    --green: #28a745;
    --yellow: #ffc107;
    --red: #dc3545;
    --accent: #57a0ff;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius: 15px;
    --transition: all 0.3s ease;
}

/* GLOBAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-light);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

.container {
    width: min(100% - 56px, 1120px);
    margin: 0 auto;
    position: relative;
}

/* HEADER */
header {
    background: var(--white);
    height: 82px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 24px;
}

.logo-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-decoration: none;
    line-height: 1;
    flex-shrink: 0;
}

.logo-box img {
    height: 48px;
    width: auto;
    display: block;
}

.logo-box span {
    font-size: 0.48rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 2px;
    letter-spacing: 0.35px;
}

.nav-links {
    display: flex;
    gap: 26px;
    list-style: none;
    align-items: center;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    background: var(--primary);
    color: white !important;
    padding: 11px 22px;
    border-radius: 50px;
}

.burger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    position: relative;
    z-index: 1201;
}

.burger div {
    width: 28px;
    height: 3px;
    background-color: var(--primary);
    margin: 4px 0;
    border-radius: 3px;
    transition: 0.3s ease;
}

/* HERO */
.hero {
    height: 90vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 82px;
    background: #fff;
}

.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: 1.5s;
}

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
}

.hero-slide.active {
    opacity: 1;
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 10px;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 40px;
}

.hero h1 {
    font-size: 3.8rem;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero p {
    font-size: 1.05rem;
    margin-bottom: 30px;
    max-width: 650px;
}

.cta-btn-hero {
    background: var(--primary);
    color: white !important;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0, 48, 135, 0.2);
}

/* SERVICES */
.services {
    padding: 100px 0;
    width: min(100% - 72px, 1000px);
    margin: 0 auto;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border-left: 5px solid;
    padding-bottom: 34px;
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.card-blue { border-left-color: var(--primary); }
.card-green { border-left-color: var(--green); }
.card-yellow { border-left-color: var(--yellow); }
.card-red { border-left-color: var(--red); }

.card-img-box {
    padding: 20px 20px 0 20px;
}

.card-img-box img {
    width: 100%;
    border-radius: 12px;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 26px 22px;
    text-align: center;
}

.card-content h2 {
    font-size: 1.7rem;
    color: #333;
    margin-bottom: 14px;
    font-weight: 700;
}

.card-content p {
    color: var(--text-light);
    margin-bottom: 22px;
    font-size: 0.95rem;
}

.service-list {
    list-style: none;
    padding: 0 24px;
    text-align: left;
}

.service-list li {
    margin-bottom: 12px;
    padding-left: 35px;
    position: relative;
    font-size: 0.95rem;
    color: #444;
}

.service-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #000;
    font-size: 1.05rem;
}

/* ABOUT */
.about-section {
    padding: 100px 0;
    background: #fff;
    width: min(100% - 72px, 940px);
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 32px;
    font-weight: 800;
}

.about-text {
    max-width: 720px;
    margin: 0 auto 50px;
    text-align: center;
    font-size: 1.06rem;
    line-height: 1.8;
    color: var(--text-light);
}

.about-text p {
    margin-bottom: 18px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.team-member {
    background: var(--bg-light);
    padding: 34px 26px;
    border-radius: var(--radius);
    border: 1px solid #e8edf3;
    text-align: center;
}

.team-member img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 22px;
    border: 6px solid #fff;
    box-shadow: var(--shadow);
}

.team-member h3 {
    color: var(--primary);
    font-size: 1.45rem;
    margin-bottom: 6px;
}

.team-member .role {
    font-weight: 800;
    color: var(--accent);
    display: block;
    margin-bottom: 18px;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 1px;
}

.team-text {
    text-align: left;
    font-size: 0.96rem;
    color: var(--text-light);
    max-width: 380px;
    margin: 0 auto;
}

/* CONTACT */
.contact-section {
    background: transparent;
    padding: 110px 0 170px;
    position: relative;
}

.contact-layout {
    width: min(100% - 72px, 980px);
    margin: 0 auto;
    background: var(--primary);
    color: white;
    border-radius: 34px;
    padding: 70px 60px 170px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: start;
    position: relative;
    overflow: visible;
}

.contact-info-side {
    padding-top: 8px;
}

.contact-info-side h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    font-weight: 800;
    color: white;
    line-height: 1.1;
}

.contact-items-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 18px;
}

.contact-hours {
    align-items: flex-start;
}

.hours-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.hours-text strong {
    font-size: 1.05rem;
    font-weight: 800;
    color: white;
}

.hours-text span {
    font-size: 1rem;
    color: white;
    line-height: 1.5;
}

.icon-circle {
    background: white;
    color: var(--primary);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.contact-item span,
.contact-item a {
    font-size: 1.15rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-form-side {
    position: relative;
}

.contact-form-card {
    background: white;
    padding: 38px;
    border-radius: 22px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: -120px;
    position: relative;
    z-index: 3;
}

.contact-form-card input,
.contact-form-card textarea {
    padding: 18px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    color: #333;
    width: 100%;
}

.phone-row {
    display: flex;
}

.phone-row .prefix {
    padding: 18px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-right: 0;
    border-radius: 10px 0 0 10px;
    font-weight: 700;
    color: #555;
    display: flex;
    align-items: center;
}

.phone-row input {
    border-radius: 0 10px 10px 0;
    flex-grow: 1;
}

.privacy-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    font-size: 0.9rem;
    color: #666;
}

.privacy-row input {
    width: auto;
    margin-top: 5px;
    cursor: pointer;
    flex-shrink: 0;
}

.privacy-row a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

.btn-submit {
    background: var(--yellow);
    color: #333;
    border: none;
    padding: 20px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.btn-submit:hover {
    transform: translateY(-3px);
}

@media (max-width: 992px) {
    .contact-section {
        padding: 90px 0 120px;
    }

    .contact-layout {
        width: min(100% - 40px, 980px);
        grid-template-columns: 1fr;
        gap: 34px;
        padding: 50px 28px 120px;
        border-radius: 26px;
    }

    .contact-info-side h2 {
        font-size: 2.5rem;
        text-align: center;
    }

    .contact-items-container {
        max-width: 720px;
        margin: 0 auto;
    }

    .contact-form-card {
        margin-bottom: -90px;
        padding: 30px;
    }
}

@media (max-width: 640px) {
    .contact-section {
        padding: 80px 0 100px;
    }

    .contact-layout {
        width: 100%;
        margin: 0;
        border-radius: 0;
        padding: 40px 16px 100px;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info-side h2 {
        font-size: 2.15rem;
        text-align: center;
    }

    .contact-items-container {
        width: 100%;
        gap: 18px;
        margin-bottom: 0;
    }

    .contact-item {
        align-items: flex-start;
        gap: 14px;
    }

    .icon-circle {
        width: 48px;
        height: 48px;
        font-size: 1.15rem;
    }

    .contact-item span,
    .contact-item a {
        font-size: 1rem;
    }

    .hours-text strong {
        font-size: 1rem;
    }

    .hours-text span {
        font-size: 0.96rem;
    }

    .contact-form-card {
        padding: 24px 16px;
        border-radius: 16px;
        margin-bottom: -70px;
    }

    .contact-form-card input,
    .contact-form-card textarea {
        padding: 15px;
    }

    .phone-row .prefix {
        padding: 15px;
    }

    .btn-submit {
        padding: 18px;
        font-size: 1rem;
    }
}

/* FOOTER */
footer {
    background: #d7e3ef;
    color: var(--text-dark);
    padding: 190px 0 35px;
    text-align: center;
    border-top: 1px solid #b9cadc;
}

.footer-logo {
    height: 50px;
    margin-bottom: 25px;
    filter: none;
}

.footer-nav {
    display: flex;
    gap: 20px;
    justify-content: center;
    list-style: none;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #35506f;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: 0.3s;
}

.footer-nav a:hover {
    color: var(--primary);
}

.footer-divider {
    width: 100%;
    max-width: 1200px;
    height: 1px;
    background: #c7d5e4;
    margin: 20px auto;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 20px;
    color: #4f6782;
    font-size: 0.85rem;
}

.footer-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
}

.footer-socials a {
    color: #35506f;
    text-decoration: none;
    font-size: 1.35rem;
    transition: 0.3s;
}

.footer-socials a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .footer-socials {
        gap: 16px;
        margin-bottom: 22px;
    }

    .footer-socials a {
        font-size: 1.25rem;
    }
}

.riveria-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4f6782;
    text-decoration: none;
    transition: 0.3s;
}

.riveria-link:hover {
    color: var(--primary);
}

.riveria-logo {
    height: 72px;
    width: auto;
    transition: 0.3s;
}

.riveria-link:hover .riveria-logo {
    transform: scale(1.05);
}

/* TABLET / MOBILE */
@media (max-width: 992px) {
    .container {
        width: min(100% - 40px, 1120px);
    }

    header {
        height: 76px;
    }

    nav {
        padding: 0 18px;
    }

    .logo-box img {
        height: 44px;
    }

    .logo-box span {
        font-size: 0.44rem;
        margin-top: 1px;
        letter-spacing: 0.3px;
    }

    .burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 42px;
        height: 42px;
    }

    .nav-links {
        position: fixed;
        top: 76px;
        right: 0;
        width: 100%;
        height: calc(100vh - 76px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0;
        padding: 28px 24px 32px;
        list-style: none;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        z-index: 1200;
        overflow-y: auto;
    }

    .nav-links.nav-active {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 48, 135, 0.08);
    }

    .nav-links li:last-child {
        border-bottom: none;
        margin-top: 20px;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 18px 0;
        font-size: 1.05rem;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--text-dark);
        text-decoration: none;
    }

    .nav-links .nav-cta {
        display: inline-flex !important;
        width: auto !important;
        padding: 12px 20px !important;
        border-radius: 999px;
        background: var(--primary);
        color: #fff !important;
        white-space: nowrap;
    }

    .hero {
        min-height: 620px;
        padding-top: 76px;
    }

    .hero-content {
        padding: 0 24px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .services,
    .about-section {
        width: min(100% - 40px, 100%);
        padding: 90px 0;
    }

    .service-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .contact-section {
        padding: 90px 0 120px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .contact-info-side h2 {
        font-size: 2.5rem;
        text-align: center;
    }

    .contact-items-container {
        max-width: 720px;
        margin: 0 auto;
    }

    .contact-form-card {
        margin-bottom: -90px;
        padding: 30px;
    }

    footer {
        padding-top: 150px;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 44px, 1120px);
    }

    header {
        height: 72px;
    }

    nav {
        padding: 0 16px;
    }

    .logo-box img {
        height: 42px;
    }

    .logo-box span {
        font-size: 0.42rem;
        margin-top: 1px;
    }

    .nav-links {
        top: 72px;
        height: calc(100vh - 72px);
        padding: 24px 20px 28px;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 16px 0;
    }

    .nav-links .nav-cta {
        padding: 12px 18px !important;
        font-size: 0.95rem;
    }

    .burger div {
        width: 26px;
        margin: 4px 0;
    }

    .hero {
        min-height: 700px;
        padding-top: 72px;
    }

    .hero-content {
        padding: 0 22px;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.08;
        margin-bottom: 18px;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 26px;
    }

    .cta-btn-hero {
        padding: 16px 28px;
        width: 100%;
        max-width: 440px;
        text-align: center;
    }

    .hero-dots {
        bottom: 20px;
    }

    .section-title {
        font-size: 2.1rem;
        margin-bottom: 28px;
    }

    .services,
    .about-section {
        width: min(100% - 44px, 100%);
        padding: 80px 0;
    }

    .service-grid,
    .team-grid {
        gap: 24px;
    }

    .card-img-box {
        padding: 18px 18px 0 18px;
    }

    .card-content {
        padding: 24px 20px;
    }

    .card-content h2 {
        font-size: 1.5rem;
    }

    .service-list {
        padding: 0 24px;
    }

    .about-text {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .team-member {
        padding: 32px 24px;
    }

    .team-member img {
        width: 130px;
        height: 130px;
    }

    .contact-section {
        padding: 80px 0 100px;
    }

    .contact-info-side h2 {
        font-size: 2.15rem;
        text-align: center;
    }

    .contact-items-container {
        width: 100%;
        gap: 18px;
        margin-bottom: 0;
    }

    .contact-item {
        align-items: flex-start;
        gap: 14px;
    }

    .icon-circle {
        width: 48px;
        height: 48px;
        font-size: 1.15rem;
    }

    .contact-item span,
    .contact-item a {
        font-size: 1rem;
    }

    .contact-form-card {
        padding: 24px 18px;
        border-radius: 16px;
        margin-bottom: -70px;
    }

    .contact-form-card input,
    .contact-form-card textarea {
        padding: 15px;
    }

    .phone-row .prefix {
        padding: 15px;
    }

    .btn-submit {
        padding: 18px;
        font-size: 1rem;
    }

    footer {
        padding-top: 120px;
    }

    .footer-logo {
        height: 44px;
    }

    .footer-nav {
        gap: 14px;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }

    .riveria-logo {
        height: 34px;
    }
}

/* BURGER ANIMATION */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* FAQ */
.faq-section {
    padding: 100px 0;
    background: #fff;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-light);
    border: 1px solid #e8edf3;
    border-radius: 18px;
    padding: 0;
    overflow: hidden;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 24px 28px;
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--primary);
    position: relative;
    transition: var(--transition);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary);
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    content: '–';
}

.faq-item p {
    padding: 0 28px 24px;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
}

@media (max-width: 640px) {
    .faq-section {
        padding: 80px 0;
    }

    .faq-item {
        border-radius: 14px;
    }

    .faq-item summary {
        padding: 20px 22px;
        font-size: 1rem;
    }

    .faq-item summary::after {
        right: 20px;
    }

    .faq-item p {
        padding: 0 22px 20px;
        font-size: 0.96rem;
    }
}

.turnstile-row {
    margin: 12px 0 4px;
}

.turnstile-row .cf-turnstile {
    min-height: 65px;
}


/* Rechtliches / Danke-Seite */
.legal {
    max-width: 920px;
    margin: 120px auto 70px;
    padding: 0 24px;
    color: var(--text-dark);
    line-height: 1.75;
}

.legal h1 {
    color: var(--primary);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 32px;
}

.legal h2 {
    color: var(--primary);
    margin-top: 42px;
    margin-bottom: 16px;
}

.legal h3 {
    margin-top: 24px;
    color: var(--text-dark);
}

.legal a {
    color: var(--primary);
    font-weight: 600;
}

.thankyou-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-light);
}

.thankyou-container .icon-wrapper {
    width: 92px;
    height: 92px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    margin-bottom: 28px;
    box-shadow: 0 18px 40px rgba(0, 48, 135, 0.18);
}

.thankyou-container h1 {
    color: var(--primary);
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 18px;
}

.thankyou-container p {
    color: var(--text-light);
    font-size: 1.08rem;
    margin-bottom: 8px;
}

.back-button {
    margin-top: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 48, 135, 0.22);
}
