/* Schlosserei Marzenell – Neuaufbau 2026 */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f4f4;
  --fg: #333333;
  --muted: #666666;
  --accent: #8a8f94;
  --accent-hover: #5f6368;
  --heading: #2f3337;
  --border: #dddddd;
  --footer-bg: #2f3337;
  --footer-fg: #ffffff;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* ── Topbar ── */
.topbar {
  background: #2f3337;
  color: #ffffff;
  font-size: .9rem;
  padding: .5rem 0;
}
.topbar .container { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; }
.topbar a { color: #ffffff; }
.topbar a:hover { color: var(--accent); }

/* ── Header & Nav ── */
.site-header {
  background: #ffffff;
  border-bottom: 2px solid var(--accent);
  border-image: linear-gradient(90deg, #E8731A 0%, #8a8f94 60%, #8a8f94 100%) 1;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo img { max-height: 60px; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--fg);
  font-size: 1.6rem;
  cursor: pointer;
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.75rem;
}
.main-nav a {
  color: var(--fg);
  font-weight: 600;
  text-transform: uppercase;
  font-size: .95rem;
  letter-spacing: .03em;
  padding: .5rem 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── Hero / Slideshow ── */
.hero {
  position: relative;
  min-height: 50vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-static { background-size: cover; background-position: center; }
.hero-overlay {
  position: relative;
  background: rgba(47,51,55,.75);
  padding: 3.5rem 2rem;
  text-align: center;
  color: #fff;
  width: 720px;
  max-width: 100%;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-overlay .btn {
  font-size: .9rem;
  padding: .7rem 1.4rem;
  align-self: center;
}
.hero-overlay h1 {
  margin: 0 0 .75rem;
  font-size: clamp(1.3rem, 2.8vw, 2.1rem);
  letter-spacing: .02em;
}
.hero-overlay p { margin: 0 0 1.5rem; font-size: .95rem; color: #e8e8e8; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  background: linear-gradient(180deg, #b8bcc0 0%, #8a8f94 50%, #5f6368 100%);
  color: #ffffff;
  padding: .8rem 1.5rem;
  font-weight: 700;
  letter-spacing: .03em;
  border-radius: 4px;
  border: 1px solid #4a4d50;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  font-size: .95rem;
  text-shadow: 0 1px 1px rgba(0,0,0,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 1px 2px rgba(0,0,0,.2);
}
.btn:hover {
  background: linear-gradient(180deg, #c8ccd0 0%, #9a9fa4 50%, #6f7378 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 3px 6px rgba(0,0,0,.25);
}
.btn-outline {
  background: transparent;
  color: #5f6368;
  border: 2px solid #8a8f94;
  text-shadow: none;
  box-shadow: none;
}
.btn-outline:hover {
  background: linear-gradient(180deg, #b8bcc0 0%, #8a8f94 50%, #5f6368 100%);
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0,0,0,.35);
}
/* Button-Paar: bricht auf schmalen Screens sauber um
   (gleichmäßiger Abstand horizontal wie vertikal statt aneinanderkleben). */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.btn-row.btn-row--center { justify-content: center; }

/* ── Sections ── */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-intro { text-align: center; }
.section h2,
.section h1 {
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  margin: 0 0 .5rem;
  color: var(--heading);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.section .lead {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

/* 3-Schritte-Block */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.step {
  background: #ffffff;
  border-top: 3px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  overflow: hidden;
}
.step-img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.step > :not(.step-img) {
  padding-left: 2rem;
  padding-right: 2rem;
}
.step > .step-num { padding-top: 1.5rem; }
.step > p:last-child { padding-bottom: 2rem; }
.step-num {
  display: inline-block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1;
  margin-bottom: .5rem;
}
.step h3 { color: var(--heading); }
.step h3 { margin: 0 0 .75rem; font-size: 1.25rem; }
.step p { margin: 0; color: var(--muted); }

/* Galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.gallery figure { margin: 0; overflow: hidden; background: #000; }
.gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform .4s;
}
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  padding: .5rem .75rem;
  font-size: .85rem;
  color: #ffffff;
  background: var(--heading);
}

/* Listen */
.service-list { padding-left: 1.25rem; }
.service-list li { margin: .5rem 0; }

/* Kontakt-Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-info p { margin: .5rem 0; }
.contact-info i { color: var(--accent); width: 1.5rem; margin-right: .5rem; }
form.contact-form { display: grid; gap: 1rem; }
form.contact-form label { font-size: .9rem; color: var(--muted); }
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: .75rem;
  background: var(--bg-alt);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font: inherit;
}
form.contact-form input:focus,
form.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}
form.contact-form textarea { min-height: 140px; resize: vertical; }
.map-wrap {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin-top: 1rem;
}
.map-frame {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
  pointer-events: none;
  transition: filter .2s;
}
.map-wrap.active .map-frame { pointer-events: auto; }
.map-wrap:not(.active)::after {
  content: "Karte aktivieren";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(47, 51, 55, .15);
  color: var(--heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  cursor: pointer;
}
@media (max-width: 600px) {
  .map-frame { height: 280px; }
}

/* About-Layout */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-fg);
  padding: 2.5rem 0 1.5rem;
  font-size: .9rem;
}
.site-footer a { color: #ffffff; }
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.5rem; }
.footer-links a { color: #ffffff; }
.footer-links a:hover { color: var(--accent); }
.site-footer .footer-copy { display: block; font-size: .8rem; opacity: .8; text-align: center; margin-top: 1rem; }

/* Article-Stil für Impressum/Datenschutz */
.legal { max-width: 900px; }
.legal h2 { margin-top: 2.5rem; font-size: 1.4rem; }
.legal h3 { margin-top: 1.5rem; color: var(--fg); font-size: 1.1rem; }
.legal p, .legal li { color: var(--muted); }

/* Datei-Upload: nativen "Choose File"-Button durch eigenen deutschen ersetzen */
.file-input {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .4rem;
}
/* Nativen Datei-Button visuell ausblenden (bleibt klickbar über das Label/den Button). */
.file-input input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}
.file-input__btn {
  display: inline-block;
  background: linear-gradient(180deg, #b8bcc0 0%, #8a8f94 50%, #5f6368 100%);
  color: #fff;
  padding: .55rem 1.1rem;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .02em;
  border-radius: 4px;
  border: 1px solid #4a4d50;
  cursor: pointer;
  text-shadow: 0 1px 1px rgba(0,0,0,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 1px 2px rgba(0,0,0,.2);
}
.file-input:hover .file-input__btn {
  background: linear-gradient(180deg, #c8ccd0 0%, #9a9fa4 50%, #6f7378 100%);
}
/* Tastatur-Fokus auf dem (versteckten) Input sichtbar am Button spiegeln. */
.file-input input[type="file"]:focus-visible + .file-input__btn {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.file-input__name {
  font-size: .9rem;
  color: var(--muted);
}

/* Lightbox */
.gallery figure { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  display: none;
  place-items: center;
  z-index: 1000;
  padding: 1rem;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: 95vw; max-height: 95vh; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox-close:focus-visible { outline: 2px solid var(--accent); }

/* Map-wrap als Button (A11y) */
.map-wrap[role="button"] { cursor: pointer; }
.map-wrap[role="button"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: .5rem 0; }
  .main-nav li { border-bottom: 1px solid var(--border); }
  .main-nav a { display: block; padding: 1rem 1.25rem; }
  .site-header .container { position: relative; }
  .contact-grid, .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  /* Gestapelt: Buttons und Bild horizontal mittig. */
  .about-grid .btn-row { justify-content: center; }
  .about-grid figure { margin: 0; text-align: center; }
  .about-grid figure img { margin-inline: auto; }
  .topbar .container { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
  .hero { min-height: 55vh; }
  .hero-overlay { padding: 1.5rem 1rem; }
  .section { padding: 2.5rem 0; }
  /* Feste px-Offsets der Hero-Inline-Styles skalieren auf dem Handy nicht
     und schieben das Bild aus dem Ausschnitt — daher zentriert überschreiben. */
  .hero-slide, .hero-static { background-position: center !important; }
}
