/*
Theme Name: Breyer Elementor
Theme URI: https://jbreyergmbh.de/
Author: Luca Nicodemo
Description: Maßgeschneidertes, responsives Elementor-Theme für die Josef Breyer GmbH mit editierbaren Breyer-Widgets, lokal verwalteten Medien und optimierter Editor-Darstellung.
Version: 1.1.4
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: breyer-elementor
Tags: custom-logo, custom-colors, featured-images, responsive-layout
*/

:root {
  --breyer-ink: #14202f;
  --breyer-muted: #617084;
  --breyer-line: #dce3ec;
  --breyer-paper: #f6f8fb;
  --breyer-white: #ffffff;
  --breyer-orange: #ee7419;
  --breyer-orange-dark: #c9570d;
  --breyer-green: #2d7a54;
  --breyer-steel: #315166;
  --breyer-content-width: 1280px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--breyer-white);
  color: var(--breyer-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

a {
  color: inherit;
}

.breyer-skip-link {
  background: var(--breyer-ink);
  color: var(--breyer-white);
  font-weight: 700;
  left: 16px;
  padding: 12px 16px;
  position: fixed;
  top: -80px;
  transition: top 120ms ease;
  z-index: 10000;
}

.breyer-skip-link:focus {
  top: 16px;
}

.breyer-site-main {
  min-height: 100vh;
}

.breyer-content-fallback {
  margin-inline: auto;
  max-width: var(--breyer-content-width);
  padding: 80px 24px;
}

/* 404 page */
.error404 .breyer-site-main {
  min-height: 0;
}

.breyer-error-page {
  background:
    radial-gradient(circle at 82% 27%, rgba(238, 116, 25, 0.09), transparent 24rem),
    linear-gradient(180deg, #fff 0%, #fff 68%, var(--breyer-paper) 100%);
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.breyer-error-page a {
  text-decoration: none;
}

.breyer-error-header {
  align-items: center;
  border-bottom: 1px solid rgba(220, 227, 236, 0.82);
  display: flex;
  gap: clamp(20px, 4vw, 56px);
  justify-content: space-between;
  min-height: 76px;
  padding: 12px clamp(22px, 6vw, 92px);
}

.admin-bar .breyer-error-header {
  margin-top: 32px;
}

.breyer-error-brand {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
}

.breyer-error-brand img {
  height: 44px;
  object-fit: contain;
  object-position: left center;
  width: min(230px, 40vw);
}

.breyer-error-nav {
  align-items: center;
  display: flex;
  gap: clamp(20px, 3vw, 38px);
  margin-left: auto;
}

.breyer-error-nav a {
  color: #304155;
  font-size: 14px;
  font-weight: 650;
}

.breyer-error-nav a:hover,
.breyer-error-nav a:focus-visible {
  color: var(--breyer-orange-dark);
}

.breyer-error-call,
.breyer-error-button {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
}

.breyer-error-call {
  background: var(--breyer-ink);
  color: var(--breyer-white);
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
}

.breyer-error-call:hover,
.breyer-error-call:focus-visible {
  background: #26374b;
}

.breyer-error-call svg,
.breyer-error-button svg,
.breyer-error-services svg {
  fill: none;
  flex: 0 0 auto;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.breyer-error-main {
  margin: 0 auto;
  max-width: 1600px;
  padding: 0 clamp(22px, 6vw, 92px);
}

.breyer-error-content {
  align-items: center;
  display: grid;
  gap: clamp(42px, 7vw, 112px);
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.8fr);
  min-height: min(680px, calc(100vh - 158px));
  padding: clamp(64px, 8vh, 112px) 0 clamp(58px, 7vh, 92px);
}

.breyer-error-copy {
  max-width: 740px;
}

.breyer-error-eyebrow {
  align-items: center;
  color: var(--breyer-orange-dark);
  display: flex;
  font-size: 12px;
  font-weight: 850;
  gap: 12px;
  letter-spacing: 0.14em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.breyer-error-eyebrow::before {
  background: var(--breyer-orange);
  content: "";
  height: 3px;
  width: 34px;
}

.breyer-error-copy h1 {
  color: var(--breyer-ink);
  font-size: clamp(48px, 6.4vw, 92px);
  letter-spacing: -0.045em;
  line-height: 0.97;
  margin: 0;
  max-width: 780px;
}

.breyer-error-intro {
  color: var(--breyer-muted);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.7;
  margin: 28px 0 0;
  max-width: 650px;
}

.breyer-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.breyer-error-button {
  border: 1px solid transparent;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.breyer-error-button:hover {
  transform: translateY(-2px);
}

.breyer-error-button-primary {
  background: var(--breyer-orange);
  color: var(--breyer-white);
}

.breyer-error-button-primary:hover,
.breyer-error-button-primary:focus-visible {
  background: var(--breyer-orange-dark);
}

.breyer-error-button-secondary {
  border-color: var(--breyer-line);
  color: var(--breyer-ink);
}

.breyer-error-button-secondary:hover,
.breyer-error-button-secondary:focus-visible {
  border-color: var(--breyer-steel);
}

.breyer-error-visual {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 360px;
  position: relative;
  width: 100%;
}

.breyer-error-visual::before {
  background: radial-gradient(circle, rgba(238, 116, 25, 0.11) 0%, rgba(238, 116, 25, 0) 67%);
  content: "";
  height: min(36vw, 460px);
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(36vw, 460px);
}

.breyer-error-visual > span {
  color: var(--breyer-ink);
  font-size: clamp(150px, 18vw, 286px);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
  position: relative;
  text-shadow: 0 24px 50px rgba(20, 32, 47, 0.13);
  z-index: 1;
}

.breyer-error-services {
  border-top: 1px solid var(--breyer-line);
  padding: 28px 0 38px;
}

.breyer-error-services > p {
  color: var(--breyer-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.breyer-error-service-links {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, 1fr);
}

.breyer-error-service-links a {
  align-items: center;
  border-right: 1px solid var(--breyer-line);
  color: var(--breyer-ink);
  display: grid;
  font-size: 15px;
  font-weight: 750;
  gap: 13px;
  grid-template-columns: auto 1fr auto;
  min-height: 50px;
  padding: 0 clamp(16px, 2vw, 30px);
}

.breyer-error-service-links a:first-child {
  padding-left: 0;
}

.breyer-error-service-links a:last-child {
  border-right: 0;
  padding-right: 0;
}

.breyer-error-service-links a span {
  color: var(--breyer-orange-dark);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.breyer-error-service-links a svg {
  transition: transform 160ms ease;
}

.breyer-error-service-links a:hover,
.breyer-error-service-links a:focus-visible {
  color: var(--breyer-orange-dark);
}

.breyer-error-service-links a:hover svg {
  transform: translateX(4px);
}

.breyer-error-footer {
  align-items: center;
  background: var(--breyer-ink);
  color: rgba(255, 255, 255, 0.68);
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  min-height: 70px;
  padding: 18px clamp(22px, 6vw, 92px);
}

.breyer-error-footer div {
  display: flex;
  gap: 24px;
}

.breyer-error-footer a:hover,
.breyer-error-footer a:focus-visible {
  color: var(--breyer-white);
}

@media (max-width: 960px) {
  .breyer-error-nav {
    display: none;
  }

  .breyer-error-content {
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
  }

  .breyer-error-copy h1 {
    font-size: clamp(46px, 7.6vw, 70px);
  }
}

@media (max-width: 720px) {
  .admin-bar .breyer-error-header {
    margin-top: 46px;
  }

  .breyer-error-header {
    min-height: 68px;
  }

  .breyer-error-brand img {
    height: 38px;
  }

  .breyer-error-call span {
    display: none;
  }

  .breyer-error-call {
    height: 42px;
    padding: 0;
    width: 42px;
  }

  .breyer-error-content {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 54px 0 48px;
  }

  .breyer-error-copy {
    position: relative;
    z-index: 2;
  }

  .breyer-error-copy h1 {
    font-size: clamp(47px, 14vw, 68px);
  }

  .breyer-error-visual {
    margin: -28px auto -24px;
    min-height: 250px;
    order: 2;
  }

  .breyer-error-visual > span {
    font-size: clamp(145px, 38vw, 230px);
  }

  .breyer-error-service-links {
    grid-template-columns: 1fr;
  }

  .breyer-error-service-links a,
  .breyer-error-service-links a:first-child,
  .breyer-error-service-links a:last-child {
    border-bottom: 1px solid var(--breyer-line);
    border-right: 0;
    padding: 8px 0;
  }

  .breyer-error-service-links a:last-child {
    border-bottom: 0;
  }

  .breyer-error-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 430px) {
  .breyer-error-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .breyer-error-button {
    width: 100%;
  }

  .breyer-error-visual {
    min-height: 210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .breyer-error-button,
  .breyer-error-service-links a svg {
    transition: none;
  }
}
