/* ==========================================================================
   NaviNaut Website — Custom Styles
   Bootstrap 5 + Open Sans
   Colors from original Divi theme
   ========================================================================== */

/* --- Variables --- */
:root {
    --nn-blue: #007cdb;
    --nn-blue-dark: #0964a5;
    --nn-blue-light: #2EA3F2;
    --nn-orange: #f18900;
    --nn-teal: #29c4a9;
    --nn-purple: #7e3bd0;
    --nn-text: #333;
    --nn-text-light: #666;
    --nn-text-muted: #999;
    --nn-bg-light: #f5f5f5;
    --nn-bg-gray: #f3f3f3;
    --nn-border: #e0e0e0;
    --nn-overlay-dark: rgba(30, 40, 60, 0.35);
}

/* --- Global --- */
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
    color: var(--nn-text);
    font-size: 15px;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--nn-text);
}

a {
    color: var(--nn-blue);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--nn-blue-dark);
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 60px 0;
}

/* --- Buttons --- */
.btn-nn {
    background: var(--nn-blue);
    color: #fff;
    border: 2px solid var(--nn-blue);
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    display: inline-block;
}
.btn-nn:hover {
    background: var(--nn-blue-dark);
    border-color: var(--nn-blue-dark);
    color: #fff;
}

.btn-nn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    display: inline-block;
}
.btn-nn-outline:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.btn-nn-orange {
    background: var(--nn-orange);
    color: #fff;
    border: 2px solid var(--nn-orange);
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    display: inline-block;
}
.btn-nn-orange:hover {
    background: #d97a00;
    border-color: #d97a00;
    color: #fff;
}

/* --- Navbar --- */
.navbar-nn {
    background: rgba(30, 40, 60, 0.95);
    padding: 12px 0;
    transition: background 0.3s, padding 0.3s;
}
.navbar-nn.scrolled {
    background: rgba(20, 30, 50, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.navbar-nn .navbar-brand img {
    height: 40px;
}

.navbar-nn .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 14px !important;
    transition: color 0.2s;
}
.navbar-nn .nav-link:hover,
.navbar-nn .nav-link.active {
    color: #fff !important;
}

.navbar-nn .nav-cta .nav-link {
    color: var(--nn-orange) !important;
    font-weight: 700;
}
.navbar-nn .nav-cta .nav-link:hover {
    color: #fff !important;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 72vh;
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
    position: relative;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--nn-overlay-dark);
}
.hero-section .container {
    position: relative;
    z-index: 1;
}
.hero-section h1 {
    color: #fff;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}
.hero-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.15rem;
}
.hero-section .hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
}

/* Smaller hero for subpages */
.hero-section.hero-small {
    min-height: 40vh;
    padding: 100px 0 50px;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
        background-attachment: scroll;
        padding: 100px 0 60px;
    }
    .hero-section.hero-small {
        min-height: 30vh;
        padding: 90px 0 40px;
    }
    .hero-section h1 {
        font-size: 1.8rem;
    }
}

/* --- How It Works Section --- */
.how-it-works {
    background: #fff;
    padding: 70px 0;
}
.how-it-works .lead {
    font-size: 24px;
    font-weight: 700;
    color: var(--nn-blue);
    line-height: 1.3;
    margin-bottom: 50px;
}
.how-it-works .step-img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 16px;
    transition: transform 0.3s;
}
.how-it-works .step-img:hover {
    transform: translateY(-4px);
}
.lightbox-img {
    cursor: pointer;
}
.how-it-works .step-label {
    font-weight: 700;
    color: var(--nn-blue);
    font-size: 20px;
}

/* --- CTA Section --- */
.cta-section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 80px 0;
    text-align: center;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(9, 100, 165, 0.88);
}
.cta-section .container {
    position: relative;
    z-index: 1;
}
.cta-section h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 12px;
}
.cta-section .cta-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.cta-section p {
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto 30px;
}

/* Orange CTA variant (solid background, no overlay) */
.cta-section.cta-orange {
    background: var(--nn-orange);
    background-image: none;
}
.cta-section.cta-orange::before {
    display: none;
}

/* CTA Buy Button (white outline on orange background) */
.btn-cta-buy {
    background: #fff;
    color: var(--nn-orange);
    border: 2px solid #fff;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s;
    display: inline-block;
}
.btn-cta-buy:hover {
    background: rgba(255,255,255,0.9);
    color: #d97a00;
}

@media (max-width: 768px) {
    .cta-section {
        background-attachment: scroll;
    }
}

/* --- Features Section --- */
.features-section {
    background: #fff;
    padding: 70px 0;
}
.features-section .feature-img {
    border-radius: 0;
    box-shadow: none;
}
.features-section .feature-heading {
    font-size: 1.3rem;
    color: var(--nn-blue);
    font-weight: 700;
    margin-bottom: 20px;
}

.feature-blurb {
    text-align: center;
    padding: 20px;
}
.feature-blurb .feature-icon {
    width: 60px;
    height: 60px;
    background: var(--nn-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 16px;
}
.feature-blurb h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.feature-blurb p {
    font-size: 0.9rem;
    color: var(--nn-text-light);
}

/* --- Feature Details (4-column icons) --- */
.feature-details {
    background: #fff;
    padding: 60px 0;
}
.feature-card {
    text-align: center;
    padding: 30px 15px;
}
.feature-card .feature-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--nn-blue) 0%, var(--nn-teal) 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 18px;
}
.feature-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--nn-blue-dark);
    margin-bottom: 10px;
}
.feature-card p {
    font-size: 0.92rem;
    color: var(--nn-text-light);
    line-height: 1.6;
}

/* --- Testimonials --- */
.testimonials-section {
    background: var(--nn-bg-light);
    padding: 70px 0;
}
.testimonial-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    height: 100%;
    position: relative;
}
.testimonial-card::before {
    content: '\201E';
    font-size: 60px;
    color: var(--nn-blue);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
}
.testimonial-card blockquote {
    font-style: italic;
    color: var(--nn-text-light);
    font-size: 0.95rem;
    margin-bottom: 16px;
    padding-top: 20px;
}
.testimonial-card .testimonial-portrait {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.testimonial-card .author {
    font-weight: 700;
    color: var(--nn-blue-dark);
}

/* --- Route Examples --- */
.routes-section {
    background: #fff;
    padding: 70px 0;
}
.routes-section h2 {
    text-align: center;
    margin-bottom: 40px;
}
.routes-section h3 {
    color: var(--nn-blue);
    font-size: 1.3rem;
    margin-bottom: 16px;
}
.routes-section .route-text {
    font-size: 0.93rem;
    color: var(--nn-text-light);
    line-height: 1.8;
}
.routes-section .route-details {
    font-weight: 600;
    color: var(--nn-text);
}

/* --- Contact Section --- */
.contact-section {
    background: var(--nn-bg-light);
    padding: 70px 0;
}
.contact-section h3 {
    color: var(--nn-blue);
    margin-bottom: 12px;
}
.contact-section .form-control {
    border: 1px solid var(--nn-border);
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
}
.contact-section .form-control:focus {
    border-color: var(--nn-blue);
    box-shadow: 0 0 0 3px rgba(0, 124, 219, 0.15);
}
.contact-section textarea.form-control {
    min-height: 120px;
}

/* --- AIS Product Section --- */
.ais-section {
    background: #fff;
    padding: 70px 0;
}
.ais-section h2 {
    text-align: center;
    margin-bottom: 40px;
}
.ais-section .ais-img {
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

/* --- Footer --- */
.footer-nn {
    background: #2a2e35;
    color: rgba(255,255,255,0.7);
    padding: 50px 0 0;
    font-size: 14px;
}
.footer-nn h5 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-nn a {
    color: rgba(255,255,255,0.7);
    transition: color 0.2s;
}
.footer-nn a:hover {
    color: #fff;
}
.footer-nn ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-nn ul li {
    margin-bottom: 8px;
}

.footer-bottom {
    background: #22252b;
    padding: 18px 0;
    margin-top: 40px;
    text-align: center;
}
.footer-bottom .social-icons a {
    color: rgba(255,255,255,0.6);
    font-size: 18px;
    margin: 0 10px;
    transition: color 0.2s;
}
.footer-bottom .social-icons a:hover {
    color: #fff;
}
.footer-bottom .copyright {
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    margin-top: 10px;
}

/* --- Blog Cards --- */
.blog-card {
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: var(--nn-text);
    height: 100%;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    color: var(--nn-text);
}

.blog-card-img-wrap {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
}
.blog-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.blog-card:hover .blog-card-img {
    transform: scale(1.03);
}

.blog-card-body {
    padding: 20px;
}
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.blog-card-date {
    font-size: 0.8rem;
    color: var(--nn-text-muted);
}
.blog-card-category {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 3px;
}
/* Kategorie-Farben */
.blog-card-category.cat-news       { background: rgba(241, 137, 0, 0.1);  color: var(--nn-orange); }
.blog-card-category.cat-bootstechnik    { background: rgba(0, 124, 219, 0.1);  color: var(--nn-blue); }
.blog-card-category.cat-bootstouren     { background: rgba(41, 196, 169, 0.12); color: #1a9e85; }
.blog-card-category.cat-dies-und-das    { background: rgba(126, 59, 208, 0.1); color: var(--nn-purple); }
.blog-card-category.cat-hausboote       { background: rgba(0, 150, 136, 0.1);  color: #00796b; }
.blog-card-category.cat-bootssport      { background: rgba(33, 150, 243, 0.1); color: #1565c0; }
.blog-card-category.cat-hafengeschichten { background: rgba(121, 85, 72, 0.1); color: #5d4037; }
.blog-card-category.cat-rechtliches     { background: rgba(198, 40, 40, 0.1); color: #c62828; }
.blog-card-category.cat-reiseberichte   { background: rgba(46, 125, 50, 0.1); color: #2e7d32; }
.blog-card-category.cat-yachten         { background: rgba(1, 87, 155, 0.1); color: #01579b; }
.blog-card-category.cat-bootsueberfuehrung { background: rgba(230, 81, 0, 0.1); color: #e65100; }
.blog-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--nn-text);
}
.blog-card-excerpt {
    font-size: 0.88rem;
    color: var(--nn-text-light);
    line-height: 1.6;
    margin-bottom: 10px;
}
.blog-card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--nn-blue);
}
.blog-card:hover .blog-card-link {
    color: var(--nn-blue-dark);
}

/* --- Blog Filter Bar --- */
.blog-filter-section {
    background: #fff;
    padding: 24px 0 0;
    border-bottom: 1px solid var(--nn-border);
}
.blog-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.blog-filter-btn {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--nn-text-light);
    background: var(--nn-bg-light);
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.blog-filter-btn:hover {
    color: var(--nn-blue);
    background: rgba(0, 124, 219, 0.08);
}
.blog-filter-btn.active {
    color: #fff;
    background: var(--nn-blue);
    border-color: var(--nn-blue);
}

/* --- Blog Article --- */
.blog-article-section {
    padding: 110px 0 50px;
    background: #fff;
}
.blog-article-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--nn-text);
    line-height: 1.3;
    margin-bottom: 24px;
}
.blog-article-featured-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}
.blog-article-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--nn-border);
}
.blog-article-date {
    color: var(--nn-text-muted);
    font-size: 0.9rem;
}
.blog-article-meta .blog-card-category {
    text-decoration: none;
}
.blog-article-meta .blog-card-category:hover {
    opacity: 0.8;
}
@media (max-width: 768px) {
    .blog-article-title {
        font-size: 1.5rem;
    }
}
.blog-article {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--nn-text);
}
.blog-article h2 {
    font-size: 1.5rem;
    color: var(--nn-blue);
    margin-top: 36px;
    margin-bottom: 16px;
}
.blog-article h3 {
    font-size: 1.25rem;
    color: var(--nn-blue-dark);
    margin-top: 28px;
    margin-bottom: 12px;
}
.blog-article p {
    margin-bottom: 16px;
}
.blog-article img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}
.blog-article ul, .blog-article ol {
    margin-bottom: 16px;
    padding-left: 24px;
}
.blog-article blockquote {
    border-left: 4px solid var(--nn-blue);
    padding: 16px 20px;
    margin: 24px 0;
    background: var(--nn-bg-light);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--nn-text-light);
}
.blog-article a {
    color: var(--nn-blue);
    text-decoration: underline;
}
.blog-article a:hover {
    color: var(--nn-blue-dark);
}

/* --- Blog Related Posts --- */
.blog-related-section {
    background: var(--nn-bg-light);
    padding: 60px 0;
}

/* --- Blog Navigation (Vor/Zurück) --- */
.blog-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--nn-border);
}
.blog-nav a {
    display: block;
    max-width: 48%;
    text-decoration: none;
    color: var(--nn-text);
    padding: 12px 16px;
    border-radius: 8px;
    transition: background 0.2s;
}
.blog-nav a:hover {
    background: var(--nn-bg-light);
    color: var(--nn-text);
}
.blog-nav-label {
    display: block;
    font-size: 0.8rem;
    color: var(--nn-text-muted);
    margin-bottom: 4px;
}
.blog-nav-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--nn-blue);
    line-height: 1.4;
}
.blog-nav-next {
    text-align: right;
    margin-left: auto;
}

@media (max-width: 576px) {
    .blog-nav {
        flex-direction: column;
    }
    .blog-nav a {
        max-width: 100%;
    }
    .blog-nav-next {
        text-align: left;
    }
}

/* --- Pagination --- */
.pagination-blog {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
    padding-top: 30px;
}
.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--nn-text);
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid var(--nn-border);
    background: #fff;
}
.pagination-link:hover {
    background: var(--nn-blue);
    color: #fff;
    border-color: var(--nn-blue);
}
.pagination-link.active {
    background: var(--nn-blue);
    color: #fff;
    border-color: var(--nn-blue);
}
.pagination-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    font-size: 14px;
    color: var(--nn-text-muted);
}

/* --- Scroll to top --- */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--nn-blue);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
    transition: opacity 0.3s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}
.scroll-top.visible {
    display: flex;
}
.scroll-top:hover {
    background: var(--nn-blue-dark);
}

/* --- Utility --- */
.section-heading {
    text-align: center;
    margin-bottom: 50px;
}
.section-heading h2 {
    font-size: 1.8rem;
    color: var(--nn-blue);
    position: relative;
    display: inline-block;
}
.section-heading h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--nn-blue);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(40, 44, 52, 0.97);
    color: #fff;
    padding: 16px 20px;
    z-index: 9999;
    font-size: 13px;
    display: none;
}
.cookie-banner.show {
    display: block;
}
.cookie-banner a {
    color: var(--nn-blue-light);
}
.cookie-banner .btn-cookie {
    background: var(--nn-blue);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    margin-left: 16px;
}

/* --- Honeypot (spam protection) --- */
.nn-hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* --- Contact form messages --- */
.form-msg {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
    display: none;
}
.form-msg.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}
.form-msg.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}
