/* ip.systempro.at – schlicht: nur die Karte, Stil wie www.systempro.at (Elementor-Kit: 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(520px, 100%);
    padding: 40px 36px 28px;
    text-align: center;
    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; }
}

.logo { display: inline-block; margin-bottom: 32px; }
.logo img { display: block; height: 48px; width: auto; }

.label {
    margin: 0 0 12px;
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primaer);
}

/* IP-Adresse als hervorgehobenes Feld */
.ip {
    display: block;
    margin-top: 6px;
    padding: 22px 16px;
    font-family: var(--mono);
    font-weight: 500;
    font-size: clamp(22px, 7vw, 48px);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--petrol);
    background: var(--mint);
    border: 1px solid rgba(34, 150, 138, 0.25);
    border-radius: var(--radius);
    overflow-wrap: normal;
    word-break: keep-all;
}
/* lange IPv6-Adressen etwas kleiner, damit sie nicht zu oft umbrechen */
.ip.ipv6 { font-size: clamp(20px, 5.2vw, 28px); }

/* Button wie auf systempro.at: Hover in Akzent-Gelb */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 24px;
    padding: 15px 25px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    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.ok { color: var(--weiss); background: var(--petrol); border-color: var(--petrol); }
.btn .icon-ok { display: none; }
.btn.ok .icon-ok { display: block; }
.btn.ok .icon-copy { display: none; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.details { margin: 24px 0 0; text-align: left; }
.details div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 16px;
    padding: 12px 0;
    border-top: 1px solid var(--rand);
}
.details dt { font-size: 14px; font-weight: 700; }
.details dd { margin: 0; font-size: 14px; text-align: right; overflow-wrap: anywhere; }
.badge {
    display: inline-block;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--primaer);
    background: var(--mint);
    border-radius: 9999px;
}
.mono { font-family: var(--mono); color: var(--petrol); }
.leise { color: var(--grau); font-style: italic; }

.service {
    margin: 12px 0 0;
    padding-top: 16px;
    font-size: 13px;
    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); }

@media (max-width: 480px) {
    .karte { padding: 32px 22px 22px; }
    .logo { margin-bottom: 24px; }
    .logo img { height: 40px; }
    .ip { padding: 18px 10px; }
}

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