/* Anmeldeseite der Pforte: schlicht, eine Spalte, große Tippflächen für das iPhone. Helles und dunkles Aussehen folgen dem Gerät. */
:root {
    --grund: #f4f1ea;
    --flaeche: #ffffff;
    --text: #1d2326;
    --leise: #5d686d;
    --linie: #cfc9bc;
    --akzent: #1f5f5b;
    --akzent-text: #ffffff;
    --fehler: #a02a2a;
    --fokus: #2b7fd1;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --grund: #14181a;
        --flaeche: #1e2427;
        --text: #eceae4;
        --leise: #a3adb1;
        --linie: #394348;
        --akzent: #5bb5ad;
        --akzent-text: #0c1514;
        --fehler: #f08a8a;
        --fokus: #6db3ff;
    }
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--grund);
    color: var(--text);
    font: 17px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

#app {
    max-width: 30rem;
    margin: 0 auto;
    padding: max(1.5rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom))
        max(1rem, env(safe-area-inset-left));
}

.marke {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1.5rem;
    color: var(--leise);
    font-weight: 600;
}

.marke-zeichen {
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.6rem;
    background: var(--akzent);
    color: var(--akzent-text);
}

.symbol {
    width: 1.4rem;
    height: 1.4rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.panel {
    background: var(--flaeche);
    border: 1px solid var(--linie);
    border-radius: 1rem;
    padding: 1.25rem 1.1rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

h1 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.2;
}

h1:focus {
    outline: none;
}

.schritt {
    margin: 0;
    color: var(--leise);
    font-size: 0.9rem;
}

.text,
.leise {
    margin: 0;
}

.leise {
    color: var(--leise);
}

.host {
    word-break: break-all;
}

code {
    font: 0.9em ui-monospace, "SF Mono", Menlo, monospace;
    background: color-mix(in srgb, var(--linie) 45%, transparent);
    padding: 0.05rem 0.3rem;
    border-radius: 0.3rem;
}

.formular {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-weight: 600;
    font-size: 0.95rem;
}

input {
    width: 100%;
    min-height: 3rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--linie);
    border-radius: 0.7rem;
    background: var(--grund);
    color: var(--text);
    font: inherit;
    font-size: 1.05rem; /* mindestens 16px, sonst zoomt Safari beim Antippen */
}

.knopf {
    display: block;
    width: 100%;
    min-height: 3rem;
    padding: 0.7rem 1rem;
    border: 1px solid var(--linie);
    border-radius: 0.8rem;
    background: var(--flaeche);
    color: var(--text);
    font: inherit;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.knopf-haupt {
    background: var(--akzent);
    border-color: var(--akzent);
    color: var(--akzent-text);
}

.knopf-text {
    border-color: transparent;
    background: transparent;
    color: var(--akzent);
}

.knopf:disabled {
    opacity: 0.55;
    cursor: default;
}

.fehler {
    margin: 0;
    color: var(--fehler);
    font-weight: 600;
}

:focus-visible {
    outline: 3px solid var(--fokus);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
    .knopf {
        transition: opacity 0.15s;
    }
}
