/* Startseite, Einstieg seit 11/2026: ruhiger Hero mit fester Ueberschrift, Anliegen-Karten
   direkt darunter, kurzes "Ueber mich" mit den Zahlen, FAQ ohne Builder, Auswahl im Formular.
   Laedt nach home.css, hero.css und home-v2.css und ueberschreibt nur, was sich aendert. */

/* ---------- Hero: feste Ueberschrift, ein Hauptziel ---------- */
.home-hero--calm .hero-h1 {
    font-size: clamp(2.25rem, 4.3vw, 3.75rem);
    line-height: 1.04;
}

.hero-h1__a,
.hero-h1__b {
    display: block;
}

.hero-h1__b {
    color: var(--brand);
}

@media (min-width: 52.01rem) {
    .hero-h1__a,
    .hero-h1__b {
        white-space: nowrap;
    }
}

.home-hero--calm .hero-ros__cta {
    align-items: center;
    gap: .75rem 1.75rem;
}

.hero-more {
    font-size: 1rem;
}

.hero-note {
    margin: 1rem 0 0;
    color: var(--text-muted);
    font-size: .875rem;
}

@media (max-width: 30rem) {
    .home-hero--calm .hero-h1 {
        font-size: min(2.375rem, 8.6vw);
    }
}

/* ---------- Auslastung: kleiner Balken links in der Leiste unter dem Hero ---------- */
.hero-load {
    position: relative;
    display: inline-flex;
    cursor: help;
    align-items: center;
    justify-self: start;
    gap: .625rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: .75rem;
    letter-spacing: .02em;
    white-space: nowrap;
}

.hero-load b {
    color: var(--text);
    font-weight: 600;
}

.hero-load__bar {
    position: relative;
    width: 3.5rem;
    height: .25rem;
    overflow: hidden;
    border-radius: 99px;
    background: var(--line-strong);
}

.hero-load__bar i {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--load);
    border-radius: inherit;
    background: var(--brand);
    animation: hero-load 1.2s var(--ease) 1s both;
}

@keyframes hero-load {
    from { width: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-load__bar i { animation: none; }
}

/* Erklaerung: klappt nach oben auf, bei Hover, Tastaturfokus und Antippen */
.hero-load__tip {
    position: absolute;
    z-index: 5;
    bottom: calc(100% + .75rem);
    left: 0;
    width: max-content;
    max-width: min(19rem, calc(100vw - 2 * var(--gutter)));
    padding: .625rem .75rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 12px 30px -14px rgb(0 0 0 / .3);
    color: var(--text);
    font-family: var(--font-sans, inherit);
    font-size: .8125rem;
    letter-spacing: 0;
    line-height: 1.45;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    translate: 0 .25rem;
    transition: opacity .18s, translate .18s var(--ease), visibility 0s .18s;
    pointer-events: none;
}

.hero-load:hover .hero-load__tip,
.hero-load:focus .hero-load__tip {
    opacity: 1;
    visibility: visible;
    translate: 0;
    transition-delay: 0s;
}

.hero-load:focus {
    outline: none;
}

.hero-load:focus-visible {
    border-radius: var(--radius-sm);
    outline: 2px solid var(--brand);
    outline-offset: 4px;
}

/* schmal: nur der Wert, der Balken braucht den Platz der Ortsangabe */
@media (max-width: 30rem) {
    .hero-load__bar { display: none; }
}

/* ---------- Anliegen: drei Karten direkt unter dem Hero ---------- */
.needs {
    padding-block: clamp(2.75rem, 6vw, 4.5rem);
    border-bottom: 1px solid var(--line);
    background: var(--bg-subtle);
}

.needs__head {
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.needs__head h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.375rem);
}

.needs__list {
    margin-top: 0;
}

/* ---------- Ueber mich: ein Absatz links, Zahlen rechts ---------- */
.about2 {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}

.about2 h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.375rem);
}

.about2 p {
    max-width: 36rem;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 1.0625rem;
}

.about2__sig {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin-top: 1.75rem;
    font-size: .875rem;
}

.about2__sig img {
    width: 3.5rem;
    height: 3.5rem;
    border: 1px solid var(--line);
    border-radius: 50%;
}

.about2__sig span {
    display: grid;
    margin-right: .75rem;
    color: var(--text-muted);
}

.about2__sig b {
    color: var(--text);
    font-weight: 600;
}

.about2__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.75rem, 4vw, 2.5rem) 0;
}

.about2__metrics .metric:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
}

@media (max-width: 58rem) {
    .about2 {
        grid-template-columns: 1fr;
    }
}

/* ---------- FAQ: Kopf links, Fragen rechts ---------- */
.faq-split {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.faq-split .section-head {
    position: sticky;
    top: 6rem;
    margin-bottom: 0;
}

.faq-split .section-head p {
    margin-bottom: .375rem;
    font-size: 1rem;
}

.faq-split .faq {
    max-width: none;
}

@media (max-width: 58rem) {
    .faq-split {
        grid-template-columns: 1fr;
    }

    .faq-split .section-head {
        position: static;
    }
}

/* ---------- Kontakt: ein Auswahlfeld mit Tags ---------- */
/* Thema (Pflicht), Ausgangslage und Zeitrahmen (freiwillig) stecken in einem Feld. Die
   Optionen klappen darunter auf und liegen ueber dem Formular, verschieben also nichts. */
.tagsel {
    gap: .375rem;
}

.tagsel__label {
    font-size: .875rem;
    font-weight: 600;
}

.tagsel__box {
    position: relative;
}

.tagsel__field {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .375rem;
    min-height: 2.75rem;
    padding: .3125rem .5rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--bg);
    cursor: pointer;
}

.tagsel__field:focus-within,
.tagsel.is-open .tagsel__field {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent);
}

.tagsel:has(input.is-invalid) .tagsel__field {
    border-color: #D93025;
}

.tagsel__tags {
    display: contents;
}

.tagsel__tag {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    min-height: 1.875rem;
    padding: .1875rem .5rem .1875rem .6875rem;
    border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
    border-radius: var(--radius-pill);
    background: var(--brand-soft);
    color: var(--brand);
    font: inherit;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
}

.tagsel__tag i {
    font-size: 1.0625rem;
    font-style: normal;
    line-height: 1;
    opacity: .65;
}

.tagsel__tag:hover i {
    opacity: 1;
}

.tagsel__toggle {
    display: flex;
    flex: 1 1 3rem;
    align-items: center;
    gap: .5rem;
    min-height: 2rem;
    padding: 0 .25rem;
    border: 0;
    background: none;
    color: var(--text-muted);
    font: inherit;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
}

/* der Rahmen des Felds zeigt den Fokus */
.tagsel__toggle:focus {
    outline: none;
}

.tagsel__toggle svg {
    width: 1rem;
    height: 1rem;
    margin-left: auto;
    transition: rotate .2s var(--ease);
}

.tagsel.is-open .tagsel__toggle svg {
    rotate: 180deg;
}

.tagsel.has-tags .tagsel__ph {
    display: none;
}

.tagsel__panel {
    position: absolute;
    z-index: 20;
    top: calc(100% + .375rem);
    right: 0;
    left: 0;
    display: grid;
    gap: .875rem;
    padding: 1rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 18px 40px -14px rgb(0 0 0 / .28);
}

.tagsel__panel[hidden] {
    display: none;
}

.tagsel__group {
    display: flex;
    flex-wrap: wrap;
    gap: .375rem;
}

.tagsel__head {
    width: 100%;
    color: var(--text-muted);
    font-size: .8125rem;
    font-weight: 600;
}

.tagsel__head small {
    margin-left: .25rem;
    font-size: .75rem;
    font-weight: 400;
}

.tagsel__group button {
    min-height: 2.125rem;
    padding: .3125rem .8125rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-size: .875rem;
    cursor: pointer;
    transition: color .15s, border-color .15s, background-color .15s;
}

.tagsel__group button:hover {
    border-color: var(--text-muted);
}

.tagsel__group button[aria-pressed="true"] {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand);
}

.tagsel__done {
    justify-self: end;
    min-height: 2.125rem;
}

/* ---------- Senden: der Tastenhinweis sitzt im Knopf ---------- */
.btn .form__kbd {
    margin-left: .25rem;
    color: inherit;
}

.btn .form__kbd kbd {
    border-color: color-mix(in srgb, currentColor 32%, transparent);
    background: color-mix(in srgb, currentColor 14%, transparent);
    color: inherit;
    font-weight: 500;
    line-height: 1.5;
}

/* ---------- Visitenkarte: ohne Protokollzeile ---------- */
.stash__log {
    display: none;
}
