/* secret.systempro.at – Design von ip.systempro.at uebernommen (Elementor-Kit von systempro.at: Farben, Manrope, IBM Plex Mono), 2026-10-23 */

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/manrope-latin-wght.woff2") format("woff2");
}
@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
}

/* Globale Farben aus dem Elementor-Kit von systempro.at */
:root {
    --primaer: #22968A;
    --petrol: #0C5C6E;
    --petrol-nacht: #063440;
    --grau-nacht: #2A2C2E;
    --hellgrau: #EEF0F1;
    --akzent: #FBCD12;
    --rot: #D9111C;
    --text: #1D2526;
    --grau: #6B7475;
    --rand: #E5E7E7;
    --mint: #E6F4F2;
    --weiss: #FFFFFF;
    --radius: 5px;

    --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

::selection { color: var(--text); background: var(--akzent); }

html, body { margin: 0; }
/* die animierten Ebenen ragen ueber den Rand - kein waagrechtes Scrollen */
html { overflow-x: clip; }

/* Heller, grau-weisser Hintergrund, Karte mittig */
body {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 24px 16px;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    /* farbiges Hintergrundbild (background-farbe.jpg, JPG statt 540-KB-PNG) unter einem hellen Schleier */
    background:
        radial-gradient(ellipse 50% 50% at 50% 45%, rgba(255, 255, 255, 0.35), transparent 70%),
        linear-gradient(rgba(238, 240, 241, 0.25), rgba(238, 240, 241, 0.25)),
        url("../images/background-farbe.jpg") 70% center / cover no-repeat,
        var(--hellgrau);
    -webkit-font-smoothing: antialiased;
}


/* Punktraster, zur Mitte hin ausgeblendet, damit die Karte ruhig steht */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(29, 37, 38, 0.10) 1px, transparent 1.4px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, transparent 20%, #000 75%);
    mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, transparent 20%, #000 75%);
    pointer-events: none;
}

/* Wellen: drei Ebenen gleiten seitlich. Jede Ebene ist 200 % breit mit zwei identischen Wellen-Kacheln,
   eine Verschiebung um -50 % ist also nahtlos. Nur transform wird animiert (GPU, kein Neuzeichnen). */
.wellen { position: fixed; inset: auto 0 0 0; height: 38vh; min-height: 200px; pointer-events: none; overflow: hidden; }
.welle {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 200%;
    height: 100%;
    background-repeat: repeat-x;
    background-size: 50% 100%;
    will-change: transform;
}
.welle-1 { height: 100%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 220' preserveAspectRatio='none'%3E%3Cpath d='M0 80 C240 20 480 20 720 80 C960 140 1200 140 1440 80 V220 H0 Z' fill='rgb(255,255,255)' fill-opacity='0.55'/%3E%3C/svg%3E"); animation: welle 60s linear infinite; }
.welle-2 { height: 78%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 220' preserveAspectRatio='none'%3E%3Cpath d='M0 80 C240 20 480 20 720 80 C960 140 1200 140 1440 80 V220 H0 Z' fill='rgb(214,218,220)' fill-opacity='0.45'/%3E%3C/svg%3E"); animation: welle 42s linear infinite reverse; }
.welle-3 { height: 55%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 220' preserveAspectRatio='none'%3E%3Cpath d='M0 80 C240 20 480 20 720 80 C960 140 1200 140 1440 80 V220 H0 Z' fill='rgb(255,255,255)' fill-opacity='0.85'/%3E%3C/svg%3E"); animation: welle 30s linear infinite; }

@keyframes welle {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.karte {
    position: relative;
    z-index: 1;
    width: min(600px, 100%);
    padding: 40px 36px 28px;
    text-align: left;
    background: var(--weiss);
    border-radius: var(--radius);
    border: 1px solid var(--rand);
    box-shadow: 0 1px 2px rgba(29, 37, 38, 0.04), 0 18px 50px rgba(29, 37, 38, 0.12);
    overflow: hidden;
    animation: einblenden 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
/* Farbleiste in den Logofarben (Aufteilung 1:2:1:3 wie in der ersten Fassung).
   Eigene Ebene: unten gerade Kante (ein border-top wuerde an den runden Ecken mitbiegen) */
.karte::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg,
        var(--primaer) 0 14.29%,
        var(--rot) 14.29% 42.86%,
        var(--akzent) 42.86% 57.14%,
        var(--primaer) 57.14% 100%);
}

/* Karte gleitet beim Laden sanft von leicht unten ein */
@keyframes einblenden {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

.karte.schmal { width: min(460px, 100%); }

.kopf { text-align: center; }
.logo { display: inline-block; margin-bottom: 28px; }
.logo img { display: block; height: 48px; width: auto; }

.label {
    margin: 0 0 8px;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primaer);
}
h1 {
    margin: 0 0 12px;
    font-size: clamp(24px, 5vw, 30px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text);
}
.intro { margin: 0 0 24px; color: var(--grau); font-size: 15px; }
.zentriert { text-align: center; }

/* Formular */
.feld { margin-bottom: 20px; }
.feld > label, .feld-titel { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.feld .optional { font-weight: 500; color: var(--grau); }
.eingabe {
    display: block;
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    font-size: 15px;
    color: var(--text);
    background: var(--weiss);
    border: 1px solid #D3D7D8;
    border-radius: var(--radius);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.eingabe::placeholder { color: #9AA1A2; }
.eingabe:focus { outline: none; border-color: var(--primaer); box-shadow: 0 0 0 3px rgba(34, 150, 138, 0.18); }
textarea.eingabe { resize: vertical; min-height: 160px; }
select.eingabe {
    appearance: none;
    padding-right: 40px;
    background: var(--weiss) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322968A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat;
    cursor: pointer;
}
.eingabe.mono, .mono { font-family: var(--mono); color: var(--petrol); }
.eingabe[readonly] { background: var(--mint); border-color: rgba(34, 150, 138, 0.25); cursor: pointer; font-size: 14px; }

.zeile { display: flex; gap: 8px; }
.zeile > .wachsen { flex: 1; min-width: 0; }
.mit-icon { position: relative; }
.mit-icon .eingabe { padding-right: 46px; }
.icon-btn {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: var(--grau);
    background: none;
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
}
.icon-btn:hover { color: var(--primaer); }
.icon-btn:focus-visible { outline: 2px solid var(--primaer); }
.fehler { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--rot); }

/* Buttons wie auf systempro.at: Hover in Akzent-Gelb */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 25px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    color: var(--weiss);
    background: var(--primaer);
    border: 1px solid var(--primaer);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s;
}
.btn:hover, .btn:focus-visible { color: var(--text); background: var(--akzent); border-color: var(--akzent); }
.btn:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }
.btn.voll { width: 100%; }
.btn.zweit { color: var(--petrol); background: var(--weiss); border-color: #C9D3D4; }
.btn.zweit:hover, .btn.zweit:focus-visible { color: var(--text); background: var(--akzent); border-color: var(--akzent); }
.btn.gefahr { color: var(--rot); background: var(--weiss); border-color: rgba(217, 17, 28, 0.35); }
.btn.gefahr:hover, .btn.gefahr:focus-visible { color: var(--weiss); background: var(--rot); border-color: var(--rot); outline-color: rgba(217, 17, 28, 0.35); }
.btn.ok { color: var(--weiss); background: var(--petrol); border-color: var(--petrol); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.btn .icon-ok { display: none; }
.btn.ok .icon-ok { display: block; }
.btn.ok .icon-copy { display: none; }

.aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.aktionen.mitte { justify-content: center; }
.aktionen.rechts { justify-content: flex-end; }
.aktionen form { margin: 0; display: contents; }

/* Hinweisboxen */
.hinweis {
    margin: 0 0 20px;
    padding: 14px 16px;
    font-size: 14px;
    border-radius: var(--radius);
    border: 1px solid;
    border-left-width: 4px;
}
.hinweis p { margin: 0; }
.hinweis p + p { margin-top: 6px; }
.hinweis.info { color: var(--petrol-nacht); background: var(--mint); border-color: rgba(34, 150, 138, 0.25); border-left-color: var(--primaer); }
.hinweis.warnung { color: #5A4500; background: #FFF8DB; border-color: rgba(251, 205, 18, 0.55); border-left-color: var(--akzent); }
.hinweis.fehler-box { color: #7A0A10; background: #FDECED; border-color: rgba(217, 17, 28, 0.25); border-left-color: var(--rot); }
.hinweis.erfolg { color: var(--petrol-nacht); background: var(--mint); border-color: rgba(34, 150, 138, 0.25); border-left-color: var(--primaer); }

/* angezeigtes Geheimnis */
.geheimnis {
    margin: 0 0 20px;
    padding: 18px 20px;
    font-family: var(--mono);
    font-size: 15px;
    line-height: 1.55;
    color: var(--petrol);
    background: var(--mint);
    border: 1px solid rgba(34, 150, 138, 0.25);
    border-radius: var(--radius);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.symbol {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: var(--rot);
    background: #FDECED;
    border-radius: 9999px;
}
.symbol svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.service {
    margin: 28px 0 0;
    padding-top: 16px;
    font-size: 13px;
    text-align: center;
    color: var(--grau);
    border-top: 1px solid var(--rand);
}
.service a { color: var(--petrol); font-weight: 600; text-decoration: none; transition: color 0.3s; }
.service a:hover { color: var(--primaer); }

[hidden] { display: none !important; }

@media (max-width: 480px) {
    .karte { padding: 32px 22px 22px; }
    .logo { margin-bottom: 24px; }
    .logo img { height: 40px; }
    .zeile { flex-direction: column; }
    .aktionen .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .btn, .service a, .eingabe { transition: none; }
    .welle, .karte { animation: none; }
}
