:root {
  --navy: #0c1524;
  --navy-soft: #162033;
  --ink: #141820;
  --muted: #5d6573;
  --line: #e4ddd3;
  --paper: #fffdf9;
  --cream: #f3eee6;
  --sand: #e8dfd2;
  --blue: #2d7fd4;
  --blue-deep: #1b5fa8;
  --blue-soft: #e8f2fc;
  --copper: #c4784a;
  --star: #e2a012;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(12, 21, 36, 0.12);
  --radius: 22px;
  --header-h: 76px;
  --max: 1180px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--navy);
  color: #fff;
  padding: 8px 14px;
  z-index: 100;
}

.skip:focus {
  left: 8px;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.absence-banner {
  background: #f8ead6;
  color: #4a3218;
  padding: 12px 0;
  border-bottom: 1px solid #ead4a8;
}

.absence-banner .wrap {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.absence-banner strong {
  display: inline-block;
  background: var(--copper);
  color: #fff;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
  margin-top: 2px;
}

.absence-banner p {
  margin: 0;
  font-size: 0.98rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(243, 238, 230, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(20, 24, 32, 0.06);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: auto;
  height: 52px;
  max-width: 72px;
  object-fit: contain;
  border-radius: 8px;
}

.brand-text strong {
  display: block;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.brand-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  text-decoration: none;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 0.94rem;
  color: var(--navy-soft);
}

.nav a:hover,
.nav a.is-active {
  background: rgba(255, 255, 255, 0.7);
  color: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  border-radius: 999px;
  padding: 13px 22px;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(45, 127, 212, 0.28);
}

.btn-primary:hover {
  background: var(--blue-deep);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid rgba(12, 21, 36, 0.22);
}

.btn-ghost:hover {
  background: rgba(12, 21, 36, 0.05);
}

.btn-dark {
  background: var(--navy);
  color: #fff;
}

.btn-dark:hover {
  background: #1b283c;
}

.nav-cta {
  margin-left: 8px;
  padding: 10px 16px;
  font-size: 0.9rem;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  position: relative;
  margin: 0 auto;
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-btn span::before {
  top: -6px;
}

.menu-btn span::after {
  top: 6px;
}

.hero {
  position: relative;
  min-height: 0;
  color: var(--ink);
  isolation: isolate;
  display: grid;
  align-items: center;
  padding: 56px 0 48px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 92% 8%, rgba(45, 127, 212, 0.16), transparent 58%),
    radial-gradient(ellipse 45% 40% at 0% 100%, rgba(196, 120, 74, 0.1), transparent 52%),
    var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(12, 21, 36, 0.08);
  pointer-events: none;
  z-index: 1;
}

.hero::after {
  content: "Werkstatt";
  position: absolute;
  right: 2%;
  bottom: -4%;
  font-family: var(--display);
  font-size: clamp(5.5rem, 16vw, 13rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  color: rgba(12, 21, 36, 0.05);
  pointer-events: none;
  z-index: 0;
  line-height: 0.8;
  user-select: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-brands {
  margin: 32px 0 0;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.chip-on-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #f3eee6;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 18px;
}

.hero .kicker,
.section.navy .kicker {
  color: var(--blue-deep);
}

main a:not(.btn):not(.brand) {
  color: var(--blue-deep);
  text-underline-offset: 3px;
}

.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--copper);
}

.hero h1,
.page-hero h1,
.section-head h2 {
  font-family: var(--display);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 16px;
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(2.6rem, 6vw, 5.1rem);
}

.hero p.lead {
  max-width: 42ch;
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 42px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-meta strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
}

.page-hero {
  padding: 56px 0 28px;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

.page-hero p {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.12rem;
}

.section {
  padding: 84px 0;
}

.section.alt {
  background: var(--paper);
}

.section.navy {
  background: var(--sand);
  color: var(--ink);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 36px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 48ch;
}

.section.navy .section-head p,
.section.navy .muted {
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.card.media {
  padding: 0;
  overflow: hidden;
}

.card.media img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.card.media .card-body {
  padding: 24px 26px 28px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.verkauf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 22px;
  align-items: start;
}

.verkauf-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

.verkauf-card .verkauf-foto {
  background: var(--cream);
  overflow: hidden;
  width: 100%;
  height: clamp(160px, 28vw, 220px);
  max-height: 220px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.verkauf-card .verkauf-foto img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
  object-position: center;
}

.verkauf-card .verkauf-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 16px 0;
  overflow-x: auto;
}

.verkauf-card .verkauf-thumbs button {
  border: 2px solid transparent;
  background: var(--cream);
  padding: 0;
  border-radius: 10px;
  cursor: pointer;
  flex: 0 0 auto;
}

.verkauf-card .verkauf-thumbs button.is-active {
  border-color: var(--blue);
}

.verkauf-card .verkauf-thumbs img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
}

.verkauf-card .card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.verkauf-card h3 {
  margin: 0;
  font-size: 1.28rem;
}

.verkauf-details {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  white-space: pre-wrap;
  line-height: 1.5;
}

.verkauf-preis {
  margin: 4px 0 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
}

.verkauf-preis.is-anfrage {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--muted);
}

.verkauf-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.verkauf-cta .btn {
  padding: 10px 16px;
  font-size: 0.9rem;
}

.verkauf-leer {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 1.05rem;
}

.verkauf-nr {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.icon-row {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 1.2rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.split img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 28px;
}

.split.reverse img {
  order: 2;
}

.steps {
  display: grid;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step b {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--blue);
}

.step h3 {
  margin: 0;
  font-size: 1.1rem;
}

.step p {
  margin: 4px 0 0;
  color: var(--muted);
  grid-column: 2;
}

.brands {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.chip {
  background: var(--sand);
  color: var(--navy);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 600;
}

.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.review {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}

.stars {
  color: var(--star);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.review p {
  margin: 0 0 18px;
  font-size: 1.02rem;
}

.review cite {
  font-style: normal;
  color: var(--muted);
  font-size: 0.9rem;
}

.cta-band {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 36px 40px;
}

.cta-band h2 {
  font-family: var(--display);
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

body.elektro-aus .js-elektro,
body.elektro-aus a[href="elektrotechnik.html"],
body.elektro-aus li:has(> a[href="elektrotechnik.html"]),
body.foerderung-aus #foerderung {
  display: none !important;
}

body.elektro-aus .cards-start {
  grid-template-columns: 1fr 1fr;
}

.cta-band p {
  margin: 0;
  color: var(--muted);
  max-width: 54ch;
}

.hours {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 24px;
  max-width: 360px;
}

.hours div {
  display: contents;
}

.hours span:nth-child(odd) {
  color: var(--muted);
}

.hours .ist-geschlossen {
  color: var(--muted);
}

.hours-footer {
  margin-top: 12px;
  font-size: 0.88rem;
  gap: 4px 16px;
}

.footer-hours-hinweis {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}

.contact-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--line);
}

.contact-card a.big {
  display: block;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 650;
  margin: 8px 0 18px;
  color: var(--blue-deep);
}

.map-frame {
  min-height: 420px;
  border: 0;
  border-radius: var(--radius);
  width: 100%;
  background: var(--sand);
}

.legal {
  background: var(--paper);
  border-radius: 24px;
  padding: 28px 32px 48px;
  border: 1px solid var(--line);
}

.legal h2 {
  font-size: 1.25rem;
  margin: 28px 0 8px;
}

.legal p,
.legal li {
  color: #3c434e;
  font-size: 0.98rem;
}

.site-footer {
  background: var(--sand);
  color: var(--ink);
  padding: 48px 0 28px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.site-footer a {
  color: var(--navy);
  text-decoration: none;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 0.95rem;
}

.site-footer p,
.site-footer li {
  margin: 0 0 8px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 0.86rem;
}

.notice {
  background: #fff6e8;
  border: 1px solid #ead4a8;
  color: #6a4b16;
  border-radius: 16px;
  padding: 14px 16px;
  margin: 18px 0 0;
}

.form {
  display: grid;
  gap: 12px;
}

.form label {
  font-size: 0.86rem;
  font-weight: 600;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s ease forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .cards,
  .reviews,
  .split,
  .contact-grid,
  .footer-grid,
  .section-head {
    grid-template-columns: 1fr;
  }

  .split.reverse img,
  .split img {
    order: 0;
    height: 280px;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
  }

  .cta-actions {
    width: 100%;
  }

  .menu-btn {
    display: grid;
    place-items: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a,
  .nav .btn {
    width: 100%;
    justify-content: center;
  }

  .nav-cta {
    margin: 8px 0 0;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(var(--max), calc(100% - 28px));
  }

  .hero {
    min-height: 0;
    padding: 40px 0 36px;
  }

  .hero::before {
    inset: 12px;
  }

  .hero h1 {
    max-width: none;
  }

  .verkauf-card .verkauf-foto {
    height: 180px;
    max-height: 180px;
  }

  .verkauf-card .verkauf-foto img {
    max-height: 180px;
  }

  .verkauf-details {
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
