/* echomyip.com – Aufbau wie die bisherige Seite, Farben und Schrift wie futureweb.at */

@font-face { font-family: "Montserrat"; font-weight: 400; font-display: block; src: url("../fonts/Montserrat-Regular.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: block; src: url("../fonts/Montserrat-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: block; src: url("../fonts/Montserrat-Bold.woff2") format("woff2"); }

:root {
    --brand: #09afaf;
    --brand-dark: #078888;
    --ink: #181515;
    --text: #333;
    --muted: #6b747a;
    --line: #e6e6e6;
    --panel: rgb(255 255 255 / 0.93);
    --warn: #b85f00;
    --warn-bg: #fff1df;
    --ok-bg: #dff5f5;
}

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

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

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.45;
    color: var(--text);
    background: #7d7d7d;
}

/* Hintergrundbild fest, auch auf Mobilgeräten (background-attachment: fixed geht dort nicht) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: url("../img/body_bg.jpg") center / cover no-repeat;
    background-image: image-set(url("../img/body_bg.webp") type("image/webp"), url("../img/body_bg.jpg") type("image/jpeg"));
}

a { color: var(--brand-dark); }
a:hover, a:focus-visible { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Kopfzeile */
.topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
    padding: 16px clamp(16px, 3vw, 36px);
    background: rgb(255 255 255 / 0.96);
    border-bottom: 2px solid var(--brand);
}
.topbar__logo img { display: block; width: clamp(120px, 17vw, 188px); height: auto; }
.topbar__contact {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.88rem;
    color: var(--muted);
}
.topbar__contact a { text-decoration: none; }
.topbar__contact .label { color: var(--muted); }

/* Zentrierte Karte */
.panel {
    width: min(100% - 32px, 1000px);
    margin: clamp(20px, 3vw, 28px) auto clamp(24px, 4vw, 48px);
    padding: clamp(20px, 4vw, 36px) clamp(16px, 4vw, 40px) clamp(24px, 4vw, 40px);
    background: var(--panel);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgb(0 0 0 / 0.18);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    text-align: center;
}

h1 {
    margin: 0 0 clamp(16px, 3vw, 24px);
    padding-bottom: clamp(10px, 2vw, 16px);
    border-bottom: 2px solid var(--brand);
    font-size: clamp(2.4rem, 8vw, 4.4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ink);
}
h1 span { color: var(--brand); }

.facts { margin: 0; display: grid; gap: clamp(14px, 2.6vw, 26px); }

.fact dt {
    font-size: clamp(1.25rem, 3.6vw, 1.75rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ink);
}

.fact dd {
    margin: 6px 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 12px;
}

.icon {
    flex: none;
    width: 30px;
    height: 30px;
    fill: none;
    stroke: var(--brand);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.value {
    font-size: clamp(1.05rem, 3vw, 1.5rem);
    color: var(--text);
    overflow-wrap: anywhere;
}
.value--ip { font-weight: 600; letter-spacing: 0.02em; }

.sub { font-size: 0.9rem; color: var(--muted); }
.hint { font-size: 0.82rem; }
.hint code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; padding: 1px 6px; border-radius: 4px; background: #eef2f2; color: var(--ink); }

.flag { width: 32px; height: 24px; border-radius: 3px; box-shadow: 0 0 0 1px var(--line); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}
.badge .icon { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.4; }
.badge--ok { background: var(--ok-bg); color: var(--brand-dark); }
.badge--warn { background: var(--warn-bg); color: var(--warn); }
a.badge--warn:hover, a.badge--warn:focus-visible { background: var(--warn); color: #fff; }

.copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    border: 1px solid var(--brand);
    border-radius: 999px;
    background: #fff;
    color: var(--brand-dark);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}
.copy .icon { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; }
.copy:hover, .copy:focus-visible { background: var(--brand); color: #fff; }

/* Fußzeile */
.footer {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 20px;
    padding: 12px 16px;
    background: rgb(255 255 255 / 0.9);
    font-size: 0.82rem;
    color: var(--muted);
}
.footer a { color: var(--muted); }
.footer a:hover, .footer a:focus-visible { color: var(--brand-dark); }

@media (max-width: 600px) {
    .topbar { justify-content: center; }
    .topbar__contact { align-items: center; font-size: 0.75rem; }
    .topbar__contact a { color: var(--muted); }
    .panel { border-radius: 18px; }
    .icon { width: 24px; height: 24px; }
}
