﻿/* ─────────────────────────────────────────────────────────────
        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-info-rgb: 180, 191, 153 !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: 35%;
    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;
}

.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;
}

/* -- CompDialog -- */
.comparedialog-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-content: center;
    padding: 1rem;
}

.comparedialog-unit {
    width: 48%;
    margin-bottom: 2rem;
    border-bottom: .1rem var(--secondary-green-pale) solid;
}

/* -- Abo -- */
.dashboard-container {
    width: 90%;
    margin: 0 auto;
    text-align: center;
}

/* -- Dialog -- */
.dialog-titles {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--mud-palette-primary-darken);
    margin: .7rem 0 .3rem 0;
}

.terms-dialog {
    max-height: 90vh;
}

.terms-dialog-content {
    display: flex;
    flex-direction: column;
}



/* -- Table Row Hover -- */
.green-row-hover:hover {
    background-color: var(--secondary-green-pale) !important;
}

/* -- Dashboard Bestellhistorie -- */
.order-wrapper {
    margin: 2rem auto; 
}

.order-panel-header {
    justify-self: center;
}

.order-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    gap: 8px;
    width: 100%;
}

.order-table {
    margin-top: 1rem;
}

    .order-table .mud-table-head th {
        font-weight: 600;
    }

.status-chip {
    font-weight: 500;
    border-radius: 20px;
    padding-left: 10px;
    padding-right: 10px;
}

/*  -- ManageAccount Stylings --   */
.change-password {
    margin: 1rem auto; 
    width: 50%; 
}
    .change-password button {
        margin-top: 1rem; 
    }


/* -- Kooperationspartner -- */
.cooperation-banner {
    margin: 1rem auto;
    width: 80%;
    padding: 2rem 1rem;
    display:flex;
    flex-direction: row; 
    justify-content: space-around;
    align-items: center; 
    flex-wrap: wrap; 
}
    .cooperation-banner img {
        max-height: 5vh; 
    }


/* ─────────────────────────────────────────────────────────────
        Schriftenvereinheitlichung
   ───────────────────────────────────────────────────────────── */
.app-content h1,
.app-content .mud-typography-h1 {
    font-size: 4rem;
    color: var(--mud-palette-primary);
}

.app-content h2,
.app-content .mud-typography-h2 {
    font-size: 2.7rem;
    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;
}

.text-minor {
    font-size: 1rem;
}

.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;
}

/*--- Schriften Vereinheitlichung ---*/
.mud-main-content *, .mud-appbar *, .mud-dialog-content *, .mud-dialog * {
    font-family: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    text-transform: none;
}

/*--- Ü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-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);
}

.sticky-header-stepper > div:first-child {
    top: -16px; /*wirkt entgegen padding des app contents*/
    padding-top: 16px;
    position: sticky;
    background-color: white;
    z-index: 999;
}

/* ─────────────────────────────────────────────────────────────
        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;
    }
.welcome-title {
    margin: 0 auto; 
    max-width: 85%;
}

.landingpic {
    max-height: 300px;
    height: auto;
    width: auto;
}

.welcome-list {
    max-width:80%;
    columns: 2;
    list-style: none;
}
    .welcome-list li::marker {
        content: '✓';
        font-size: 2rem;
        font-weight: bold;
        color: var(--mud-palette-primary);
    }
    .welcome-list li {
        margin: 1rem;
    }

.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;
}

.new-customer-info {
    background-color: var(--mud-palette-secondary);
    margin: 1rem auto;
    width: 40%;
    padding: 2rem 1rem;
}

/*─────────────────────────────────────────────────────────────
    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, .measurements-container-uncentered {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
}
    .measurements-container .mud-input-root {
        text-align: center;
    }

.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%;
    }

.aboutus-images {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}
    .aboutus-images img {
        max-height: 20vh; 
    }


.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;
        }

.impressum-headers {
    margin-left: 2rem; 
}
.impressum-text, .impressum-container .indented-list li {
    margin: 1rem 0;
}
/*─────────────────────────────────────────────────────────────
    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 .5rem;
    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 .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;
    }

.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: 80%;
    }

/* ─────────────────────────────────────────────────────────────
    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: flex;
}

.exporting .no-print {
    display: none;
}

#export-capture {
    background: var(--mud-palette-white);
    padding: 0 !important;
}

/* ---- RESULT SUBHEADER Formattierung ---- */
.result-subheader {
    margin-left: 1.2rem; 
}


/*─────────────────────────────────────────────────────────────
    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;
    justify-content: space-between;
    gap: .8rem;
    position: relative;
    overflow: hidden;
    min-height: 15rem;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
    .pricing-card:hover {
        transform: translateY(-.2rem);
        box-shadow: 0 1rem 1.7rem 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;
    justify-content: center;
}

.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;
    align-items: center;
}
    .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-addendum {
    margin: -.7rem auto 0;
}

.cta {
    margin: .4rem auto 0;
    font-weight: 600;
}

/* 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;
}
    .pricing-card.enterprise .price-addendum {
        font-size: 1.3rem;
    }
    .pricing-card.enterprise 

/* 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: 7.5rem;
    right: .5rem;
    padding: .6rem 1.3rem;
    background: var(--mud-palette-secondary);
    border: var(--mud-palette-primary) solid .1rem;
    min-width: 18rem;
    width: fit-content;
    max-width: 26rem;
    border-radius: .7rem;
    transition: 0.5s;
    visibility: hidden;
    opacity: 0;
    color: black;
}

    .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: 1rem 0;
        border-top: .07rem solid var(--secondary-green-pale);
        display: flex;
        align-items: center;
    }

        .action .menu ul li .mud-button-root:hover {
            background-color: var(--secondary-green-pale);
        }

/* ─────────────────────────────────────────────────────────────
            Responsives Design
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1700px) {
    .measurements-container, .measurements-container-uncentered, .popup-editable {
        width: 70% !important;
    }

    .login-container {
        width: 50%; 
    }
}

@media (max-width: 1200px) {
    .popup-editable, .AboutAppImages, .measurements-container, .measurements-container-uncentered, .feedback-container, .h3-backdrop, .aboutus-container, .impressum-container, .app-content.Intro .Container, .pricing-section {
        width: 100% !important;
        margin: 0;
    }

    .report-hint, .comparedialog-unit, .dashboard-container, .new-customer-info {
        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%;
    }

    .welcome-list {
        columns: unset;
    }

    .terms-scroll {
        max-height: 50vh !important;
        overflow-y: auto;
    }
}

@media (max-width: 700px) {

    .login-container, .signup-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;
    }
}
