/* ==========================================================================
   EckisHus – Theme (warm coastal)
   Eigenständiges Design über Bootstrap 5.3.3. Wird NACH bootstrap.min.css
   und styles.min.css eingebunden.
   ========================================================================== */

:root {
    /* Markenfarben */
    --eh-cream: #fbf7f1;
    --eh-cream-2: #f3ece1;
    --eh-primary: #2c6e6a;       /* Petrol / Teal */
    --eh-primary-dark: #1f5450;
    --eh-accent: #dd7a57;        /* warmes Terrakotta (CTA) */
    --eh-accent-dark: #c96642;
    --eh-sage: #8fa98a;          /* Salbeigrün */
    --eh-ink: #2e2a26;           /* Text dunkel */
    --eh-muted: #6b6258;         /* Text gedämpft */
    --eh-card: #ffffff;

    /* Bootstrap-Variablen überschreiben */
    --bs-primary: var(--eh-primary);
    --bs-primary-rgb: 44, 110, 106;
    --bs-body-bg: var(--eh-cream);
    --bs-body-color: var(--eh-ink);
    --bs-border-radius: 0.9rem;
    --bs-border-radius-lg: 1.1rem;
    --bs-border-radius-sm: 0.6rem;
    --bs-link-color: var(--eh-primary);
    --bs-link-color-rgb: 44, 110, 106;
    --bs-link-hover-color: var(--eh-primary-dark);

    --eh-shadow: 0 18px 45px -22px rgba(46, 42, 38, 0.45);
    --eh-shadow-sm: 0 10px 28px -18px rgba(46, 42, 38, 0.4);
}

/* ----------------------------- Grundlagen ------------------------------- */

body {
    font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--eh-cream);
    color: var(--eh-ink);
    font-size: 1.05rem;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand {
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--eh-ink);
}

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }

p { color: var(--eh-muted); }

a { text-decoration: none; }

::selection {
    background: var(--eh-accent);
    color: #fff;
}

/* Abschnittsabstände & Überschriften-Akzent */
.eh-section {
    padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.eh-section-title {
    text-align: center;
    margin-bottom: 0.5rem;
}

.eh-section-title::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin: 1rem auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--eh-accent), var(--eh-sage));
}

.eh-lead {
    text-align: center;
    max-width: 640px;
    margin: 1.25rem auto 0;
    font-size: 1.1rem;
}

.eh-soft {
    background-color: var(--eh-cream-2);
}

/* ------------------------------- Buttons -------------------------------- */

.btn {
    border-radius: 999px;
    font-weight: 700;
    padding: 0.65rem 1.6rem;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
    --bs-btn-bg: var(--eh-primary);
    --bs-btn-border-color: var(--eh-primary);
    --bs-btn-hover-bg: var(--eh-primary-dark);
    --bs-btn-hover-border-color: var(--eh-primary-dark);
    --bs-btn-active-bg: var(--eh-primary-dark);
    --bs-btn-active-border-color: var(--eh-primary-dark);
}

.btn-cta {
    background-color: var(--eh-accent);
    border: 2px solid var(--eh-accent);
    color: #fff;
}

.btn-cta:hover,
.btn-cta:focus-visible {
    background-color: var(--eh-accent-dark);
    border-color: var(--eh-accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -10px rgba(201, 102, 66, 0.7);
}

.btn-lg {
    padding: 0.9rem 2.2rem;
    font-size: 1.1rem;
}

/* ------------------------------- Navbar --------------------------------- */

.navbar {
    background-color: rgba(251, 247, 241, 0.85) !important;
    backdrop-filter: saturate(140%) blur(10px);
    transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.navbar.is-scrolled {
    box-shadow: 0 6px 22px -14px rgba(46, 42, 38, 0.55);
    background-color: rgba(251, 247, 241, 0.96) !important;
}

.navbar-brand img {
    height: 46px;
    width: auto;
    display: block;
}

.navbar .nav-link {
    font-family: "Nunito Sans", sans-serif;
    font-weight: 700;
    color: var(--eh-ink);
    margin: 0 0.35rem;
    position: relative;
}

.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.25rem;
    height: 2px;
    background: var(--eh-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    transform: scaleX(1);
}

.navbar .nav-link.active {
    color: var(--eh-primary);
}

/* -------------------------------- Hero ---------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    min-height: min(82vh, 720px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-image:
        linear-gradient(180deg, rgba(31, 84, 80, 0.35) 0%, rgba(31, 84, 80, 0.7) 100%),
        url("../img/Hausfront.png");
    background-size: cover;
    background-position: center;
    padding: 5rem 1rem;
}

.hero__inner {
    max-width: 760px;
}

.hero h1 {
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
    margin-bottom: 1rem;
}

.hero__eyebrow {
    display: inline-block;
    font-family: "Nunito Sans", sans-serif;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.hero p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    max-width: 580px;
    margin: 0 auto 2rem;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* ------------------------------ Carousel -------------------------------- */

.gallery-wrap {
    max-width: 960px;
    margin: 0 auto;
}

.gallery-wrap .carousel {
    border-radius: var(--bs-border-radius-lg);
    overflow: hidden;
    box-shadow: var(--eh-shadow);
}

.gallery-wrap .carousel-item img {
    height: clamp(260px, 52vw, 560px);
    object-fit: cover;
}

.gallery-wrap .carousel-control-prev,
.gallery-wrap .carousel-control-next {
    width: 12%;
}

.gallery-wrap .carousel-control-prev-icon,
.gallery-wrap .carousel-control-next-icon {
    background-color: rgba(31, 84, 80, 0.75);
    border-radius: 50%;
    padding: 1.25rem;
    background-size: 45%;
}

.gallery-wrap .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
}

/* ----------------------------- Info-Sektion ----------------------------- */

.info-img {
    border-radius: var(--bs-border-radius-lg);
    box-shadow: var(--eh-shadow);
    width: 100%;
    height: 100%;
    max-height: 460px;
    object-fit: cover;
}

/* ------------------------------- Karten --------------------------------- */

.feature-card {
    background: var(--eh-card);
    border: 1px solid rgba(46, 42, 38, 0.06);
    border-radius: var(--bs-border-radius);
    padding: 1.5rem;
    height: 100%;
    box-shadow: var(--eh-shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--eh-shadow);
}

.feature-card__icon {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-size: 1.5rem;
    color: var(--eh-primary);
    background: rgba(44, 110, 106, 0.12);
}

.feature-card--accent .feature-card__icon {
    color: var(--eh-accent);
    background: rgba(221, 122, 87, 0.14);
}

.feature-card__body {
    font-weight: 600;
    color: var(--eh-ink);
    line-height: 1.45;
}

/* ------------------------------- Preise --------------------------------- */

.price-special {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(100deg, var(--eh-accent), var(--eh-accent-dark));
    color: #fff;
    font-weight: 700;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    box-shadow: 0 14px 30px -14px rgba(201, 102, 66, 0.8);
}

.price-card {
    background: var(--eh-card);
    border-radius: var(--bs-border-radius-lg);
    box-shadow: var(--eh-shadow-sm);
    overflow: hidden;
}

.price-card table {
    margin: 0;
    --bs-table-bg: transparent;
}

.price-card thead th {
    background: var(--eh-primary);
    color: #fff;
    font-family: "Fraunces", serif;
    font-weight: 600;
    border: none;
    padding: 1rem 1.25rem;
}

.price-card tbody td {
    padding: 0.9rem 1.25rem;
    border-color: rgba(46, 42, 38, 0.08);
    vertical-align: middle;
}

.price-card tbody tr:hover td {
    background: rgba(44, 110, 106, 0.06);
}

.price-card td:last-child {
    font-weight: 800;
    color: var(--eh-primary);
    white-space: nowrap;
}

.price-note {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.price-note li {
    background: var(--eh-cream-2);
    border: 1px solid rgba(46, 42, 38, 0.08);
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    font-weight: 600;
    color: var(--eh-ink);
}

/* ------------------------------ Kontakt --------------------------------- */

#contact .contact-card {
    background: var(--eh-card);
    border-radius: var(--bs-border-radius-lg);
    box-shadow: var(--eh-shadow);
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

#contact .form-control {
    border-radius: var(--bs-border-radius-sm);
    border: 1px solid rgba(46, 42, 38, 0.15);
    padding: 0.8rem 1rem;
    background: var(--eh-cream);
}

#contact .form-control:focus {
    border-color: var(--eh-primary);
    box-shadow: 0 0 0 0.2rem rgba(44, 110, 106, 0.18);
    background: #fff;
}

.contact-info-item h6 {
    font-family: "Nunito Sans", sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.78rem;
    color: var(--eh-muted);
}

.contact-info-item p {
    color: var(--eh-ink);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ------------------------------- Footer --------------------------------- */

.site-footer {
    background: var(--eh-primary-dark);
    color: rgba(255, 255, 255, 0.92);
}

.site-footer h2,
.site-footer h1 {
    color: #fff;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.92);
}

.site-footer a:hover {
    color: var(--eh-accent);
}

/* ----------------------------- Sonstiges -------------------------------- */

html {
    scroll-behavior: smooth;
}

/* Anker-Sprünge nicht unter der Sticky-Navbar verstecken */
:target,
section[id],
div[id] {
    scroll-margin-top: 90px;
}

/* ========================= Eck-Banner (WM Special) ==================== */

.hero-badge {
    position: absolute;
    top: 0;
    right: 32px;
    z-index: 10;
    width: 116px;
    padding: 15px 10px 26px;
    background: linear-gradient(165deg, var(--eh-accent), var(--eh-accent-dark));
    color: #fff;
    text-align: center;
    box-shadow: 0 13px 26px -10px rgba(31, 84, 80, 0.55);
    /* Custom Fähnchen-Form: V-Kerbe am unteren Rand */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
}

.hero-badge__label {
    display: block;
    font-family: "Nunito Sans", sans-serif;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    opacity: 0.95;
}

.hero-badge__price {
    display: block;
    font-family: "Fraunces", serif;
    font-weight: 700;
    font-size: 1.75rem;
    line-height: 1.05;
    margin-top: 3px;
}

.hero-badge__unit {
    display: block;
    font-family: "Nunito Sans", sans-serif;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.92;
}

@media (max-width: 575.98px) {
    .hero-badge {
        right: 16px;
        width: 100px;
        padding: 12px 8px 22px;
    }
    .hero-badge__price {
        font-size: 1.5rem;
    }
}

/* ---------------------------------------------------------------------- */

@media (max-width: 575.98px) {
    .hero {
        min-height: 70vh;
    }
    body {
        font-size: 1rem;
    }
}
