/* =====================================================================
   ANLIKER Lieferantenportal – Design-System
   Abgeleitet von www.anliker.ch (Analyse 17.11.2026):
   - Schrift: Montserrat 300 (Headlines), 400 (Text), 700 (Auszeichnung)
   - Primärfarbe Teal #006464 (Logo-Wortmarke, Footer), Button #096565
   - Akzent Rot #DC3232 (Logo-Bildmarke, aktive Navigation)
   - Sekundär Slate #2D4156, Gold #B6A76A, Grau #707070
   - Eckige Buttons (border-radius 0), grosszügiger Weissraum
   ===================================================================== */

@font-face { font-family: "Montserrat"; font-weight: 300; font-style: normal; font-display: swap; src: url("fonts/montserrat-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/montserrat-latin-700-normal.woff2") format("woff2"); }

:root {
    --anl-teal: #006464;
    --anl-teal-btn: #096565;
    --anl-teal-dark: #004b4b;
    --anl-teal-tint: #e6f0f0;
    --anl-red: #dc3232;
    --anl-slate: #2d4156;
    --anl-gold: #b6a76a;
    --anl-grey: #707070;
    --anl-grey-light: #bebebe;
    --anl-line: #dee2e6;
    --anl-bg-tint: #f0f4f7;
    --anl-text: #111;
    --anl-font: "Montserrat", Helvetica, Calibri, Arial, sans-serif;
    --container: 1200px;
    --gutter: clamp(20px, 4vw, 40px);
    --section: clamp(56px, 8vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--anl-font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--anl-text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--anl-teal); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { margin: 0 0 .5em; }
h1 { font-weight: 300; font-size: clamp(2.1rem, 4.6vw, 3.75rem); line-height: 1.2; letter-spacing: -.01em; }
h2 { font-weight: 300; font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.2; }
h3 { font-weight: 700; font-size: 1.125rem; line-height: 1.35; }
p { margin: 0 0 1em; }

h1:focus { outline: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 640px; }
.center { text-align: center; }
.muted { color: var(--anl-grey); }
.small { font-size: .875rem; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--anl-grey); max-width: 60ch; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--anl-teal); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--anl-red); }
.eyebrow-light { color: #fff; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--anl-teal); color: #fff; padding: 8px 16px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons (eckig wie anliker.ch) ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font: 700 1rem/1.5 var(--anl-font);
    padding: 14px 34px; border: 1px solid transparent; border-radius: 0;
    cursor: pointer; text-decoration: none !important; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary, .btn-dark { background: var(--anl-teal-btn); color: #fff; border-color: var(--anl-teal-btn); }
.btn-primary:hover, .btn-dark:hover { background: var(--anl-teal-dark); border-color: var(--anl-teal-dark); }
.btn-light { background: #fff; color: var(--anl-teal); border-color: #fff; }
.btn-light:hover { background: var(--anl-teal-tint); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn-ghost { background: transparent; color: var(--anl-text); border-color: var(--anl-grey-light); }
.btn-ghost:hover { border-color: var(--anl-teal); color: var(--anl-teal); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--anl-gold); outline-offset: 2px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--anl-line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--anl-teal); text-decoration: none !important; }
.brand-logo { height: 44px; width: auto; }
.brand-mark { width: 14px; height: 36px; background: var(--anl-red); }
.brand-word { font-weight: 700; font-size: 1.5rem; letter-spacing: .02em; }
.brand-divider { width: 1px; height: 28px; background: var(--anl-grey-light); }
.brand-sub { font-weight: 400; font-size: 1.05rem; color: var(--anl-text); }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a { color: var(--anl-text); font-weight: 600; font-size: .95rem; padding: 6px 0; border-bottom: 3px solid transparent; text-decoration: none; }
.main-nav a:hover { color: var(--anl-teal); }
.main-nav a.active { color: var(--anl-red); border-bottom-color: var(--anl-red); }
.main-nav a.nav-cta { border: 1px solid var(--anl-teal); color: var(--anl-teal); padding: 9px 22px; }
.main-nav a.nav-cta:hover, .main-nav a.nav-cta.active { background: var(--anl-teal); color: #fff; border-color: var(--anl-teal); }

.nav-toggle, .nav-burger { display: none; }

@media (max-width: 980px) {
    .brand-sub { display: none; }
    .brand-divider { display: none; }
    .nav-burger { display: flex; flex-direction: column; gap: 7px; cursor: pointer; padding: 10px; }
    .nav-burger span { width: 28px; height: 2px; background: var(--anl-text); transition: transform .2s; }
    .main-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0; background: #fff;
        border-bottom: 1px solid var(--anl-line); padding: 8px var(--gutter) 24px;
    }
    .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--anl-line); }
    .main-nav a.active { border-bottom-color: var(--anl-line); }
    .main-nav a.nav-cta { margin-top: 16px; text-align: center; }
    .nav-toggle:checked ~ .main-nav { display: flex; }
    .nav-toggle:checked ~ .nav-burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
    .nav-toggle:checked ~ .nav-burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
    .header-inner { position: static; }
}

/* ---------- Hero ---------- */
.hero { background: var(--anl-teal); color: #fff; }
.hero-inner { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 88px); }
.hero h1 { max-width: 22ch; color: #fff; }
.hero-lead { font-size: clamp(1.05rem, 1.8vw, 1.375rem); line-height: 1.6; max-width: 46ch; opacity: .95; margin-bottom: 36px; }
.hero-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-visual { height: clamp(220px, 32vw, 440px); overflow: hidden; background: var(--anl-slate); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual-pattern {
    background:
        linear-gradient(115deg, rgba(0,100,100,.0) 0 55%, rgba(220,50,50,.0) 55%),
        repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px 80px),
        repeating-linear-gradient(0deg, rgba(255,255,255,.07) 0 1px, transparent 1px 80px),
        linear-gradient(120deg, var(--anl-slate) 0%, #24485a 45%, var(--anl-teal) 100%);
    position: relative;
}
.hero-visual-pattern::after {
    content: ""; position: absolute; right: 8%; bottom: 0; width: min(42%, 520px); height: 78%;
    background:
        repeating-linear-gradient(0deg, rgba(255,255,255,.18) 0 2px, transparent 2px 36px),
        repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 2px, transparent 2px 52px);
    border: 2px solid rgba(255,255,255,.25); border-bottom: 0;
}
.hero-visual-pattern::before {
    content: ""; position: absolute; left: 10%; bottom: 0; width: 6px; height: 92%;
    background: var(--anl-gold); opacity: .8; box-shadow: 0 0 0 0 transparent;
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-tint { background: var(--anl-bg-tint); }
.section-wizard { padding-top: 0; background: var(--anl-bg-tint); }

.page-header { background: var(--anl-bg-tint); padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--anl-line); }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.split-wide { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
@media (max-width: 860px) { .split, .split-wide { grid-template-columns: 1fr; } }

.benefits, .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); margin-top: 40px; }
.benefit, .fact { border-top: 3px solid var(--anl-teal); padding-top: 24px; }
.benefit .icon, .fact .icon, .trust .icon { color: var(--anl-teal); margin-bottom: 16px; }
.benefit h3 { font-size: 1.375rem; margin-bottom: 8px; }
.benefit p, .fact p { color: var(--anl-grey); }
.fact-value { font-size: 1.375rem; font-weight: 300; color: var(--anl-text) !important; margin-bottom: 4px; }
@media (max-width: 760px) { .benefits, .facts { grid-template-columns: 1fr; } }

.process { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: none; }
.process li { background: #fff; padding: 32px 28px; position: relative; border-bottom: 3px solid var(--anl-teal); }
.process-no { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; background: var(--anl-teal); color: #fff; font-weight: 700; margin-bottom: 20px; }
.process li:last-child .process-no { background: var(--anl-red); }
.process p { color: var(--anl-grey); margin: 0; font-size: .95rem; }
@media (max-width: 980px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

.checklist { display: grid; gap: 0; border: 1px solid var(--anl-line); background: #fff; }
.checklist-group { padding: 24px 28px; border-bottom: 1px solid var(--anl-line); }
.checklist-group:last-child { border-bottom: 0; }
.checklist-group h3 { display: flex; align-items: center; gap: 12px; color: var(--anl-teal); }
.checklist ul, .ticks { list-style: none; margin: 0; padding: 0; }
.checklist li { padding: 6px 0 6px 26px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 10px; height: 2px; background: var(--anl-red); }

.ticks li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--anl-line); font-size: 1.05rem; }
.ticks .icon { color: var(--anl-teal); flex-shrink: 0; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.value { border-left: 3px solid var(--anl-red); padding-left: 20px; }
.value p { color: var(--anl-grey); }
@media (max-width: 980px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 56px; }
.trust p { color: var(--anl-grey); }
@media (max-width: 760px) { .trust-grid { grid-template-columns: 1fr; } }

.notice { display: flex; gap: 20px; align-items: flex-start; background: #fff; border-left: 4px solid var(--anl-gold); padding: 28px 32px; }
.notice .icon { color: var(--anl-gold); flex-shrink: 0; }
.notice p { margin: 0; color: var(--anl-grey); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--anl-line); background: transparent; }
.faq details:first-child { border-top: 1px solid var(--anl-line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.6rem; font-weight: 300; color: var(--anl-teal); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--anl-grey); padding: 0 40px 20px 0; margin: 0; }

.contact-card { background: var(--anl-teal); color: #fff; padding: 36px 32px; position: sticky; top: 110px; }
.contact-card a { color: #fff; font-weight: 600; }
.contact-card hr { border: 0; border-top: 1px solid rgba(255,255,255,.3); margin: 24px 0; }
.contact-card .muted { color: rgba(255,255,255,.8); margin: 0; }
.contact-line { display: flex; align-items: center; gap: 12px; }

.cta-band { background: var(--anl-slate); color: #fff; padding: clamp(48px, 6vw, 72px) 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { margin: 0; opacity: .85; }

.prose { max-width: 760px; }
.placeholder-note { border: 1px dashed var(--anl-gold); background: #fbf9f1; padding: 16px 20px; margin-bottom: 28px; font-size: .95rem; }

/* ---------- Cards & Forms ---------- */
.card { background: #fff; border: 1px solid var(--anl-line); padding: clamp(24px, 4vw, 44px); }

.wizard-head { background: var(--anl-bg-tint); padding: clamp(36px, 5vw, 56px) 0 28px; }
.wizard-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 6px; }
.wizard { max-width: 920px; }
.wizard-card h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 4px; }
.step-sub { color: var(--anl-grey); margin-bottom: 28px; }

.progress { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.progress-bar { display: block; height: 6px; background: #dde3e7; margin-bottom: 8px; }
.progress-step.done .progress-bar, .progress-step.current .progress-bar { background: var(--anl-teal); }
.progress-label { font-size: .8125rem; color: var(--anl-grey); }
.progress-step.current .progress-label { color: var(--anl-text); font-weight: 700; }
@media (max-width: 640px) {
    .progress-label { display: none; }
    .progress-step.current .progress-label { display: block; white-space: nowrap; }
}

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; }
.span-2 { grid-column: span 2; }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } .span-2 { grid-column: auto; } }

.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.req { color: var(--anl-red); }
.optional { font-weight: 400; color: var(--anl-grey); }
.hint { font-size: .8125rem; color: var(--anl-grey); margin: 6px 0 0; }

input[type=text], input[type=email], input[type=password], input[type=tel], input:not([type]), select {
    font: 400 1rem var(--anl-font); color: var(--anl-text);
    height: 50px; padding: 0 14px; border: 1px solid var(--anl-grey-light); border-radius: 0; background: #fff; width: 100%;
    appearance: none; -webkit-appearance: none;
}
select {
    background-image: linear-gradient(45deg, transparent 50%, var(--anl-teal) 50%), linear-gradient(135deg, var(--anl-teal) 50%, transparent 50%);
    background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px;
}
input:focus, select:focus { border-color: var(--anl-teal); outline: 2px solid var(--anl-teal-tint); outline-offset: 0; }
input.invalid, select.invalid { border-color: var(--anl-red); }
.validation-message { color: var(--anl-red); font-size: .8125rem; margin-top: 6px; }
.validation-summary { display: none; }

.field.check { flex-direction: row; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.field.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--anl-teal); flex-shrink: 0; }
.field.check label { font-weight: 400; font-size: 1rem; }
.field.check + .validation-message { margin: 0 0 14px 34px; }

.subsection { border: 0; border-top: 1px solid var(--anl-line); margin: 18px 0 0; padding: 24px 0 0; }
.subsection legend { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--anl-teal); padding: 0 12px 0 0; }

.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--anl-line); flex-wrap: wrap; }
.form-actions.center { justify-content: center; border-top: 0; }

.alert { padding: 14px 18px; margin-bottom: 20px; font-size: .95rem; border-left: 4px solid; }
.alert-error { background: #fdf0f0; border-color: var(--anl-red); color: #8a1f1f; }
.alert-info { background: var(--anl-teal-tint); border-color: var(--anl-teal); color: var(--anl-teal-dark); }

.save-note { display: flex; align-items: center; gap: 10px; color: var(--anl-grey); font-size: .875rem; margin: 20px 0 0; padding-bottom: var(--section); }

.summary { display: grid; gap: 16px; margin: 0 0 28px; }
.summary-block { border: 1px solid var(--anl-line); padding: 20px 24px; background: #fff; }
.summary-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.summary-head h3 { margin: 0; color: var(--anl-teal); }
.summary-head a { font-size: .875rem; font-weight: 600; }
.summary dl { display: grid; grid-template-columns: 180px 1fr; gap: 6px 16px; margin: 0; }
.summary dt { color: var(--anl-grey); font-size: .9rem; }
.summary dd { margin: 0; font-size: .95rem; word-break: break-word; }
@media (max-width: 560px) { .summary dl { grid-template-columns: 1fr; } .summary dd { margin-bottom: 8px; } }

.done-panel { text-align: center; padding: 16px 0; }
.done-panel h2 { margin: 18px auto 12px; max-width: 24ch; }
.done-panel p { max-width: 54ch; margin-left: auto; margin-right: auto; }
.done-icon { display: inline-flex; width: 76px; height: 76px; align-items: center; justify-content: center; background: var(--anl-teal); color: #fff; }

.badge { display: inline-block; padding: 2px 10px; font-size: .8125rem; font-weight: 700; background: var(--anl-teal-tint); color: var(--anl-teal-dark); }
.badge-entwurf { background: #eef0f2; color: var(--anl-slate); }
.badge-freigegeben { background: var(--anl-teal); color: #fff; }
.badge-rueckfrage { background: #fbf2e1; color: #7a5a12; }

.timeline { list-style: none; padding: 0; margin: 20px 0 28px; }
.timeline li { display: flex; justify-content: space-between; padding: 14px 0 14px 32px; border-bottom: 1px solid var(--anl-line); position: relative; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 18px; width: 14px; height: 14px; border: 2px solid var(--anl-grey-light); background: #fff; }
.timeline li.done::before { background: var(--anl-teal); border-color: var(--anl-teal); }
.timeline li span { color: var(--anl-grey); font-size: .9rem; }
.logout { margin: 24px 0 0; padding-bottom: var(--section); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--anl-line); color: var(--anl-teal); padding: clamp(56px, 7vw, 96px) 0 32px; background: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-title { font-weight: 700; margin-bottom: 8px; }
.site-footer a { color: var(--anl-teal); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--anl-line); font-size: .875rem; }
.footer-copy { margin-left: auto; color: var(--anl-grey); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } .footer-copy { margin-left: 0; width: 100%; } }
