/* Grid- und Flex-Layout-Sammlungsdatei */

/* Aus GridLanding.razor.css */
.landing-page-grid {
    display: grid;
    grid-template-rows: minmax(90vh, max-content) repeat(5, auto);
    width: 100%;
    max-width: 100%;
}

    .landing-page-grid,
    .landing-page-grid * {
        box-sizing: border-box;
    }

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
}

.hero-section,
.feature-section {
    width: 100%;
    padding: clamp(4rem, 8vw, 8rem) 0;
    display: flex;
    align-items: center;
}

.header-row {
    align-items: center !important;
    display: flex !important;
}

.ah-row {
    box-sizing: border-box;
    flex-wrap: wrap;
    gap: 5rem;
    row-gap: 5rem;
}

.hero-section {
    background: linear-gradient(135deg, #512bd4 0%, #240b81 100%);
    color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.grid-3-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    min-width: 0;
}

.grid-2-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-width: 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    min-width: 0;
}

.bento-item {
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.item-wide {
    grid-column: span 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
    min-width: 0;
}

.feature-text,
.kCard,
.stat-box {
    min-width: 0;
}

.bg-light {
    background-color: #f8fafc;
}

.bg-dark {
    background-color: #0f172a;
    color: white;
}

.card {
    background: #ffe09d1a;
    padding: 24px;
    border-radius: 16px;
}

.feature-image-placeholder {
    background: #e2e8f0;
    height: 350px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mock {
    background: #ffe09d1a;
    color: #38bdf8;
    font-family: monospace;
}

@media (max-width: 992px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .grid-3-columns {
        grid-template-columns: 1fr;
    }

    .grid-2-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .invert-mobile {
        direction: rtl;
    }

        .invert-mobile > * {
            direction: ltr;
        }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .item-wide {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .landing-page-grid {
        overflow-x: hidden;
    }

    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .landing-page-grid h1,
    .landing-page-grid h2,
    .landing-page-grid h3,
    .landing-page-grid p,
    .landing-page-grid span {
        overflow-wrap: anywhere;
    }
}

/* Aus app_structure.css, mkcd-base.css und layouting.css: Grid-/Flex-Layout-Klassen */
.kc,
.fl,
.juco,
.juse,
.juit,
.alse,
.alco,
.alit {
}

    .kc.flex {
    }

    .kc.fl,
    .flitem {
        display: flex;
    }

    .kc.flrow,
    .flrow {
        display: flex;
        flex-direction: row;
    }

        .kc.fl.wrap,
        .flrow.wrap {
            flex-wrap: wrap;
        }

    .kc.flcol,
    .flcol {
        display: flex;
        flex-direction: column;
    }

    .kc.fl1 {
        flex: 1;
    }

    .kc.juse.center {
        justify-self: center;
    }

    .kc.juse.end {
        justify-self: end;
    }

    .kc.juco.space-be {
        justify-content: space-between;
    }

    .kc.juco.center {
        justify-content: center;
    }

    .kc.juco.space-ev {
        justify-content: space-evenly;
    }

    .kc.juco.end {
        justify-content: end;
    }

    .kc.juit.center {
        justify-items: center;
    }

    .kc.juit.start {
        justify-items: start;
    }

    .kc.juit.end {
        justify-items: end;
    }

    .kc.alse.center {
        align-self: center;
    }

    .kc.alco.center {
        align-content: center;
    }

    .kc.alit.center {
        align-items: center;
    }

.flrow.gap {
    gap: 16px !important;
}

    .flrow.gap.x2 {
        gap: 32px !important;
    }

.flrow.wrap.gap16 {
    gap: 16px;
}

.flrow.gap-1 {
    gap: 1rem;
}

.flrow.gap-1c25 {
    gap: 1.25rem;
}

.flrow.gap-1c5 {
    gap: 1.5rem;
}

.flrow.start {
    justify-content: start;
    justify-items: start;
    align-content: start;
    align-items: start;
}

.mkc-base-grid {
    height: 100vh;
    box-sizing: border-box;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
        "app-header app-header app-header"
        "app-body app-body app-body";
}

.kGrid .sidebar {
    height: 100vh;
    box-sizing: border-box;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
        "app-header app-header app-header"
        "app-sidebar app-body app-body";
}

.header-row {
    align-items: center !important;
    display: flex !important;
}

.ah-row {
    box-sizing: border-box;
    flex-wrap: wrap;
    gap: 5rem;
    row-gap: 5rem;
}

.app-body {
    grid-area: app-body;
    overflow: hidden;
    overflow-y: scroll;
}


.app-header {
    width: 100%;
    max-height: none;
    padding: 0.5rem 1rem;
    grid-area: app-header;
    position: fixed;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
}

.app-sidebar {
    width: 350px;
    grid-area: app-sidebar;
    position: static;
    display: flex;
    flex-direction: column;
}

    .app-sidebar > .content-central {
        margin-top: auto;
        margin-bottom: auto;
    }

.main-flcol {
    gap: 120px;
}



/* Aus mkd_layout.css: fehlende Utility- und Layout-Klassen */
.ws-page-layout {
    height: 100vh;
    box-sizing: border-box;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
        "ws-header ws-header ws-header"
        "ws-body ws-body ws-body";
    background-color: #b0d9ce;
}

.ws-header {
    position: fixed;
    width: 99%;
    box-shadow: 2px;
    grid-area: ws-header;
    z-index: 100;
    max-height: 3rem;
    border-bottom: thin;
    backdrop-filter: blur(15px);
    background-color: #1a26232e;
}

.ws-header-row {
    align-items: center !important;
    justify-content: space-between !important;
    display: flex !important;
}

.ws-row {
    box-sizing: border-box;
    flex-wrap: wrap;
    gap: 5rem;
    row-gap: 5rem;
}

.ws-body {
    grid-area: ws-body;
    overflow: auto;
    scrollbar-width: thin;
}

.ws-sidebar {
    width: 150px;
    grid-area: ws-sidebar;
    position: static;
    display: flex;
    flex-direction: column;
    color: #1b1d20;
    background-color: #f3f6f9;
}

.mkd-h-itm {
    font-size: 20px;
    padding: .5rem;
}

.section-border {
    border-top: 2px solid green !important;
}

.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0,0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

dialog::backdrop {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0,0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.on-closing {
    display: block !important;
    animation: slide-further 1s ease normal !important;
}

dialog {
    width: 80%;
    max-height: 80%;
    margin: auto;
    background-color: #1463bf52;
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 1rem;
}

    dialog.on-closing::backdrop {
        opacity: 0;
        transition: all ease revert 3s;
    }

    dialog[open] {
        animation: slide-down 1s ease normal;
    }

.dialog .dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    color: white;
}

.dialog .dialog-body {
    padding: 0.5rem;
}

.dialog .dialog-footer {
    padding: 0.5rem;
}

.dialog-body table {
    color: white;
}

    .dialog-body table thead tr {
        background-color: #498e49cf;
    }

.close {
    height: 40px;
    width: 40px;
    background-color: transparent;
    transition: 0.25s ease;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
}

    .close:hover {
        background-color: #DDD;
    }

.start-fader {
    animation-name: start-fade-in-anim;
    animation-duration: 2s;
    animation-timing-function: ease;
}

.app-fadein {
    animation-name: fade-in;
    animation-duration: 1s;
    animation-timeline: view();
    animation-timing-function: ease;
}

.slide-in-anim-right {
    position: relative;
    left: 0px;
    animation-name: slide-in-right;
    animation-duration: 1s;
    animation-timing-function: ease-in;
}

.color-bg {
    background-color: #2aead7;
    background-image: linear-gradient(45deg, #2aead7 0%, #2AF598 24%, #0fd0de 49%, #8bf0d2 75%, #0deab9 100%);
}

.slide-in-anim-left {
    position: relative;
    left: 0px;
    animation-name: slide-in-left;
    animation-duration: 1s;
    animation-timing-function: ease-in;
}

.w-100 {
    width: 100%;
}

@keyframes fade-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes start-fade-in-anim {
    from {
        opacity: 0.2;
    }

    to {
        opacity: 1;
    }
}

@keyframes start-fade-out-anim {
    from {
        opacity: 0.2;
    }

    to {
        opacity: 0;
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 0;
    }

    20% {
        opacity: 0.5;
    }

    30% {
        opacity: 1;
    }
}

@keyframes slide-further {
    from {
        top: 0px;
    }

    to {
        bottom: -2500px;
    }
}

@keyframes slide-down {
    from {
        top: calc(100vh * -1);
    }

    to {
        top: 0px;
    }
}

@keyframes slide-in-right {
    from {
        top: 20px;
        left: -100px;
    }

    to {
        left: 0px;
        top: 0px;
    }
}

@keyframes slide-in-left {
    from {
        top: 20px;
        right: -100px;
    }

    to {
        right: 0px;
        top: 0px;
    }
}

@media (max-width: 800px) {
    .main-flcol {
        gap: 60px !important;
    }
}

.mkc-layout {
    height: 100vh;
    box-sizing: border-box;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
        "app-header app-header app-header"
        "app-body app-body app-body";
    background-image: linear-gradient(125deg, rgb(253 255 7 / 68%) 0%, #000000cf 20%, #080805e6 60%, #242518 80%, #e4e41494 100%);
    background-color: initial;
}

.main-flcol {
    gap: 120px;
}

@media (max-width: 800px) {
    .main-flcol {
        gap: 60px !important;
    }
}






/*REGION PADDING & MARGIN*/

/* --- Padding (all sides) --- */
.kP-1 {
    padding: 8px;
}

.kP-2 {
    padding: 16px;
}

.kP-3 {
    padding: 24px;
}

.kP-4 {
    padding: 32px;
}

.kP-5 {
    padding: 40px;
}

/* --- Padding Top --- */
.kPt-1 {
    padding-top: 8px;
}

.kPt-2 {
    padding-top: 16px;
}

.kPt-3 {
    padding-top: 24px;
}

.kPt-4 {
    padding-top: 32px;
}

.kPt-5 {
    padding-top: 40px;
}

/* --- Padding Right --- */
.kPr-1 {
    padding-right: 8px;
}

.kPr-2 {
    padding-right: 16px;
}

.kPr-3 {
    padding-right: 24px;
}

.kPr-4 {
    padding-right: 32px;
}

.kPr-5 {
    padding-right: 40px;
}

/* --- Padding Bottom --- */
.kPb-1 {
    padding-bottom: 8px;
}

.kPb-2 {
    padding-bottom: 16px;
}

.kPb-3 {
    padding-bottom: 24px;
}

.kPb-4 {
    padding-bottom: 32px;
}

.kPb-5 {
    padding-bottom: 40px;
}

/* --- Padding Left --- */
.kPl-1 {
    padding-left: 8px;
}

.kPl-2 {
    padding-left: 16px;
}

.kPl-3 {
    padding-left: 24px;
}

.kPl-4 {
    padding-left: 32px;
}

.kPl-5 {
    padding-left: 40px;
}

/* --- Margin (all sides) --- */
.kM-1 {
    margin: 8px;
}

.kM-2 {
    margin: 16px;
}

.kM-3 {
    margin: 24px;
}

.kM-4 {
    margin: 32px;
}

.kM-5 {
    margin: 40px;
}

/* --- Margin Top --- */
.kMt-1 {
    margin-top: 8px;
}

.kMt-2 {
    margin-top: 16px;
}

.kMt-3 {
    margin-top: 24px;
}

.kMt-4 {
    margin-top: 32px;
}

.kMt-5 {
    margin-top: 40px;
}

/* --- Margin Right --- */
.kMr-1 {
    margin-right: 8px;
}

.kMr-2 {
    margin-right: 16px;
}

.kMr-3 {
    margin-right: 24px;
}

.kMr-4 {
    margin-right: 32px;
}

.kMr-5 {
    margin-right: 40px;
}

/* --- Margin Bottom --- */
.kMb-1 {
    margin-bottom: 8px;
}

.kMb-2 {
    margin-bottom: 16px;
}

.kMb-3 {
    margin-bottom: 24px;
}

.kMb-4 {
    margin-bottom: 32px;
}

.kMb-5 {
    margin-bottom: 40px;
}

/* --- Margin Left --- */
.kMl-1 {
    margin-left: 8px;
}

.kMl-2 {
    margin-left: 16px;
}

.kMl-3 {
    margin-left: 24px;
}

.kMl-4 {
    margin-left: 32px;
}

.kMl-5 {
    margin-left: 40px;
}

/* --- Margin Left + Right Auto --- */
.kMrl-auto {
    margin-left: auto;
    margin-right: auto;
}
