:root {
    --az-primary: #007AFF;
    --az-primary-dark: #005fcc;
    --az-accent: #5856D6;

    --az-bg: #f2f2f7;
    --az-card: #ffffff;
    --az-card-soft: #eaf4ff;

    --az-text: #1c1c1e;
    --az-muted: #6e6e73;

    --az-success: #34c759;
    --az-warning: #ff9500;
    --az-danger: #ff3b30;

    --az-border: #d1d1d6;

    --az-radius-sm: 10px;
    --az-radius-md: 14px;
    --az-radius-lg: 20px;

    --az-header-height: 64px;
    --az-tabbar-height: 82px;

    --az-safe-top: env(safe-area-inset-top);
    --az-safe-bottom: env(safe-area-inset-bottom);

    --az-content-width: 1180px;
    --az-card-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    min-height: 100%;
    background: var(--az-bg);
}

body {
    margin: 0;
    min-height: 100%;
    background: var(--az-bg);
    color: var(--az-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* Shell */

.arztiva-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* <kopf> */

.arztiva-kopf {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 2000;
    height: calc(var(--az-header-height) + var(--az-safe-top));
    padding-top: var(--az-safe-top);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(209, 209, 214, 0.8);
}

.arztiva-kopf-inner {
    height: var(--az-header-height);
    max-width: var(--az-content-width);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.arztiva-logo {
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    line-height: 1.05;
}

.arztiva-logo span {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--az-text);
}

.arztiva-logo strong {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--az-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.arztiva-kopf-status {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--az-success);
    background: #e8f8ee;
    border-radius: 999px;
    padding: 6px 10px;
}

/* <textbereich> */

.arztiva-textbereich {
    width: 100%;
    max-width: var(--az-content-width);
    margin: 0 auto;
    padding: calc(var(--az-header-height) + var(--az-safe-top) + 22px) 16px 8px;
}

.arztiva-textbereich-clean {
    padding: 0;
}

.arztiva-eyebrow {
    display: inline-block;
    margin-bottom: 3px;
    color: var(--az-primary);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.arztiva-textbereich h1 {
    margin: 0;
    font-size: clamp(1.45rem, 4vw, 2.25rem);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

/* <mittelteil> */

.arztiva-mittelteil {
    width: 100%;
    max-width: var(--az-content-width);
    margin: 0 auto;
    padding: 12px 16px calc(var(--az-tabbar-height) + var(--az-safe-bottom) + 32px);
    flex: 1;
}

.arztiva-mittelteil-clean {
    max-width: none;
    min-height: 100vh;
    padding: 0;
}

/* <fuss> */

.arztiva-fuss {
    display: none;
}

/* <menü> */

.arztiva-menue {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 2100;
    min-height: calc(var(--az-tabbar-height) + var(--az-safe-bottom));
    padding: 8px 8px var(--az-safe-bottom);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(209, 209, 214, 0.8);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.arztiva-menue-item {
    min-width: 0;
    text-decoration: none;
    color: var(--az-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 14px;
    padding: 8px 4px;
    font-size: 0.68rem;
    font-weight: 700;
}

.arztiva-menue-item i {
    font-size: 1.3rem;
}

.arztiva-menue-item.active {
    color: var(--az-primary);
    background: var(--az-card-soft);
}

/* Allgemeine Komponenten */

.az-card {
    background: var(--az-card);
    border-radius: var(--az-radius-lg);
    box-shadow: var(--az-card-shadow);
    padding: 20px;
}

.az-card + .az-card {
    margin-top: 16px;
}

.az-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.az-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.az-action-card {
    min-height: 118px;
    padding: 18px 12px;
    border-radius: var(--az-radius-lg);
    background: var(--az-card-soft);
    color: var(--az-text);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.az-action-card:active {
    transform: scale(0.97);
}

.az-action-card i {
    font-size: 1.9rem;
    color: var(--az-primary);
}

.az-action-card span {
    font-size: 0.86rem;
    font-weight: 800;
}

.az-muted {
    color: var(--az-muted);
}

.az-form {
    width: 100%;
}

.az-form-group {
    margin-bottom: 16px;
}

.az-form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.86rem;
    font-weight: 800;
}

.az-input,
.az-select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--az-border);
    border-radius: 12px;
    background: #fff;
    color: var(--az-text);
    padding: 12px 14px;
    outline: none;
}

.az-input:focus,
.az-select:focus {
    border-color: var(--az-primary);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12);
}

.az-password-wrap {
    position: relative;
}

.az-password-wrap .az-input {
    padding-right: 46px;
}

.az-password-toggle {
    position: absolute;
    top: 0;
    right: 8px;
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--az-muted);
    cursor: pointer;
    padding: 0 8px;
}

.az-btn {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 14px;
    padding: 13px 16px;
    cursor: pointer;
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.az-btn-primary {
    background: var(--az-primary);
    color: #fff;
}

.az-btn-primary:active {
    background: var(--az-primary-dark);
}

.az-btn-secondary {
    background: #fff;
    color: var(--az-text);
    border: 1px solid var(--az-border);
}

.az-auth-page {
    min-height: 100vh;
    padding: calc(24px + var(--az-safe-top)) 16px calc(24px + var(--az-safe-bottom));
    display: flex;
    align-items: center;
    justify-content: center;
}

.az-auth-box {
    width: 100%;
    max-width: 430px;
}

.az-auth-logo {
    text-align: center;
    margin-bottom: 24px;
}

.az-auth-logo h1 {
    margin: 0;
    font-size: 2.2rem;
    letter-spacing: -0.06em;
}

.az-auth-logo h1 span {
    color: var(--az-primary);
}

.az-auth-logo p {
    margin: 8px 0 0;
    color: var(--az-muted);
}

.az-auth-links {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 0.88rem;
}

.az-auth-links a {
    color: var(--az-primary);
    font-weight: 800;
    text-decoration: none;
}

.az-badge-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.az-badge {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.74rem;
    font-weight: 800;
    background: var(--az-card-soft);
    color: var(--az-primary);
}

/* Startseite */

.az-landing {
    min-height: 100vh;
    padding: calc(36px + var(--az-safe-top)) 16px calc(36px + var(--az-safe-bottom));
    display: flex;
    align-items: center;
}

.az-landing-inner {
    width: 100%;
    max-width: var(--az-content-width);
    margin: 0 auto;
    display: grid;
    gap: 24px;
}

.az-landing h1 {
    margin: 0;
    font-size: clamp(2.2rem, 8vw, 4.5rem);
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.az-landing h1 span {
    color: var(--az-primary);
}

.az-landing p {
    margin: 18px 0 0;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--az-muted);
    max-width: 680px;
}

.az-landing-actions {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.az-role-switch {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Responsive */

@media (min-width: 640px) {
    .az-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .az-landing-actions {
        grid-template-columns: repeat(2, minmax(0, 220px));
    }

    .az-role-switch {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 860px) {
    .arztiva-menue {
        left: 50%;
        right: auto;
        bottom: 18px;
        width: min(620px, calc(100% - 32px));
        transform: translateX(-50%);
        border: 1px solid rgba(209, 209, 214, 0.8);
        border-radius: 24px;
        box-shadow: var(--az-card-shadow);
        min-height: 74px;
        padding: 8px;
    }

    .arztiva-mittelteil {
        padding-bottom: 128px;
    }

    .az-quick-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .az-landing-inner {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: center;
    }
}

@media (min-width: 1100px) {
    .arztiva-fuss {
        width: 100%;
        max-width: var(--az-content-width);
        margin: 0 auto;
        padding: 0 16px 128px;
        display: flex;
        gap: 18px;
        color: var(--az-muted);
        font-size: 0.82rem;
    }

    .arztiva-fuss a {
        color: var(--az-muted);
        text-decoration: none;
    }
}

@media (max-width: 360px) {
    .arztiva-menue-item span {
        font-size: 0.6rem;
    }

    .arztiva-menue-item i {
        font-size: 1.15rem;
    }

    .az-card {
        padding: 16px;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --az-bg: #000000;
        --az-card: #1c1c1e;
        --az-card-soft: #101c2d;
        --az-text: #f5f5f7;
        --az-muted: #a1a1aa;
        --az-border: #2c2c2e;
        --az-card-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    }

    .arztiva-kopf,
    .arztiva-menue {
        background: rgba(28, 28, 30, 0.88);
        border-color: rgba(58, 58, 60, 0.85);
    }

    .arztiva-kopf-status {
        background: rgba(52, 199, 89, 0.15);
    }

    .az-input,
    .az-select,
    .az-btn-secondary {
        background: #1c1c1e;
        color: var(--az-text);
        border-color: var(--az-border);
    }
}



/* ==========================================================
   Arztiva CI Feinjustierung
   Weiß/Blau bleibt, Schrift weniger gequetscht/fett
   ========================================================== */

:root {
    --az-primary: #0A84FF;
    --az-primary-dark: #0066CC;
    --az-primary-soft: #0A84FF22;

    --az-font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --az-font-weight-normal: 400;
    --az-font-weight-medium: 500;
    --az-font-weight-semibold: 600;
    --az-font-weight-bold: 700;
}

/* Grundschrift etwas entspannter */
body {
    font-family: var(--az-font-main);
    font-weight: var(--az-font-weight-normal);
    letter-spacing: 0;
}

/* Landing Headline */
.az-landing h1 {
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.02;
}

/* Weißer Teil: "Arztiva verbindet" */
.az-landing h1 {
    color: var(--az-text);
}

/* Blauer Teil: "Praxis und Patient" */
.az-landing h1 span {
    color: var(--az-primary);
    font-weight: 700;
}

/* Beschreibung unter der Headline */
.az-landing p {
    font-weight: 400;
    letter-spacing: 0.005em;
    line-height: 1.55;
}

/* Badges oben: PWA / Termine / Anfragen */
.az-badge-row {
    gap: 10px;
}

.az-badge {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 6px 11px;
    background: rgba(10, 132, 255, 0.14);
    color: var(--az-primary);
}

/* Hauptbuttons */
.az-btn {
    font-weight: 600;
    letter-spacing: 0.005em;
    font-size: 0.96rem;
    min-height: 52px;
    border-radius: 14px;
}

/* Button Icons etwas ruhiger */
.az-btn i {
    font-size: 0.95rem;
}

/* Registrieren-Button nicht zu schwer wirken lassen */
.az-btn-secondary {
    font-weight: 600;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
}

/* Karten rechts */
.az-card h2,
.az-card h3 {
    font-weight: 700;
    letter-spacing: -0.025em;
}

.az-card p {
    font-weight: 400;
    line-height: 1.55;
}

/* Bereich wählen: Patient / Praxis */
.az-action-card {
    min-height: 120px;
    padding: 20px 14px;
    font-weight: 500;
}

/* Text in den kleinen Kacheln weniger fett */
.az-action-card span {
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0;
}

/* Icons in Kacheln nicht zu massiv */
.az-action-card i {
    font-size: 1.85rem;
    color: var(--az-primary);
}

/* Landing-Layout: etwas mehr Luft */
.az-landing-inner {
    gap: 42px;
}

/* Desktop etwas feiner skalieren */
@media (min-width: 860px) {
    .az-landing h1 {
        font-size: clamp(3rem, 5.5vw, 4.5rem);
    }

    .az-landing p {
        max-width: 760px;
        font-size: 1.12rem;
    }

    .az-landing-actions {
        gap: 14px;
    }
}

/* Kleine Displays: nicht quetschen */
@media (max-width: 480px) {
    .az-landing h1 {
        font-size: clamp(2.1rem, 11vw, 3rem);
        letter-spacing: -0.04em;
    }

    .az-btn {
        font-size: 0.92rem;
    }

    .az-badge {
        font-size: 0.68rem;
        padding: 5px 9px;
    }
}


img {
  vertical-align: middle;
  border-style: none;
}



.brand-image {
  height: calc(calc(20rem + 10px) * .6);
  width: calc(calc(40rem + 35px) * .6);
  margin-top: -.5rem;
  margin-right: .2rem;
  margin-left: .2rem;

}


.elevation-0 {
  box-shadow: none !important;
}

.elevation-1 {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24) !important;
}

.elevation-2 {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23) !important;
}

.elevation-3 {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23) !important;
}

.elevation-4 {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22) !important;
}

.elevation-5 {
  box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3), 0 15px 12px rgba(0, 0, 0, 0.22) !important;
}
