/* BERNICO – Kampagnen-Landingpage bernico.pro
   Keine externen Fonts/Skripte (DSGVO): nur Systemschriften. */

:root {
  --navy: #0d2233;
  --navy-2: #163449;
  --steel: #5b6f7f;
  --line: #dfe5ea;
  --bg: #f5f7f9;
  --card: #ffffff;
  --text: #13212c;
  --muted: #5b6b78;
  --brand: #3fa9f5;        /* Bernico blue (bernico.pl) */
  --accent: #1a84d4;       /* darker brand blue: readable with white text */
  --accent-dark: #146cb0;
  --sea: #146cb0;
  --ok: #1d7a46;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(13,34,51,.06), 0 6px 20px rgba(13,34,51,.06);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--sea); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 5.2vw, 50px); }
h2 { font-size: clamp(24px, 3.6vw, 34px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--white { background: #fff; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.lead { font-size: 19px; color: var(--muted); max-width: 680px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(13,34,51,.97); color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 62px; }
.brand { display: flex; align-items: center; }
.brand img { height: 36px; width: auto; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang { display: flex; gap: 2px; }
.lang a {
  color: #a9bccb; text-decoration: none; font-size: 13px; font-weight: 700;
  padding: 6px 7px; border-radius: 6px;
}
.lang a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.12); }
.mainsite {
  color: #fff; font-size: 14px; text-decoration: none; white-space: nowrap;
  border: 1px solid rgba(255,255,255,.3); padding: 7px 12px; border-radius: 8px;
}
.mainsite:hover { background: rgba(255,255,255,.08); }
.mainsite .short { display: none; }

/* Hero */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(63,169,245,.35), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 56px 0 72px;
}
.hero .lead { color: #c5d3de; }
.hero .eyebrow { color: var(--brand); }
.hero-grid { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: center; }
.hero-img { margin: 0; }
.hero-img img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.12); }
.hero-img a { display: block; text-decoration: none; }
.hero-img a img { transition: transform .2s; }
.hero-img a:hover img { transform: translateY(-3px); }
.hero-img figcaption b { color: var(--brand); white-space: nowrap; }
.hero-img figcaption { font-size: 13px; color: #a9bccb; margin-top: 10px; text-align: center; }
.greet {
  display: none; margin-bottom: 18px; padding: 10px 14px; border-radius: 10px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  font-size: 15px; color: #e3ecf2; max-width: 680px;
}
.greet.is-on { display: block; }
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; max-width: 820px; }
.path {
  display: block; text-decoration: none; color: var(--text); background: #fff;
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
  border: 2px solid transparent; transition: transform .15s, border-color .15s;
}
.path:hover { transform: translateY(-2px); border-color: var(--accent); }
.path.is-active { border-color: var(--accent); }
.path small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.path strong { display: block; font-size: 21px; margin-bottom: 6px; }
.path span { color: var(--muted); font-size: 15px; }
.path .go { display: block; margin-top: 12px; font-weight: 700; color: var(--sea); font-size: 15px; }

/* Trust strip */
.facts { background: #fff; border-bottom: 1px solid var(--line); }
.facts ul {
  list-style: none; margin: 0; padding: 18px 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.facts li { font-size: 14px; color: var(--muted); }
.facts b { display: block; font-size: 22px; color: var(--navy); }

/* Panels */
section[id] { scroll-margin-top: 70px; }
.steps { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li {
  background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
  counter-increment: s; position: relative;
}
.steps li::before {
  content: counter(s); display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff;
  font-weight: 700; margin-bottom: 12px;
}
.steps p { color: var(--muted); font-size: 15px; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.tags li { background: #e8eef2; color: var(--navy); font-size: 14px; padding: 6px 12px; border-radius: 999px; }

.machines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 18px; }
.machine {
  display: flex; flex-direction: column; text-decoration: none; color: var(--text);
  background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
  border: 1px solid var(--line); transition: border-color .15s, transform .15s;
}
.machine:hover { border-color: var(--sea); transform: translateY(-2px); }
.machine img { width: calc(100% + 40px); max-width: none; margin: -20px -20px 16px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; background: #e8eef2; }
.machine { overflow: hidden; }
.machine .brandname { flex: 0 0 auto;  font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--sea); text-transform: uppercase; }
.machine strong { font-size: 18px; margin: 4px 0 6px; }
.machine span { color: var(--muted); font-size: 14px; flex: 1; }
.machine em { font-style: normal; font-weight: 700; color: var(--accent-dark); font-size: 14px; margin-top: 12px; }
.note { font-size: 14px; color: var(--muted); }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.compare div { border-radius: var(--radius); padding: 20px; }
.compare .old { background: #eef1f4; color: var(--muted); }
.compare .new { background: #e5f2f4; color: var(--navy); border: 1px solid #bfdfe4; }
.compare h3 { font-size: 16px; }
.compare ul { margin: 0; padding-left: 18px; font-size: 15px; }

.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 17px; padding: 14px 22px; border-radius: 10px; border: 0; cursor: pointer;
}
.btn:hover { background: var(--accent-dark); }
.btn--ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
.services div { background: var(--bg); border-radius: 12px; padding: 18px; font-size: 15px; }
.services b { display: block; color: var(--navy); margin-bottom: 4px; font-size: 16px; }

/* People */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.person { display: flex; gap: 16px; background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.avatar {
  flex: 0 0 72px; width: 72px; height: 72px; object-fit: cover; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 22px; letter-spacing: .04em;
}
.person h3 { margin-bottom: 2px; }
.person .role { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.person a { display: block; font-size: 15px; text-decoration: none; margin-bottom: 2px; }
.person a:hover { text-decoration: underline; }
.person .langs { margin-top: 8px; font-size: 13px; color: var(--muted); }
.person .langs::before { content: "🗣 "; }

/* Form */
.formbox { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin-top: 26px; }
.choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; border: 0; padding: 0; }
.choice legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.choice label {
  display: block; border: 2px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer;
  font-weight: 600; font-size: 15px; text-align: center;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice input:checked + span { color: var(--accent-dark); }
.choice label:has(input:checked) { border-color: var(--accent); background: #eaf5fe; }
.choice input:focus-visible + span { outline: 2px solid var(--sea); outline-offset: 4px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field label i { font-style: normal; font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  padding: 12px 14px; border: 1px solid #c9d3db; border-radius: 10px; background: #fff;
}
input:focus, textarea:focus { outline: 2px solid var(--sea); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 120px; resize: vertical; }
.upload {
  display: block; border: 2px dashed #c9d3db; border-radius: 12px; padding: 18px; text-align: center;
  cursor: pointer; color: var(--muted); font-size: 15px; background: var(--bg);
}
.upload:hover { border-color: var(--sea); }
.upload b { color: var(--navy); display: block; font-size: 16px; }
.upload input { display: block; margin: 10px auto 0; font-size: 14px; max-width: 100%; }
.files { font-size: 14px; color: var(--ok); margin-top: 6px; min-height: 1em; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 18px 0; }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alt { margin-top: 16px; font-size: 15px; color: var(--muted); }

.flash { display: none; border-radius: 12px; padding: 16px 18px; margin-bottom: 18px; font-weight: 600; }
.flash.is-on { display: block; }
.flash--ok { background: #e6f4ec; color: var(--ok); border: 1px solid #b9dfc8; }
.flash--err { background: #fdecea; color: #a3261b; border: 1px solid #f3c3bd; }

/* Footer */
footer { background: var(--navy); color: #a9bccb; font-size: 14px; padding: 40px 0 110px; }
footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
footer b { color: #fff; }
footer a { color: #dfe8ee; text-decoration: none; display: block; margin-bottom: 4px; }
footer a:hover { text-decoration: underline; }

/* Mobile sticky bar */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(13,34,51,.08);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  grid-template-columns: 1fr 1fr 1.4fr; gap: 8px;
}
.bar a {
  text-align: center; text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 12px 6px; border-radius: 10px; color: var(--navy); background: var(--bg);
}
.bar a.primary { background: var(--accent); color: #fff; }

/* Legal pages */
.legal { background: #fff; }
.legal .wrap { max-width: 780px; padding-top: 40px; padding-bottom: 80px; }
.legal h2 { font-size: 22px; margin-top: 1.6em; }
.legal p, .legal li { font-size: 16px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 240px; gap: 28px; }
  .machines, .services { grid-template-columns: 1fr 1fr; }
  .facts ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 44px 0; }
  .wrap { padding: 0 16px; }
  .brand span { display: none; }
  .mainsite { font-size: 13px; padding: 6px 9px; }
  .mainsite .long, .mainsite .dom { display: none; }
  .mainsite .short { display: inline; }
  .top nav { gap: 8px; }
  .paths, .steps, .machines, .compare, .people, .grid2, .services { grid-template-columns: 1fr; }
  .choice { grid-template-columns: 1fr; }
  .hero { padding: 36px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-img { display: none; }
  .brand img { height: 28px; }
  .formbox { padding: 20px; }
  .bar { display: grid; }
  footer .wrap { grid-template-columns: 1fr; }
}
