/* ==========================================================================
   Baggerarbeiten Schacht – Stylesheet
   Mobile first · Systemschriften · keine externen Ressourcen
   ========================================================================== */

:root {
  /* Erdtöne */
  --ink: #1d1914;
  --soil: #2b241c;
  --soil-2: #3a3127;
  --soil-3: #4a3f33;
  --sand: #f4eee3;
  --sand-2: #e9dfcd;
  --paper: #fffdf8;
  --line: #d6c8af;
  --text: #231d16;
  --muted: #5c5143;

  /* Grün */
  --green: #2e5530;
  --green-dark: #1f3d22;
  --green-soft: #e3ecd9;
  --green-light: #9fcb8a;

  /* Akzent aus dem Logo */
  --amber: #feba12;
  --amber-hover: #ffcb47;

  /* Status */
  --closed: #8f3420;
  --closed-soft: #f5e1d9;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-head: "Bahnschrift", "DIN Alternate", "Roboto Condensed", "Arial Narrow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 6px;
  --gutter: 1.25rem;
  --max: 68rem;
  --callbar-h: 4.25rem;
  --focus: 3px solid var(--amber);
}

/* ---------- Basis ---------- */

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

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

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

body {
  margin: 0;
  background: var(--sand);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  padding-bottom: calc(var(--callbar-h) + env(safe-area-inset-bottom, 0px));
}

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

a { color: inherit; }

:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  padding: .75rem 1.25rem;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: .75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--amber { background: var(--amber); color: var(--ink); }
.btn--amber:hover { background: var(--amber-hover); }
.btn--ghost { border-color: rgba(255, 255, 255, .75); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 88vh;
  min-height: 88svh;
  padding: 4rem 0 5rem;
  color: #fff;
  text-align: center;
  background-color: var(--soil);
  background-image:
    linear-gradient(180deg, rgba(20, 16, 12, .55) 0%, rgba(20, 16, 12, .45) 45%, rgba(20, 16, 12, .88) 100%),
    url("../img/hintergrund-960.jpg");
  background-size: cover;
  background-position: 62% center;
  background-repeat: no-repeat;
}

@media (min-width: 961px) {
  .hero {
    background-image:
      linear-gradient(180deg, rgba(20, 16, 12, .5) 0%, rgba(20, 16, 12, .35) 45%, rgba(20, 16, 12, .88) 100%),
      url("../img/hintergrund.jpg");
    background-position: center;
  }
}

/* Gelbe Kante als Abschluss – wie eine Warnmarkierung, aber ruhig */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: var(--amber);
}

.hero__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero__logo {
  width: 150px;
  height: auto;
  margin: 0 auto 1.75rem;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .55));
}

.hero__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(2.25rem, 9vw, 4.75rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.005em;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .6);
}

.hero__subtitle {
  max-width: 34rem;
  margin: 1.1rem auto 0;
  font-size: clamp(1.125rem, 3.6vw, 1.5rem);
  line-height: 1.4;
  color: #f1e9da;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .7);
}

.hero__subtitle::before {
  content: "";
  display: block;
  width: 3.5rem;
  height: 4px;
  margin: 0 auto 1.1rem;
  background: var(--amber);
  border-radius: 2px;
}

.hero__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 2.25rem;
}
.hero__nav .btn { flex: 1 1 11rem; max-width: 15rem; }

@media (min-width: 640px) {
  .hero__logo { width: 200px; }
}
@media (min-width: 961px) {
  .hero__logo { width: 230px; }
}

/* ---------- Abschnitte ---------- */

.section { padding: 4rem 0; }

@media (min-width: 768px) {
  .section { padding: 6rem 0; }
}

.section__title {
  margin: 0 0 2rem;
  font-family: var(--font-head);
  font-size: clamp(1.875rem, 5.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--ink);
}
.section__title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 4px;
  margin-top: .85rem;
  background: var(--amber);
  border-radius: 2px;
}
.section__title--light { color: #fff; }

/* ---------- Öffnungszeiten ---------- */

.section--hours {
  background:
    linear-gradient(180deg, var(--sand-2) 0, var(--sand) 9rem);
}

.hours-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 820px) {
  .hours-grid { grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
}

.hours-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 6px solid var(--soil-3);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(43, 36, 28, .06), 0 12px 28px -18px rgba(43, 36, 28, .45);
  overflow: hidden;
}
.hours-card--verkauf { border-top-color: var(--amber); }
.hours-card--gruen { border-top-color: var(--green); }

.hours-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--line);
}

.hours-card__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--ink);
}

/* Status-Anzeige */
.status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  padding: .35rem .8rem .35rem .65rem;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.3;
}
.status[hidden] { display: none; }
.status::before {
  content: "";
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.status--open { background: var(--green-soft); color: var(--green-dark); }
.status--open::before { box-shadow: 0 0 0 3px rgba(46, 85, 48, .22); }
.status--closed { background: var(--closed-soft); color: var(--closed); }

/* Tabelle der Zeiten */
.hours {
  list-style: none;
  margin: 0;
  padding: .5rem 0;
}

.hours__row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .15rem 1rem;
  padding: .8rem 1.25rem;
  border-bottom: 1px dashed var(--sand-2);
}
.hours__row:last-child { border-bottom: 0; }

.hours__day { font-weight: 600; }

.hours__time {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.hours__row.is-closed .hours__day,
.hours__row.is-closed .hours__time {
  color: var(--muted);
  font-weight: 400;
}

/* Heutiger Tag */
.hours__row.is-today,
.hours__note.is-today {
  background: #fff4cf;
  box-shadow: inset 5px 0 0 var(--amber);
}
.hours-card--gruen .hours__row.is-today,
.hours-card--gruen .hours__note.is-today {
  background: var(--green-soft);
  box-shadow: inset 5px 0 0 var(--green);
}
.hours__row.is-today .hours__day,
.hours__row.is-today .hours__time { color: var(--ink); font-weight: 700; }

.today-tag {
  display: inline-block;
  margin-left: .5rem;
  padding: .05rem .45rem;
  border-radius: 3px;
  background: var(--ink);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  vertical-align: .12em;
}

.hours__note {
  margin: 0;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--line);
  background: var(--sand);
  font-weight: 600;
  color: var(--text);
}

/* ---------- Kontakt ---------- */

.section--contact {
  background: var(--soil);
  color: #f1e9da;
  background-image:
    radial-gradient(120% 80% at 100% 0%, rgba(46, 85, 48, .35) 0%, rgba(46, 85, 48, 0) 60%);
}

.contact {
  display: grid;
  gap: 2rem;
}

@media (min-width: 820px) {
  .contact { grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: start; }
}

.contact__address {
  font-style: normal;
  font-size: 1.25rem;
  line-height: 1.5;
}

.contact__name {
  display: block;
  margin-bottom: .35rem;
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: #fff;
}

.contact__map {
  display: inline-block;
  padding: .25rem 0;
  color: #f1e9da;
  text-decoration: none;
}
.contact__map-hint {
  display: inline-block;
  margin-top: .6rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: .2em;
}
.contact__map:hover .contact__map-hint { color: var(--amber-hover); }

.contact__actions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .75rem;
}

.action {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.5rem;
  padding: .9rem 1.1rem;
  background: var(--soil-2);
  border: 1px solid var(--soil-3);
  border-left: 5px solid var(--amber);
  border-radius: var(--radius);
  color: #fff;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.action:hover { background: var(--soil-3); }

.action__icon {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: .6rem;
  border-radius: 50%;
  background: var(--amber);
  fill: var(--ink);
}

.action__text { display: flex; flex-direction: column; min-width: 0; }

.action__label {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-light);
}

.action__value {
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.action__value--mail {
  font-size: 1.0625rem;
  overflow-wrap: anywhere;
}

@media (min-width: 420px) {
  .action__value--mail { font-size: 1.1875rem; }
}

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: #d9cfbd;
  border-top: 1px solid var(--soil-2);
  font-size: .9375rem;
}
.footer__inner { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.footer p { margin: 0; }
.footer a {
  display: inline-block;
  padding: .6rem .15rem;
  color: #fff;
  text-underline-offset: .2em;
}
.footer a:hover { color: var(--amber); }
.footer a[aria-current="page"] { color: var(--amber); }
.footer__sep { margin: 0 .35rem; color: #8a7d6a; }

/* ---------- Anrufleiste (mobil) ---------- */

.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: flex;
  gap: .5rem;
  padding: .5rem .75rem calc(.5rem + env(safe-area-inset-bottom, 0px));
  background: rgba(29, 25, 20, .97);
  border-top: 1px solid var(--soil-3);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, .25);
}

.callbar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3.25rem;
  padding: 0 1.1rem;
  border: 2px solid var(--amber);
  border-radius: var(--radius);
  color: var(--amber);
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-decoration: none;
  text-transform: uppercase;
}
.callbar__btn--main {
  flex: 1;
  background: var(--amber);
  color: var(--ink);
}
.callbar__btn svg { flex: none; width: 1.35rem; height: 1.35rem; fill: currentColor; }
.callbar__text { white-space: nowrap; }
.callbar__num { text-transform: none; font-variant-numeric: tabular-nums; }
.callbar :focus-visible { outline-color: #fff; }

@media (max-width: 419px) {
  .callbar__btn { padding: 0 .9rem; }
  .callbar__word { display: none; }
  .callbar__num { font-size: 1.1875rem; letter-spacing: .01em; }
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .callbar { display: none; }
}

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */

.topbar {
  background: var(--ink);
  border-bottom: 6px solid var(--amber);
  color: #fff;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .75rem;
  padding-bottom: .75rem;
}
.topbar__brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}
.topbar__brand img { width: 64px; height: auto; }
.topbar__back {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .4rem .2rem;
  color: var(--amber);
  font-weight: 700;
  text-underline-offset: .2em;
  white-space: nowrap;
}

@media (max-width: 479px) {
  .topbar__brand span { display: none; }
}

.legal {
  min-height: 65vh;
  padding: 3rem 0 4rem;
}
.legal .container { max-width: 48rem; }

.legal h1 {
  margin: 0 0 2rem;
  font-family: var(--font-head);
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--ink);
}
.legal h1::after {
  content: "";
  display: block;
  width: 3rem;
  height: 4px;
  margin-top: .85rem;
  background: var(--amber);
  border-radius: 2px;
}
.legal h2 {
  margin: 2.75rem 0 .75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--ink);
}
.legal h3 {
  margin: 1.75rem 0 .5rem;
  font-size: 1.1875rem;
  line-height: 1.3;
  color: var(--ink);
}
.legal p, .legal ul { margin: 0 0 1rem; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: .35rem; }
.legal a {
  color: var(--green-dark);
  font-weight: 600;
  text-underline-offset: .18em;
  overflow-wrap: anywhere;
}
.legal a:hover { color: var(--green); }
.legal a.btn { color: var(--ink); text-decoration: none; margin-top: .5rem; }
.legal address { font-style: normal; margin: 0 0 1rem; }
.legal .caps { font-size: .9375rem; }
.legal .stand { margin-top: 3rem; color: var(--muted); font-size: .9375rem; }

/* ---------- 404-Seite ---------- */

.notfound {
  position: relative;
  overflow: hidden;
  background: var(--soil);
  background-image: radial-gradient(90% 70% at 85% 10%, rgba(254, 186, 18, .12) 0%, rgba(254, 186, 18, 0) 60%);
  color: #f1e9da;
}

/* Absperrband */
.notfound__tape {
  position: relative;
  z-index: 1;
  width: 120%;
  margin: 1.75rem 0 0 -10%;
  padding: .45rem 0;
  background: var(--amber);
  color: var(--ink);
  transform: rotate(-2.5deg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  white-space: nowrap;
  overflow: hidden;
  font-family: var(--font-head);
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.notfound__tape span {
  display: inline-block;
  animation: tape 40s linear infinite;
}
@keyframes tape {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.notfound__inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

@media (min-width: 900px) {
  .notfound__inner {
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    padding-top: 4rem;
    padding-bottom: 5rem;
  }
}

.notfound__code {
  display: inline-block;
  margin: 0 0 1rem;
  padding: .25rem .7rem;
  border: 2px solid var(--amber);
  border-radius: 3px;
  color: var(--amber);
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.notfound__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(2.25rem, 7.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  color: #fff;
}

.notfound__lead {
  max-width: 32rem;
  margin: 1.25rem 0 0;
  font-size: 1.1875rem;
  line-height: 1.55;
}

.notfound__nav {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}
.notfound__nav .btn { flex: 1 1 10rem; }
@media (min-width: 900px) {
  .notfound__nav { gap: .6rem; }
  .notfound__nav .btn { flex: 0 1 auto; padding: .75rem 1.1rem; }
}

.notfound__scene {
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

/* Mobil: Bagger zuerst zeigen, damit er sofort sichtbar ist */
@media (max-width: 899px) {
  .notfound__inner { padding-top: 1.5rem; }
  .notfound__scene { order: -1; max-width: 420px; }
}

.notfound__pit {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: .08em;
  fill: var(--amber);
  opacity: .9;
}

/* Bagger-Animation: Ausleger senkt sich, Löffel gräbt und kippt */
.bagger__boom,
.bagger__stick,
.bagger__bucket { transform-box: view-box; }
.bagger__boom   { transform-origin: 280px 150px; animation: boom 4.5s ease-in-out infinite; }
.bagger__stick  { transform-origin: 346px 64px;  animation: stick 4.5s ease-in-out infinite; }
.bagger__bucket { transform-origin: 421px 179px; animation: bucket 4.5s ease-in-out infinite; }
.bagger__dirt   { animation: dirt 4.5s ease-in-out infinite; }

@keyframes boom {
  0%, 100% { transform: rotate(-6deg); }
  35%, 55% { transform: rotate(3deg); }
}
@keyframes stick {
  0%, 100% { transform: rotate(-12deg); }
  35%      { transform: rotate(4deg); }
  55%      { transform: rotate(10deg); }
}
@keyframes bucket {
  0%, 100% { transform: rotate(-20deg); }
  35%      { transform: rotate(10deg); }
  60%, 85% { transform: rotate(-35deg); }
}
@keyframes dirt {
  0%, 45%  { opacity: 0; }
  55%, 88% { opacity: 1; }
  96%, 100% { opacity: 0; }
}

/* Gelb-schwarze Warnstreifen als Abschluss */
.notfound__stripes {
  height: 14px;
  background: repeating-linear-gradient(-45deg, var(--amber) 0 16px, var(--ink) 16px 32px);
}

/* ---------- Druck ---------- */

@media print {
  .callbar, .skip-link, .hero__nav { display: none !important; }
  body { padding: 0; background: #fff; }
  .hero { min-height: 0; background: #fff; color: #000; padding: 1rem 0; }
  .hero__logo { display: none; }
  .hero__title, .hero__subtitle { text-shadow: none; color: #000; }
  .section--contact, .footer, .topbar { background: #fff; color: #000; }
  .action { background: #fff; color: #000; border-color: #999; }
}
