/* ==========================================================================
   Bau- und Möbeltischlerei Steffen Berkenbusch – statische Website
   Master-Layout: FireShot 294 (Startseite) / 295 (Kontakt), Desktop 1920 px
   ========================================================================== */

:root {
  --rot: #e34a42;
  --rot-hell: #f2a6a4;
  --text: #333333;
  --text-hell: #666666;
  --flaeche: #f8f8f8;
  --linie: #f3f3f3;
  --linie-feld: #e1e1e1;
  --weiss: #ffffff;
  --container: 1069px;
  --header-h: 133px;
  --header-border: 13px;
  --schrift: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--weiss);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 14px;              /* Fließtext Desktop */
  line-height: 1.77;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rot); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1em; }

.container {
  width: calc(100% - 100px);
  max-width: var(--container);
  margin: 0 auto;
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: #fff; padding: 10px 16px; }
.skip-link:focus { left: 10px; top: 10px; }

:focus-visible { outline: 2px solid var(--rot); outline-offset: 2px; }

/* ---------- Header ------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--weiss);
  border-bottom: var(--header-border) solid var(--rot);
}
.site-header .container {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  position: relative;
}
.logo { display: block; height: 132px; align-self: flex-start; }
.logo img { height: 132px; width: auto; }

.main-nav { height: 100%; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; height: 100%; }
.main-nav li { height: 100%; position: relative; }
.main-nav a, .main-nav button {
  display: flex; align-items: center; height: 100%;
  padding: 0 12px;
  font-family: inherit; font-size: 17px; font-weight: 600; letter-spacing: 0;
  color: var(--text); background: none; border: 0; cursor: pointer;
}
.main-nav li:last-child > * { padding-right: 12px; }
.main-nav a:hover { color: var(--rot); text-decoration: none; }
.main-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--rot);
}
.search-toggle svg { width: 13px; height: 13px; }

/* Suche */
.search-panel {
  position: absolute; right: 0; top: calc(100% + var(--header-border));
  width: 300px; background: #fff; border: 1px solid var(--linie-feld);
  box-shadow: 0 6px 18px rgba(0,0,0,.08); padding: 12px; display: none; z-index: 120;
}
.search-panel.open { display: block; }
.search-panel input {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--linie-feld);
  background: var(--flaeche); font: inherit; color: var(--text);
}
.search-results { list-style: none; margin: 8px 0 0; padding: 0; max-height: 260px; overflow: auto; }
.search-results li a { display: block; padding: 6px 4px; color: var(--text); border-bottom: 1px solid var(--linie); line-height: 1.4; }
.search-results li a strong { color: var(--rot); display: block; font-size: 13px; }
.search-results li a:hover { background: var(--flaeche); text-decoration: none; }
.search-results .leer { padding: 6px 4px; color: var(--text-hell); }

.burger { display: none; }

/* ---------- Hero -------------------------------------------------------- */
.hero { width: 100%; height: calc(100vw / 3 - var(--header-border)); overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }

/* ---------- Überschriften ---------------------------------------------- */
.titel {
  color: var(--rot); text-align: center; font-weight: 700;
  font-size: 39px; line-height: 43px; letter-spacing: 1px;
  margin: 0;
}
.titel-h2 { font-size: 34px; line-height: 40px; letter-spacing: 1.5px; }

.trenner { width: 50%; height: 0; border: 0; border-top: 1px solid var(--rot); margin: 0 auto; }

.ueberschrift-block { text-align: center; }
.ueberschrift-block .trenner:first-child { margin-bottom: 38px; }
.ueberschrift-block .trenner:last-child { margin-top: 33px; }

/* ---------- Startseite: Intro ------------------------------------------ */
.intro { padding: 45px 0 0; }
.intro .lead { text-align: center; margin: 22px 0 0; }

/* ---------- Leistungen -------------------------------------------------- */
.leistungen { padding: 49px 0 56px; }
.leistungen .ueberschrift-block { margin-bottom: 53px; }
.leistungen-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 59px; }

.icon-liste { list-style: none; margin: 0; padding: 0; }
.icon-liste > li { position: relative; display: flex; align-items: flex-start; min-height: 58px; }
.icon-liste > li + li { margin-top: 12px; }
.icon-liste .punkt {
  flex: 0 0 58px; width: 58px; height: 58px; border-radius: 50%;
  border: 1px solid var(--rot-hell); background: #fff; position: relative; z-index: 1;
  margin-left: 2px;
}
.icon-liste .punkt::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px;
  margin: -9px 0 0 -9px; border-radius: 50%; background: var(--rot);
}
.icon-liste .inhalt { padding-left: 25px; }
.icon-liste h3 {
  margin: 0; font-size: 17px; line-height: 22px; font-weight: 700; color: var(--text); letter-spacing: .2px;
}
.icon-liste .ohne-text h3 { line-height: 58px; }
.icon-liste ul { margin: 2px 0 0; padding: 0 0 0 27px; list-style: disc; }
.icon-liste ul li { line-height: 25.3px; }
.icon-liste .inhalt-mit-liste { padding-top: 5px; }
/* Verbindungslinie zwischen Punkten (links) */
.icon-liste.verbunden > li:not(:last-child)::before {
  content: ""; position: absolute; left: 30px; top: 58px; bottom: -12px; width: 1px; background: #fbe4e3;
}
.leistungen-grid .rechts .icon-liste > li + li { margin-top: 12px; }
.leistungen-grid .links .icon-liste > li + li { margin-top: 33px; }
.leistungen-grid .links .icon-liste.verbunden > li:not(:last-child)::before { bottom: -33px; }

/* ---------- Impressionen ------------------------------------------------ */
.impressionen {
  position: relative; padding: 100px 0 61px;
  background: url("../img/header.jpg") center / cover no-repeat fixed;
}
.impressionen::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.8); }
.impressionen > .container { position: relative; }
.impressionen .ueberschrift-block { margin-bottom: 54px; }

.galerie { display: grid; grid-template-columns: repeat(6, 1fr); }
.galerie a {
  display: block; background: #fff; padding: 6px;
  border-right: 1px solid #ececec; border-bottom: 1px solid #ececec;
  transition: opacity .25s;
}
.galerie a:hover { opacity: .65; }
.galerie img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,.88);
  display: none; align-items: center; justify-content: center; flex-direction: column; padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: min(90vw, 990px); max-height: 80vh; width: auto; margin: 0 auto; background: #fff; }
.lightbox figcaption { color: #eee; margin-top: 10px; font-size: 14px; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  font-size: 44px; line-height: 1; padding: 10px 16px; font-family: Arial, sans-serif;
}
.lightbox .lb-close { top: 10px; right: 14px; font-size: 38px; }
.lightbox .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- Info-Boxen -------------------------------------------------- */
.infoboxen { padding: 63px 0 44px; }
.infoboxen-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 63px; }
.infobox {
  position: relative; background: var(--flaeche); border: 1px solid var(--linie);
  text-align: center; padding: 38px 10px 14px; min-height: 168px;
}
.infobox .icon {
  position: absolute; left: 50%; top: 0; width: 49px; height: 49px; margin: -25px 0 0 -24.5px;
  border-radius: 50%; border: 1px solid var(--rot); background: #fff;
  display: flex; align-items: center; justify-content: center; color: var(--rot);
}
.infobox .icon svg { width: 16px; height: 16px; }
.infobox h2 {
  margin: 0 0 12px; color: var(--rot); font-size: 18px; line-height: 28px;
  letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700;
}
.infobox p { margin: 0 auto; max-width: 250px; font-size: 14.5px; line-height: 24.7px; }
.infobox a { color: inherit; }
.infobox a:hover { color: var(--rot); }

/* ---------- Karte ------------------------------------------------------- */
.karte { display: block; position: relative; height: 351px; overflow: hidden; background: #f1f3f4; }
.karte img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.karte .karte-hinweis {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(0,0,0,.7); color: #fff; padding: 14px 26px; text-align: center;
  font-size: 15.5px; line-height: 1.3; width: 178px; opacity: 0; transition: opacity .25s;
}
.karte:hover .karte-hinweis, .karte:focus-visible .karte-hinweis { opacity: 1; }
.karte:hover { text-decoration: none; }

/* ---------- Footer ------------------------------------------------------ */
.site-footer { background: var(--rot); color: #fff; min-height: 130px; padding: 21px 0 20px; font-size: 11px; line-height: 1.5; }
.site-footer .container { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.site-footer a { color: #fff; }
.footer-nav { list-style: none; margin: -3px 0 0; padding: 0; display: flex; }
.footer-nav li + li::before { content: ""; display: inline-block; width: 1px; height: 10px; background: rgba(255,255,255,.7); margin: 0 9px; vertical-align: -1px; }

/* Mobile Kontaktleiste (wie Handy-Mockup) */
.kontaktleiste { display: none; }

/* ---------- Kontaktseite ----------------------------------------------- */
.kontakt { padding: 45px 0 68px; border-bottom: 1px solid #ededed; }
.kontakt .titel { margin-bottom: 4px; }
.kontakt-grid { display: grid; grid-template-columns: 616px 1fr; column-gap: 40px; }
.kontakt-intro { color: var(--rot); font-weight: 700; font-size: 17px; line-height: 20px; margin: 3px 0 14px; letter-spacing: .1px; }
.kontakt-rechts { text-align: right; padding-top: 17px; }
.kontakt-rechts p { margin: 0; line-height: 24.5px; }
.kontakt-rechts .telefon-gross { color: var(--rot); font-weight: 700; }
.kontakt-rechts img { width: 392px; margin: 1px 0 0 auto; }

.formular .feld { margin-bottom: 14px; }
.formular input[type="text"], .formular input[type="email"], .formular input[type="tel"], .formular textarea {
  width: 100%; height: 41px; padding: 0 12px; margin: 0;
  background: var(--flaeche); border: 1px solid #ececec; border-radius: 0;
  font: inherit; font-size: 14.5px; color: var(--text);
}
.formular textarea { height: 182px; padding: 12px; resize: vertical; display: block; }
.formular ::placeholder { color: #8a8a8a; opacity: 1; }
.formular input:focus, .formular textarea:focus { outline: none; border-color: var(--rot); background: #fff; }
.formular .check { display: flex; align-items: center; gap: 8px; margin: 15px 0 22px 3px; font-weight: 700; font-size: 14.5px; }
.formular .check input { margin: 0; width: 13px; height: 13px; accent-color: var(--rot); }
.formular .pflicht { color: var(--rot); }
.formular .einwilligung { padding-right: 28px; }
.formular .einwilligung p { font-size: 14.5px; line-height: 24.8px; margin: 0 0 14px; }
.formular .einwilligung strong { color: var(--rot); }
.formular .captcha input { font-size: 11px; height: 41px; }
.formular .captcha input::placeholder { color: #444; }
.formular .hp { position: absolute; left: -9999px; }
.button {
  display: inline-block; background: var(--rot); color: #fff; border: 0; cursor: pointer;
  font: inherit; font-size: 14px; width: 126px; height: 45px; margin-top: 1px;
}
.button:hover { background: #c93a33; }
.formular-status { margin-top: 14px; padding: 12px 14px; display: none; }
.formular-status.ok { display: block; background: #eef7ee; border-left: 3px solid #4c9a4c; }
.formular-status.fehler { display: block; background: #fdf0ef; border-left: 3px solid var(--rot); }

/* ---------- Textseiten (Impressum / Datenschutz) ------------------------ */
.textseite { padding: 60px 0 70px; }
.textseite .titel { margin-bottom: 40px; }
.textseite .inhalt { max-width: 800px; margin: 0 auto; }
.textseite h2 { color: var(--rot); font-size: 20px; line-height: 1.35; margin: 34px 0 10px; }
.textseite h3 { font-size: 16px; margin: 24px 0 6px; }
.textseite ul { padding-left: 22px; margin: 0 0 1em; }
.textseite .hinweis-box { background: var(--flaeche); border-left: 3px solid var(--rot); padding: 14px 18px; margin: 0 0 30px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1169px) {
  .kontakt-grid { grid-template-columns: 58% 1fr; }
  .kontakt-rechts img { width: 100%; max-width: 392px; }
}

@media (max-width: 989px) {
  .infoboxen-grid { column-gap: 30px; }
  .leistungen-grid { column-gap: 30px; }
  .galerie { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 767px) {
  :root { --header-h: 80px; --header-border: 6px; }
  body { font-size: 16px; line-height: 1.65; }   /* Fließtext Mobil */
  .container { width: calc(100% - 32px); }

  .logo, .logo img { height: 79px; }
  .main-nav { position: static; }
  .main-nav ul.menue {
    display: none; position: absolute; left: 0; right: 0; top: calc(100% + var(--header-border));
    flex-direction: column; height: auto; background: #fff; box-shadow: 0 8px 18px rgba(0,0,0,.12);
  }
  .main-nav ul.menue.open { display: flex; }
  .main-nav ul.menue li { height: auto; border-top: 1px solid var(--linie); }
  .main-nav ul.menue a { height: 54px; padding: 0 20px; font-size: 17px; }
  .main-nav a[aria-current="page"]::after { left: 0; right: auto; width: 3px; height: 100%; top: 0; }
  .nav-rechts { display: flex; align-items: center; height: 100%; }
  .nav-rechts .search-toggle { padding: 0 10px; height: 100%; }
  .burger {
    display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    background: none; border: 0; cursor: pointer; padding: 0; margin-right: -8px;
  }
  .burger span, .burger span::before, .burger span::after {
    display: block; width: 24px; height: 2px; background: var(--text); position: relative; transition: transform .2s, background .2s;
  }
  .burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
  .burger span::before { top: -8px; } .burger span::after { top: 8px; }
  .burger[aria-expanded="true"] span { background: transparent; }
  .burger[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); }
  .burger[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); }
  .search-panel { width: auto; left: 0; right: 0; }

  .hero { height: calc(100vw / 3); }

  .titel { font-size: 28px; line-height: 34px; letter-spacing: .5px; }
  .titel-h2 { font-size: 28px; line-height: 34px; }
  .trenner { width: 70%; }
  .ueberschrift-block .trenner:first-child { margin-bottom: 26px; }
  .ueberschrift-block .trenner:last-child { margin-top: 24px; }

  .intro { padding-top: 34px; }
  .intro .lead { text-align: left; }
  .leistungen { padding: 40px 0; }
  .leistungen .ueberschrift-block { margin-bottom: 34px; }
  .leistungen-grid { grid-template-columns: 1fr; row-gap: 12px; }
  .icon-liste .punkt { flex-basis: 48px; width: 48px; height: 48px; margin-left: 0; }
  .icon-liste .punkt::after { width: 14px; height: 14px; margin: -7px 0 0 -7px; }
  .icon-liste > li { min-height: 48px; }
  .icon-liste .ohne-text h3 { line-height: 48px; }
  .icon-liste .inhalt { padding-left: 16px; }
  .icon-liste .inhalt-mit-liste { padding-top: 0; }
  .icon-liste h3 { font-size: 17px; line-height: 24px; }
  .icon-liste ul li { line-height: 1.55; }
  .icon-liste ul { padding-left: 20px; }
  .icon-liste.verbunden > li:not(:last-child)::before { left: 24px; top: 48px; }
  .leistungen-grid .links .icon-liste > li + li { margin-top: 24px; }
  .leistungen-grid .links .icon-liste.verbunden > li:not(:last-child)::before { bottom: -24px; }

  .impressionen { padding: 50px 0 40px; background-attachment: scroll; }
  .impressionen .ueberschrift-block { margin-bottom: 30px; }
  .galerie { grid-template-columns: repeat(3, 1fr); }
  .galerie a { padding: 3px; }

  .infoboxen { padding: 50px 0 30px; }
  .infoboxen-grid { grid-template-columns: 1fr; row-gap: 48px; }
  .infobox p { font-size: 16px; line-height: 1.6; }
  .infobox h2 { font-size: 17px; }

  .karte { height: 300px; }
  .karte .karte-hinweis { display: none; }

  .site-footer { min-height: 0; padding: 22px 0 76px; font-size: 13px; }
  .site-footer .container { flex-direction: column; gap: 10px; }
  .footer-nav { margin: 0; }

  .kontaktleiste {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    background: var(--rot); height: 52px; justify-content: center; gap: 0;
    box-shadow: 0 -2px 8px rgba(0,0,0,.15);
  }
  .kontaktleiste a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; font-size: 15px;
  }
  .kontaktleiste a + a { border-left: 1px solid rgba(255,255,255,.35); }
  .kontaktleiste svg { width: 20px; height: 20px; }

  .kontakt { padding: 34px 0 44px; }
  .kontakt .titel { margin-bottom: 18px; }
  .kontakt-grid { grid-template-columns: 1fr; row-gap: 30px; }
  .kontakt-intro { font-size: 17px; line-height: 23px; }
  .kontakt-rechts { order: -1; text-align: center; padding: 0; }
  .kontakt-rechts .telefon-gross { font-size: 20px; }
  .kontakt-rechts img { display: none; }
  .formular input[type="text"], .formular input[type="email"], .formular input[type="tel"], .formular textarea { font-size: 16px; height: 46px; }
  .formular textarea { height: 170px; }
  .formular .einwilligung p, .formular .check { font-size: 16px; line-height: 1.6; }
  .formular .captcha input { font-size: 16px; }
  .button { width: 100%; height: 50px; font-size: 16px; }

  .textseite { padding: 40px 0 50px; }
  .textseite .titel { margin-bottom: 26px; }
  .textseite h2 { font-size: 19px; }
}

@media (hover: none) { .impressionen { background-attachment: scroll; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

@media print {
  .site-header { position: static; }
  .kontaktleiste, .search-panel, .lightbox, .karte { display: none !important; }
  .impressionen { background: none; }
}

/* Navigation rechts (Desktop) */
.nav-rechts { display: flex; align-items: center; height: 100%; }
.search-toggle { height: 100%; }
