@import url('open.iconic/font/css/open-iconic-bootstrap.min.css');

:root {
  --app-bg: #ffffff;
  --app-fg: #111111;
  --app-accent: #1976d2;
  --app-accent-fg: #ffffff;
  --app-border: #d0d5db;
  --app-muted: #666666;
  --app-radius: 14px;
  --app-shadow: 0 4px 12px -2px rgba(0,0,0,0.08);
}
#install-banner { position:fixed; left:0; right:0; bottom:0; z-index:1500; padding:0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
#install-banner .install-banner-inner { margin:0 auto 0.5rem; max-width:640px; display:flex; gap:.75rem; align-items:center; background:rgba(255,255,255,.92); backdrop-filter:blur(14px); border:1px solid var(--app-border); padding:.75rem 1rem; border-radius: calc(var(--app-radius) + 4px); box-shadow:0 4px 24px -4px rgba(0,0,0,.25); }
#install-banner .install-text { flex:1; font-size:.95rem; line-height:1.2rem; }
#install-dismiss { font-weight:bold; width:2.5rem; }

.os-ios :root, .os-ios {
  --app-radius: 18px;
  --app-shadow: 0 6px 20px -4px rgba(0,0,0,0.15);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}
.os-android :root, .os-android {
  --app-radius: 12px;
  --app-shadow: 0 8px 24px -6px rgba(0,0,0,0.18);
  font-family: Roboto, "Noto Sans", "Segoe UI", Arial, sans-serif;
}
.display-standalone body {
  background: var(--app-bg);
}
.app-fab-bar-safe { padding-bottom: calc(0.75rem + env(safe-area-inset-bottom)); }
.app-btn { font: inherit; padding: .7rem 1.05rem; border-radius: var(--app-radius); border: 1px solid var(--app-border); background: #f4f4f6; color: var(--app-fg); cursor: pointer; min-width: 110px; box-shadow: var(--app-shadow); transition: background .15s, transform .15s; }
.app-btn.primary { background: var(--app-accent); color: var(--app-accent-fg); border: none; }
.app-btn.tonal { background: linear-gradient(#ececec,#e2e2e2); }
.app-btn.outlined { background: transparent; }
.app-btn:active { transform: scale(.97); }

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html, body {
    height: 100%;
    overflow-y: auto; /* Scroll wieder global erlauben */
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    color-scheme: light; /* Erzwingt helle Form Controls / Scrollbars */
}

@media (prefers-color-scheme: dark) {
    html, body { color-scheme: light; }
}

/* Fallback Layout Klasse ohne Chrome */
.nochrome-page { display:flex; flex-direction:column; min-height:100vh; }

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.button-link {
    text-decoration: unset;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    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;
    }


.title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.625rem;
}

    .title.title-secondary {
        padding-top: 0.313rem;
        padding-bottom: 0;
        color: var(--bs-secondary-color);
    }

.title-header-text {
    font-size: 2.5rem;
    line-height: 3rem;
    font-weight: 600;
    letter-spacing: 0rem;
}

.title-content-text {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 2.5rem;
    letter-spacing: 0rem;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.block-content {
    width: 31.25rem;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    max-width: 100%;
}

.bg-image-blur {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.bg-image-blur::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('images/constraction.svg');
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

/* Ensure child content is above the background */
.bg-image-blur > * {
    position: relative;
    z-index: 1;
}

.onedrive-files-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
}

.onedrive-file-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

.onedrive-file-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

