/* Funktionen page specifics — extracted from webroot/redesign/funktionen.html. */

/* Hide the legacy DB page header rendered by the layout (header.tpl.php $html
   branch) — the page template ships its own redesign hero instead. */
.controller-funktionen #header.ghero,
.controller-funktionen #header.header { display: none; }

/* the layout also appends the Google review seal below its header — the
   redesign page ships its own hero without a review block, so hide it */
.controller-funktionen .seals { display: none; }

/* ---------- Hero: sub page variant ---------- */
.ghero h1 {
    font-family: var(--g-display);
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: .01em;
    margin-top: 1.2rem;
    color: #fff;
    max-width: 20ch;
}
.ghero h1 b { font-family: var(--g-display-bold); font-weight: 400; color: var(--g-yellow); }
.ghero-sub { font-size: 1.15rem; color: #e6edf8; margin-top: 1.2rem; max-width: 62ch; }
.ghero-note { font-size: .95rem; color: #cdd9ec; }
.ghero-note em { font-style: italic; }
.ghero-note a { color: #fff; }

.sec-head .lead { max-width: 52ch; }

/* ---------- Module cards (2-column mod grammar) ---------- */
.mod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.mod {
    display: flex; flex-direction: column;
    border: 1px solid var(--border); border-radius: 28px;
    padding: 28px 26px;
    background: linear-gradient(145deg, #fff, #EAF1FB);
    text-decoration: none;
    box-shadow: var(--sh-sm);
    transition: transform .25s var(--ease), box-shadow .25s;
    min-height: 230px;
    color: inherit;
}
.mod:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.mod .ic {
    width: 56px; height: 56px; border-radius: 16px;
    background: var(--white); color: var(--yellow-dark);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
    margin-bottom: 18px;
}
.mod h3 { font-size: 1.4rem; margin-bottom: 6px; }
.mod p { color: var(--text-mid); font-size: .96rem; line-height: 1.5; }
.mod ul { list-style: none; margin: 14px 0 0; padding: 0; }
.mod li { position: relative; padding: 4px 0 4px 26px; color: var(--text-mid); font-size: .94rem; }
.mod li::before {
    content: "\f00c"; font-family: "Font Awesome 5 Pro"; font-weight: 900;
    position: absolute; left: 0; top: 4px; color: var(--success); font-size: .8rem;
}
/* anchor targets (#kurse, #finanzen, …) — keep the sticky nav clear of the card */
.mod, .benefit { scroll-margin-top: 110px; }
/* "Mehr erfahren" pill (cards link to their /funktionen/<modul>/ subpage) */
.mod .pill {
    margin-top: auto; align-self: flex-start;
    background: var(--white); border: 1px solid var(--border);
    border-radius: 999px; padding: 7px 16px;
    font-family: var(--f-body-bold); font-size: .85rem; color: var(--ink);
}
.mod ul { margin-bottom: 18px; }
.mod .pill i { color: var(--yellow-dark); margin-left: 6px; transition: transform .2s var(--ease); }
.mod:hover .pill i { transform: translateX(4px); }
.mod--wide .pill { margin: 0; white-space: nowrap; align-self: center; }
.mod--wide {
    grid-column: 1 / -1; min-height: 0;
    flex-direction: row; align-items: center; gap: 24px;
}
.mod--wide .ic { margin-bottom: 0; flex: 0 0 auto; }
.mod--wide .mod-text { flex: 1; }
.mod--wide h3 { margin-bottom: 2px; }
@media (max-width: 980px) {
    .mod-grid { grid-template-columns: 1fr; }
    .mod--wide { flex-direction: column; align-items: flex-start; }
}

/* ---------- More modules (benefit grammar, h5 level) ---------- */
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit {
    background: var(--white); border: 1px solid var(--border);
    border-radius: 24px; padding: 30px 26px;
    box-shadow: var(--sh-sm);
    transition: transform .25s var(--ease), box-shadow .25s;
    display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
}
.benefit:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.benefit .ic {
    width: 56px; height: 56px; border-radius: 16px;
    background: var(--yellow-soft); color: var(--yellow-dark);
    display: flex; align-items: center; justify-content: center; font-size: 1.45rem;
    margin-bottom: 18px;
}
.benefit h5 {
    font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
    letter-spacing: -.01em; color: var(--ink);
    font-size: 1.18rem; margin-bottom: 8px;
}
.benefit p { color: var(--text-mid); font-size: .95rem; line-height: 1.55; margin-bottom: 0; }
/* "Mehr erfahren" link (cards link to their /funktionen/<modul>/ subpage) */
.benefit .link {
    margin-top: auto; padding-top: 14px;
    font-family: var(--f-body-bold); color: var(--blue-dark); font-size: .92rem;
}
.benefit .link i { color: var(--yellow-dark); margin-left: 6px; transition: transform .2s var(--ease); }
.benefit:hover .link i { transform: translateX(4px); }
@media (max-width: 980px) { .benefit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .benefit-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ chips ---------- */
.faq h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 26px; }
.faq-chips { display: flex; gap: 9px; flex-wrap: wrap; }
.faq-chips span {
    background: var(--white); border: 1px solid var(--border);
    border-radius: 999px; padding: 8px 16px;
    font-size: .88rem; color: var(--text-mid);
}

/* ---------- Country chips as links (map section) ---------- */
.chips a {
    background: var(--white); border: 1px solid var(--border);
    border-radius: 999px; padding: 7px 16px;
    font-family: var(--f-body-bold); font-size: .85rem; color: var(--text-mid);
    text-decoration: none;
    transition: border-color .2s, color .2s;
}
.chips a:hover { border-color: var(--yellow-dark); color: var(--ink); }

/* CTA box: shared partial _cta_box.tpl.php, styled by redesign/base.css */
