/* =========================================================
   ErreicheDeineZiele.de - Grunddesign
   Modern, seriös, responsive
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    font-size: 100%;
}

body {
    min-height: 100%;
    margin: 0;

    color: #1f2d3a;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.6;

    background:
        radial-gradient(circle at top, rgba(165, 202, 229, 0.35), transparent 34rem),
        linear-gradient(to bottom, #164871 0%, #0f334f 100%);
}

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

a {
    color: #164871;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

a:hover,
a:focus {
    color: #0b2438;
    text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #ffcc66;
    outline-offset: 3px;
}


/* =========================================================
   Seitenrahmen
   ========================================================= */

#container {
    width: min(100% - 2rem, 960px);
    margin: 1rem auto 2rem auto;

    overflow: hidden;

    background-color: #d8ecfb;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 14px;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
}


/* =========================================================
   Header
   ========================================================= */

#site-header {
    background-color: #c6e1f4;
}

#site-header picture,
#site-header img,
#header {
    width: 100%;
}

#site-header img {
    object-fit: cover;
}


/* =========================================================
   Navigation
   ========================================================= */

#nav {
    padding: 0.55rem 0.75rem;

    background:
        linear-gradient(to bottom, #cce6f7 0%, #a5cae5 100%);

    border-top: 1px solid rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid rgba(22, 72, 113, 0.28);
}

#nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;

    margin: 0;
    padding: 0;

    list-style: none;
}

#nav li {
    flex: 1 1 auto;
}

#nav a {
    display: block;
    min-height: 2.35rem;
    padding: 0.55rem 0.7rem;

    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;

    background:
        linear-gradient(to bottom, #2d6c9c 0%, #245882 100%);

    border: 1px solid rgba(10, 38, 59, 0.35);
    border-radius: 6px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 1px 2px rgba(0, 0, 0, 0.18);

    transition:
        background-color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

#nav a:hover,
#nav a:focus {
    color: #ffffff;

    background:
        linear-gradient(to bottom, #397eb7 0%, #1f4c73 100%);

    transform: translateY(-1px);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 3px 8px rgba(0, 0, 0, 0.22);
}


/* =========================================================
   Hauptbereich
   ========================================================= */

#content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1.5rem;

    padding: 1.5rem;

    background:
        linear-gradient(to bottom, #e8f5ff 0%, #c8e4f7 100%);
}

#left,
#right {
    min-width: 0;
}


/* =========================================================
   Inhalt
   ========================================================= */

.post,
.content-card {
    margin: 0 0 1.25rem 0;
    padding: 1.35rem;

    background-color: #ffffff;
    border: 1px solid rgba(22, 72, 113, 0.16);
    border-radius: 10px;

    box-shadow:
        0 4px 14px rgba(22, 72, 113, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.post:last-child,
.content-card:last-child {
    margin-bottom: 0;
}

.post p,
.content-card p {
    margin: 0 0 1rem 0;
}

.post p:last-child,
.content-card p:last-child {
    margin-bottom: 0;
}

hr {
    height: 1px;
    margin: 1.4rem 0;

    border: 0;
    background: linear-gradient(to right, transparent, rgba(22, 72, 113, 0.35), transparent);
}


/* =========================================================
   Überschriften
   ========================================================= */

h1,
h2,
h3 {
    margin: 0 0 0.85rem 0;

    color: #164871;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.25;
}

h1 {
    font-size: clamp(1.65rem, 2.4vw, 2.15rem);
    font-weight: 800;
    text-align: center;
}

h2 {
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    font-weight: 750;
}

h3 {
    font-size: 1.08rem;
    font-weight: 750;
}

.lead {
    color: #28465e;
    font-size: 1.08rem;
    font-weight: 600;
    text-align: center;
}


/* =========================================================
   Sidebar
   ========================================================= */

#right {
    align-self: start;
}

.sidebar-box {
    margin: 0 0 1rem 0;
    padding: 1rem;

    color: #ffffff;

    background:
        linear-gradient(to bottom, #397eb7 0%, #245882 100%);

    border: 1px solid rgba(10, 38, 59, 0.35);
    border-radius: 10px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 4px 12px rgba(22, 72, 113, 0.2);
}

.sidebar-box:last-child {
    margin-bottom: 0;
}

.sidebar-box h2,
.sidebar-box h3 {
    color: #ffffff;
}

.sidebar-box p {
    margin: 0 0 0.85rem 0;
    font-size: 0.95rem;
}

.sidebar-box a {
    color: #ffffff;
    font-weight: 700;
}

.sidebar-box a:hover,
.sidebar-box a:focus {
    color: #d8ecfb;
}


/* =========================================================
   Buttons
   ========================================================= */

.button,
.weiter-link {
    display: inline-block;
    padding: 0.6rem 0.95rem;

    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;

    background:
        linear-gradient(to bottom, #397eb7 0%, #245882 100%);

    border: 1px solid rgba(10, 38, 59, 0.35);
    border-radius: 6px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 2px 6px rgba(0, 0, 0, 0.18);
}

.button:hover,
.button:focus,
.weiter-link:hover,
.weiter-link:focus {
    color: #ffffff;

    background:
        linear-gradient(to bottom, #2d6c9c 0%, #183d5c 100%);
}


/* =========================================================
   Footer
   ========================================================= */

#footer {
    padding: 1rem 1.5rem;

    color: #d8ecfb;
    text-align: center;

    background:
        linear-gradient(to bottom, #164871 0%, #0f334f 100%);

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

#footer a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

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

#copyright {
    margin: 0.6rem 0 0 0;

    color: #d8ecfb;
    font-size: 0.88rem;
    text-align: center;
}

#datenschutz {
    margin: 0.4rem 0 0 0;
    text-align: center;
}


/* =========================================================
   Hilfsklassen
   ========================================================= */

.text-center {
    text-align: center;
}

.muted {
    color: #5d7182;
}

.visually-hidden {
    position: absolute;

    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}


/* =========================================================
   Zwischenbreite: ca. Tablet quer / 800px
   Wichtig für Navigation
   ========================================================= */

@media screen and (max-width: 900px) and (min-width: 761px) {
    #nav li {
        flex: 1 1 calc(33.333% - 0.45rem);
    }

    #nav a {
        min-height: 2.55rem;
        padding: 0.65rem 0.45rem;

        font-size: 0.9rem;
        white-space: normal;
    }
}


/* =========================================================
   Mobil / Tablet
   ========================================================= */

@media screen and (max-width: 760px) {
    #container {
        width: min(100% - 1rem, 640px);
        margin: 0.5rem auto 1rem auto;

        border-radius: 10px;
    }

    #content {
        grid-template-columns: 1fr;
        gap: 1rem;

        padding: 1rem;
    }

    #nav {
        padding: 0.55rem;
    }

    #nav li {
        flex: 1 1 calc(50% - 0.45rem);
    }

    #nav a {
        min-height: 2.55rem;
        padding: 0.65rem 0.45rem;

        font-size: 0.9rem;
        white-space: normal;
    }

    .post,
    .content-card {
        padding: 1rem;
    }

    #right {
        order: 2;
    }
}

@media screen and (max-width: 420px) {
    body {
        font-size: 0.97rem;
    }

    #container {
        width: 100%;
        margin: 0;

        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    #nav ul {
        gap: 0.35rem;
    }

    #nav li {
        flex: 1 1 100%;
    }

    #nav a {
        padding-left: 0.85rem;

        text-align: left;
        white-space: normal;
    }

    #content {
        padding: 0.8rem;
    }

    .post,
    .content-card,
    .sidebar-box {
        border-radius: 8px;
    }

    h1 {
        font-size: 1.55rem;
    }

    h2 {
        font-size: 1.25rem;
    }
}


/* =========================================================
   Druck
   ========================================================= */

@media print {
    body {
        color: #000000;
        background: #ffffff;
    }

    #container {
        width: 100%;
        margin: 0;

        border: 0;
        box-shadow: none;
    }

    #nav,
    #right,
    #footer {
        display: none;
    }

    #content {
        display: block;
        padding: 0;

        background: #ffffff;
    }

    .post,
    .content-card {
        padding: 0;

        border: 0;
        box-shadow: none;
    }

    a {
        color: #000000;
        text-decoration: underline;
    }
}


/* =========================================================
   Rechner / Formulare
   ========================================================= */

.calculator-form {
    margin: 1.2rem 0;
    padding: 1rem;

    background-color: #f3f9fe;
    border: 1px solid rgba(22, 72, 113, 0.18);
    border-radius: 10px;
}

.calculator-form p {
    margin-bottom: 1rem;
}

.calculator-form input {
    width: min(100%, 320px);
    min-height: 2.5rem;
    margin-top: 0.25rem;
    padding: 0.45rem 0.6rem;

    color: #1f2d3a;
    font: inherit;

    background-color: #ffffff;
    border: 1px solid rgba(22, 72, 113, 0.35);
    border-radius: 6px;
}

.calculator-form input:focus {
    outline: 3px solid #ffcc66;
    outline-offset: 2px;
    border-color: #164871;
}

/* =========================================================
   Kontaktformular / Textarea
   ========================================================= */

.calculator-form textarea {
    width: min(100%, 520px);
    min-height: 10rem;
    margin-top: 0.25rem;
    padding: 0.55rem 0.6rem;

    color: #1f2d3a;
    font: inherit;

    background-color: #ffffff;
    border: 1px solid rgba(22, 72, 113, 0.35);
    border-radius: 6px;

    resize: vertical;
}

.calculator-form textarea:focus {
    outline: 3px solid #ffcc66;
    outline-offset: 2px;
    border-color: #164871;
}

/* =========================================================
   Sidebar-Buttons
   ========================================================= */

.sidebar-button {
    display: block;
    margin: 0.45rem 0;
    padding: 0.55rem 0.65rem;

    color: #164871 !important;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;

    background: linear-gradient(to bottom, #ffffff 0%, #d8ecfb 100%);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 6px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 2px 5px rgba(0, 0, 0, 0.18);
}

.sidebar-button:hover,
.sidebar-button:focus {
    color: #0b2438 !important;
    text-decoration: none;

    background: linear-gradient(to bottom, #ffffff 0%, #c0dffd 100%);
}


/* =========================================================
   Kontaktformular / Textarea / Select / Vorschlagsliste
   ========================================================= */

.calculator-form select,
.calculator-form textarea {
    width: min(100%, 520px);
    margin-top: 0.25rem;
    padding: 0.55rem 0.6rem;

    color: #1f2d3a;
    font: inherit;

    background-color: #ffffff;
    border: 1px solid rgba(22, 72, 113, 0.35);
    border-radius: 6px;
}

.calculator-form select {
    min-height: 2.5rem;
}

.calculator-form textarea {
    min-height: 10rem;
    resize: vertical;
}

.calculator-form select:focus,
.calculator-form textarea:focus {
    outline: 3px solid #ffcc66;
    outline-offset: 2px;
    border-color: #164871;
}

.form-fieldset {
    width: min(100%, 520px);
    margin: 1rem 0;
    padding: 0.9rem;

    border: 1px solid rgba(22, 72, 113, 0.25);
    border-radius: 8px;
    background-color: #ffffff;
}

.form-fieldset legend {
    padding: 0 0.4rem;

    color: #164871;
    font-weight: 700;
}

.form-hint {
    color: #5d7182;
    font-size: 0.92rem;
}

.suggestion-box {
    display: none;
    width: min(100%, 520px);
    margin: -0.4rem 0 0.8rem 0;
    padding: 0.45rem;

    background-color: #ffffff;
    border: 1px solid rgba(22, 72, 113, 0.25);
    border-radius: 8px;

    box-shadow: 0 6px 14px rgba(22, 72, 113, 0.16);
}

.suggestion-item {
    display: block;
    width: 100%;
    margin: 0.25rem 0;
    padding: 0.55rem 0.65rem;

    color: #164871;
    font: inherit;
    font-weight: 700;
    text-align: left;

    background: linear-gradient(to bottom, #ffffff 0%, #d8ecfb 100%);
    border: 1px solid rgba(22, 72, 113, 0.2);
    border-radius: 6px;

    cursor: pointer;
}

.suggestion-item:hover,
.suggestion-item:focus {
    color: #0b2438;
    background: linear-gradient(to bottom, #ffffff 0%, #c0dffd 100%);
}


/* =========================================================
   Sidebar-Buttons
   ========================================================= */

.sidebar-button {
    display: block;
    margin: 0.45rem 0;
    padding: 0.55rem 0.65rem;

    color: #164871 !important;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;

    background: linear-gradient(to bottom, #ffffff 0%, #d8ecfb 100%);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 6px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 2px 5px rgba(0, 0, 0, 0.18);
}

.sidebar-button:hover,
.sidebar-button:focus {
    color: #0b2438 !important;
    text-decoration: none;

    background: linear-gradient(to bottom, #ffffff 0%, #c0dffd 100%);
}


/* =========================================================
   Kontaktformular: Checkboxen sauber formatieren
   ========================================================= */

.calculator-form input[type="checkbox"],
.calculator-form input[type="radio"] {
    width: auto;
    min-width: 0;
    max-width: none;
    height: auto;
    margin: 0 0.45rem 0 0;
    padding: 0;

    vertical-align: middle;
    box-shadow: none;
}

.calculator-form .checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;

    margin: 0.55rem 0;
    line-height: 1.45;
}

.calculator-form .checkbox-row input[type="checkbox"] {
    flex: 0 0 auto;
    margin-top: 0.15rem;
}

.calculator-form .checkbox-row span {
    display: block;
}

.calculator-form .callback-options {
    margin-top: 0.5rem;
}

.calculator-form .privacy-check {
    width: min(100%, 520px);
    margin: 1rem 0;
    padding: 0.75rem 0.85rem;

    background-color: #ffffff;
    border: 1px solid rgba(22, 72, 113, 0.22);
    border-radius: 8px;
}