/**
 * Farbschema für ferienhaus-krummhörn.de
 * Erstellt von Reinhold & Claude — April 2026
 * Nordsee & Sand — Meerblau statt Dunkelgrün
 */

/* ===============================
   CSS Variablen
   =============================== */
:root {
    --brand-primary:      #1a6a8a;
    --brand-secondary:    #f5e6d3;
    --brand-accent:       #f9d85a;
    --body-bg:            #fae596;
    --navbar-bg:          #1a6a8a;
    --footer-bg:          #154f66;
    --breadcrumb-bg:      #2a8ab0;
    --section-light-bg:   #daeef8;
    --section-dark-bg:    #1a6a8a;
    --frame-light-bg:     #f0f8ff;
}

/* ===============================
   Body
   =============================== */
body {
    background-color: #fae596 !important;
    color: #1a3a2a !important;
}

/* ===============================
   Links & Überschriften
   =============================== */
a       { color: #1a6a8a; }
a:hover { color: #154f66; }

h1, h2, h3, h4, h5, h6, .ce-headline {
    color: #1a3a5a !important;
}

/* ===============================
   HEADER — Nordsee Wellen Look
   =============================== */

/* Haupt-Hintergrund: Himmelblau mit SVG-Wellen */
/* Header — sauberes Hellblau, keine Wellen */
.logo-nav-section {
    background-color: #c8e8f5;
    padding: 0.75rem 0;
    border-bottom: 3px solid #4a9ab8;
    min-height: 100px;
    position: relative;
}

/* Sonne — subtil, stört Logo nicht */
.logo-nav-section::before {
    content: '';
    position: absolute;
    top: 14px;
    right: 80px;
    width: 34px;
    height: 34px;
    background: #f9d85a;
    border-radius: 50%;
    opacity: 0.65;
    pointer-events: none;
}

/* Keine Deichlinie */
.logo-nav-section::after {
    display: none;
}

/* Flexbox Container */
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

/* Logo */
.logo-wrapper {
    flex-shrink: 0;
}

.logo-wrapper img {
    height: 110px;
    width: auto;
    max-width: 360px;
}

/* Navigation Links-Farbe auf Himmelblau-Hintergrund */
.nav-wrapper-desktop .nav-link,
.nav-wrapper-desktop a {
    color: #1a3a5a !important;  /* dunkelblau statt weiß — lesbar auf hellblau */
    padding: 0.5rem 1rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-wrapper-desktop .nav-link:hover,
.nav-wrapper-desktop .nav-link.active,
.nav-wrapper-desktop a:hover,
.nav-wrapper-desktop a.active {
    color: #154f66 !important;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: #f9d85a;
}

/* Dropdown auf hellem Hintergrund */
.nav-wrapper-desktop .dropdown-menu {
    background-color: #daeef8 !important;
    border: 1px solid #4a9ab8;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(26, 106, 138, 0.15);
    min-width: 200px;
}

.nav-wrapper-desktop .dropdown-item {
    color: #1a3a5a !important;
    padding: 0.75rem 1.5rem;
}

.nav-wrapper-desktop .dropdown-item:hover,
.nav-wrapper-desktop .dropdown-item:focus {
    background-color: rgba(26, 106, 138, 0.12) !important;
    color: #154f66 !important;
}

.nav-wrapper-desktop .dropdown-toggle::after {
    color: #1a3a5a;
}

.nav-wrapper-desktop .dropdown {
    position: relative;
}

.nav-wrapper-desktop .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
}

.nav-wrapper-desktop .dropdown-hover:hover .dropdown-menu {
    display: block;
}

.nav-wrapper-desktop .dropdown-item.active {
    background-color: rgba(26, 106, 138, 0.2) !important;
    color: #154f66 !important;
}

/* Mobile Toggle */
.nav-toggle {
    background-color: rgba(255,255,255,0.3);
    border: 2px solid #1a6a8a;
    color: #1a3a5a;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-toggle:hover {
    background-color: rgba(26, 106, 138, 0.15);
    border-color: #154f66;
}

/* Mobile Navigation */
.nav-wrapper-mobile {
    margin-top: 0.5rem;
    background-color: #daeef8;
}

.nav-wrapper-mobile.open { display: block !important; }

.nav-wrapper-mobile ul,
.nav-wrapper-mobile .nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-wrapper-mobile .nav-link,
.nav-wrapper-mobile a {
    display: block;
    color: #1a3a5a !important;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(26, 106, 138, 0.15);
    text-decoration: none;
}

.nav-wrapper-mobile .nav-link:hover,
.nav-wrapper-mobile a:hover {
    background-color: rgba(26, 106, 138, 0.1);
    color: #154f66 !important;
}

/* ===============================
   FOOTER
   =============================== */
footer,
.footer,
.site-footer,
.subfooter {
    background-color: #c8e8f5 !important;
    color: #1a3a5a !important;
    border-top: 1px solid #4a9ab8 !important;
    border-bottom: none !important;
}

footer a,
.footer a,
.subfooter a {
    color: #1a6a8a !important;
}

footer a:hover,
.footer a:hover,
.subfooter a:hover {
    color: #154f66 !important;
}

/* ===============================
   Breadcrumb
   =============================== */
.breadcrumb {
    background-color: #2a8ab0 !important;
    color: #ffffff !important;
}

.breadcrumb a { color: #f5e6d3 !important; }

/* ===============================
   Sections
   =============================== */
.section-light {
    background-color: #daeef8;
    color: #1a3a5a;
}

.section-dark {
    background-color: #1a6a8a;
    color: #fff;
}

.section-dark a { color: #f5e6d3; }

/* ===============================
   Hero Slider — Überschrift weiß
   =============================== */
.hero-title,
.hero-content h2,
.hero-text-wrapper h2,
.hero-slide-bg h2,
.hero-section h2,
.heroSwiper h2 {
    color: #ffffff !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7) !important;
}

/* ===============================
   Responsive
   =============================== */
@media (max-width: 767px) {
    .logo-wrapper img { height: 70px; max-width: 240px; }
    .header-flex { gap: 1rem; }
    .logo-nav-section { padding: 0.5rem 0 0 0; min-height: 70px; }
    .logo-nav-section::before { width: 28px; height: 28px; right: 16px; }
}

@media (min-width: 768px) and (max-width: 991px) {
    .nav-wrapper-desktop .nav,
    .nav-wrapper-desktop ul { gap: 1rem; }
    .nav-wrapper-desktop .nav-link,
    .nav-wrapper-desktop a { padding: 0.5rem 0.75rem; font-size: 0.9rem; }
    .logo-wrapper img { height: 90px; max-width: 300px; }
}

@media (min-width: 992px) {
    .header-flex { gap: 3rem; }
}

/* ===============================
   OVERRIDE — cardmenu.css & layout.min.css
   #003c4b komplett ersetzen für Krummhörn
   =============================== */

/* cardmenu Farben überschreiben */
:root {
    --card-title-color: #1a3a5a;
}

.card-title,
.card-menu-title {
    color: #1a3a5a !important;
}

.card-menu-item,
.card-menu a {
    color: #1a6a8a !important;
    border-color: #4a9ab8 !important;
}

.card-menu-item:hover,
.card-menu a:hover {
    border-color: #1a6a8a !important;
    color: #154f66 !important;
}

.card-menu-item.active,
.card-menu a.active {
    border-color: #1a6a8a !important;
    color: #154f66 !important;
}

/* layout.min.css Overrides — Header/Footer hardcoded */
.site-header,
.main-navigation,
.logo-nav-section,
.topbar,
nav.navbar,
.navbar {
    background-color: #c8e8f5 !important;
}

footer,
.footer,
.site-footer,
.subfooter {
    background-color: #c8e8f5 !important;
}

/* ===============================
   ÜBERSCHRIFTEN — starker Override
   gegen ferienhaus-ostfriesland grün
   =============================== */
body h1, body h2, body h3, body h4, body h5, body h6,
body .ce-headline,
body .card-title,
body .footer h1, body .footer h2, body .footer h3, body .footer h4 {
    color: #1a3a5a !important;
}

/* ===============================
   TOPBAR — Schriftfarbe Logoблau
   =============================== */
.topbar,
.topbar p,
.topbar a,
.topbar span {
    color: #3a6a8a !important;
}

.topbar a:hover {
    color: #1a3a5a !important;
}

/* ===============================
   HERO SLIDER — Overlay heller
   spritzig, nicht zu dunkel
   =============================== */
.hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.10) 0%,
        rgba(0, 0, 0, 0.25) 100%
    ) !important;
}
