/* 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; }

.head-nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.head-nav > a { color: var(--ink); }
.lang-switch { display: inline-flex; gap: 6px; border-left: 1px solid var(--line); padding-left: 14px; }
.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: 900px; }
.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"], 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, select:hover { border-color: #bdbdbd; }
input[type="text"]: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; }

.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; }

.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="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);
}

.fs-channels { margin-top: 14px; padding: 12px 16px 14px; }
.fs-channels legend { font-size: 12px; }

.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) {
    .consent-bar { flex-direction: column; align-items: stretch; gap: 12px; }
    .consent-actions .btn { flex: 1; text-align: center; }
}

/* ------------------------------ statistika ------------------------------ */

.stat-cards { display: grid; grid-template-columns: repeat(4, 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; }
}

@media (max-width: 860px) {
    .icon-strip { grid-template-columns: 1fr; gap: 18px; padding-top: 26px; }
}

@media (max-width: 560px) {
    .cards, .choice-row, .grid-2, .grid-4, .stats-inner { grid-template-columns: 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; }
    .head-nav > a { display: none; }
    .offers { min-width: 420px; font-size: 13px; }
    .offers td, .offers th { padding: 8px 6px; }
    .offers .muted { font-size: 12px; }
}
