/* ==========================================================================
   MutRaum – Praxis für Individualpsychologie, Solothurn
   Global styles
   ========================================================================== */

:root {
    --mr-blue: rgb(6, 142, 192);
    --mr-green: rgb(185, 205, 65);
    --mr-text-light: #ffffff;
    --mr-dark: #2b3a42;

    /* Shared responsive text sizes. Headings use their own display scales. */
    --mr-font-sm: clamp(.8rem, .75rem + .25vw, .95rem);
    --mr-font-base-sm: clamp(0.85rem, .85rem + .32vw, 1.00rem);
    --mr-font-base: clamp(1rem, .9rem + .5vw, 1.15rem);
    --mr-font-lg: clamp(1.1rem, 1rem + .6vw, 1.3rem);
    --mr-font-xl: clamp(1.25rem, 1.1rem + .8vw, 1.5rem);
}

@font-face {
    font-family: 'Nunito';
    src: url('fonts/Nunito-Light.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('fonts/Nunito-Regular.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('fonts/Nunito-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('fonts/Nunito-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('fonts/Nunito-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    color: #2b3a42;
    background-color: #ffffff;
}

/* Keep all interactive buttons consistently rounded. */
button,
.btn {
    border-radius: 1rem;
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
    background-color: #ffffff;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 10;
    transition: box-shadow .2s ease;
}

.site-header--shrunk {
    box-shadow: 0 2px 8px rgba(43, 58, 66, .14);
}

.site-header .navbar {
    padding-top: .75rem;
    padding-bottom: .75rem;
    transition: padding .3s ease;
}

.site-header .navbar-brand {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
}

.site-header .navbar-brand img {
    display: block;
    height: 60px;
    width: auto;
    transition: height .3s ease;
}

.site-header .nav-link {
    color: var(--mr-blue);
    font-size: 1.6rem;
    font-weight: 600;
    transition: color .2s ease;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus {
    color: var(--mr-green);
}

/* Shrunk state when scrolling down */

.site-header--shrunk .navbar {
    padding-top: .25rem;
    padding-bottom: .25rem;
}

.site-header--shrunk .navbar-brand img {
    height: 42px;
}

.site-header--shrunk .sgfb-badge {
    height: 52px;
}

.site-header .sgfb-badge {
    height: 72px;
    width: auto;
    transition: height .3s ease;
}

@media (min-width: 992px) {
    .site-header .navbar-brand img {
        height: 76px;
    }

    .site-header .nav-link {
        font-size: 1.6rem;
    }

    .site-header--shrunk .navbar-brand img {
        height: 48px;
    }
}

/* --------------------------------------------------------------------------
   Hero section
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    background-color: var(--mr-blue);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-content {
    display: flex;
    align-items: center;
    padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2rem) clamp(4.5rem, 8vw, 6rem);
    /* Soft organic glow behind the text block for gentle depth on the flat blue */
    background: radial-gradient(ellipse 90% 70% at 50% 42%, rgba(255, 255, 255, .07), transparent 70%);
}

.hero-content-inner {
    max-width: 36rem;
    margin-inline: auto;
    color: var(--mr-text-light);
}

.hero-kicker {
    font-size: var(--mr-font-base);
    margin-bottom: 1.5rem;
}

.hero h1 {
    color: #ffffff;
    font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.4rem);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

/* Hand-drawn-style green underline stroke beneath the accent word */
.hero-accent {
    position: relative;
    display: inline-block;
}

.hero-accent::after {
    content: "";
    position: absolute;
    left: -0.05em;
    right: -0.05em;
    bottom: -0.12em;
    height: 0.28em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M3 9c22-5 46-7 63-5 17 2 35 2 51-2' fill='none' stroke='rgb(185,205,65)' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
    pointer-events: none;
}

.hero-content-inner p {
    font-size: var(--mr-font-xl);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.25rem;
}

.hero-scroll-arrow {
    display: inline-block;
}

/* Gentle entrance and scroll-hint motion; disabled for reduced-motion users */
@media (prefers-reduced-motion: no-preference) {
    .hero-content-inner > * {
        opacity: 0;
        animation: hero-rise .6s ease-out forwards;
    }

    .hero-content-inner > :nth-child(1) { animation-delay: .05s; }
    .hero-content-inner > :nth-child(2) { animation-delay: .15s; }
    .hero-content-inner > :nth-child(3) { animation-delay: .25s; }
    .hero-content-inner > :nth-child(4) { animation-delay: .33s; }
    .hero-content-inner > :nth-child(5) { animation-delay: .41s; }
    .hero-content-inner > :nth-child(6) { animation-delay: .5s; }

    .hero-scroll-arrow {
        animation: hero-arrow-bounce 2.4s ease-in-out infinite;
        animation-delay: 1.5s;
    }
}

@keyframes hero-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-arrow-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(4px);
    }
}

.btn-cta {
    background-color: var(--mr-green);
    border-color: var(--mr-green);
    color: #000000;
}

.btn-cta:hover,
.btn-cta:focus {
    background-color: rgb(166, 184, 58);
    border-color: rgb(166, 184, 58);
    color: #000000;
}

.hero .btn-light {
    color: var(--mr-blue);
}

/* Wave transition at the bottom of the hero */

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    pointer-events: none;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: clamp(3.5rem, 8vw, 6rem);
}

/* --------------------------------------------------------------------------
   Responsive adjustments
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-image img {
        max-height: 55vh;
    }
}

@media (min-width: 992px) {
    .hero-content {
        padding-inline: clamp(2rem, 5vw, 5rem);
        padding-bottom: clamp(4.5rem, 8vw, 5.5rem);
    }

    .hero-content-inner {
        width: 100%;
        max-width: 52rem;
        margin-inline: 0;
    }
}

/* --------------------------------------------------------------------------
   "MutRaum auf einen Blick" section
   -------------------------------------------------------------------------- */

.at-glance {
    background-color: #ffffff;
    padding: 3rem 0 4rem;
}

.at-glance-title {
    color: var(--mr-blue);
    font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
    font-weight: 400;
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.at-glance-grid-wrap {
    overflow: hidden;
    margin-bottom: 3rem;
}

.at-glance-grid {
    display: flex;
    flex-wrap: wrap;
    row-gap: clamp(1.5rem, 3vw, 2.5rem);
    list-style: none;
    margin: 0 0 0 -1px;
    padding: 0;
}

.at-glance-item {
    container-type: inline-size;
    flex: 1 1 10.5rem;
    min-width: 10.5rem;
    text-align: center;
    padding: .5rem clamp(.75rem, 1.5vw, 1.25rem);
    border-left: 1px solid #e3ddd3;
}

.at-glance-icon {
    color: var(--mr-green);
    margin-bottom: clamp(1rem, 7cqw, 1.5rem);
}

.at-glance-icon svg {
    width: clamp(2.4rem, 18cqw, 3rem);
    height: clamp(2.4rem, 18cqw, 3rem);
}

.at-glance-text {
    font-size: var(--mr-font-sm);
    line-height: 1.5;
    margin-bottom: .75rem;
}

.at-glance-note {
    font-size: var(--mr-font-sm);
    line-height: 1.4;
    margin-bottom: 0;
}

.at-glance-intro {
    max-width: 62rem;
    margin: 0 auto;
    text-align: center;
    font-size: var(--mr-font-base-sm);
    line-height: 1.6;
}


/* --------------------------------------------------------------------------
   "Über Simone & Marco" section
   -------------------------------------------------------------------------- */

.about-us {
    background-color: #f9f1e1;
    padding: 3rem 0 4rem;
}

.about-us-title {
    color: var(--mr-blue);
    font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.about-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
    max-width: 56rem;
    margin: 0 auto 3rem;
}

.about-us-card {
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-us-photo {
    width: clamp(11rem, 60cqw, 17rem);
    max-width: 85%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
}

.about-us-name {
    color: var(--mr-blue);
    font-size: var(--mr-font-lg);
    font-weight: 700;
    margin-bottom: .75rem;
}

.about-us-credentials {
    font-size: var(--mr-font-sm);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.about-us-quote {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    text-align: left;
    margin: 0 0 1.75rem;
    max-width: 24rem;
}

.about-us-quote-mark {
    color: #c7c2ba;
    font-size: 3rem;
    font-weight: 400;
    line-height: .6;
    flex-shrink: 0;
}

.about-us-quote p {
    border-left: 2px solid #c7c2ba;
    padding-left: .9rem;
    font-size: var(--mr-font-sm);
    line-height: 1.6;
    margin: 0;
}

.about-us-btn {
    background-color: var(--mr-green);
    border-color: var(--mr-green);
    color: #000000;
    padding: .6rem 1.5rem;
    margin-top: auto;
}

.about-us-btn:hover,
.about-us-btn:focus {
    background-color: rgb(165, 185, 55);
    border-color: rgb(165, 185, 55);
    color: #000000;
}

.about-us-topics {
    text-align: center;
    font-size: var(--mr-font-base);
    line-height: 1.7;
    margin: 0 auto;
    max-width: 62rem;
}


/* --------------------------------------------------------------------------
   Online booking interrupt
   -------------------------------------------------------------------------- */

.booking-invite {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: #f9f1e1;
    padding: clamp(5rem, 8vw, 6.25rem) 0;
}

.booking-invite::before,
.booking-invite::after {
    position: absolute;
    z-index: -1;
    left: 0;
    width: 100%;
    height: clamp(3.5rem, 8vw, 6rem);
    content: "";
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
}

.booking-invite::before {
    top: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1000v20c-67 22-130 27-205 10-77-18-146-16-222 5-63 16-119 17-173-5-80-32-156-29-240-12C122 27 62 23 0 0Z' fill='%23fff'/%3E%3C/svg%3E");
}

.booking-invite::after {
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100h1000V74c-65-20-125-22-181-10-76 17-146 17-222-5-63-18-119-19-173 3-80 32-157 29-240 12C121 60 61 69 0 100Z' fill='%23fff'/%3E%3C/svg%3E");
}

.booking-invite > .container {
    position: relative;
    z-index: 1;
}

.booking-invite-leaf-stripe {
    position: absolute;
    z-index: 0;
    top: clamp(3.25rem, 5vw, 4.75rem);
    width: clamp(10rem, 15vw, 14rem);
    height: clamp(5.25rem, 8vw, 7rem);
    background: url("images/booking-leaf-stripe.svg") no-repeat center / contain;
    opacity: .28;
    pointer-events: none;
}

.booking-invite-leaf-stripe--right {
    right: clamp(1.5rem, 6vw, 8rem);
}

.booking-invite-leaf-stripe--left {
    top: auto;
    bottom: clamp(2.5rem, 4vw, 4rem);
    left: clamp(-3rem, 1vw, 1rem);
    transform: scale(-1, -1);
}

.booking-invite-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, .8fr);
    gap: clamp(2rem, 6vw, 4.5rem);
    align-items: center;
    max-width: 68rem;
    margin-inline: auto;
}

.booking-invite h2 {
    color: var(--mr-blue);
    font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.7rem);
    font-weight: 700;
    line-height: 1.18;
    margin-bottom: 1rem;
}

.booking-invite h2 span {
    color: #70802d;
}

.booking-invite-content > p:not(.booking-invite-kicker) {
    font-size: var(--mr-font-base);
    line-height: 1.7;
}

.booking-invite-content > p:last-child {
    margin-bottom: 0;
}

.booking-invite-action {
    position: relative;
    padding: clamp(1.5rem, 3vw, 2rem);
    border: 1px solid rgba(43, 58, 66, .08);
    border-radius: clamp(1.5rem, 4vw, 2.25rem);
    background-color: #ffffff;
    box-shadow: 0 1rem 2.5rem rgba(43, 58, 66, .1);
    text-align: center;
}

.booking-invite-note {
    font-size: var(--mr-font-base-sm);
    line-height: 1.5;
    margin: 0 0 .85rem;
}

.booking-invite-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    border-color: var(--mr-green);
    background-color: var(--mr-green);
    color: #25300e;
    font-size: var(--mr-font-base);
    font-weight: 700;
    padding: .8rem 1.35rem;
}

.booking-invite-button:hover,
.booking-invite-button:focus-visible {
    border-color: rgb(165, 185, 55);
    background-color: rgb(165, 185, 55);
    color: #192006;
}

.booking-dialog[hidden] {
    display: none;
}

.booking-dialog {
    position: fixed;
    z-index: 1050;
    inset: 0;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 3vw, 2rem);
}

.booking-dialog-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(21, 35, 42, .7);
}

.booking-dialog-panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(66vw, 76rem);
    height: min(66vh, 52rem);
    min-height: 28rem;
    overflow: hidden;
    border-radius: clamp(1rem, 2vw, 1.5rem);
    background-color: #ffffff;
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .35);
}

.booking-dialog:not([hidden]) .booking-dialog-backdrop {
    animation: booking-backdrop-in .22s ease-out both;
}

.booking-dialog:not([hidden]) .booking-dialog-panel {
    animation: booking-panel-in .28s cubic-bezier(.22, .8, .3, 1) both;
}

.booking-dialog.booking-dialog--closing .booking-dialog-backdrop {
    animation: booking-backdrop-out .2s ease-in both;
}

.booking-dialog.booking-dialog--closing .booking-dialog-panel {
    animation: booking-panel-out .2s ease-in both;
}

@keyframes booking-backdrop-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes booking-backdrop-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes booking-panel-in {
    from {
        opacity: 0;
        transform: translateY(1rem) scale(.975);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes booking-panel-out {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(.6rem) scale(.98);
    }
}

.booking-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem .85rem 1.4rem;
    border-bottom: 1px solid #e3ddd3;
}

.booking-dialog-header h2 {
    color: var(--mr-blue);
    font-size: var(--mr-font-lg);
    font-weight: 700;
    margin: 0;
}

.booking-dialog-close {
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: transparent;
    color: var(--mr-dark);
}

.booking-dialog-close:hover,
.booking-dialog-close:focus-visible {
    background-color: #eef2d8;
    outline: none;
}

.booking-dialog-close svg {
    width: 1.25rem;
    height: 1.25rem;
}

.booking-dialog-frame {
    width: 100%;
    height: 100%;
    border: 0;
    background-color: #ffffff;
}

.booking-dialog-alternative {
    margin: 0;
    padding: .65rem 1.4rem;
    border-top: 1px solid #e3ddd3;
    color: #59636a;
    font-size: var(--mr-font-sm);
    line-height: 1.45;
}

.booking-dialog-alternative a {
    color: var(--mr-blue);
    font-weight: 700;
}

body.booking-dialog-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .booking-dialog:not([hidden]) .booking-dialog-backdrop,
    .booking-dialog:not([hidden]) .booking-dialog-panel,
    .booking-dialog.booking-dialog--closing .booking-dialog-backdrop,
    .booking-dialog.booking-dialog--closing .booking-dialog-panel {
        animation-duration: .01ms;
    }
}

@media (max-width: 767.98px) {
    .booking-invite {
        padding-block: clamp(4.5rem, 14vw, 5.5rem);
    }

    .booking-invite-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .booking-invite-leaf-stripe {
        display: none;
    }

    .booking-invite-button {
        width: 100%;
    }

    .booking-dialog {
        padding: .75rem;
    }

    .booking-dialog-panel {
        width: 100%;
        height: min(92dvh, 56rem);
        min-height: 0;
        border-radius: 1rem;
    }

    .booking-dialog-header {
        padding-left: 1rem;
    }

    .booking-dialog-alternative {
        padding-inline: 1rem;
    }
}

@media (max-width: 1199.98px) {
    .booking-invite-leaf-stripe--left {
        display: none;
    }
}


/* --------------------------------------------------------------------------
   "FAQ - Häufige Fragen" section
   -------------------------------------------------------------------------- */

.faq {
    background-color: #ffffff;
    padding: 3rem 0 4rem;
}

.faq-title {
    color: var(--mr-green);
    font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.5rem);
    font-weight: 700;
    margin-bottom: clamp(2rem, 4vw, 2.5rem);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.faq-item {
    border: 1px solid #e3ddd3;
    border-radius: .9rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
    padding: clamp(1.1rem, 2vw, 1.5rem) clamp(1.25rem, 2.5vw, 1.75rem);
}

.faq-item-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    list-style: none;
}

.faq-item-summary::-webkit-details-marker {
    display: none;
}

.faq-item-question {
    color: var(--mr-blue);
    font-size: var(--mr-font-lg);
    font-weight: 700;
    margin: 0;
}

.faq-item-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: clamp(1.7rem, 1.5rem + 0.6vw, 2rem);
    height: clamp(1.7rem, 1.5rem + 0.6vw, 2rem);
    border-radius: 50%;
    background-color: var(--mr-green);
    color: #2f3a13;
    font-size: var(--mr-font-lg);
    line-height: 1;
    transition: background-color .2s ease;
}

.faq-item-toggle::before {
    content: "+";
}

.faq-item[open] .faq-item-toggle::before {
    content: "\2212";
}

.faq-item-summary:hover .faq-item-toggle {
    background-color: rgb(165, 185, 55);
}

/* Expand/collapse animation is handled by wwwroot/faq.js (Web Animations API)
   for full cross-browser support, including Safari. */

.faq-item-answer {
    margin-top: 1.25rem;
    font-size: var(--mr-font-base);
    line-height: 1.7;
}

.faq-item-answer > *:last-child {
    margin-bottom: 0;
}


/* --------------------------------------------------------------------------
   Contact question interrupt
   -------------------------------------------------------------------------- */

.contact-question {
    position: relative;
    overflow: hidden;
    background-color: #eef2d8;
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.contact-question::before,
.contact-question::after {
    content: "?";
    position: absolute;
    color: rgba(185, 205, 65, .22);
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
}

.contact-question::before {
    top: -2.5rem;
    left: -1rem;
    font-size: clamp(8rem, 18vw, 15rem);
    transform: rotate(-12deg);
}

.contact-question::after {
    right: 1vw;
    bottom: -4rem;
    font-size: clamp(10rem, 22vw, 18rem);
    transform: rotate(10deg);
}

.contact-question-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
    max-width: 72rem;
    margin-inline: auto;
}

.contact-question-kicker {
    color: #6f7b2f;
    font-size: var(--mr-font-sm);
    font-weight: 800;
    letter-spacing: .08em;
    margin-bottom: .8rem;
    text-transform: uppercase;
}

.contact-question-intro h2 {
    color: var(--mr-blue);
    font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.7rem);
    font-weight: 700;
    line-height: 1.18;
    margin-bottom: 1.4rem;
}

.contact-question-intro h2 span {
    color: #70802d;
}

.contact-question-intro > p:not(.contact-question-kicker) {
    font-size: var(--mr-font-base);
    line-height: 1.7;
}

.contact-question-direct {
    margin: 1.75rem 0 0;
}

.contact-question-direct a {
    color: var(--mr-blue);
    font-weight: 700;
    text-underline-offset: .2em;
}

.contact-question-form {
    background-color: #ffffff;
    border: 1px solid rgba(43, 58, 66, .08);
    border-radius: clamp(1.25rem, 3vw, 2rem);
    box-shadow: 0 1rem 2.5rem rgba(43, 58, 66, .1);
    padding: clamp(1.35rem, 4vw, 2.4rem);
}

.contact-question-field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.contact-question-field {
    margin-bottom: 1rem;
}

.contact-question-field label {
    display: block;
    color: var(--mr-dark);
    font-size: var(--mr-font-base-sm);
    font-weight: 700;
    margin-bottom: .4rem;
}

.contact-question-field input,
.contact-question-field select,
.contact-question-field textarea {
    display: block;
    width: 100%;
    border: 1px solid #c9cec1;
    border-radius: .75rem;
    background-color: #ffffff;
    color: var(--mr-dark);
    font: inherit;
    padding: .72rem .85rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-question-field textarea {
    min-height: 8.5rem;
    resize: vertical;
}

.contact-question-field input:focus,
.contact-question-field select:focus,
.contact-question-field textarea:focus {
    border-color: var(--mr-blue);
    box-shadow: 0 0 0 .2rem rgba(6, 142, 192, .15);
    outline: none;
}

.contact-question-help {
    color: #59636a;
    font-size: var(--mr-font-sm);
    line-height: 1.5;
    margin: .1rem 0 1.25rem;
}

.contact-question-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    border-color: var(--mr-green);
    background-color: var(--mr-green);
    color: #25300e;
    font-weight: 700;
    padding: .7rem 1.3rem;
}

.contact-question-submit:hover,
.contact-question-submit:focus-visible {
    border-color: rgb(165, 185, 55);
    background-color: rgb(165, 185, 55);
    color: #192006;
}

@media (max-width: 767.98px) {
    .contact-question-grid {
        grid-template-columns: 1fr;
    }

    .contact-question-field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-question-submit {
        width: 100%;
    }
}


/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    background-color: var(--mr-dark);
    color: var(--mr-text-light);
    padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2rem);
    font-size: var(--mr-font-base-sm);
}

.site-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
    gap: clamp(1.75rem, 4vw, 3rem);
    align-items: start;
}

.site-footer-logo {
    display: inline-block;
}

.site-footer-logo img {
    display: block;
    height: clamp(60px, 8vw, 76px);
    width: auto;
}

.site-footer-address {
    font-style: normal;
    line-height: 1.7;
    margin: 0;
}

.site-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.site-footer-links a {
    color: var(--mr-text-light);
    text-decoration: none;
    transition: color .2s ease;
}

.site-footer-links a:hover,
.site-footer-links a:focus {
    color: var(--mr-green);
}

.site-footer-social {
    display: flex;
    gap: .75rem;
}

.site-footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, .12);
    transition: background-color .2s ease;
}

.site-footer-social-link:hover,
.site-footer-social-link:focus {
    background-color: var(--mr-blue);
}

.site-footer-social-link img {
    display: block;
    width: 1.35rem;
    height: 1.35rem;
}

.site-footer-copyright {
    margin: clamp(2rem, 4vw, 2.75rem) 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, .15);
    font-size: var(--mr-font-sm);
    color: rgba(255, 255, 255, .75);
}


/* --------------------------------------------------------------------------
   Blazor framework styles
   -------------------------------------------------------------------------- */

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

/* --------------------------------------------------------------------------
   "Wobei wir Menschen begleiten" section
   -------------------------------------------------------------------------- */

.services {
    background-color: #ffffff;
    padding: 3rem 0 4rem;
}

.services-title {
    color: var(--mr-green);
    font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.services-title-indent {
    display: inline-block;
    padding-left: clamp(0rem, -3.5rem + 9vw, 3.5rem);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
    gap: clamp(1.25rem, 3vw, 2.5rem);
    max-width: 68rem;
    margin: 0 auto;
}

.service-box {
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #eef2d8;
    border-radius: clamp(1.5rem, 8cqw, 2.5rem);
    padding: clamp(1rem, 4.5cqw, 1.5rem) clamp(1rem, 4.5cqw, 1.5rem) clamp(1.4rem, 6cqw, 2rem);
}

.service-box-image {
    width: 100%;
    aspect-ratio: 5 / 2;
    object-fit: cover;
    border-radius: clamp(1.15rem, 6cqw, 2rem);
    margin-bottom: clamp(.9rem, 4cqw, 1.25rem);
}

.service-box-title {
    color: var(--mr-blue);
    font-size: clamp(1.15rem, 3.8cqw, 1.3rem);
    font-weight: 700;
    margin-bottom: clamp(.6rem, 3cqw, .9rem);
}

.service-box-description {
    font-size: var(--mr-font-base-sm);
    line-height: 1.6;
    margin-bottom: clamp(1rem, 4.5cqw, 1.5rem);
}

.service-box-topics {
    color: #7a8455;
    font-size: var(--mr-font-sm);
    line-height: 1.5;
    margin: auto 0 0;
}

@media (max-width: 767.98px) {
    .services-title {
        text-align: center;
    }
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
