/* Prämienradar — paleta preuzeta iz zvaničnog Swiss styleguide-a (admin.ch/priminfo):
   crvena #DC0018, tekst #454545, linije #D5D5D5, podloge #F5F5F5, isticanje #FFFAB2.
   Ton: svetlo, sitno, službeno — bez senki i gradijenata. */

:root {
    --red:        #dc0018;
    --red-dark:   #b30014;
    --red-soft:   #fdf0f1;
    --ink:        #454545;
    --ink-strong: #1f1f1f;
    --muted:      #757575;
    --line:       #d5d5d5;
    --line-soft:  #e5e5e5;
    --bg:         #ffffff;
    --bg-soft:    #f5f5f5;
    --bg-soft2:   #f7f7f7;
    --mark:       #fffab2;
    --green:      #3c763d;
    --wrap:       1080px;

    /* Blago zaobljenje — mekše od strogog Swiss styleguide-a, ali i dalje službeno. */
    --r-sm:       4px;
    --r:          6px;
    --r-lg:       10px;
    --shadow-sm:  0 1px 2px rgba(0, 0, 0, .06);
    --shadow:     0 2px 8px rgba(0, 0, 0, .08);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { color: var(--ink-strong); font-weight: 600; line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 30px; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
p  { margin: 0 0 1em; }

/* ------------------------------- header ------------------------------- */

.topbar { height: 4px; background: var(--red); }

.site-head { border-bottom: 1px solid var(--line); background: #fff; }
.head-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink-strong); }
.brand:hover { text-decoration: none; }
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; background: var(--red); color: #fff;
    border-radius: var(--r);
    font-weight: 700; line-height: 1;
}
.brand-mark svg { display: block; }
.brand-name { font-size: 22px; font-weight: 600; letter-spacing: -.3px; }

/* margin-left:auto drži nav i jezik zajedno uz desnu ivicu — jezik je zaseban
   element (van <nav>) da na telefonu ne bi odskrolao sa linkovima. */
.head-nav { display: flex; align-items: center; gap: 18px; font-size: 14px; margin-left: auto; }
.head-nav > a { color: var(--ink); }
.lang-switch { display: inline-flex; gap: 6px; border-left: 1px solid var(--line); padding-left: 14px; margin-left: 18px; }
.lang-switch a { color: var(--muted); font-size: 13px; }
.lang-switch a.is-active { color: var(--red); font-weight: 600; }

/* -------------------------------- hero -------------------------------- */

.hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.hero-inner { padding: 52px 20px 46px; max-width: 760px; }
.hero-kicker {
    margin: 0 0 12px; font-size: 12px; letter-spacing: .09em; text-transform: uppercase;
    color: var(--red); font-weight: 700;
}
.hero h1 { font-size: 38px; letter-spacing: -.5px; margin-bottom: 14px; }
.hero-sub { font-size: 17px; color: var(--ink); max-width: 640px; }
.hero-free { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

/* ------- dve ikone u priminfo stilu (crveni crtež u crvenom okviru) ------- */

.icon-strip {
    display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
    padding-top: 32px; padding-bottom: 8px;
}
.icon-item { display: flex; gap: 16px; align-items: flex-start; }
.icon-frame {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; border: 2px solid var(--red); border-radius: 12px;
    color: var(--red);
}
.icon-frame svg { width: 34px; height: 34px; display: block; }
.icon-item h3 { font-size: 16px; margin-bottom: .3em; }
.icon-item p  { margin: 0; font-size: 14px; color: var(--ink); }

/* ------------------------------ dugmad -------------------------------- */

.btn {
    display: inline-block; padding: 10px 22px; border: 1px solid transparent;
    border-radius: var(--r); font-size: 15px; font-weight: 600; line-height: 1.3;
    cursor: pointer; background: none; font-family: inherit;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.btn-primary { background: var(--red); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--red-dark); color: #fff; box-shadow: var(--shadow); }

/* Sekundarno (sivo) dugme — za „nazad", „prikaži sve" i slično. */
.btn-secondary { background: var(--bg-soft); color: var(--ink-strong); border-color: var(--line); }
.btn-secondary:hover { background: #ececec; border-color: #c4c4c4; color: var(--ink-strong); }

.btn-lg { padding: 13px 30px; font-size: 16px; border-radius: var(--r); }

/* ------------------------------ sekcije ------------------------------- */

.section { padding: 42px 20px; }
.section-title { font-size: 20px; margin-bottom: 20px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
    border: 1px solid var(--line); border-top: 3px solid var(--red);
    border-radius: var(--r-lg);
    padding: 18px 18px 16px; background: #fff;
    transition: box-shadow .15s ease, background-color .15s ease;
}
.card h3 { margin-bottom: .4em; }
.card p { margin: 0; font-size: 14px; color: var(--ink); }

.card-link { position: relative; display: block; color: var(--ink); padding-bottom: 38px; }
.card-link:hover { background: var(--red-soft); text-decoration: none; box-shadow: var(--shadow); }
.card-tag { display: block; font-size: 17px; font-weight: 600; color: var(--ink-strong); margin-bottom: 6px; }
.card-go { position: absolute; left: 18px; bottom: 14px; color: var(--red); font-weight: 700; }

.stats { background: var(--bg-soft2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.stats-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 22px 20px; text-align: center; }
.stats strong { display: block; font-size: 26px; color: var(--ink-strong); }
.stats span { font-size: 13px; color: var(--muted); }

/* ------------------------- primer na landingu -------------------------- */

.example { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.example-line { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.ex-city { color: var(--ink-strong); font-weight: 600; }
.ex-sep { margin: 0 6px; }
.example-bars { display: grid; gap: 8px; margin-bottom: 14px; }
.bar { display: flex; justify-content: space-between; padding: 11px 16px; font-size: 14px; border-radius: var(--r); }
.bar-min { background: var(--red); color: #fff; }
.bar-max { background: var(--bg-soft); border: 1px solid var(--line); }
.bar-val { font-weight: 700; }
.example-diff { font-size: 14px; }
.example-diff strong { color: var(--red); font-size: 18px; }

/* -------------------------------- forma -------------------------------- */

.form-page { max-width: 1040px; }
.page-title { display: flex; align-items: center; gap: 12px; }
.year-chip {
    font-size: 12px; font-weight: 700; letter-spacing: .06em;
    background: var(--red); color: #fff; padding: 3px 9px; border-radius: 999px;
}

.pc-form { margin-top: 8px; }
.fs { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px 18px; margin: 0 0 16px; }
.fs legend { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0 6px; }
.fs-sub { border-style: dashed; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.field { display: block; }
.field .label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--ink-strong); }
.field small { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); }
.field-highlight { background: var(--mark); padding: 10px; margin: -10px; border-radius: var(--r); }

input[type="text"], input[type="tel"], select {
    width: 100%; padding: 9px 11px; font-size: 15px; font-family: inherit; color: var(--ink);
    background: #fff; border: 1px solid var(--line); border-radius: var(--r);
    transition: border-color .15s ease, box-shadow .15s ease;
}
input[type="text"]:hover, input[type="tel"]:hover, select:hover { border-color: #bdbdbd; }
input[type="text"]:focus, input[type="tel"]:focus, select:focus {
    outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(220, 0, 24, .12);
}

.choice-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.choice input { position: absolute; opacity: 0; }
.choice-box {
    display: block; border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 14px; cursor: pointer; height: 100%;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.choice-box:hover { border-color: #bdbdbd; box-shadow: var(--shadow-sm); }
.choice-box strong { display: block; font-size: 15px; color: var(--ink-strong); margin-bottom: 4px; }
.choice-box small { color: var(--muted); font-size: 13px; line-height: 1.4; display: block; }
.choice input:checked + .choice-box { border-color: var(--red); border-left-width: 4px; background: var(--red-soft); }
.choice input:focus + .choice-box { outline: 2px solid var(--red); outline-offset: 2px; }

.more { margin: 0 0 16px; }
.more summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--red); padding: 8px 0; }
.more-help { font-size: 13px; color: var(--muted); }

/* ------------------------------ rezultati ------------------------------ */

.loc-line { font-size: 14px; color: var(--muted); margin-top: -6px; }

.headline {
    border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--r-lg);
    padding: 20px 22px; margin: 20px 0 26px; box-shadow: var(--shadow-sm);
}
.headline-label { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.headline-value { font-size: 40px; font-weight: 700; color: var(--red); line-height: 1.1; }
.headline-unit { font-size: 15px; color: var(--ink); margin-left: 6px; }
.headline-sub { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }
.headline-saving { background: var(--red-soft); }

.person-block { margin-bottom: 30px; }
.person-head h2 { margin-bottom: 2px; }
.person-head p { margin: 0; font-size: 14px; color: var(--muted); }
.person-count { font-size: 13px !important; margin-top: 4px !important; }

/* Široka tabela skroluje unutar svog okvira — telo strane nikad horizontalno. */
.table-scroll {
    overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 12px;
    border: 1px solid var(--line-soft); border-radius: var(--r-lg);
}
.offers { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 14px; }
.offers tr:last-child td { border-bottom: none; }
.offers th:first-child, .offers td:first-child { padding-left: 16px; }
.offers th:last-child, .offers td:last-child { padding-right: 16px; }
.offers th {
    text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
    color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 2px solid var(--line);
}
.offers td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.offers .num { text-align: right; white-space: nowrap; }
.offers .strong { font-weight: 700; color: var(--ink-strong); }
.offers .muted { color: var(--muted); font-size: 13px; }
.offers .up { color: var(--muted); }
.offers .zero { color: var(--green); }
.offers tr.is-best td { background: var(--red-soft); }
.offers tr.is-best .strong { color: var(--red); }
.offers tr.is-current td { background: var(--mark); }
.offers tr.is-extra { display: none; }

.pill {
    display: inline-block; margin-left: 6px; padding: 2px 8px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em; background: var(--ink-strong); color: #fff;
    border-radius: 999px;
}

.toggle-all:checked ~ .table-scroll .offers tr.is-extra { display: table-row; }
.toggle-all:checked ~ .show-all { display: none; }
/* Sivo dugme umesto golog linka — vizuelno par crvenom „Beratung anfordern". */
.show-all {
    display: inline-block; margin-top: 12px; padding: 8px 18px;
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r);
    font-size: 14px; font-weight: 600; color: var(--ink-strong); cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}
.show-all:hover { background: #ececec; border-color: #c4c4c4; text-decoration: none; }

/* Poziv na savet — odmah ispod uštede, pre tabele. */
.next-box {
    border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px;
    margin: 0 0 30px; background: var(--bg-soft2);
}
.next-box h2 { font-size: 18px; margin-bottom: .6em; }
.next-list { margin: 0 0 16px; padding-left: 22px; }
.next-list li { font-size: 14px; margin-bottom: .5em; line-height: 1.5; }
.next-list strong { color: var(--ink-strong); }
.next-free { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

/* Lepljiva traka na telefonu — ušteda uvek na ekranu, dugme vodi na formu. */
.sticky-cta { display: none; }

.note-box {
    border: 1px solid var(--line); border-left: 4px solid var(--ink-strong); border-radius: var(--r-lg);
    padding: 16px 18px; margin: 26px 0; background: var(--bg-soft2);
}
.note-box h3 { margin-bottom: .3em; font-size: 15px; }
.note-box p { margin: 0; font-size: 14px; }
.note-box p + p { margin-top: 8px; }

.cta-box {
    border: 1px solid var(--red); border-radius: var(--r-lg); padding: 20px 22px;
    margin-bottom: 24px; box-shadow: var(--shadow-sm);
}
.cta-box h3 { color: var(--red); }
.cta-box p { font-size: 14px; margin-bottom: .4em; }

/* --------------------------- lead / pristanak --------------------------- */

.lead-form { margin-top: 14px; }
.lead-form input[type="email"], .lead-form input[type="text"], .lead-form input[type="tel"], .lead-form input[type="password"],
input[type="password"] {
    width: 100%; padding: 9px 11px; font-size: 15px; font-family: inherit; color: var(--ink);
    background: #fff; border: 1px solid var(--line); border-radius: var(--r);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.lead-form input:hover, input[type="password"]:hover { border-color: #bdbdbd; }
.lead-form input:focus, input[type="password"]:focus {
    outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(220, 0, 24, .12);
}

.grid-name { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 14px; }
.name-left { display: grid; grid-template-columns: 140px 1fr; gap: 12px; }
@media (max-width: 640px) {
    .grid-name { grid-template-columns: 1fr; }
    .channels-checks { min-height: 0; }
}

.fs-channels { margin-top: 14px; padding: 12px 16px 14px; }
.fs-channels legend { font-size: 12px; }
.muted-note { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.choice-row-sm { grid-template-columns: repeat(4, 1fr); }
.choice-row-sm .choice-box { padding: 8px 14px; font-size: 13.5px; text-align: center; }
/* Tri kvalifikaciona pitanja u jednom redu (cetiri kad je tu i kasa).
   Polja se lepe za dno celije: natpis u dva reda (en/fr) ne sme da spusti select. */
.lead-form .grid-3 > .field, .lead-form .grid-4 > .field {
    display: flex; flex-direction: column; justify-content: flex-end;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
/* Kvacice dopunskog u uredne kolone: 4 po redu, jedna ispod druge. */
.zusatz-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 14px; }
.zusatz-grid .check-inline { margin: 0; }
/* Kanali levo (pod E-Mailom), vreme poziva desno — u ravni ispod telefona. */
.grid-reach { align-items: start; margin-top: 4px; margin-bottom: 4px; }
.channels-checks { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; min-height: 40px; }
.channels-checks .check-inline { margin-right: 0; }

.check { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--red); flex: none; }
.check-inline { display: inline-flex; margin-right: 20px; }
.check-consent {
    margin: 16px 0 10px; padding: 15px 16px; background: var(--bg-soft);
    border-left: 3px solid var(--red); border-radius: var(--r);
}
.check-consent span { line-height: 1.5; }

.lead-partners { font-size: 13px; margin: 0 0 6px; }
.lead-nocall { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.lead-privacy { margin: 10px 0 0; font-size: 13px; }

/* ------------------------------ legal strane ---------------------------- */

.legal { max-width: 760px; }
.legal h2 { font-size: 17px; margin-top: 1.6em; }
.legal p { font-size: 15px; }

.back-link { font-size: 14px; }

/* --------------------- traka o praćenju (Meta Pixel) --------------------- */

.consent-bar {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
    max-width: 720px; margin: 0 auto;
    display: flex; align-items: center; gap: 18px;
    background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red);
    border-radius: var(--r-lg); padding: 14px 18px; box-shadow: var(--shadow);
}
.consent-bar p { margin: 0; font-size: 13px; line-height: 1.45; }
.consent-actions { display: flex; gap: 8px; flex: none; }
.consent-actions .btn { padding: 8px 16px; font-size: 14px; white-space: nowrap; }

@media (max-width: 640px) {
    /* Traka je OBAVESTENJE, ne prepreka: 8.9.2026 izmereno da je u staroj verziji
       zauzimala 172 px (26 % ekrana 375x667) i fizicki pokrivala polje za PLZ —
       prvo polje levka. Zato na telefonu ostaje u JEDNOM redu, sitna, uz donju ivicu. */
    .consent-bar {
        left: 8px; right: 8px; bottom: 8px; gap: 10px;
        padding: 8px 10px; border-radius: 10px;
        flex-direction: row; align-items: center; flex-wrap: nowrap;
    }
    .consent-bar p { font-size: 11.5px; line-height: 1.3; }
    .consent-actions { gap: 6px; }
    .consent-actions .btn { padding: 6px 10px; font-size: 12px; }
    /* „Nur das Nötigste" na telefonu je link, ne dugme — cilj je da traka bude niska. */
    .consent-actions .btn-secondary { border: 0; background: none; text-decoration: underline; padding: 6px 4px; }
}

/* ------------------------------ statistika ------------------------------ */

.stat-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
.stat-card {
    border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; background: #fff;
}
.stat-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.stat-card strong { display: block; font-size: 28px; line-height: 1.2; color: var(--red); }
.stat-sub { font-size: 12px; color: var(--muted); }

.spark {
    display: flex; align-items: flex-end; gap: 6px; height: 120px;
    border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 14px 6px; margin-bottom: 26px;
}
.spark-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; text-align: center; }
.spark-bar { background: var(--red); border-radius: 3px 3px 0 0; min-height: 2px; }
.spark-col span { font-size: 10px; color: var(--muted); margin-top: 4px; }

/* ------------------------------- poruke -------------------------------- */

.alert { padding: 12px 16px; margin: 0 0 16px; font-size: 14px; border: 1px solid; border-radius: var(--r); }
.alert p { margin: 0; }
.alert-error { background: #f2dede; border-color: #ebccd1; color: #a94442; }
.alert-info  { background: var(--mark); border-color: #e8e2a0; color: #6b5c00; }

/* -------------------------------- futer -------------------------------- */

.site-foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 0 40px; background: var(--bg-soft2); }
.site-foot p { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.foot-main { color: var(--ink) !important; }

/* ------------------------------ responsive ----------------------------- */

@media (max-width: 860px) {
    .cards, .choice-row, .grid-4 { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 30px; }

    /* Ispod ~860px četiri taba + logo + jezik ne stanu u jedan red: linkovi su se
       lomili u dva-tri reda (i na telefonu bili sasvim sakriveni). Zato tabovi idu
       u zaseban red koji se skroluje vodoravno. Negativna margina + calc(100% + 40px)
       pušta red do ivica ekrana; box-sizing je border-box, pa bi „width:100%"
       ostavilo 40px mrtvog prostora desno i red se ne bi poravnao sa stranom. */
    .head-inner { height: auto; flex-wrap: wrap; padding-top: 12px; }
    .head-nav {
        order: 3; width: calc(100% + 40px); margin: 4px -20px 0; padding: 0 20px 4px;
        gap: 18px;
        overflow-x: auto; -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .head-nav::-webkit-scrollbar { display: none; }
    /* Vertikalni padding je zona za prst (tekst je visok samo 20px, a prst traži ~44). */
    .head-nav > a { white-space: nowrap; padding: 9px 0; }
    .lang-switch { margin-left: auto; }
}

@media (max-width: 860px) {
    .icon-strip { grid-template-columns: 1fr; gap: 18px; padding-top: 26px; }
}

@media (max-width: 640px) {
    .sticky-cta {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        padding: 10px 14px; background: #fff; border-top: 1px solid var(--line);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, .08);
    }
    .sticky-sum { font-size: 18px; font-weight: 700; color: var(--red); white-space: nowrap; }
    .sticky-sum small { font-size: 12px; font-weight: 400; color: var(--muted); }
    .sticky-cta .btn { padding: 10px 18px; }
    /* Da poslednji sadržaj ne završi ispod lepljive trake. */
    body:has(.sticky-cta) .site-foot { padding-bottom: 84px; }
    /* Kad je traka o merenju jos vidljiva (prva poseta = svi sa reklame), lepljivi poziv
       se DIZE iznad nje umesto da se sakrije. Ranije se u tom slucaju uopste nije crtao,
       pa ga bas ta publika nikad nije videla. */
    body:has(.consent-bar) .sticky-cta { bottom: 104px; }
    body:has(.consent-bar) .site-foot { padding-bottom: 190px; }
}

@media (max-width: 560px) {
    .cards, .choice-row, .grid-2, .grid-4, .stats-inner { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .choice-row-sm { grid-template-columns: repeat(2, 1fr); }
    .zusatz-grid { grid-template-columns: repeat(2, 1fr); }

    /* Telefon: manje teksta i lakši hero — druga rečenica se sklanja,
       dugme ide preko cele širine jer je to jedina radnja koja se traži. */
    .hide-sm { display: none; }
    .hero-inner { padding: 26px 20px 24px; }
    .hero-kicker { font-size: 11px; margin-bottom: 8px; }
    .hero h1 { font-size: 25px; letter-spacing: -.3px; margin-bottom: 10px; }
    .hero-sub { font-size: 15px; }
    .hero .btn-lg { display: block; width: 100%; text-align: center; padding: 14px 20px; }
    .hero-free { margin-top: 10px; font-size: 12px; }
    .section { padding: 28px 20px; }
    .icon-frame { width: 52px; height: 52px; border-radius: 10px; }
    .icon-frame svg { width: 28px; height: 28px; }
    .icon-item h3 { font-size: 15px; }
    .icon-item p { font-size: 13px; }
    .headline-value { font-size: 32px; }

    /* Na telefonu isti red tabova, samo zbijeniji (raspored je gore, na 860px). */
    .brand-name { font-size: 19px; }
    .brand-mark { width: 30px; height: 30px; }
    .brand-mark svg { width: 19px; height: 19px; }
    .head-nav { gap: 16px; font-size: 13px; }

    .offers { min-width: 420px; font-size: 13px; }
    .offers td, .offers th { padding: 8px 6px; }
    .offers .muted { font-size: 12px; }
}


/* --------------------------- partnerski portal --------------------------- */

.claim-form { display: flex; align-items: flex-end; gap: 14px; margin: 12px 0 18px; flex-wrap: wrap; }
.claim-form .field { max-width: 220px; margin: 0; }
.claim-form input[type="number"] {
    width: 100%; padding: 9px 11px; font-size: 15px; font-family: inherit; color: var(--ink);
    background: #fff; border: 1px solid var(--line); border-radius: var(--r);
}

.lead-card { border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 14px; overflow: hidden; }
.lead-card.is-overdue { border-color: var(--red); }
.lead-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; background: var(--bg-soft2); border-bottom: 1px solid var(--line-soft); flex-wrap: wrap;
}
.lead-body { padding: 14px 16px 16px; }
.lead-body p { font-size: 14px; margin: 0 0 8px; }

.pill-new       { background: var(--muted); }
.pill-contacted { background: #31708f; }
.pill-reached   { background: #31708f; }
.pill-offer     { background: #8a6d3b; }
.pill-closed    { background: var(--green); }
.pill-lost      { background: #a94442; }
.overdue-tag { color: var(--red); }

.status-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.status-buttons .btn { padding: 7px 14px; font-size: 14px; }
.status-extra { display: flex; gap: 8px; flex-wrap: wrap; }
.status-extra select, .status-extra input[type="text"] { width: auto; min-width: 190px; flex: 1 1 190px; font-size: 14px; }

@media (max-width: 640px) {
    .status-buttons .btn { flex: 1 1 45%; text-align: center; }
    .status-extra select, .status-extra input[type="text"] { flex: 1 1 100%; }
}


/* --------------------------- kantonske stranice --------------------------- */

.region-block { border-top: 1px solid var(--line-soft); padding-top: 22px; margin-bottom: 34px; }
.region-block:first-of-type { border-top: none; padding-top: 0; }
.region-block h2 { margin-bottom: .2em; }
.canton-trend {
    font-size: 14px; background: var(--mark); border-radius: var(--r);
    padding: 10px 14px; margin: 12px 0 14px;
}


/* ---------------------------- otkazno pismo ---------------------------- */

.letter-wrap { padding: 0 20px 40px; }
.letter {
    max-width: 700px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 48px 56px; font-size: 15px; line-height: 1.6;
}
.letter-sender { margin-bottom: 40px; }
.letter-recipient { margin: 0 0 40px auto; width: 60%; }
.letter-date { margin-bottom: 28px; }
.letter-subject { margin-bottom: 24px; }
.letter-sign { border-bottom: 1px solid var(--ink); width: 220px; margin: 34px 0 6px; }

@media print {
    .no-print, .site-head, .site-foot, .topbar, .consent-bar, .sticky-cta { display: none !important; }
    .letter { border: none; border-radius: 0; padding: 0; max-width: none; }
    .letter-wrap { padding: 0; }
    body { font-size: 12pt; }
    @page { margin: 2cm; }
}

@media (max-width: 640px) {
    .letter { padding: 24px 20px; }
    .letter-recipient { width: 100%; margin-left: 0; }
}


/* ------------------------- widget za ugradnju ------------------------- */

.widget-body { background: #fff; }
.widget { padding: 18px; }
.widget-form { margin-bottom: 16px; }
.widget-grid { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 10px; align-items: end; }
.widget-submit .btn { width: 100%; padding: 9px 18px; }
.widget-spread { font-size: 14px; background: var(--mark); border-radius: var(--r); padding: 10px 12px; }
.widget-table { min-width: 0; margin-top: 10px; }
.widget-table th, .widget-table td { padding: 8px 10px; }
.widget-cta { margin: 14px 0 0; }
.widget-credit { font-size: 11px; color: var(--muted); padding: 0 18px 14px; margin: 0; }
.code-box {
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r);
    padding: 14px; font-size: 13px; overflow-x: auto; white-space: pre-wrap; word-break: break-all;
}

@media (max-width: 760px) {
    .widget-grid { grid-template-columns: 1fr 1fr; }
    .widget-submit { grid-column: 1 / -1; }
}

/* ------------------------------- FAQ -------------------------------
   <details> bez JavaScripta: pretraživač vidi ceo tekst i kad je zatvoren.
   Isti sadržaj ide i u FAQPage strukturirane podatke — jedan izvor. */
.faq-block { border-top: 1px solid var(--line-soft); padding-top: 28px; }
.faq-list { max-width: 780px; }
.faq-item {
    border-bottom: 1px solid var(--line-soft);
}
.faq-item summary {
    cursor: pointer; list-style: none;
    padding: 14px 32px 14px 0; position: relative;
    font-size: 16px; font-weight: 600; color: var(--ink-strong); line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: ""; position: absolute; right: 6px; top: 50%;
    width: 9px; height: 9px; margin-top: -6px;
    border-right: 2px solid var(--red); border-bottom: 2px solid var(--red);
    transform: rotate(45deg); transition: transform .15s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item summary:hover { color: var(--red); }
.faq-item p { margin: 0 0 16px; font-size: 14.5px; max-width: 70ch; }

@media (max-width: 560px) {
    .faq-item summary { font-size: 15px; padding-right: 28px; }
}

/* --------------------- Sezonska strana (/praemien-2027) --------------------- */
.season-status {
    border: 1px solid var(--line); border-left: 4px solid var(--red);
    border-radius: var(--r-lg); padding: 18px 20px; margin: 0 0 18px;
    background: var(--bg-soft2); max-width: 780px;
}
.season-status.is-published { border-left-color: var(--green); background: #f4f8f4; }
.season-status-line { margin: 0 0 .4em; font-size: 17px; color: var(--ink-strong); }
.season-status p { margin: 0 0 12px; font-size: 14.5px; }
.season-status .btn { margin-top: 4px; }

.season-deadline {
    background: var(--mark); border-radius: var(--r); padding: 10px 14px;
    font-size: 14px; max-width: 780px; margin: 0;
}

.season-cal { list-style: none; margin: 0; padding: 0; max-width: 820px; counter-reset: cal; }
.season-cal li {
    display: grid; grid-template-columns: 190px 1fr; gap: 16px;
    padding: 14px 0; border-bottom: 1px solid var(--line-soft);
}
.season-cal-when { font-weight: 600; color: var(--red); font-size: 14px; }
.season-cal-what { font-size: 14.5px; }

.season-src { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; max-width: 820px; line-height: 1.5; }
.season-reviewed { font-size: 12.5px; color: var(--muted); margin: 18px 0 0; }

/* Rast crveno, pad zeleno — ista logika kao na kantonskoj strani. */
.chg-up   { color: var(--red); }
.chg-down { color: var(--green); }
tr.is-current td { background: var(--mark); }

@media (max-width: 620px) {
    .season-cal li { grid-template-columns: 1fr; gap: 4px; }
}

/* Spisak opstina uz regiju: gust, sitan, ne otima paznju od tabele — ali je pravi tekst
   strane (a ne 196 posebnih strana sa istim cenama). */
.commune-list {
    font-size: 12.5px; color: var(--muted); line-height: 1.6;
    margin: 14px 0 0; max-width: 900px;
}
.commune-list strong { color: var(--text); display: block; margin-bottom: 2px; }

/* Traka ka ostalim kantonima — jedini unutrasnji linkovi izmedju kantonskih strana. */
.canton-strip { margin: 34px 0 0; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.canton-strip h2 { font-size: 17px; margin: 0 0 8px; }
.canton-strip p { font-size: 13.5px; line-height: 2; margin: 0; color: var(--muted); }
.canton-strip a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-soft); }
.canton-strip a:hover { color: var(--red); border-bottom-color: var(--red); }

/* ---- Stranica za brokere (/fuer-broker) ---- */
.br-example{border:1px solid #d5d5d5;border-left:4px solid #dc0018;background:#fff;padding:18px 20px;max-width:640px}
.br-example-head{margin:0 0 10px;font-weight:700;color:#767676;font-size:13px;text-transform:uppercase;letter-spacing:.04em}
.br-example-list{margin:0;padding:0;list-style:none}
.br-example-list li{padding:6px 0;border-bottom:1px solid #ededed;font-size:15px}
.br-example-list li:last-child{border-bottom:0}
.br-example-masked{margin:12px 0 0;padding-top:12px;border-top:1px solid #d5d5d5;color:#767676;font-size:14px}
.br-list{margin:0;padding-left:20px;max-width:760px}
.br-list li{margin-bottom:10px;line-height:1.6}
.br-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* ---- Strana rezultata: dve kolone na racunaru (8.9.2026) ----
   Cilj: forma ne sme da bude na dnu strane. Na racunaru ide u desnu LEPLJIVU kolonu,
   na telefonu (jedna kolona) po DOM redosledu pada odmah ispod bloka „Und jetzt?",
   a tabele sa ponudama ostaju ispod nje. */
/* Sira podloga za rezultat: 1080 px je bilo tesno cim je forma dobila svoju kolonu —
   levo su tabele sa ponudama, desno forma, pa obe strane dobijaju vazduh. */
.res-layout { max-width: 1340px; }

@media (min-width: 900px) {
    .res-layout {
        display: grid;
        /* Forma je poenta strane, pa ona dobija sirinu; levo su rezultat i tabele,
           koje ionako imaju svoj vodoravni skrol (.table-scroll). */
        grid-template-columns: minmax(0, 1fr) 640px;
        column-gap: 36px;
        align-items: start;
    }
    .res-layout > *:not(.cta-box) { grid-column: 1; }
    .res-layout > .cta-box {
        grid-column: 2;
        grid-row: 1 / span 999;
        position: sticky;
        top: 24px;
        align-self: start;
        margin-top: 0;
    }

    /* U koloni od 640 px polja idu U REDOVE — forma tako biva upola kraca:
       oslovljavanje+ime | prezime · mejl | telefon · kanali | termin. */
    .res-layout > .cta-box .grid-name,
    .res-layout > .cta-box .grid-2,
    .res-layout > .cta-box .grid-reach { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .res-layout > .cta-box .name-left { grid-template-columns: 120px minmax(0, 1fr); gap: 10px; }
    .res-layout > .cta-box .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .res-layout > .cta-box .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .res-layout > .cta-box .zusatz-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 12px; }
    .res-layout > .cta-box .choice-row-sm { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .res-layout > .cta-box .channels-checks { min-height: 0; gap: 14px; }
    .res-layout > .cta-box .lead-form .grid-3 > .field,
    .res-layout > .cta-box .lead-form .grid-4 > .field { justify-content: flex-start; }
    .res-layout > .cta-box h3 { font-size: 18px; }
    .res-layout > .cta-box .check-consent { padding: 12px 13px; }
}

/* ---- Polje za PLZ u hero delu naslovne (8.9.2026) ---- */
.hero-form { display: flex; align-items: flex-end; gap: 12px; margin: 6px 0 0; flex-wrap: wrap; }
.hero-form-field { display: flex; flex-direction: column; gap: 6px; }
.hero-form-field .label { font-size: 13px; font-weight: 600; color: var(--ink-strong); }
.hero-form input[name="plz"] {
    width: 150px; padding: 12px 14px; font-size: 17px; font-family: inherit;
    border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink-strong);
}
.hero-form input[name="plz"]:focus { outline: 2px solid var(--red); outline-offset: 1px; }
@media (max-width: 560px) {
    .hero-form { gap: 10px; }
    .hero-form-field { flex: 1 1 100%; }
    .hero-form input[name="plz"] { width: 100%; }
    .hero-form .btn { flex: 1 1 100%; text-align: center; }
}

/* Sklopljena kvalifikaciona pitanja u lead formi (8.9.2026) */
.lead-more { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; margin: 14px 0; }
.lead-more > summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-strong); }
.lead-more[open] > summary { margin-bottom: 10px; }

/* ---- Kartice zahteva: Kurz / Ausführlich / Auf 2027 warten (11.9.2026) ----
   Bez JS-a: kartica nema, tri forme stoje jedna ispod druge, svaka sa svojim naslovom.
   Autorsko `display` bi pregazilo atribut `hidden` — zato izričito pravilo za oba. */
.lead-tabs[hidden], .lead-panel[hidden] { display: none; }
.lead-tabs {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px;
    margin: 14px 0 6px; padding: 4px; background: var(--bg-soft);
    border: 1px solid var(--line); border-radius: var(--r);
}
.lead-tabs [role="tab"] {
    font: inherit; font-size: 14px; font-weight: 600; line-height: 1.25; color: var(--ink);
    background: transparent; border: 0; border-radius: var(--r-sm); padding: 9px 6px; cursor: pointer;
}
.lead-tabs [role="tab"]:hover { color: var(--ink-strong); background: #fff; }
.lead-tabs [role="tab"][aria-selected="true"] { background: #fff; color: var(--red); box-shadow: var(--shadow-sm); }
.lead-tabs [role="tab"]:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }
.lead-panel-title { font-size: 15px; margin: 22px 0 4px; }
.has-tabs .lead-panel-title { display: none; }
.lead-panel .lead-form > .grid-2 { margin-bottom: 14px; }
.lead-hint { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.alert-intro { font-size: 14px; margin: 14px 0 0; }
.alert-consent { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 12px 0 14px; }
.details-box { max-width: 760px; margin-top: 18px; }
.det-salutation { max-width: 220px; margin-bottom: 14px; }
@media (max-width: 380px) {
    .lead-tabs [role="tab"] { font-size: 13px; padding: 8px 4px; }
}
