:root {
    --az-blue: #0a84ff;
    --az-blue-dark: #075fc7;
    --az-navy: #071d33;
    --az-ink: #102033;
    --az-muted: #607089;
    --az-line: #d8e6f5;
    --az-bg: #eef4fb;
    --az-card: #ffffff;
    --az-soft: #f6faff;
    --az-ok: #0f8f5f;
    --az-danger: #b42318;
    --az-radius-xl: 28px;
    --az-radius: 18px;
    --az-shadow: 0 22px 70px rgba(7, 29, 51, .14);
    color-scheme: light;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--az-bg); }
body.az-termin-body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--az-ink);
    background:
        radial-gradient(circle at top left, rgba(10, 132, 255, .16), transparent 34rem),
        linear-gradient(180deg, #f7fbff 0%, #eef4fb 52%, #eaf1f9 100%);
}
a { color: inherit; }
.az-termin-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: max(22px, env(safe-area-inset-top)) 0 max(34px, env(safe-area-inset-bottom));
}
.az-termin-hero {
    background: linear-gradient(135deg, #071d33 0%, #0b3154 58%, #0a84ff 130%);
    color: #fff;
    border-radius: var(--az-radius-xl);
    box-shadow: var(--az-shadow);
    overflow: hidden;
    position: relative;
}
.az-termin-hero::after {
    content: "";
    position: absolute;
    inset: auto -12% -35% auto;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: rgba(255,255,255,.10);
    pointer-events: none;
}
.az-termin-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 26px 0;
    position: relative;
    z-index: 1;
}
.az-termin-brand img {
    width: min(230px, 52vw);
    height: auto;
    display: block;
}
.az-termin-brand span {
    color: rgba(255,255,255,.76);
    font-size: 14px;
    line-height: 1.35;
}
.az-termin-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    padding: 46px 34px 34px;
    position: relative;
    z-index: 1;
}
.az-eyebrow {
    margin: 0 0 10px;
    color: #8fd0ff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .045em;
}
h1, h2 { margin: 0; letter-spacing: -.03em; }
h1 { max-width: 760px; font-size: clamp(34px, 6vw, 64px); line-height: .98; }
h2 { font-size: clamp(24px, 4vw, 38px); line-height: 1.05; color: #0f172a; }
.az-lead {
    max-width: 760px;
    margin: 20px 0 0;
    color: rgba(255,255,255,.84);
    font-size: clamp(16px, 2.2vw, 20px);
    line-height: 1.58;
}
.az-termin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}
.az-termin-meta span {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
    color: rgba(255,255,255,.82);
    font-size: 13px;
}
.az-termin-meta strong { color: #fff; }
.az-product-card {
    align-self: end;
    padding: 22px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 22px;
    backdrop-filter: blur(14px);
}
.az-product-card strong {
    display: block;
    font-size: 18px;
    margin-bottom: 10px;
}
.az-product-card p {
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 14px;
    line-height: 1.62;
}
.az-product-card a {
    display: inline-flex;
    margin-top: 18px;
    padding: 11px 14px;
    border-radius: 14px;
    background: #fff;
    color: var(--az-navy);
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
}
.az-termin-card {
    margin-top: 22px;
    background: var(--az-card);
    border: 1px solid var(--az-line);
    border-radius: var(--az-radius-xl);
    box-shadow: 0 14px 44px rgba(15, 23, 42, .08);
    padding: clamp(20px, 3vw, 34px);
}
.az-card-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}
.az-card-head p,
.az-state-card p {
    color: var(--az-muted);
    line-height: 1.58;
    margin: 10px 0 0;
}
.az-form {
    display: grid;
    gap: 16px;
}
.az-option,
.az-full-field {
    display: block;
    padding: 18px;
    border: 1px solid var(--az-line);
    border-radius: 22px;
    background: var(--az-soft);
}
.az-option.is-active {
    border-color: rgba(10,132,255,.55);
    box-shadow: 0 0 0 4px rgba(10,132,255,.10);
    background: #fff;
}
.az-switch-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px;
    align-items: center;
    gap: 18px;
    cursor: pointer;
}
.az-switch-row strong {
    display: block;
    color: #0f172a;
    font-size: 17px;
    line-height: 1.25;
}
.az-switch-row small {
    display: block;
    margin-top: 5px;
    color: var(--az-muted);
    font-size: 14px;
    line-height: 1.45;
}
.az-switch-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.az-switch-row i {
    width: 58px;
    height: 34px;
    border-radius: 999px;
    background: #cbd5e1;
    position: relative;
    transition: .18s ease;
}
.az-switch-row i::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15,23,42,.2);
    transition: .18s ease;
}
.az-switch-row input:checked + i {
    background: var(--az-blue);
}
.az-switch-row input:checked + i::after {
    transform: translateX(24px);
}
.az-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}
.az-full-field { color: #0f172a; font-weight: 800; }
.az-field-grid label,
.az-full-field {
    font-size: 13px;
    line-height: 1.35;
}
input[type="date"], input[type="time"], input[type="url"], input[type="tel"], textarea {
    width: 100%;
    margin-top: 7px;
    border: 1px solid #cbd9ea;
    border-radius: 15px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: 16px;
    padding: 13px 14px;
    outline: none;
}
textarea { resize: vertical; min-height: 96px; }
input:focus, textarea:focus {
    border-color: var(--az-blue);
    box-shadow: 0 0 0 4px rgba(10,132,255,.12);
}
.az-checkline {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 14px;
    color: #334155;
    line-height: 1.45;
    font-size: 14px;
}
.az-checkline input { margin-top: 3px; width: 18px; height: 18px; }
.az-message {
    display: none;
    border-radius: 16px;
    padding: 13px 15px;
    font-weight: 700;
    line-height: 1.45;
}
.az-message.is-error { display: block; background: #fff1f2; color: var(--az-danger); border: 1px solid #fecdd3; }
.az-message.is-success { display: block; background: #ecfdf5; color: #047857; border: 1px solid #bbf7d0; }
.az-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 2px;
}
.az-primary-btn {
    border: 0;
    border-radius: 17px;
    background: var(--az-blue);
    color: #fff;
    font-weight: 900;
    font-size: 16px;
    padding: 15px 20px;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(10,132,255,.28);
}
.az-primary-btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.az-actions p {
    margin: 0;
    color: var(--az-muted);
    font-size: 13px;
    line-height: 1.45;
}
.az-state-card {
    text-align: center;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.az-secondary-link {
    display: inline-flex;
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 15px;
    background: var(--az-navy);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
}
@media (max-width: 860px) {
    .az-termin-shell { width: min(100% - 22px, 680px); }
    .az-termin-brand { display: block; padding: 20px 20px 0; }
    .az-termin-brand span { display: block; margin-top: 8px; }
    .az-termin-hero-grid { grid-template-columns: 1fr; padding: 34px 20px 24px; }
    .az-product-card { align-self: stretch; }
    .az-field-grid { grid-template-columns: 1fr; }
    .az-actions { display: grid; }
    .az-primary-btn { width: 100%; }
}
@media (max-width: 480px) {
    .az-termin-shell { width: calc(100% - 14px); padding-top: 7px; }
    .az-termin-hero, .az-termin-card { border-radius: 22px; }
    .az-termin-meta { display: grid; }
    .az-termin-meta span { border-radius: 14px; }
    .az-option, .az-full-field { padding: 15px; border-radius: 18px; }
    .az-switch-row { grid-template-columns: minmax(0, 1fr) 54px; gap: 12px; }
    .az-switch-row i { width: 54px; }
    .az-switch-row input:checked + i::after { transform: translateX(20px); }
}

/* v1.0.13 Status- und Änderungslink */
.az-status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}
.az-status-box {
    padding: 18px;
    border: 1px solid var(--az-line);
    border-radius: 20px;
    background: var(--az-soft);
}
.az-status-box span {
    display: block;
    color: var(--az-muted);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 7px;
}
.az-status-box strong {
    display: block;
    color: #0f172a;
    font-size: clamp(18px, 2.4vw, 24px);
    line-height: 1.15;
}
.az-status-form {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--az-line);
}
.az-static-message {
    display: block;
    margin: 14px 0 4px;
}
@media (max-width: 760px) {
    .az-status-grid {
        grid-template-columns: 1fr;
    }
}
