/* WuffelTag portal – DerWuffel look: dark bars, orange accent, white content. */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --orange: #FF8B00;
    --orange-dark: #E07A00;
    --orange-soft: #FFF3E5;
    --dark: #1E1E1E;
    --dark-2: #2A2A2A;
    --text: #1E1E1E;
    --muted: #6B6B6B;
    --line: #E6E6E6;
    --bg: #FFFFFF;
    --bg-soft: #F7F7F7;
    --red: #D92D20;
    --red-soft: #FDECEA;
    --green: #12805C;
    --green-soft: #E7F6EF;
    --blue-soft: #EAF2FD;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
img { max-width: 100%; height: auto; }
a { color: var(--orange-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 1.25rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
.container { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 16px; }
.main { flex: 1; padding-top: 24px; padding-bottom: 48px; }
.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.inline { display: inline; }
.hidden { display: none !important; }
.center { text-align: center; }
.mt { margin-top: 1.5rem; }
.mb0 { margin-bottom: 0; }

/* Header / footer */
.env-banner {
    background: repeating-linear-gradient(45deg, #FFD54F, #FFD54F 12px, #FFC107 12px, #FFC107 24px);
    color: #000; font-size: 12px; font-weight: 700; text-align: center; padding: 4px 8px;
}
.site-header { background: var(--dark); color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand img { width: 130px; height: auto; display: block; }
.brand-tag {
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
    color: var(--dark); background: var(--orange); border-radius: 999px; padding: 2px 8px;
}
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions a, .link-button {
    color: #fff; text-decoration: none; font-size: 14px; font-weight: 600;
    background: none; border: 0; cursor: pointer; font-family: inherit; padding: 0;
}
.lang-switch { border: 1px solid #555; border-radius: 6px; padding: 2px 8px !important; }
.subnav { background: var(--dark-2); }
.subnav-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a {
    color: #cfcfcf; text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap;
    padding: 12px 12px; border-bottom: 3px solid transparent;
}
.subnav a.active, .subnav a:hover { color: #fff; border-bottom-color: var(--orange); }

.site-footer { background: var(--dark); color: #bdbdbd; padding: 32px 0; margin-top: auto; }
.footer-inner { text-align: center; }
.footer-inner img { width: 120px; opacity: .95; }
.footer-claim { font-size: 14px; margin: 8px 0 12px; }
.footer-links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 13px; }
.footer-links a { color: #e0e0e0; text-decoration: none; }
.footer-copy { font-size: 12px; margin: 12px 0 0; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: inherit; font-weight: 700; font-size: 15px; line-height: 1.2;
    padding: 12px 20px; border-radius: 999px; border: 2px solid transparent;
    background: var(--orange); color: #fff; text-decoration: none; cursor: pointer;
    transition: background .15s, transform .05s;
}
.btn:hover { background: var(--orange-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-dark { background: var(--dark); }
.btn-dark:hover { background: #000; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line); }
.btn-outline:hover { background: var(--bg-soft); }
.btn-danger { background: var(--red); }
.btn-danger:hover { background: #b42318; }
.btn-small { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Cards & layout helpers */
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px;
}
.card-soft { background: var(--bg-soft); box-shadow: none; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { margin: 0; }

/* Alerts & badges */
.alert { border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-weight: 500; }
.alert-success { background: var(--green-soft); color: var(--green); }
.alert-error { background: var(--red-soft); color: var(--red); }
.alert-warning { background: var(--orange-soft); color: #8a4b00; }
.alert-info { background: var(--blue-soft); color: #1d4e89; }
.badge {
    display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
    background: var(--bg-soft); color: var(--muted); vertical-align: middle;
}
.badge-lost { background: var(--red); color: #fff; }
.badge-ok { background: var(--green-soft); color: var(--green); }
.badge-orange { background: var(--orange-soft); color: #8a4b00; }
.badge-created { background: #EEE; color: #555; }
.badge-written { background: var(--blue-soft); color: #1d4e89; }
.badge-registered { background: var(--green-soft); color: var(--green); }
.badge-disabled { background: var(--red-soft); color: var(--red); }

/* Forms */
.form-row { margin-bottom: 16px; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number],
select, textarea {
    width: 100%; font: inherit; font-size: 16px; padding: 11px 14px; border-radius: 10px;
    border: 1px solid #CFCFCF; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange); }
textarea { min-height: 96px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin-bottom: 10px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--orange); flex-shrink: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 8px; }
legend { font-weight: 700; font-size: 1.05rem; margin-bottom: 10px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.code-input { font-size: 28px !important; letter-spacing: .15em; text-align: center; font-weight: 700; }

/* Landing */
.hero { background: var(--dark); color: #fff; border-radius: var(--radius); padding: 32px 24px; margin-bottom: 24px; text-align: center; }
.hero h1 { font-size: 2rem; }
.hero h1 span { color: var(--orange); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; margin-bottom: 14px; }
.steps li::before {
    content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
    background: var(--orange); color: #fff; font-weight: 800; display: grid; place-items: center;
}

/* Finder profile */
.lost-banner {
    background: var(--red); color: #fff; border-radius: var(--radius); padding: 18px 20px; margin-bottom: 20px;
    text-align: center;
}
.lost-banner strong { display: block; font-size: 1.6rem; letter-spacing: .06em; }
.owner-bar { background: var(--orange-soft); border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-size: 14px; }
.pet-hero { text-align: center; margin-bottom: 20px; }
.pet-photo {
    width: 180px; height: 180px; border-radius: 50%; object-fit: cover; border: 5px solid var(--orange);
    display: block; margin: 0 auto 12px; background: var(--bg-soft);
}
.pet-photo-placeholder { display: grid; place-items: center; font-size: 72px; }
.pet-hero h1 { font-size: 2.2rem; margin-bottom: 4px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0; }
.facts div { background: var(--bg-soft); border-radius: 10px; padding: 10px 12px; }
.facts dt { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.medical { border-left: 5px solid var(--red); }
.medical h2 { color: var(--red); }
.pre { white-space: pre-line; }
.contact-actions .btn { flex: 1 1 200px; }
.found-cta { font-size: 18px; padding: 16px 24px; }

.location-box { border: 1px dashed #CFCFCF; border-radius: 12px; padding: 14px; margin-bottom: 16px; }
.location-status { font-size: 14px; margin: 10px 0 0; }
.map { height: 280px; border-radius: 12px; margin-top: 12px; z-index: 0; }
.map-small { height: 180px; }
.map-hint { margin-top: 6px; }
@media (hover: none) { .map-hint { display: none; } }
.map-pin { background: none; border: 0; }
.map-pin svg { display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }

/* Owner area */
.pet-list { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.pet-card { display: flex; flex-direction: column; gap: 12px; }
.pet-card-head { display: flex; gap: 14px; align-items: center; }
.pet-card-head img, .pet-card-head .pet-avatar {
    width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--orange); flex-shrink: 0;
    display: grid; place-items: center; font-size: 30px; background: var(--bg-soft);
}
.pet-card-head h2 { margin: 0; }
.pet-card-link { color: inherit; text-decoration: none; display: block; flex-shrink: 0; }
.pet-card-link:hover { color: var(--orange-dark); }
.pet-card-link:hover img, .pet-card-link:hover .pet-avatar { box-shadow: 0 0 0 3px var(--orange-soft); }
.pet-card.is-lost { border-color: var(--red); box-shadow: 0 0 0 2px var(--red-soft); }
.stat-line { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { border-left: 3px solid var(--line); padding: 0 0 18px 18px; position: relative; }
.timeline li::before {
    content: ""; position: absolute; left: -8px; top: 4px; width: 13px; height: 13px; border-radius: 50%;
    background: #bbb; border: 2px solid #fff;
}
.timeline li.report::before { background: var(--orange); }
.timeline li.unread .timeline-card { border-color: var(--orange); }
.timeline-time { font-size: 13px; color: var(--muted); font-weight: 600; }
.timeline-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 6px; background: #fff; }
.photo-edit { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.photo-edit img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--orange); }

/* Admin */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 1.8rem; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-bottom: 16px; }
.filters > * { flex: 1 1 160px; }
.filters .btn { flex: 0 0 auto; }
.nfc-panel { text-align: center; }
.nfc-status { font-size: 1.1rem; font-weight: 700; margin: 12px 0; min-height: 1.5em; }
.nfc-ring {
    width: 120px; height: 120px; border-radius: 50%; margin: 10px auto; display: grid; place-items: center;
    border: 6px solid var(--line); font-size: 44px;
}
.nfc-ring.active { border-color: var(--orange); animation: pulse 1.4s infinite; }
.nfc-ring.ok { border-color: var(--green); }
.nfc-ring.err { border-color: var(--red); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,139,0,.4); } 50% { box-shadow: 0 0 0 16px rgba(255,139,0,0); } }
.nfc-log { text-align: left; font-size: 13px; max-height: 240px; overflow: auto; background: var(--bg-soft); border-radius: 10px; padding: 10px; }
.nfc-log div { padding: 2px 0; border-bottom: 1px solid #eee; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-all; }

@media (max-width: 600px) {
    h1 { font-size: 1.5rem; }
    .hero h1 { font-size: 1.6rem; }
    .pet-hero h1 { font-size: 1.9rem; }
    .card { padding: 16px; }
    .brand img { width: 110px; }
    .brand-tag { display: none; }
}
