/*
 * CDU Vollersode – Layout-Override 2026
 * Optische Annäherung an www.cdu-kreisverband-osterholz.de
 * Diese Datei MUSS nach den bestehenden Stylesheets eingebunden werden.
 */

:root {
    --cdu-tuerkis: #52b7c1;
    --cdu-tuerkis-dunkel: #007f82;
    --cdu-dunkel: #202528;
    --cdu-text: #30373b;
    --cdu-grau: #667177;
	--cdu-hellgrau: #767b85;
    --cdu-hell: #f4f6f6;
    --cdu-linie: #dfe4e5;
    --cdu-weiss: #fff;
    --cdu-max: 1240px;
}

html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--cdu-weiss);
    color: var(--cdu-text);
    font-family: "Source Sans Pro", Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
}

/* Grundlayout */
.container {
    width: 100%;
    max-width: var(--cdu-max) !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
}
#content { background: #fff; }
#content > .container { padding-top: 50px; padding-bottom: 55px; }
#content .row { margin-left: -15px; margin-right: -15px; }

/* Typografie */
h1,h2,h3,h4,h5,h6 {
    color: var(--cdu-dunkel);
    font-family: "Source Sans Pro", Arial, Helvetica, sans-serif;
    font-weight: 700;
    line-height: 1.18;
}
h2 {
    margin: 0 0 28px;
    font-size: 2.45rem;
    letter-spacing: -.02em;
}
h3 { margin: 34px 0 18px; font-size: 1.65rem; }
h4 { margin: 24px 0 12px; font-size: 1.28rem; }
h5 { margin: 20px 0 10px; font-size: 1.08rem; }
p { margin-bottom: 1.1rem; }
a { color: var(--cdu-tuerkis-dunkel); text-decoration: none; }
a:hover, a:focus { color: var(--cdu-tuerkis); text-decoration: underline; }
.text-1, .text-1-small, .head-info { color: var(--cdu-text); font-size: 1.1rem; line-height: 1.68; }
.head-info { max-width: 900px; margin: 0 auto; font-size: 1.12rem; }
.f-center { text-align: center; }

/* Alte Abstandshalter zurücknehmen */
#header .space60 { height: 0 !important; min-height: 0 !important; margin: 0 !important; }
#header > .space40 { height: 0 !important; min-height: 0 !important; margin: 0 !important; }
.space40 { height: 32px !important; }
.space50 { height: 40px !important; }

/* Header */
#header {
    position: relative;
    z-index: 100;
    background: #fff;
    border: 0;
}
#header > .container {
    max-width: var(--cdu-max) !important;
    padding-top: 18px;
    padding-bottom: 15px;
}
#header .t-container { display: flex; align-items: center; }
#header .logo { padding: 0; margin: 0; }
#header .logo img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 80px;
}

/* Navigation – bestehende #nav-Struktur gezielt überschreiben */
#nav {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
#nav > a { display: none; }
#nav ul {
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: transparent !important;
}
#nav li {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}
#nav li a {
    position: relative;
    display: flex !important;
    align-items: center;
    min-height: 58px;
    padding: 10px 15px !important;
    color: var(--cdu-dunkel) !important;
    background: transparent !important;
    border: 0 !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 1.2;
    text-decoration: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
}
#nav li a::after {
    content: "";
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 4px;
    height: 4px;
    background: transparent;
}
#nav li a:hover,
#nav li a:focus,
#nav li.active a { color: var(--cdu-tuerkis-dunkel) !important; }
#nav li a:hover::after,
#nav li a:focus::after,
#nav li.active a::after { background: var(--cdu-tuerkis); }

/* Slider / Stage */
#header .carousel {
    width: 100%;
    margin: 0;
    background: var(--cdu-hell);
    border-top: 1px solid var(--cdu-linie);
    border-bottom: 1px solid var(--cdu-linie);
}
#header .carousel-inner,
#header .carousel-item { width: 100%; }
#header .carousel img {
    display: block;
    width: 100%;
    max-height: 470px;
    object-fit: cover;
}

/* Bereichsüberschriften und Trenner */
.f-hr {
    height: 1px !important;
    min-height: 1px !important;
    margin: 36px 0 !important;
    background: var(--cdu-linie) !important;
    border: 0 !important;
	padding: 2px !important;
	width: 100% !important;
}
#content .f-center > h2 {
    display: inline-block;
    padding-bottom: 12px;
    border-bottom: 5px solid var(--cdu-tuerkis);
}

/* Bilder */
.img-container {
    margin-bottom: 16px;
    overflow: hidden;
    background: var(--cdu-hell);
}
.img-container img,
.square-thump-img,
.square-thump2-img,
.square-thump3-img {
    max-width: 100%;
    height: auto;
}
.img-container img {
    display: block;
    width: 100%;
    transition: transform .22s ease;
}
.img-container:hover img { transform: scale(1.015); }

/* Kartenoptik für Inhalts-Spalten */
#content .row > [class*="col-lg-3"] > .img-container + h4,
#content .row > [class*="col-md-6"] > .img-container + h4 {
    margin-top: 16px;
}

/* Buttons – alte btn-success-Grünwerte überschreiben */
.btn,
a.btn,
button,
input[type="submit"] {
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 0 !important;
    font-family: inherit;
    font-weight: 700;
    box-shadow: none !important;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.btn-success,
a.btn-success,
.btn-primary,
a.btn-primary,
input[type="submit"] {
    color: #fff !important;
    background: var(--cdu-tuerkis-dunkel) !important;
    border-color: var(--cdu-tuerkis-dunkel) !important;
}
.btn-success:hover,
a.btn-success:hover,
.btn-primary:hover,
a.btn-primary:hover,
input[type="submit"]:hover {
    color: #fff !important;
    background: var(--cdu-tuerkis) !important;
    border-color: var(--cdu-tuerkis) !important;
    text-decoration: none !important;
}

/* Die zwei großen Verweisbuttons auf der Startseite */
#content .col-md-4 .btn-success {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: auto !important;
    min-height: 92px;
    padding: 20px !important;
    font-size: .98rem !important;
}

/* Sprechzeiten-Box: alte Inline-Farben überschreiben */
#content .col-md-4 > h3.text-center {
    margin: 0 !important;
    padding: 17px 18px !important;
    color: #fff !important;
    background: var(--cdu-dunkel) !important;
    font-size: 1.25rem;
}
#content .col-md-4 > h3.text-center + .text-1,
#content .col-md-4 > h3.text-center + .text-1 + .text-1 {
    margin: 0 !important;
    padding: 20px 22px !important;
    background: var(--cdu-hell) !important;
    //border-left: 5px solid var(--cdu-tuerkis);
}

/* Tabellen */
.table, table {
    width: 100%;
    color: var(--cdu-text);
    background: #fff;
}
.table td, .table th, table td, table th {
    padding: 12px 14px !important;
    vertical-align: top !important;
    border-top: 1px solid var(--cdu-linie) !important;
}
.table tbody tr:nth-child(even), table tbody tr:nth-child(even) { background: #f8f9f9; }
.table tbody tr:hover, table tbody tr:hover { background: #eef5f5; }

/* Formulare */
.form-control,
input[type="text"], input[type="email"], input[type="tel"], input[type="search"],
select, textarea {
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #bec7ca !important;
    border-radius: 0 !important;
    color: var(--cdu-text);
    background: #fff;
    box-shadow: none !important;
}
textarea { min-height: 130px; }
.form-control:focus,
input:focus, select:focus, textarea:focus {
    border-color: var(--cdu-tuerkis-dunkel) !important;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0,127,130,.12) !important;
}

/* Footer */
#footer {
    margin-top: 0;
    padding: 48px 0 30px;
    color: rgba(255,255,255,.88);
    background: var(--cdu-tuerkis) !important;
    border-top: 7px solid var(--cdu-tuerkis);
}
#footer .container { max-width: var(--cdu-max) !important; }
#footer h3,
#footer h5,
#footer h3[style],
#footer h5[style] {
    color: #fff !important;
    background: transparent !important;
}
#footer h3 { margin-top: 0; font-size: 1.35rem; }
#footer h5 { margin-top: 24px; font-size: 1rem; }
#footer a { color: #fff !important; }
#footer a:hover { color: #9fe1df !important; }
#footer .square-thump3-img { border-radius: 50%; vertical-align: middle; }

/* Responsive Navigation */
@media (max-width: 991.98px) {
    .container { padding-left: 22px !important; padding-right: 22px !important; }
    #header .t-container { display: block; }
    #header .col-md-3, #header .col-md-9 { width: 100%; max-width: 100%; flex: 0 0 100%; }
    #header .logo { padding-bottom: 12px; }
    #nav > a:first-of-type {
        display: block;
        padding: 12px 14px;
        color: #fff !important;
        background: var(--cdu-dunkel);
        font-weight: 700;
        text-decoration: none;
    }
    #nav > a:nth-of-type(2) { display: none; }
    #nav ul {
        display: block;
        border-top: 1px solid var(--cdu-linie);
    }
    #nav li a {
        min-height: 46px;
        padding: 12px 4px !important;
        border-bottom: 1px solid var(--cdu-linie) !important;
    }
    #nav li a::after { display: none; }
    #nav:target > a:first-of-type { display: none; }
    #nav:target > a:nth-of-type(2) {
        display: block;
        padding: 12px 14px;
        color: #fff !important;
        background: var(--cdu-dunkel);
        font-weight: 700;
        text-decoration: none;
    }
    #nav:not(:target) ul { display: none; }
    #nav:target ul { display: block; }
    #content > .container { padding-top: 36px; padding-bottom: 42px; }
    #header .carousel img { max-height: 380px; }
}

@media (max-width: 767.98px) {
    body { font-size: 16px; }
    .container { padding-left: 17px !important; padding-right: 17px !important; }
    #header > .container { padding-top: 12px; padding-bottom: 10px; }
    #header .logo img { max-height: 64px; }
    #header .carousel img { max-height: 280px; }
    h2 { font-size: 1.9rem; }
    h3 { font-size: 1.45rem; }
    .head-info { font-size: 1.03rem; }
    .f-hr { margin: 28px 0 !important; }
    #footer { padding-top: 36px; }
    #footer [class*="col-md-"] { margin-bottom: 24px; }
}

@media (max-width: 480px) {
    .container { padding-left: 14px !important; padding-right: 14px !important; }
    #header .carousel img { max-height: 220px; }
    .btn, a.btn, button, input[type="submit"] { width: 100%; }
}

#content .col-md-4 .btn-success {
  padding: 10px !important;
}


/* Gesamter Buttonbereich ohne Rand links/rechts */
.button-bereich {
    background-color: #f8faf9;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Bootstrap-Row ohne negative/zusätzliche Außenabstände */
.button-zeile {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Spalten grundsätzlich ohne Abstand */
.button-links,
.button-rechts {
    display: flex;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Buttons */
.button-auswahl {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 120px;
    border-radius: 0;
}

/* Nur wenn die Buttons nebeneinander stehen:
   10px Abstand ausschließlich ZWISCHEN den Buttons */
@media (min-width: 992px) {

    .button-links {
        padding-right: 5px !important;
    }

    .button-rechts {
        padding-left: 5px !important;
    }

}

h1 {
    font-size: 36px !important;
}
h2 {
    font-size: 32px !important;
}
h3 {
    font-size: 28px !important;
}
h4 {
    font-size: 24px !important;
}
h5 {
    font-size: 20px !important;
}
p, ul, li, a, td {
    font-size: 16px !important;
}

.img-container {
    position: relative;
}

.img-container .kandidat-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;

    text-align: center;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;

    background-color: rgba(0, 0, 0, 0.60);
    padding: 6px 10px;
}

.img-container .kandidat-label {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 14px;
    transform: translateX(-50%);

    text-align: center;
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    white-space: nowrap;

    background-color: rgba(0, 122, 131, 0.90);
    padding: 7px 16px;

    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.40);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.pulsierend {
    border-radius: 4px;
    animation: bild-glow 2.5s ease-in-out infinite;
}

@keyframes bild-glow {
    0%, 100% {
        box-shadow:
            0 4px 10px rgba(0, 0, 0, 0.15),
            0 0 0 0 rgba(0, 122, 131, 0);
    }

    50% {
        box-shadow:
            0 6px 14px rgba(0, 0, 0, 0.18),
            0 0 0 5px rgba(0, 122, 131, 0.20),
            0 0 24px 8px rgba(0, 122, 131, 0.30);
    }
}

/* =========================================================
   Smartphone-Menü – Hintergrund nicht transparent
   ========================================================= */

@media only screen and (max-width: 40em) {

    /* Gesamtes aufgeklapptes Menü */
    #nav > ul {
        background: #ffffff !important;
        border: 1px solid var(--cdu-linie) !important;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15) !important;
    }

    /* Einzelne Menüeinträge */
    #nav > ul > li {
        background: #ffffff !important;
    }

    /* Links */
    #nav > ul > li > a {
        background: #ffffff !important;
        color: var(--cdu-dunkel) !important;
        padding: 12px 14px !important;
        border-bottom: 1px solid var(--cdu-linie) !important;
    }

    /* Hover / aktiver Menüpunkt */
    #nav > ul > li > a:hover,
    #nav > ul > li > a:focus,
    #nav > ul > li.active > a {
        background: var(--cdu-hell) !important;
        color: var(--cdu-tuerkis-dunkel) !important;
    }

    /* Untermenüs ebenfalls mit festem Hintergrund */
    #nav li ul {
        background: #ffffff !important;
    }

    #nav li ul li {
        background: #ffffff !important;
    }

    #nav li ul li a {
        background: #ffffff !important;
        color: var(--cdu-dunkel) !important;
    }

    #nav li ul li a:hover {
        background: var(--cdu-hell) !important;
        color: var(--cdu-tuerkis-dunkel) !important;
    }
}