/* =====================================================
   Fischereiverein Bad Windsheim e.V.
   Modernes Jimdo Layout
   Logo links | Navigation rechts | volle Breite
   Tablet Background Fix + blauer Overlay über Background
===================================================== */

/* ==========================
   RESET / GLOBAL
========================== */

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

html {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    background: #073142;
}

body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;

    font-family: "Segoe UI", Arial, sans-serif;
    color: #1f2d3d;
    line-height: 1.6;

    background: transparent;
    position: relative;
    isolation: isolate;
}

/* ==========================
   HINTERGRUND FIX
   Verhindert Tablet-Zoom bei langen Seiten
========================== */

body::before {
    content: "";
    position: fixed;
    inset: 0;

    width: 100vw;
    height: 100vh;
    height: 100svh;

    background-image: url("header.jpg");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;

    z-index: -2;
    pointer-events: none;
    transform: translateZ(0);
}

/* Blauer transparenter Overlay über den kompletten Background */

body::after {
    content: "";
    position: fixed;
    inset: 0;

    width: 100vw;
    height: 100vh;
    height: 100svh;

    background:
        linear-gradient(
            to bottom,
            rgba(7, 49, 66, 0.78),
            rgba(7, 49, 66, 0.62)
        );

    z-index: -1;
    pointer-events: none;
}

/* ==========================
   GRUND-CONTAINER
========================== */

#container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;

    position: relative;
    z-index: 1;
}

/* ==========================
   HEADER / NAVBAR
========================== */

#header {
    width: 100%;
    background: rgba(7, 49, 66, 0.90);
    color: white;

    position: sticky;
    top: 0;
    z-index: 999;

    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

/* Header Innenbereich */

.header-inner,
.topbar {
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    padding: 14px 36px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* ==========================
   LOGO + TITEL LINKS
========================== */

.branding,
.logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* Logo */

.jtpl-header__logo {
    width: 78px;
    height: 78px;

    background-image: url("https://image.jimcdn.com/app/cms/image/transf/dimension=200x10000:format=png/path/sdbb659e29eefd70a/image/i63d83d38c2c2e0a6/version/1781382932/image.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    flex-shrink: 0;
}

/* Falls das Logo nicht sichtbar ist:
   Ersetze logo-fv-bw-new.png durch die echte Jimdo-Bild-URL. */

.title-area h1,
.site-title h1 {
    color: #ffffff;
    font-size: 27px;
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -0.4px;
    margin: 0;
}

.title-area span,
.site-title span {
    display: block;
    color: #a8d8e8;
    font-size: 14px;
    font-weight: 500;
    margin-top: 4px;
}

/* ==========================
   NAVIGATION RECHTS
========================== */

#navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
}

/* Jimdo Navigation allgemein */

#navigation ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
}

#navigation li {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

#navigation a {
    display: block;

    color: #ffffff !important;
    text-decoration: none;

    font-size: 15px;
    font-weight: 650;

    padding: 11px 15px;
    border-radius: 999px;

    transition: all 0.25s ease;
    white-space: nowrap;
}

#navigation a:hover {
    color: #dff7ff !important;
    background: rgba(255, 255, 255, 0.13);
}

/* Aktive Seite */

#navigation .active a,
#navigation .current a,
#navigation .j-nav-current > a,
#navigation a.current {
    background: #7fd3ff;
    color: #073142 !important;
}

/* Dropdowns */

#navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;

    min-width: 220px;
    padding: 10px;

    background: rgba(7, 49, 66, 0.96);
    border-radius: 14px;

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#navigation li:hover > ul {
    display: block;
}

#navigation ul ul li {
    width: 100%;
}

#navigation ul ul a {
    border-radius: 10px;
    padding: 10px 14px;
}

/* ==========================
   HERO BILD
========================== */

.hero {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 540px;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Blauer Overlay direkt über dem Hero-Bild */

.hero::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(7, 49, 66, 0.16),
            rgba(7, 49, 66, 0.62)
        );

    pointer-events: none;
}

/* ==========================
   HAUPTBEREICH
========================== */

#main-wrapper {
    width: 100%;
    max-width: 1500px;
    margin: -70px auto 0 auto;
    padding: 0 30px;

    display: flex;
    gap: 28px;
    align-items: flex-start;

    position: relative;
    z-index: 5;
}

/* Inhalt links */

#content {
    order: 1;
    flex: 1;

    background: rgba(255, 255, 255, 0.96);
    padding: 48px;
    border-radius: 22px;

    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.16),
        0 2px 8px rgba(0, 0, 0, 0.06);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Sidebar rechts */

#sidebar {
    order: 2;
    width: 320px;
    flex-shrink: 0;
}

/* ==========================
   CONTENT DESIGN
========================== */

#content h1,
#content h2,
#content h3,
#content h4 {
    color: #073142;
    line-height: 1.25;
    margin-bottom: 16px;
}

#content h1 {
    font-size: 34px;
}

#content h2 {
    font-size: 26px;
    margin-top: 28px;
}

#content h3 {
    font-size: 21px;
    margin-top: 22px;
}

#content p {
    margin-bottom: 16px;
    color: #263746;
}

#content a {
    color: #0077a8;
    text-decoration: none;
    font-weight: 600;
}

#content a:hover {
    text-decoration: underline;
}

#content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

/* Listen */

#content ul,
#content ol {
    margin: 0 0 18px 24px;
}

#content li {
    margin-bottom: 7px;
}

/* Tabellen */

#content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

#content th,
#content td {
    padding: 12px 14px;
    border-bottom: 1px solid #dde7e3;
}

#content th {
    background: #eef6f8;
    color: #073142;
    text-align: left;
}

/* Buttons / Jimdo Buttons */

#content .j-calltoaction-link,
#content .cc-m-button,
#content button,
#content input[type="submit"] {
    display: inline-block;

    background: #0b6f8f;
    color: #ffffff !important;

    padding: 12px 22px;
    border-radius: 999px;
    border: none;

    font-weight: 700;
    text-decoration: none;

    transition: 0.25s ease;
}

#content .j-calltoaction-link:hover,
#content .cc-m-button:hover,
#content button:hover,
#content input[type="submit"]:hover {
    background: #073142;
    text-decoration: none;
}

/* ==========================
   SIDEBAR DESIGN
========================== */

#sidebar,
#sidebar p,
#sidebar li {
    color: #263746;
}

#sidebar .module,
#sidebar .widget,
#sidebar > div {
    background: rgba(255, 255, 255, 0.96);
    padding: 24px;
    margin-bottom: 22px;
    border-radius: 20px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.05);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#sidebar h1,
#sidebar h2,
#sidebar h3 {
    color: #073142;
    margin-bottom: 12px;
}

#sidebar a {
    color: #0077a8;
    text-decoration: none;
    font-weight: 600;
}

#sidebar a:hover {
    text-decoration: underline;
}

/* ==========================
   FOOTER
========================== */

#footer {
    width: 100%;
    margin-top: 70px;

    background: rgba(7, 49, 66, 0.94);
    color: #ffffff;

    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

#footer .gutter {
    max-width: 1500px;
    margin: 0 auto;
    padding: 45px 30px;
}

#footer h1,
#footer h2,
#footer h3 {
    color: #a8d8e8;
    margin-bottom: 12px;
}

#footer p,
#footer li {
    color: rgba(255, 255, 255, 0.86);
}

#footer a {
    color: #7fd3ff;
    text-decoration: none;
    font-weight: 600;
}

#footer a:hover {
    text-decoration: underline;
}

/* ==========================
   FORMULARE
========================== */

input,
textarea,
select {
    width: 100%;
    max-width: 100%;

    padding: 12px 14px;

    border: 1px solid #c8d6d8;
    border-radius: 12px;

    font-family: inherit;
    font-size: 15px;

    background: #ffffff;
    color: #1f2d3d;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #0b6f8f;
    box-shadow: 0 0 0 3px rgba(11, 111, 143, 0.15);
}

/* ==========================
   RESPONSIVE TABLET
========================== */

@media (max-width: 1100px) {

    body::before {
        position: fixed;
        width: 100vw;
        height: 100vh;
        height: 100svh;

        background-size: cover;
        background-position: center top;
    }

    body::after {
        position: fixed;
        width: 100vw;
        height: 100vh;
        height: 100svh;

        background: rgba(7, 49, 66, 0.68);
    }

    .header-inner,
    .topbar {
        flex-direction: column;
        align-items: center;
        text-align: center;

        padding: 16px 24px;
        gap: 18px;
    }

    #navigation {
        width: 100%;
        justify-content: center;
    }

    #navigation ul {
        justify-content: center;
    }

    #navigation a {
        font-size: 14px;
        padding: 10px 13px;
    }

    .hero img {
        height: 420px;
    }

    #main-wrapper {
        flex-direction: column;
        margin-top: -45px;
        padding: 0 24px;
    }

    #content {
        width: 100%;
        order: 1;
    }

    #sidebar {
        width: 100%;
        order: 2;
    }
}

/* ==========================
   RESPONSIVE HANDY
========================== */

@media (max-width: 700px) {

    #header {
        position: relative;
    }

    body::before {
        background-position: center top;
        background-size: cover;
    }

    body::after {
        background: rgba(7, 49, 66, 0.72);
    }

    .header-inner,
    .topbar {
        padding: 14px 18px;
        gap: 16px;
    }

    .branding,
    .logo-area {
        flex-direction: column;
        gap: 10px;
    }

    .jtpl-header__logo {
        width: 70px;
        height: 70px;
    }

    .title-area h1,
    .site-title h1 {
        font-size: 22px;
    }

    .title-area span,
    .site-title span {
        font-size: 13px;
    }

    #navigation ul {
        width: 100%;
        flex-direction: column;
        gap: 4px;
    }

    #navigation li {
        width: 100%;
    }

    #navigation a {
        width: 100%;
        text-align: center;
        border-radius: 12px;
        padding: 12px 16px;
    }

    #navigation ul ul {
        position: static;
        display: block;

        box-shadow: none;
        background: rgba(255, 255, 255, 0.06);

        margin-top: 4px;
    }

    .hero img {
        height: 280px;
    }

    #main-wrapper {
        padding: 0 16px;
        margin-top: -35px;
    }

    #content {
        padding: 28px 22px;
        border-radius: 18px;
    }

    #content h1 {
        font-size: 27px;
    }

    #content h2 {
        font-size: 22px;
    }

    #sidebar .module,
    #sidebar .widget,
    #sidebar > div {
        border-radius: 18px;
        padding: 20px;
    }

    #footer .gutter {
        padding: 35px 20px;
    }
}

/* ==========================
   EXTRA FIX FÜR iPAD / SAFARI
========================== */

@supports (-webkit-touch-callout: none) {

    body::before,
    body::after {
        position: fixed;
        height: 100svh;
        min-height: 100svh;
    }
}

/* ==========================
   KLEINE OPTISCHE DETAILS
========================== */

::selection {
    background: #7fd3ff;
    color: #073142;
}

hr {
    border: none;
    height: 1px;
    background: #dde7e3;
    margin: 28px 0;
}