/* Balkone Missel – Template "bmsystem" (Aluminium-Geländersystem), 11/2026 */
:root {
  --bm-ink: #1c2024; --bm-ink2: #3d454d; --bm-muted: #5b636b;
  --bm-line: #dde1e5; --bm-grey: #f2f4f6; --bm-dark: #1c2024; --bm-darker: #14171a;
  --bm-green: #7ed321; --bm-green-ink: #14210d; --bm-green-text: #2f6b0c; --bm-green-soft: #f3fbe9;
  --bm-max: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Barlow, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.55; color: var(--bm-ink); background: #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--bm-green-text); }
a:hover { color: #1d4a05; }
h1, h2, h3 { line-height: 1.1; }
.bm-wrap { max-width: var(--bm-max); margin: 0 auto; padding: 0 24px; }
.bm-mono, .bm-kicker { font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 500; }
.bm-kicker { display: block; font-size: 14px; letter-spacing: .04em; color: var(--bm-green-text); margin-bottom: 8px; }
.bm-kicker-light { color: var(--bm-green); }

/* Servicezeile */
.bm-service { background: var(--bm-dark); color: #c9ced3; font-size: 14px; }
.bm-service-in { display: flex; flex-wrap: wrap; gap: 6px 28px; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.bm-service a { color: var(--bm-green); text-decoration: none; }
.bm-service-links { display: flex; flex-wrap: wrap; gap: 6px 24px; }

/* Kopf und Navigation */
.bm-header { background: #fff; border-bottom: 1px solid var(--bm-line); position: relative; z-index: 50; }
.bm-header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.bm-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--bm-ink); }
.bm-brand img { height: 48px; width: auto; }
.bm-brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.bm-brand-name { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 24px; letter-spacing: .02em; text-transform: uppercase; }
.bm-brand-sub { font-size: 13px; color: var(--bm-muted); letter-spacing: .06em; text-transform: uppercase; }
.bm-nav ul { list-style: none; margin: 0; padding: 0; }
.bm-nav > ul { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.bm-nav > ul > li { position: relative; }
.bm-nav a { display: block; padding: 10px 12px; color: var(--bm-ink); text-decoration: none; font-weight: 500; }
.bm-nav > ul > li.active > a { color: var(--bm-green-text); }
.bm-nav a:hover { color: var(--bm-green-text); }
.bm-nav .has-sub > a::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.bm-sub { position: absolute; left: 0; top: 100%; min-width: 250px; background: #fff; border: 1px solid var(--bm-line); border-top: 3px solid var(--bm-green); padding: 6px 0 !important; display: none; box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.bm-sub a { padding: 9px 16px; font-weight: 400; }
.bm-nav li.has-sub:hover > .bm-sub, .bm-nav li.has-sub:focus-within > .bm-sub { display: block; }
.bm-nav-cta a { margin-left: 8px; padding: 12px 18px; background: var(--bm-green); color: var(--bm-green-ink) !important; font-weight: 600; border-radius: 3px; }
.bm-nav-cta a:hover { background: #6bbd17; }
.bm-nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.bm-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--bm-line); border-radius: 3px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.bm-burger span { display: block; width: 22px; height: 2px; background: var(--bm-ink); }

/* Buttons */
.bm-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.bm-btn { display: inline-block; padding: 15px 24px; border-radius: 3px; text-decoration: none; font-weight: 600; font-size: 17px; line-height: 1.2; }
.bm-btn-primary { background: var(--bm-green); color: var(--bm-green-ink) !important; }
.bm-btn-primary:hover { background: #6bbd17; }
.bm-btn-outline { border: 1.5px solid var(--bm-ink); color: var(--bm-ink) !important; }
.bm-btn-dark { background: var(--bm-dark); color: #fff !important; }
.bm-btn-light { border: 1.5px solid #fff; color: #fff !important; }

/* Startseite */
.bm-hero { background: var(--bm-grey); border-bottom: 1px solid var(--bm-line); }
.bm-hero-in { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.bm-hero-txt { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.bm-hero h1 { margin: 0; font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: clamp(44px, 6vw, 66px); line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.bm-hero-claim { margin: 0; font-size: 22px; font-weight: 600; }
.bm-hero-lead { margin: 0; font-size: 19px; color: var(--bm-ink2); max-width: 560px; }
.bm-hero-card { flex: 1 1 440px; min-width: 0; margin: 0; background: #fff; border: 1px solid var(--bm-line); }
.bm-hero-card img { display: block; width: 100%; height: 360px; object-fit: cover; }
.bm-hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--bm-line); }
.bm-hero-facts div { padding: 14px 16px; border-right: 1px solid var(--bm-line); display: flex; flex-direction: column; }
.bm-hero-facts div:last-child { border-right: 0; }
.bm-hero-facts b { font-family: "IBM Plex Mono", monospace; font-weight: 500; font-size: 22px; }
.bm-hero-facts span { font-size: 13px; color: var(--bm-muted); }
.bm-sec { padding: 72px 0; }
.bm-sec-grey { background: var(--bm-grey); border-top: 1px solid var(--bm-line); border-bottom: 1px solid var(--bm-line); }
.bm-sec-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; }
.bm-sec-head a { font-weight: 600; }
.bm-sec h2, .bm-dark h2 { margin: 0; font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: clamp(32px, 4vw, 42px); text-transform: uppercase; }
.bm-grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.bm-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.bm-tile { border: 1px solid var(--bm-line); padding: 24px; color: var(--bm-ink); }
.bm-tile h3 { margin: 12px 0 6px; font-size: 19px; font-weight: 600; }
.bm-tile p { margin: 0; color: var(--bm-muted); font-size: 15px; }
.bm-way { background: #fff; border: 1px solid var(--bm-line); padding: 32px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.bm-way-accent { border-top: 4px solid var(--bm-green); }
.bm-way .bm-mono { font-size: 13px; color: var(--bm-muted); }
.bm-way h3 { margin: 0; font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 30px; text-transform: uppercase; }
.bm-way ul { margin: 0; padding-left: 20px; color: var(--bm-ink2); }
.bm-model { border: 1px solid var(--bm-line); text-decoration: none; color: var(--bm-ink); display: flex; flex-direction: column; }
.bm-model:hover { border-color: var(--bm-green); }
.bm-model img { display: block; width: 100%; height: 210px; object-fit: cover; }
.bm-model .bm-mono { padding: 16px 18px 0; font-size: 13px; color: var(--bm-muted); }
.bm-model-t { padding: 4px 18px 18px; font-weight: 600; }
.bm-dark { background: var(--bm-dark); color: #fff; padding: 64px 0; }
.bm-dark-in { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: center; justify-content: space-between; }
.bm-dark-in > div:first-child { flex: 1 1 520px; }
.bm-dark p { color: #c9ced3; margin: 12px 0 0; }

/* Unterseiten */
.bm-pagehead { background: var(--bm-grey); border-bottom: 1px solid var(--bm-line); padding: 28px 0; }
.bm-pagehead h1 { margin: 6px 0 0; font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: clamp(32px, 4vw, 44px); text-transform: uppercase; }
.bm-crumb { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--bm-muted); }
.bm-crumb a { color: var(--bm-muted); text-decoration: none; }
.bm-crumb a:hover { color: var(--bm-green-text); }
.bm-content { padding-top: 40px; padding-bottom: 72px; max-width: 980px; }
.bm-content-wide { max-width: var(--bm-max); }
.bm-content h1, .bm-content h2, .bm-content h3 { font-family: "Barlow Condensed", sans-serif; font-weight: 700; }
.bm-content h2 { font-size: 30px; }
.bm-content table { max-width: 100%; }
.bm-content img { height: auto !important; }

/* Fuß */
.bm-footer { background: var(--bm-darker); color: #9aa3ab; font-size: 15px; }
.bm-footer-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; padding-top: 44px; padding-bottom: 44px; }
.bm-footer-in > div { display: flex; flex-direction: column; gap: 8px; }
.bm-footer b { color: #fff; font-weight: 600; }
.bm-footer a { color: #9aa3ab; }
.bm-footer a:hover { color: #fff; }

/* Handy */
@media (max-width: 980px) {
  .bm-burger { display: flex; }
  .bm-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--bm-line); box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  .bm-nav-toggle:checked ~ .bm-nav { display: block; }
  .bm-nav > ul { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .bm-nav a { padding: 12px 8px; border-bottom: 1px solid var(--bm-grey); }
  .bm-sub { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 14px !important; min-width: 0; }
  .bm-nav .has-sub > a::after { display: none; }
  .bm-nav-cta a { margin: 12px 0 0; text-align: center; }
  .bm-hero-in { padding-top: 36px; padding-bottom: 40px; gap: 28px; }
  .bm-hero-card img { height: 240px; }
  .bm-sec { padding: 48px 0; }
  .bm-brand-sub { display: none; }
}
@media (max-width: 520px) {
  .bm-wrap { padding: 0 16px; }
  .bm-brand-name { font-size: 19px; }
  .bm-brand img { height: 38px; }
  .bm-btn { width: 100%; text-align: center; }
  .bm-way { padding: 22px; }
}

/* Textseiten: Galerie-Kacheln, Karte, Video */
.bm-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 24px 0 32px; }
.bm-gal a { display: block; border: 1px solid var(--bm-line); background: #fff; text-decoration: none; color: var(--bm-ink); transition: border-color .15s; }
.bm-gal a:hover { border-color: var(--bm-green); }
.bm-gal img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bm-gal span { display: block; padding: 10px 14px; font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 19px; }
.bm-map, .bm-video { background: var(--bm-grey); border: 1px solid var(--bm-line); padding: 20px 24px; margin: 24px 0; }
.bm-map iframe { display: block; width: 100%; height: 420px; border: 0; margin: -20px -24px; width: calc(100% + 48px); }
.bm-video iframe { display: block; width: calc(100% + 48px); aspect-ratio: 16 / 9; border: 0; margin: -20px -24px; }
.bm-routes { columns: 2; }
@media (max-width: 600px) { .bm-routes { columns: 1; } }

/* Bilderpaare und Kontaktformular */
.bm-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 8px 0 28px; }
.bm-pics img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--bm-line); }
.bm-form { max-width: 820px; margin-top: 24px; }
.bm-form-row { display: grid; gap: 16px; margin-bottom: 16px; }
.bm-form-2 { grid-template-columns: 1fr 1fr; }
.bm-form-3 { grid-template-columns: 140px 1fr 1fr; }
.bm-form-4 { grid-template-columns: 1fr 110px 1fr 160px; }
.bm-form label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; color: var(--bm-ink2); }
.bm-form input, .bm-form select, .bm-form textarea { font: inherit; font-weight: 400; color: var(--bm-ink); padding: 10px 12px; border: 1px solid #c4cad0; border-radius: 3px; background: #fff; width: 100%; box-sizing: border-box; }
.bm-form input:focus, .bm-form select:focus, .bm-form textarea:focus { outline: 2px solid var(--bm-green); outline-offset: 0; border-color: var(--bm-green); }
.bm-form textarea { resize: vertical; }
.bm-form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bm-form-note { font-size: 14px; color: var(--bm-muted); }
.bm-form-err { border-left: 4px solid #c62828; background: #fdecea; padding: 12px 16px; margin: 16px 0; }
.bm-form-err p { margin: 4px 0; }
.bm-form-ok { border-left: 4px solid var(--bm-green); background: var(--bm-green-soft); padding: 16px 20px; margin: 16px 0; }
@media (max-width: 700px) { .bm-form-2, .bm-form-3, .bm-form-4 { grid-template-columns: 1fr; } }

/* Galerie-Karten, Dekore, RAL, Lightbox */
.bm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin: 24px 0 32px; }
.bm-card { margin: 0; border: 1px solid var(--bm-line); background: #fff; display: flex; flex-direction: column; }
.bm-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bm-card figcaption { padding: 12px 16px 14px; font-size: 15px; line-height: 1.45; color: var(--bm-ink2); }
.bm-card ul { margin: 0; padding-left: 18px; }
.bm-card a.bm-lb { cursor: zoom-in; }
.bm-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin: 24px 0; }
.bm-swatches figure { margin: 0; border: 1px solid var(--bm-line); background: #fff; }
.bm-swatches img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.bm-swatches figcaption { padding: 8px 10px; font-weight: 600; font-size: 15px; }
.bm-ral { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 12px 0 28px; }
.bm-ral div { border: 1px solid var(--bm-line); background: #fff; font-size: 14px; line-height: 1.3; padding-bottom: 8px; }
.bm-ral span { display: block; height: 56px; margin-bottom: 8px; border-bottom: 1px solid var(--bm-line); }
.bm-ral b { display: block; padding: 0 10px; font-family: "IBM Plex Mono", monospace; font-size: 13px; }
.bm-ral i { display: block; padding: 2px 10px 0; font-style: normal; }
.bm-note { font-size: 14px; color: var(--bm-muted); border-left: 3px solid var(--bm-line); padding-left: 12px; }
.bm-lbox { position: fixed; inset: 0; z-index: 1000; background: rgba(20, 23, 26, .92); display: flex; align-items: center; justify-content: center; }
.bm-lbox figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.bm-lbox img { max-width: 92vw; max-height: 80vh; display: block; margin: 0 auto; }
.bm-lbox figcaption { color: #fff; margin-top: 10px; font-size: 15px; }
.bm-lbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 44px; line-height: 1; cursor: pointer; padding: 12px 18px; }
.bm-lbox-x { top: 8px; right: 8px; }
.bm-lbox-p { left: 8px; top: 50%; transform: translateY(-50%); }
.bm-lbox-n { right: 8px; top: 50%; transform: translateY(-50%); }

/* Glossar (Tabs), Balkon-Lexikon, alte Inhaltstabellen */
.child2tabs-menu { list-style: none; margin: 8px 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.child2tabs-menu li { margin: 0; }
.child2tabs-menu a { display: block; padding: 8px 14px; border: 1px solid var(--bm-line); border-radius: 3px; text-decoration: none; color: var(--bm-ink); font-weight: 600; font-size: 15px; background: #fff; }
.child2tabs-menu a:hover, .child2tabs-menu li.active a, .child2tabs-menu li.current a { border-color: var(--bm-green); background: var(--bm-green-soft); }
.bm-content table { width: 100% !important; border-collapse: collapse; }
.bm-content td, .bm-content th { vertical-align: top; }
.bm-content td img, .bm-content th img { max-width: 100%; width: auto !important; }
.bm-content p:empty { display: none; }
.glossary { font-size: 16px; }
.glossary > a { display: inline-block; min-width: 28px; text-align: center; font-weight: 700; text-decoration: none; }
.glossary_list { margin-top: 24px; }
.glossary_letter a { display: block; font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 30px; color: var(--bm-green-text); border-bottom: 2px solid var(--bm-green); margin: 28px 0 8px; }
.glossary_term { margin-top: 14px; font-size: 18px; }
.glossary_list dd { margin: 4px 0 0; color: var(--bm-ink2); }
.bm-form-plz { grid-template-columns: 110px 1fr 160px; } @media (max-width: 700px) { .bm-form-plz { grid-template-columns: 1fr; } }
.bmk-anh-hint { font-size: 14px; color: var(--bm-muted); margin: 6px 0 0; font-weight: 400; } .bmk-anh-hint:empty { display: none; } input[type=file] { font: inherit; font-weight: 400; padding: 10px; border: 1px dashed #c4cad0; border-radius: 3px; background: #fff; width: 100%; box-sizing: border-box; }
