/* ==========================================================================
   BIENZ SCHLIESSTECHNIK — Stylesheet
   Navy/Grau, sachlich, ohne Superlative — passend zur Textstrategie.
   ========================================================================== */

@font-face {
  font-family: "Bitter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/bitter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

:root {
  --navy: #161d57;
  --navy-dark: #0f1438;
  --navy-tint: #eaebf6;
  --gray: #8b9a9b;
  --gray-light: #eef0f3;
  --bg: #ffffff;
  --bg-alt: #f6f6f8;
  --text: #232328;
  --text-muted: #5c5f66;
  --border: #e3e4e9;
  --tbd-bg: #fff6df;
  --tbd-border: #e8c675;
  --tbd-text: #7a5b00;
  --radius: 6px;
  --container: 1180px;
  --font-head: "Bitter", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 1px 2px rgba(19, 18, 48, 0.06), 0 4px 16px rgba(19, 18, 48, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
  hyphens: auto;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.section:first-of-type { border-top: none; }
.section-alt { background: var(--bg-alt); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 0 32px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 10px;
}

/* ---- Buttons / links ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--navy-dark); border-color: var(--navy-dark); text-decoration: none; }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-white { background: #fff; color: var(--navy); border-color: #fff; }
.btn-white:hover { background: var(--gray-light); }

.arrow-link {
  display: inline-block;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid transparent;
}
.arrow-link:hover { border-color: var(--navy); text-decoration: none; }

/* ---- Placeholder text (bracketed TBD values from source docs) ---- */
.tbd {
  background: var(--tbd-bg);
  border: 1px solid var(--tbd-border);
  color: var(--tbd-text);
  padding: 0 5px;
  border-radius: 3px;
  font-style: normal;
  font-size: 0.94em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---- Image / media placeholders ---- */
.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  background: repeating-linear-gradient(135deg, var(--gray-light), var(--gray-light) 10px, #fff 10px, #fff 20px);
  border: 1.5px dashed var(--gray);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 20px;
  min-height: 160px;
}
.img-placeholder svg { width: 28px; height: 28px; stroke: var(--gray); flex-shrink: 0; }
.img-placeholder span { max-width: 32ch; }
.img-placeholder.tall { min-height: 320px; }
.img-placeholder.short { min-height: 100px; }

/* ---- Photos ---- */
.photo { margin: 0; }
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--gray-light);
}
.photo.ratio-4-3 img { aspect-ratio: 4 / 3; }
.photo.ratio-16-9 img { aspect-ratio: 16 / 9; }
.photo.ratio-1-1 img { aspect-ratio: 1 / 1; }
.photo figcaption {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 8px;
}
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---- Map (loads only after consent) ---- */
.map-consent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.map-consent p { max-width: 42ch; margin: 0; }
.map-consent .btn { font-size: 0.88rem; padding: 10px 18px; }
.map-frame {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--radius);
}
.link-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 12px; }

/* ---- Header ---- */
.util-bar {
  background: var(--navy);
  color: #d5d8ec;
  font-size: 0.78rem;
}
.util-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
}
.util-bar a { color: #fff; font-weight: 600; }
.util-status { display: inline-flex; align-items: center; gap: 8px; }
.util-status strong { color: #fff; font-weight: 600; }
.util-status.is-open::before,
.util-status.is-closed::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4cc38a;
  flex-shrink: 0;
}
.util-status.is-closed::before { background: #9aa0a8; }
@media (max-width: 700px) {
  .util-address { display: none; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.site-header.scrolled { box-shadow: 0 2px 14px rgba(15, 20, 56, 0.08); }
.site-header .container {
  display: flex;
  align-items: center;
  gap: 36px;
  min-height: 64px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-mark { width: auto; height: 40px; }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.nav-item { position: relative; display: flex; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 22px 0;
  background: none;
  border: 0;
  font: 600 0.9rem/1 var(--font-body);
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: inset 0 -2px 0 transparent;
  transition: color 0.15s, box-shadow 0.15s;
}
.nav-link:hover { color: var(--navy); text-decoration: none; }
.nav-item.is-active > .nav-link { color: var(--navy); box-shadow: inset 0 -2px 0 var(--navy); }
.has-panel > .nav-link::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.nav-item.open > .nav-link::after { transform: rotate(-135deg); margin-top: 3px; }

.nav-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
}
.nav-panel.cols-1 { grid-template-columns: minmax(0, 1fr); }
.nav-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
}
.nav-panel a small {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.nav-panel a:hover { background: var(--bg-alt); text-decoration: none; }
.nav-panel a[aria-current="page"] { background: var(--navy-tint); color: var(--navy); }

.nav-cta { margin-left: auto; padding: 10px 20px; font-size: 0.9rem; }
.nav-cta[aria-current="page"] { background: var(--navy-dark); }
.nav-mobile-extra { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  position: relative;
  transition: transform 0.2s, background 0.2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 1024px) {
  .nav-panel {
    position: absolute;
    top: 100%;
    left: -16px;
    min-width: 470px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-top: 2px solid var(--navy);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 12px 28px rgba(15, 20, 56, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  }
  .nav-panel.cols-1 { min-width: 280px; }
  .nav-item.has-panel:hover > .nav-panel,
  .nav-item.open > .nav-panel {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-item.has-panel:hover > .nav-link { color: var(--navy); }
}

@media (max-width: 1023px) {
  .site-header .container { gap: 16px; }
  .nav-toggle { display: flex; }
  .nav-primary {
    position: fixed;
    top: var(--nav-top, 64px);
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    overflow-y: auto;
    padding: 8px 24px 32px;
    display: none;
    border-top: 1px solid var(--border);
  }
  .nav-primary.open { display: block; }
  body.nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-item { flex-direction: column; border-bottom: 1px solid var(--border); }
  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 18px 0;
    font-size: 1.05rem;
  }
  .nav-item.is-active > .nav-link { box-shadow: none; }
  .nav-panel { display: none; padding: 0 0 12px; grid-template-columns: minmax(0, 1fr); }
  .nav-item.open > .nav-panel { display: grid; }
  .nav-mobile-extra {
    display: grid;
    gap: 10px;
    margin-top: 24px;
  }
  .nav-mobile-extra .btn { justify-content: center; }
  .nav-mobile-extra p { font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; }
}
@media (max-width: 560px) {
  .nav-cta { display: none; }
  .nav-toggle { margin-left: auto; }
}

/* ---- Hero banner (photo + brand-colour filter) ---- */
.hero-banner {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  min-height: clamp(520px, 40vw, 640px);
  display: flex;
  align-items: center;
}
.hero-banner__img {
  position: absolute;
  top: 0;
  right: 0;
  width: 52%;
  height: 100%;
  object-fit: cover;
  object-position: 25% 45%;
}
.hero-banner__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    var(--navy) 0%,
    var(--navy) 48.5%,
    rgba(22, 29, 87, 0.86) 52%,
    rgba(22, 29, 87, 0.35) 56.5%,
    rgba(22, 29, 87, 0.08) 60%,
    rgba(22, 29, 87, 0) 63%);
}
.hero-banner .container { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 64px; }
.hero-banner__text { max-width: 540px; }
.hero-banner h1 { color: #fff; }
.hero-banner .kicker {
  color: #aeb6dc;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.hero-banner .hero-sub { color: #dfe3f7; }
.hero-banner p { color: #c9cde6; }
.hero-banner .lead { font-size: 1rem; }
.hero-banner__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn-ghost-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost-white:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
/* Below 1181px the window no longer fits beside the text: stack text above photo. */
@media (max-width: 1180px) {
  .hero-banner { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-banner .container { order: 1; padding-top: 48px; padding-bottom: 40px; }
  .hero-banner__text { max-width: 640px; }
  .hero-banner__img {
    order: 2;
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-position: 50% 45%;
  }
  .hero-banner__shade { display: none; }
}

/* ---- Hero ---- */
.hero {
  padding-top: 8px;
  padding-bottom: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}
.hero .kicker {
  font-weight: 700;
  color: var(--gray);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hero p.lead { font-size: 1.06rem; color: var(--text-muted); }
.hero-sub {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: -4px;
}
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* ---- Card grids ---- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); }
.card .arrow-link { margin-top: 12px; }

.feature { padding: 4px 0; }
.feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature p { color: var(--text-muted); }

/* ---- Steps ---- */
.steps {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.step { position: relative; padding-left: 46px; }
.step-num {
  position: absolute;
  left: 0; top: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { color: var(--text-muted); font-size: 0.94rem; }

/* ---- Table ---- */
table { width: 100%; border-collapse: collapse; }
table th, table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
table th { color: var(--navy); font-family: var(--font-head); font-size: 0.92rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.table-wrap table { border: none; }
.table-wrap th, .table-wrap td { border-bottom: 1px solid var(--border); }
.table-wrap tr:last-child td { border-bottom: none; }

/* ---- Callout / info boxes ---- */
.callout {
  border: 1px solid var(--border);
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.callout.navy { background: var(--navy-tint); border-color: #d6d2f7; }
.callout-warning {
  border: 1px solid #e6c8c8;
  background: #fbf1f1;
  border-radius: var(--radius);
  padding: 22px 26px;
}
.callout-warning ul { list-style: none; padding: 0; margin: 10px 0 0; }
.callout-warning li { padding: 4px 0 4px 26px; position: relative; font-weight: 600; }
.callout-warning li::before {
  content: "✕";
  position: absolute; left: 0; top: 4px;
  color: #a23a3a;
  font-weight: 700;
}

/* ---- Price box ---- */
.price-list { list-style: none; padding: 0; margin: 16px 0 0; }
.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.price-list li:last-child { border-bottom: none; }
.price-list .amount { font-weight: 700; color: var(--navy); text-align: right; }
@media (max-width: 600px) {
  .price-list li { flex-direction: column; gap: 4px; }
  .price-list .amount { text-align: left; }
}

/* ---- Forms ---- */
form { display: grid; gap: 16px; align-content: start; }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
  color: var(--text);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
}
textarea { resize: vertical; min-height: 110px; }
.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px dashed var(--gray);
  border-radius: var(--radius);
  padding: 10px 14px;
}
.form-status {
  display: none;
  font-size: 0.92rem;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--navy-tint);
  border: 1px solid #d6d2f7;
  color: var(--navy-dark);
}
.form-status.visible { display: block; }

/* ---- Contact / shop info ---- */
.shop-info dl { margin: 0; }
.shop-info dt { font-weight: 700; color: var(--navy); margin-top: 14px; }
.shop-info dt:first-child { margin-top: 0; }
.shop-info dd { margin: 4px 0 0; color: var(--text-muted); }
.hours-table td:first-child { color: var(--text-muted); }
.hours-table td:last-child { text-align: right; font-weight: 600; }

/* ---- Badges (partner brands) ---- */
.badge-row { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 18px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  background: #fff;
  font-size: 0.95rem;
}

/* ---- CTA band ---- */
.cta-band {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 4px; }
.cta-band p { color: #d7d6ea; margin: 0; }

/* ---- Placeholder page ---- */
.stub {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 90px 0 100px;
}
.stub .eyebrow { display: block; margin-bottom: 14px; }
.stub p { color: var(--text-muted); }
.stub .btn { margin-top: 18px; }

/* ---- Footer ---- */
.site-footer {
  background: var(--navy-dark);
  color: #c7c6dd;
  padding: 56px 0 28px;
  margin-top: 56px;
}
.site-footer a { color: #fff; }
.site-footer .grid-4 { margin-bottom: 40px; }
.footer-brand strong { color: #fff; font-family: var(--font-head); font-size: 1.1rem; }
.footer-brand p { color: #a6a5c2; font-size: 0.9rem; margin-top: 10px; }
.site-footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: 0.92rem; }
.site-footer li a { color: #c7c6dd; }
.site-footer li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #8b8aab;
}

/* ---- Legal pages ---- */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.2rem; margin-top: 2em; }

/* ---- Utilities ---- */
.mt-0 { margin-top: 0; }
.text-muted { color: var(--text-muted); }
.center { text-align: center; }
