/* starmate AV – Look & Feel nach Brandbook (Marketing-Fläche) */
@font-face { font-family:'Alliance No.2'; src:url('fonts/AllianceNo.2-Regular.otf') format('opentype'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Alliance No.2'; src:url('fonts/AllianceNo.2-RegularItalic.otf') format('opentype'); font-weight:400; font-style:italic; font-display:swap; }
@font-face { font-family:'Alliance No.2'; src:url('fonts/AllianceNo.2-Medium.otf') format('opentype'); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:'Alliance No.2'; src:url('fonts/AllianceNo.2-SemiBold.otf') format('opentype'); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:'Alliance No.2'; src:url('fonts/AllianceNo.2-Bold.otf') format('opentype'); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:'Alliance No.1'; src:url('fonts/AllianceNo.1-SemiBold.otf') format('opentype'); font-weight:600; font-style:normal; font-display:swap; }

:root {
    --lime: #e7ff44;
    --lime-hover: #c8e600;
    --navy: #1a1c4b;
    --paper: #F4F2EE;
    --card: #FFFFFF;
    --card-2: #FAF8F4;
    --line: #E2DFD8;
    --line-2: #CFCBC2;
    --ink-2: #2A2F4F;
    --ink-3: #5A607A;
    --success-bg: #D6F1E2;
    --danger: #C8473A;
    --danger-bg: #F8DAD3;
    --font-display: 'Alliance No.1', 'Alliance No.2', system-ui, sans-serif;
    --font-body: 'Alliance No.2', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink-2);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Kopfbereich */
header {
    position: relative;
    overflow: hidden;
    background: var(--navy);
    padding: 28px 24px;
    min-height: 96px;
}
header::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -260px;
    width: 640px;
    height: 540px;
    background: url('orbit.png') center / contain no-repeat;
    opacity: .35;
    pointer-events: none;
}
.header-inner {
    position: relative;
    z-index: 1;
    max-width: 880px;
    margin: 0 auto;
}
.header-inner img { height: 32px; width: auto; display: block; }

main {
    min-height: 100vh;
    padding: 40px 16px 64px;
}

/* Ablauf in drei Schritten */
.steps {
    list-style: none;
    display: flex;
    gap: 12px;
    max-width: 880px;
    margin: 0 auto 24px;
    padding: 0;
}
.steps li {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border-radius: 20px;
    padding: 14px 18px;
    font-size: .875rem;
    line-height: 1.35;
    font-weight: 500;
    color: var(--navy);
    box-shadow: 0 2px 6px rgba(26,28,75,.06), 0 1px 2px rgba(26,28,75,.04);
}
.steps .n {
    flex: none;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--lime);
    color: var(--navy);
    display: grid; place-items: center;
    font-weight: 700; font-size: .8125rem;
}

/* Vertragskarte */
article {
    background: var(--card);
    max-width: 880px;
    margin: 0 auto;
    padding: 56px 56px 48px;
    border-radius: 28px;
    box-shadow: 0 8px 24px rgba(26,28,75,.08), 0 2px 4px rgba(26,28,75,.04);
}
article h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 2.25rem;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--navy);
    margin: 0 0 12px;
}
h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: var(--navy);
    margin: 2rem 0 .75rem;
}
ol > li { font-weight: 600; color: var(--navy); }
ol > ol > li { font-weight: 400; color: var(--ink-2); margin-bottom: 1rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0 1.5rem; }
a { color: var(--navy); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.explanations { color: var(--ink-3); font-size: .8125rem; }

/* Tabellen im Vertrag */
table { border-collapse: collapse; width: 100%; }
td { border: 1px solid var(--line); padding: 10px 14px; vertical-align: top; }
.tableLeft { background: var(--card-2); border: 1px solid var(--line); }

/* Formularelemente */
input[type="text"], input[type="email"] {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--navy);
    background: var(--card-2);
    border: 1px solid var(--line-2);
    border-radius: 5px;
    padding: 9px 12px;
    margin-bottom: 10px;
    max-width: 100%;
    transition: border-color .12s, box-shadow .12s;
}
input::placeholder { color: #8A90A8; }
input[type="text"]:focus, input[type="email"]:focus {
    outline: none;
    border-color: var(--navy);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(231,255,68,.6);
}
input[type="checkbox"] { accent-color: var(--navy); width: 17px; height: 17px; vertical-align: -3px; margin-right: 4px; }
article .center input[type="text"] { width: min(100%, 380px); }
article .center #zip { width: 100px; }
article .center #city { width: min(calc(100% - 110px), 270px); }

input[type="submit"] {
    display: block;
    margin: 8px auto 0;
    background: var(--lime);
    color: var(--navy);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border: 0;
    border-radius: 5px;
    padding: 15px 28px;
    cursor: pointer;
    transition: background .15s;
}
input[type="submit"]:hover { background: var(--lime-hover); }
input[type="submit"]:active { transform: translateY(1px); }
input[type="submit"]:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* Hinweisboxen */
.hint {
    max-width: 880px;
    margin: 0 auto 24px;
    padding: 20px 24px 20px 64px;
    border-radius: 20px;
    background: var(--success-bg) url('ok-icon.png') 24px 24px / 22px 22px no-repeat;
    color: var(--navy);
    box-shadow: 0 2px 6px rgba(26,28,75,.06);
}
.hint--error {
    background: var(--danger-bg);
    color: #7a1f16;
    font-weight: 600;
    padding-left: 24px;
}

footer {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 16px 40px;
    text-align: center;
    font-size: .8125rem;
    color: var(--ink-3);
}

@media (max-width: 640px) {
    main { padding: 24px 12px 48px; }
    article { padding: 28px 20px 28px; border-radius: 20px; }
    article h1 { font-size: 1.4rem; }
    article { overflow-wrap: break-word; hyphens: auto; }
    table { table-layout: fixed; }
    td { padding: 8px 10px; font-size: .9rem; overflow-wrap: anywhere; }
    .tableLeft { width: 34%; }
    .steps { flex-direction: column; }
    input[type="text"], input[type="email"] { width: 100%; }
    article .center #zip { width: 90px; }
    article .center #city { width: calc(100% - 100px); }
    input[type="submit"] { width: 100%; }
}
