/* Schreinerei C. Schubert – statischer Nachbau von schreinerei-bocholt.com */

@font-face { font-family: "Open Sans"; src: url("../fonts/opensans-regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/opensans-semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/opensans-bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Pinyon Script"; src: url("../fonts/PinyonScript-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "fontello"; src: url("../fonts/fontello.woff2") format("woff2"); }
@font-face { font-family: "entypo-fontello"; src: url("../fonts/entypo-fontello.woff2") format("woff2"); }

:root {
  --blau: #0e2356;
  --text: #666666;
  --weiss: #ffffff;
  --breite: 1310px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Open Sans", Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.65; color: var(--text); background: var(--weiss); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blau); }
.container { max-width: var(--breite); margin: 0 auto; padding: 0 50px; }

h1 { font-family: "Pinyon Script", Helvetica, Arial, sans-serif; font-weight: 400; font-size: 50px; line-height: 1.1; color: var(--blau); text-align: center; margin: 0 0 20px; overflow-wrap: break-word; hyphens: auto; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--blau); margin: 0 0 20px; }
p { text-align: justify; margin: 0 0 1em; }

/* ---------- Topbar ---------- */
.topbar { background: var(--blau); color: var(--weiss); font-size: 14px; font-weight: 700; line-height: 31px; }
.topbar .container { display: flex; justify-content: flex-end; flex-wrap: wrap; }
.topbar a, .topbar span { color: var(--weiss); text-decoration: none; padding: 0 10px; border-left: 1px solid rgba(255,255,255,.3); }
.topbar span { border-left: 0; }

/* ---------- Header ---------- */
.header { background: var(--weiss); border-bottom: 1px solid #e1e1e1; position: sticky; top: 0; z-index: 50; }
.header .container { display: flex; justify-content: space-between; align-items: stretch; height: 150px; }
.logo { display: flex; align-items: center; }
.logo img { max-height: 120px; width: auto; }
.menu { display: flex; list-style: none; margin: 0; padding: 0; }
.menu a { display: flex; align-items: center; height: 100%; padding: 0 13px; font-size: 16px; font-weight: 600; color: var(--blau); text-decoration: none; }
.menu a:hover, .menu a.aktiv { background: var(--blau); color: var(--weiss); }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 0 5px; align-self: center; }
.burger span { display: block; width: 26px; height: 2px; background: var(--blau); margin: 6px 0; }

/* ---------- Slider ---------- */
.slider { position: relative; max-width: 2000px; margin: 0 auto; aspect-ratio: 2000 / 600; overflow: hidden; container-type: inline-size; }
.slider > * { position: absolute; }
.slider .bg { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slider .bild { object-fit: cover; opacity: 0; animation: einblenden 1s ease forwards; }
.slider .text { margin: 0; padding: .5cqw; font-family: Helvetica, Arial, sans-serif; font-weight: 700; line-height: 1.15; color: var(--weiss); background: rgba(0,0,0,.41); text-align: left; opacity: 0; animation: von-rechts 2s ease forwards; }
@keyframes einblenden { to { opacity: 1; } }
@keyframes von-rechts { from { opacity: 0; transform: translateX(30cqw); } to { opacity: 1; transform: none; } }

/* Positionen wie im Original-LayerSlider (Basis 2000 × 600 px) */
.s404 { left: 8.9%; top: 9.83%; width: 26.9%; height: 53.83%; animation-delay: 0s; }
.s01  { left: 39.4%; top: 10%; width: 15.7%; height: 78.5%; animation-duration: 4s; animation-delay: .2s; }
.s02  { left: 58.7%; top: 10.5%; width: 17.75%; height: 79%; animation-duration: 3s; animation-delay: 1s; }
.s03  { left: 79.45%; top: 10.33%; width: 17.85%; height: 79.33%; animation-duration: 4s; animation-delay: .3s; }
.t1   { left: 8.7%; top: 69.67%; font-size: 2.3cqw; }
.t2   { left: 40.25%; top: 79.17%; font-size: 1.5cqw; }

/* ---------- Sektionen ---------- */
.sektion { padding: 70px 0; }
.sektion--bild { background: url("../images/hintergrund-kontakt.jpg") center / cover no-repeat; position: relative; }
.sektion--bild::before { content: ""; position: absolute; inset: 0; }
.sektion--bild > .container { position: relative; }
.sektion--hell::before { background: rgba(255,255,255,.8); }
.sektion--blau::before { background: rgba(14,35,86,.5); }
.mitte { text-align: center; }

/* Leistungskacheln */
.kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 6%; margin: 50px 0; text-align: center; }
.icon { font-family: "fontello"; font-size: 60px; line-height: 1; color: var(--blau); display: block; margin-bottom: 30px; }
.kachel h3 { margin-bottom: 20px; }
.button { display: inline-block; background: var(--blau); color: var(--weiss); font-size: 13px; line-height: 1; padding: 15px 30px; border-radius: 3px; text-decoration: none; }
.button::after { content: "\e832"; font-family: "entypo-fontello"; margin-left: 8px; }
.button:hover { opacity: .85; }

/* Kontakt */
.sektion--blau h1 { color: var(--weiss); }
.formular { max-width: 60%; margin: 0 auto; color: var(--weiss); }
.formular p { font-size: 10px; line-height: 1.5; }
.formular a { color: var(--weiss); }
.felder { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.feld { margin-bottom: 15px; }
.feld--voll { grid-column: 1 / -1; }
.feld label { display: block; font-size: 12.88px; font-weight: 700; margin-bottom: 4px; }
.feld input[type=text], .feld input[type=email], .feld input[type=tel], .feld textarea { width: 100%; padding: 13px; font: inherit; font-size: 13px; color: var(--weiss); background: transparent; border: 2px solid var(--weiss); border-radius: 0; }
.feld textarea { height: 177px; resize: vertical; }
.feld--check label { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.feld--falle { position: absolute; left: -9999px; }
.formular button { font: inherit; font-size: 13px; color: var(--weiss); background: transparent; border: 2px solid var(--weiss); padding: 16px 20px; cursor: pointer; }
.formular button:hover { background: var(--weiss); color: var(--blau); }
.feld--aufgabe input[type=text] { width: 120px; }
.formular .meldung { font-size: 14px; font-weight: 700; border: 2px solid var(--weiss); padding: 12px 15px; margin-top: 10px; }

/* ---------- Unterseiten ---------- */
h1.links { text-align: left; }
p.links { text-align: left; }
.zweispaltig { display: grid; grid-template-columns: 2fr 1fr; gap: 6%; }
.drei-spalten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 6%; }

/* Galerie: Vorschaubilder ohne Abstand, 5 pro Reihe (Leistungsseiten) bzw. 10 pro Reihe (Ladenbau, volle Breite) */
.galerie { display: grid; grid-template-columns: repeat(5, 1fr); align-content: start; margin-bottom: 30px; }
.galerie--breit { grid-template-columns: repeat(10, 1fr); }
.galerie a, .daumen a { display: block; }
.galerie img, .daumen img { width: 100%; aspect-ratio: 495 / 400; object-fit: cover; }
.galerie a:hover img, .daumen a:hover img { opacity: .7; }

/* Leisten: großes Bild + Vorschaubilder, 4 pro Reihe */
.leisten-logo { margin: 0 auto 30px; }
.leisten { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 3%; margin: 30px 0; }
.bildwechsel .gross img { width: 100%; aspect-ratio: 495 / 400; object-fit: cover; }
.daumen { display: grid; grid-template-columns: repeat(5, 1fr); }
.leiste p { margin-top: 10px; text-align: left; }

/* Rechtstexte */
.rechtstext p { text-align: left; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.9); display: none; align-items: center; justify-content: center; }
.lightbox.offen { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; width: auto; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--weiss); font-size: 40px; line-height: 1; cursor: pointer; padding: 10px 15px; }
.lightbox .zu { top: 10px; right: 10px; }
.lightbox .zurueck { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .vor { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .zaehler { position: absolute; bottom: 15px; left: 0; right: 0; text-align: center; color: var(--weiss); font-size: 13px; }

/* ---------- Footer ---------- */
.footer { background: var(--blau); color: var(--weiss); padding: 15px 0 30px; font-size: 14px; line-height: 1.65; }
.footer h3 { color: var(--weiss); font-size: 15.4px; font-weight: 600; text-transform: uppercase; margin: 20px 0 15px; }
.footer p { text-align: left; }
.footer a { color: var(--weiss); text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 989px) {
  .container { padding: 0 25px; }
  .header .container { height: 90px; }
  .logo img { max-height: 70px; }
  .burger { display: block; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--weiss); border-bottom: 1px solid #e1e1e1; }
  .menu.offen { display: flex; }
  .menu a { padding: 14px 25px; height: auto; }
  .kacheln { grid-template-columns: 1fr 1fr; }
  .formular { max-width: 100%; }
  .zweispaltig { grid-template-columns: 1fr; }
  .galerie--breit { grid-template-columns: repeat(5, 1fr); }
  .leisten { grid-template-columns: 1fr 1fr; }
  .drei-spalten { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  h1 { font-size: 40px; }
  .sektion { padding: 50px 0; }
  .topbar .container { justify-content: center; }
  .kacheln, .felder, .drei-spalten { grid-template-columns: 1fr; }
  .galerie--breit { grid-template-columns: repeat(4, 1fr); }
  .galerie { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 479px) {
  .leisten { grid-template-columns: 1fr; }
}
