﻿/* ─────────────────────────────────────────────────────────────
        General Formatierungen
   ───────────────────────────────────────────────────────────── */
:root {
    --mp-min: 40rem;
    --mp-max: 80rem;
    --secondary-green: rgb(180 191 153);
    --secondary-green-pale: rgba(180, 191, 153, 0.4);
    --mud-palette-info: var(--secondary-green) !important;
    --mud-palette-info-darken: var(--secondary-green) !important;
    --mud-palette-success: var(--mud-palette-primary) !important;
}

.app-content {
    background-color: var(--mud-palette-tertiary);
}
    .app-content div {
        max-height: unset !important;
    }

.content {
    padding-top: 1.1rem;
}

.invalid {
    outline: 1px solid var(--mud-palette-error);
}

.validation-message {
    color: var(--mud-palette-error);
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,...) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}
    .blazor-error-boundary::after {
        content: "Ein Fehler ist aufgetreten!";
    }

.login-container {
    width: 30%;
    justify-content: center;
    align-items: center;
    margin: 0 auto
}

/*--------- Buttons ----------*/
a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: var(--mud-palette-white);
    background-color: var(--mud-palette-primary);
    border-color: #1861ac;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.app-content button, .app-content mud-button {
    text-transform: none;
}

.navigation-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding-top: .7rem;
}
    .navigation-buttons .mud-button-root {
        width: 16rem;
        height: 2.5rem;
    }

.login-span {
    border: 0.18rem white solid;
    flex-direction: row;
    margin-right: 0.7rem;
}
    .login-span .mud-typography, .login-span .mud-icon-root {
        color: var(--mud-palette-white);
        align-items: center;
        align-content: center;
        margin: 0 .2rem;
    }

.toolbar-row {
    display: flex;
    gap: .75rem;
    align-items: center;
    flex-wrap: wrap;
}

/* -- Feedbackpage -- */
.feedback-container .mud-radio-group {
    display: flex;
    flex-direction: column !important;
    align-items: start !important;
}

.space-after {
    margin-bottom: 2rem;
}

/* ─────────────────────────────────────────────────────────────
        Schriftenvereinheitlichung
   ───────────────────────────────────────────────────────────── */
.app-content h2,
.app-content .mud-typography-h2 {
    font-size: 3.2rem;
    color: var(--mud-palette-primary);
}

.app-content .h3,
.app-content .mud-typography-h3 {
    font-size: 1.7rem;
    color: var(--mud-palette-white);
}

.app-content h4,
.app-content .mud-typography-h4 {
    font-size: 1.5rem;
    color: var(--secondary-green);
}

.indented-list {
    margin-left: 3rem;
}

.text {
    font-size: 1.1rem;
    font-family: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.text-minor {
    font-size: 1rem;
    font-family: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.h3-backdrop {
    background-color: var(--mud-palette-primary);
    color: var(--mud-palette-white);
    text-align: center;
    padding: 0.3rem;
    margin: 1.5rem 0;
}

/*--- Alle Schriften haben einen Abstand ---*/
.text, .text-minor, .app-content h2, .app-content h4, .app-content .mud-typography-h2, .app-content .mud-typography-h4, .h3-backdrop {
    margin-bottom: 0.5rem !important;
}

/*--- Überschriften Fix ---*/
.mud-main-content h2, .mud-main-content .mud-typography-h2, .mud-main-content h3, .mud-main-content .mud-typography-h3, .mud-main-content h4, .mud-main-content .mud-typography-h4, .mud-appbar h5, .mud-appbar .mud-typography-h5 {
    font-family: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    font-weight: 300 !important;
}

/* ─────────────────────────────────────────────────────────────
        Sticky Formatierungen
   ───────────────────────────────────────────────────────────── */
.sticky-print-button {
    position: fixed;
    bottom: 1.5rem;
    right: 2rem;
    z-index: 999;
}

.sticky-header {
    background-color: var(--mud-palette-secondary);
}

/* ─────────────────────────────────────────────────────────────
        Table Formatierung
   ───────────────────────────────────────────────────────────── */
.popup-editable {
    width: 50%;
    justify-content: center;
    align-items: center;
    margin: 0px auto;
}

/*─────────────────────────────────────────────────────────────
        Welcome Hero/ Landing Page
─────────────────────────────────────────────────────────────*/
.welcome-hero {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem auto;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    background-color: var(--mud-palette-secondary);
}

.centered {
    text-align: center;
    justify-content: center;
    margin: 0 auto;
}
    .centered .welcome-list {
        display: inline-block;
        text-align: left;
        margin: 0;
        padding-left: 1.25rem;
    }

.landingpic {
    max-height: 300px;
    height: auto;
    width: auto;
}

.welcome-list {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 1.1rem;
    line-height: 1.55;
}

.carousel-slide {
    height: 100%;
    display: flex;
    justify-content: center;
    max-width: 100%;
    align-items: center;
}

.carousel {
    height: 25rem;
}

.report-hint {
    background-color: var(--mud-palette-secondary);
    text-align: left;
    margin: 2rem auto;
    width: 60%;
    padding: .5rem 2.5rem;
}
/*─────────────────────────────────────────────────────────────
    Formatierung Messungen
─────────────────────────────────────────────────────────────*/
.stepper-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.lower-stepper-actions {
    margin-left: 42%;
}

.mud-progress-linear.mud-progress-linear-color-primary:not(.mud-progress-linear-buffer) .mud-progress-linear-bar {
    background-color: transparent !important;
}

.measurements-container {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
}

.MeasurementsHeader {
    background-color: var(--mud-palette-primary);
    color: var(--mud-palette-white);
    text-align: center;
    padding: 0.3rem;
    margin: 1.5rem 0;
}

.responsive-img-pain {
    width: 100%;
    max-width: 30rem;
    height: auto;
}

.color-button-swm {
    margin: 0 1px;
    padding: 10px 20px;
    text-align: center;
    display: inline-block;
    cursor: pointer;
    height: 45px;
    width: 45px;
}
    .color-button-swm.selected, .color-button-swm:focus {
        border-radius: 50%;
    }

.muditems-DailyUse {
    max-width: 960px;
    margin: 0 auto;
}

.muditems-DailyUse-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 1rem;
}

.muditems-DailyUse-center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.muditems-DailyUse-input {
    width: 100%;
    max-width: 560px;
}

/* -- weitere Messungsauswahl verhindern (Messhistorie) -- */
.row-disabled {
    opacity: .5;
    pointer-events: none;
}
    .row-disabled .mud-checkbox,
    .row-disabled .mud-table-cell {
        cursor: not-allowed;
    }

/*─────────────────────────────────────────────────────────────
    Formatierung der Pages Über Uns & Rechtliches
─────────────────────────────────────────────────────────────*/
.AboutApp {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 2%;
    flex-wrap: wrap
}

.AboutAppHeader {
    width: 100% !important;
}
    .AboutAppHeader .text {
        font-size: 1.5rem;
        color: var(--mud-palette-white);
    }

    .AboutAppHeader .mud-typography-h3 {
        font-size: 2.7rem;
    }

    .AboutAppHeader .h3-backdrop {
        padding: 3rem 10rem;
    }

.aboutapp-container {
    width: 90%;
    margin: 0 auto;
}

.aboutus-container, .impressum-container {
    width: 80%;
    margin: 0 auto;
}
    .aboutus-container .h3-backdrop, .AboutAppHeader .h3-backdrop {
        width: 100%;
    }

    .impressum-container .h3-backdrop {
        width: 50%;
    }

.AboutAppImages {
    width: 80%;
}

.app-content .aboutapp-container .scrollable-img {
    overflow: auto;
    max-width: 100%;
    max-height: 30vh !important;
}

.red-emphasize {
    color: var(--mud-palette-error);
    display: inline;
}

.downloadbereich .text-minor {
    margin: 0 !important;
}

.downloadbereich {
    display: flex;
    flex-direction: column;
    align-items: start;
    margin-top: 2rem;
    gap: .5rem;
}
    .downloadbereich div {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: .5rem;
    }
        .downloadbereich div mud-button-root {
            margin-right: 2rem;
        }
/*─────────────────────────────────────────────────────────────
    Formatierung der Assessments erklärt Page (Intro)
─────────────────────────────────────────────────────────────*/
.app-content.Intro .howto-title {
    background-color: var(--mud-palette-primary);
    border-radius: 10px;
    color: white;
    width: 100%;
    margin: 0 auto;
    padding: 10px;
    text-align: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.app-content.Intro .Container {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.app-content.Intro .device-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.app-content.Intro .device-item {
    width: 25rem;
    height: 25rem;
    margin: 1rem;
    padding: 2.5rem 2.5rem 0 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgb(237,241,197);
    border-radius: 5%;
    cursor: pointer;
}

    .app-content.Intro .device-item:hover {
        border-radius: 50%;
    }

.app-content.Intro .image-container {
    width: 100%;
    align-items: stretch;
    justify-content: center;
}

.app-content.Intro .device-image {
    width: 20rem;
    border-radius: 5%;
}

    .app-content.Intro .device-image:hover {
        transform: scale(1.3);
    }

.app-content.Intro .device-text {
    text-align: center;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--mud-palette-primary);
}

.tooltipintro {
    font-size: 1rem;
    width: 30rem;
}

/* ─────────────────────────────────────────────────────────────
    Formatierung ManagePatientDialog
   ───────────────────────────────────────────────────────────── */
.ManagePatientDialog {
    padding: 1.5rem;
    background: var(--mud-palette-white);
    border-radius: .7rem;
    min-height: 30rem;
    width: clamp(var(--mp-min), 90vw, var(--mp-max));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.ManagePatientHeadSection {
    flex-direction: row;
}

.managePatients-patientInfo, .managePatients-buttons {
    flex-direction: column;
    display: inline-block;
}

    .managePatients-patientInfo, .managePatients-buttons .mud-button-root {
        margin-right: 2rem;
    }

.ManagePatientDialog .mud-dialog-content {
    padding: .5rem;
    width: 100%;
    box-sizing: border-box;
}

.mud-dialog-width-md {
    max-width: 85rem;
}

.ManagePatientDialog .treatment-active .mud-expand-panel-header,
.ManagePatientDialog .treatment-inactive .mud-expand-panel-header {
    background: var(--mud-palette-primary);
    color: var(--mud-palette-white);
    border-radius: .3rem;
    padding: .65rem .75rem;
    align-items: center;
}

.ManagePatientDialog .treatment-inactive .mud-expand-panel-header {
    opacity: .45;
    filter: saturate(.7) brightness(.95);
}

.ManagePatientDialog .mud-expand-panel-content {
    background: var(--mud-palette-white);
    padding-top: .5rem;
}

.ManagePatientDialog .mud-table {
    table-layout: fixed;
    word-wrap: break-word;
}

    .ManagePatientDialog .mud-table td {
        white-space: normal;
        word-break: break-word;
    }

.ManagePatientDialog .treatment-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    padding: .75rem 0 .25rem;
}

    .ManagePatientDialog .treatment-actions .mud-button-root {
        min-width: 150px;
        height: 40px;
        text-transform: none;
    }

.ManagePatientContentSection {
    width: 100%;
    margin: 1rem auto;
}

.ManagePatientDialog .ManagePatientHeadSection .managePatients-patientInfo .mud-typography-caption {
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 .15rem 0;
    display: block;
}

/* ─────────────────────────────────────────────────────────────
        Formatierung Feedback
   ───────────────────────────────────────────────────────────── */
.feedback-container {
    width: 50%;
    padding: 1rem;
    margin: 0 auto;
}

    .feedback-container .h3-backdrop {
        width: 50%;
    }

/* ─────────────────────────────────────────────────────────────
    Visueller Status ExportHeader-Formatierung
   ───────────────────────────────────────────────────────────── */
.export-only {
    display: none;
}

.export-header {
    background: var(--mud-palette-secondary);
    border-bottom: 1px solid #c4c4c4;
}

    .export-header #export-title-text {
        font-size: 1.7rem;
        color: #303030;
        padding: 1rem 2rem;
    }

.exporting .export-only {
    display: block;
}

.exporting .no-print {
    display: none;
}

#export-capture {
    background: var(--mud-palette-white);
}
/*─────────────────────────────────────────────────────────────
    Abos & Preise (Pricing)
─────────────────────────────────────────────────────────────*/
.pricing-section {
    margin: 0 auto;
    width: 90%;
}

.pricing-head .pricing-sub {
    opacity: .85;
    margin-top: .25rem;
}

.pricing-card {
    border-radius: 1.2rem;
    padding: 1.2rem 1.2rem 1.4rem;
    color: var(--mud-palette-white);
    display: flex;
    flex-direction: column;
    gap: .8rem;
    position: relative;
    overflow: hidden;
    min-height: 26rem;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

    .pricing-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 36px rgba(0,0,0,.18);
        filter: saturate(1.02);
    }

    .pricing-card .popular {
        position: absolute;
        top: .8rem;
        right: .8rem;
        border-radius: 999px;
        font-weight: 600;
    }

.card-top {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .2rem;
}

.card-icon {
    font-size: 2rem;
    opacity: .95;
}

/* Feature list */
.feature-list {
    list-style: none;
    margin: .2rem 0 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

    .feature-list li {
        display: flex;
        align-items: center;
        gap: .5rem;
        font-size: 1rem;
    }

        .feature-list li.off {
            opacity: .65;
            text-decoration: line-through;
        }

    .feature-list .mud-icon-root {
        font-size: 1.2rem;
    }

/* Price + CTA */
.price {
    margin-top: auto;
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: .5px;
}

    .price.poa {
        font-size: 1.6rem;
    }

.cta {
    margin-top: .4rem;
    width: 100%;
    font-weight: 600;
    text-transform: none; /* respect your global rule */
}

/* Color themes (aligned to your mock) */
.pricing-card.basic {
    background: #9DB43A;
}

.pricing-card.standard {
    background: #FFA726;
}

.pricing-card.premium {
    background: #EF5350;
}

.pricing-card.enterprise {
    background: #B9C4A9;
}

/* Footnote */
.pricing-foot {
    margin-top: 1rem;
    opacity: .85;
}

/* ─────────────────────────────────────────────────────────────
            Messungsvergleich Dialog
   ───────────────────────────────────────────────────────────── */
.cmp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .75rem;
    gap: .75rem;
}

.cmp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    height: 75vh;
}

.cmp-col {
    background: var(--mud-palette-background, #fff);
    padding: .75rem;
    overflow: auto;
    box-shadow: var(--mud-elevation-2);
    min-width: 0;
}

.cmp-panel-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .25rem .75rem;
    align-items: baseline;
    margin-bottom: .5rem;
}
    .cmp-panel-header .cmp-patient {
        font-weight: 600;
    }

    .cmp-panel-header .cmp-datetime {
        opacity: .8;
        font-size: .875rem;
    }

    .cmp-panel-header .cmp-diagnosis {
        grid-column: 1 / -1;
        opacity: .9;
    }

.cmp-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    border: 2px dashed #ccc;
}

.sum-wrapper {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.sum-section {
    background: rgba(0,0,0,.02);
    padding: .5rem .6rem;
    border-radius: .6rem;
}

.sum-table {
    width: 100%;
    border-collapse: collapse;
}
    .sum-table th, .sum-table td {
        border-bottom: 1px solid rgba(0,0,0,.08);
        padding: .25rem .35rem;
        text-align: left;
        vertical-align: top;
    }

/* ─────────────────────────────────────────────────────────────
            Account Dropdown
   ───────────────────────────────────────────────────────────── */

    .action .menu {
        position: absolute;
        top: 120px;
        right: .5rem;
        padding: 10px 20px;
        background: var(--mud-palette-secondary);
        border: var(--mud-palette-primary) solid .1rem;
        min-width: 18rem;
        width: fit-content;
        max-width: 40rem;
        border-radius: 15px;
        transition: 0.5s;
        visibility: hidden;
        opacity: 0;
        color: black;
        text-align:center;
    }

    .action .menu .mud-button-root {
        width:100%;
        justify-content:space-between;
    }

        .action .menu.active {
            top: 4.5rem;
            visibility: visible;
            opacity: 1;
        }

        .action .menu ul li {
            list-style: none;
            padding: 16px 0;
            border-top: 1px solid rgba(0, 0, 0, 0.05);
            display: flex;
            align-items: center;
        }

         .action .menu ul li .mud-button-root:hover {
             background-color: var(--secondary-green-pale);
         }

/* ─────────────────────────────────────────────────────────────
            Responsives Design
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .popup-editable, .AboutAppImages, .measurements-container, .feedback-container, .h3-backdrop, .aboutus-container, .impressum-container, .app-content.Intro .Container, .pricing-section {
        width: 100% !important;
        margin: 0;
    }

    .report-hint {
        width: 100% !important;
    }

    .login-container {
        width: 60%;
    }

    .carousel-slide .mud-typography-h2 {
        font-size: 2rem;
    }

    .carousel {
        height: 17rem;
    }

    .carousel-img {
        height: 80%;
    }

    .pricing-card {
        min-height: 24rem;
    }

    .price {
        font-size: 2.2rem;
    }

    .lower-stepper-actions {
        margin-left: 60%;
    }
}

@media (max-width: 700px) {

    .login-container {
        width: 100% !important;
        margin: 0;
    }

    .carousel-slide .mud-typography-h2 {
        font-size: 1.5rem;
    }

    .carousel-slide .mud-typography-h4 {
        font-size: 0.7rem;
    }

    .carousel-img {
        height: 50%;
    }

    .carousel {
        height: 15rem;
    }

    .pricing-card {
        min-height: 22rem;
    }

    .price {
        font-size: 1.9rem;
    }
}