:root {
    --primary: #00689C;
    --primary-700: #0c2a43;
    --secondary: #1F6E8C;
    --accent: white;
    --bg: #F5F7FB;
    --text: #0e1b2c;
    --muted: #667487;
    --card: white;
    --border: none;
    --shadow: 0 14px 38px rgba(14, 27, 44, .10);
    --shadow-soft: 0 10px 24px rgba(14, 27, 44, .08);
    --radius: 18px;
    --radius-sm: 14px;
    --danger-bg: #fff3f3;
    --danger-border: #f0b4b4;
    --danger-text: #7a1f1f;
}

* {
    box-sizing: border-box
}

body {
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
    color: rgba(0, 0, 0, 0.7);
}

p {
    font-size: 18px; /* Schriftgröße für Absätze */
}

button {
    background-color: #fedf02; /* hintergrundfarbe des Buttons, red green blue */
    color: rgb(0, 117, 176); /* textfarbe des Buttons */
    padding: 10px 20px; /* innenabstand: 10px oben/unten, 20px links/rechts */
    border: none; /* kein rahmen */
    height: 40px; /* höhe des buttons */
    width: auto; /* breite des buttons */
    border-radius: 5px; /* abgerundete ecken */
    font-size: 15px; /* schriftgröße */
    cursor: pointer; /* mauszeiger ändert sich beim drüberfahren */
    font-weight: bold;
}

button:hover { /* änderung der hintergrundfarbe beim drüberfahren */
    opacity: 0.5;
    cursor: pointer;
}

button:active {
    opacity: 0.3; /* änderung der hintergrundfarbe beim klicken, macht heller. Werte zwischen 0 und 1 */
}

button:focus,
input:focus,
select:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/*gelber Button*/
.cta {
    background: #fedf02;
    color: #08331c;
}

/*blauer Button*/
.blue {
    background: rgb(0, 117, 176);
    color: white
}

/*
  .btn{
    color:#fff;
    background:var(--secondary); 
    padding:12px 16px; 
    border-radius:14px; 
    font-weight:900;
    box-shadow:0 10px 18px rgba(31,110,140,.18);
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }
*/
/*heller blauer Button*/
.btn.secondary {
    background: #e9f2f8;
    color: var(--secondary);
    box-shadow: none;
}

/* Container für die Kopfzeile und den Hauptinhalt, damit sie zentriert und mit einem Maximalabstand von 1200px angezeigt werden.*/
.container-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px;
}

/* ================= Kopfzeile Weiß mit innerer Struktur für Logo, Titel und Navigation ==========*/
.header-white {
    padding: 0 24px 0 12px;
    border: none;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    background-color: white;
}

.header-white img {
    position: static;
    align-content: normal;
    align-items: normal;
    align-self: auto;
    block-size: 67.8835px;
    bottom: auto;
    box-sizing: content-box;
    clear: none;
    clip: auto;
    display: inline;
    flex-direction: row;
    flex-grow: 0;
    flex-shrink: 1;
    flex-wrap: nowrap;
    float: none;
    height: 67.8835px;
    inline-size: 120px;
    justify-content: normal;
    left: auto;
}

.header-white h3 {
    margin-left: 20px;
    justify-self: start;
    color: black;
}

/* ======= restliche Kopfzeile blau mit Navi =============*/
.header-inner {
    padding: 0 24px 0 12px;
    border: solid 10px var(--border);
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    background-color: #00689C;
    height: 40px;
}

.header-inner nav {
    padding-right: 24px;
    justify-self: end;
}

.header-inner a {
    color: white;
    margin-left: 20px;
    font-weight: 700;
    font-size: 18px;
}


/* ===================== Kopfzeile mit innerer Struktur für Logo, Titel und Navigation 
.header-inner{
  padding: 0 24px 0 12px;
  border: solid 10px var(--border);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  background-color: #00689C;
}
.header-inner img{
  padding-left: 24px;
  height: 50px;
}
.header-inner h3{
  margin-left: 20px;
  justify-self: start;
  color: white;
}
.header-inner nav{
  padding-right: 24px;
  justify-self: end;
}
.header-inner a{
  color: white;
  margin-left: 20px;
  font-weight: 700;
  font-size: 18px;
}
============================ */

/* Fusszeile */
.footer-inner {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    background-color: #00689C;
}

.footer-inner p {
    padding-left: 24px;
    color: white;
}

.footer-inner h3 {
    justify-self: start;
    color: white;
}

.footer-inner nav {
    padding-right: 24px;
    justify-self: end;
}

.footer-inner a {
    color: white;
    margin-left: 20px;
    font-size: 18px;
}

.titelbild {
    position: relative;
    padding: 72px 0 56px;
    color: #ffffff;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(bilder/titelbild.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.titelbild h1 {
    margin: 0 0 12px;
    font-size: clamp(26px, 3.9vw, 42px);
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow)
}

.stack {
    display: grid;
    gap: 18px
}

h2 {
    margin: 0 0 10px;
    font-size: 22px
}

.muted {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45
}

.subtle {
    font-size: 16px;
    color: var(--muted);
}

.step {
    margin-top: 14px
}

.step-title {
    font-weight: 700;
    margin: 0 0 8px
}

.choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.choice {
    border: 1px solid #d8e5f2;
    background: linear-gradient(180deg, #fff, #fbfdff);
    border-radius: 14px;
    padding: 12px 12px;
    height: 40px;
    min-width: 170px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: border-color .15s ease, box-shadow .15s ease, transform .05s ease;
    user-select: none;
}

.choice:hover {
    border-color: #c8daea;
    box-shadow: 0 0 0 6px rgba(31, 110, 140, .08)
}

.choice:active {
    transform: translateY(1px)
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 2px solid #c5d6e6;
    background: #fff
}

.choice.active {
    border-color: rgba(31, 110, 140, .80);
    /*box-shadow: 0 0 0 7px rgba(31, 110, 140, .10);*/
    box-shadow: 0 0 10px 7px rgba(31, 110, 140, .10);
}

.choice.active .dot {    /*markiert den Punkt in den Buttons wenn angeklickt */
    border-color: rgba(31, 110, 140, .40); 
    background: rgba(31, 110, 140, .60); 
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 14px
}

.notice {
    margin-top: 14px;
    background: #fffdf5;
    border: 1px solid #f2e6c5;
    color: #6b5b2a;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.35;
}

.notice.danger {
    background: var(--danger-bg);
    border-color: var(--danger-border);
    color: var(--danger-text);
}

.results {
    display: none;
    margin-top: 14px
}

.results.show {
    display: block;
    animation: fadeUp .25s ease both
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.kpis {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px
}

@media (max-width: 920px) {
    .kpis {
        grid-template-columns:1fr
    }
}

.kpi {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #fff, #fbfdff);
    padding: 14px;
    box-shadow: var(--shadow-soft)
}

.kpi .label {
    font-weight: 750;
}

.kpi .value {
    font-size: 20px;
    font-weight: 750;
    margin-top: 6px
}
.kpi .hint {
    margin-top: 4px;
    font-size: 13px;
    color: var(--muted)
}

.bar {
    height: 10px;
    border-radius: 999px;
    background: #eef3f8;
    overflow: hidden;
    margin-top: 10px
}

.bar i {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--secondary), #6fbfd6);
    transition: width .55s ease
}

/* Kontaktformular + Consent-Checkbox linksbündig */
.form {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 12px;
    margin-top: 10px
}

/*das der Style der "Verfügbarkeit" genau so aussieht wie andere STelle im "Unverbindliche Beratung anfragen" */
.form input,
.form select,
.form textarea,
.form input[type="time"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #d8e5f2;
    border-radius: 14px;
    font: inherit;
    background: #fff;
    color: var(--text);
}

.form textarea {
    grid-column: 1/-1;
    min-height: 120px
}

/* Consent: linksbündig, Checkbox + Text dicht nebeneinander */
label.consent {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    color: black;
    font-size: 14px;
    line-height: 1.35;
    text-align: center;
    width: 100%;
}

label.consent input[type="checkbox"] {
    margin: 2px 0 0 0;
    flex: 0 0 auto;
}

@media (max-width: 720px) {
    .form {
        grid-template-columns:1fr
    }
}

.datenschutzhinweis {
    grid-column: 1/-1;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.form-actions {
    grid-column: 1/-1;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px
}
.wichtiger-text {
    color: white;
    font-size: 16px;
}
.step p{
    font-size: 15px;
    color: gray;
}
