/* Heuer Entsorgung – Stylesheet (mobile first, ohne Framework) */

@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-wght.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Farben aus dem Logo: HEUER #87a4b4, ENTSORGUNG #5a7396, Pfeil #999999 */
  --ink: #1c2633;
  --ink-soft: #4a5868;
  --brand: #4f6889;
  --brand-dark: #2c405a;
  --brand-deep: #1f3046;
  --steel: #87a4b4;
  --steel-light: #b9cbd6;
  --steel-soft: #e3eaf0;
  --grey: #999999;
  --bg: #ffffff;
  --bg-soft: #f2f5f8;
  --line: #d5dde5;
  --focus: #c2410c;
  --radius: 6px;
  --shadow: 0 1px 2px rgb(28 38 51 / 6%), 0 6px 18px rgb(28 38 51 / 7%);
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-head: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --container: 72rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  /* Platz für die Kontaktleiste am unteren Rand (nur Handy) */
  padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.08;
  color: var(--brand-dark);
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.15rem, 1.35rem + 3.6vw, 3.75rem);
  text-transform: uppercase;
  letter-spacing: .005em;
}
h2 {
  font-size: clamp(1.85rem, 1.35rem + 2.1vw, 2.75rem);
  text-transform: uppercase;
  letter-spacing: .01em;
}
h3 {
  font-size: 1.5rem;
  letter-spacing: .01em;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--brand);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}
a:hover { color: var(--brand-dark); }
a[href^="tel:"] { white-space: nowrap; }

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

address { font-style: normal; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--brand-dark);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: #fff; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  margin: 0 0 .75rem;
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
}

.lead {
  font-size: 1.1875rem;
  color: var(--ink-soft);
}

.small { font-size: .9375rem; }

/* ---------- Kopfbereich ---------- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  padding-block: .75rem;
}
.brand {
  display: block;
  margin-right: auto;
  border-radius: 2px;
}
.brand img { width: 150px; }

.main-nav ul {
  display: flex;
  gap: .25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .25rem .75rem;
  font-family: var(--font-head);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brand-dark);
  border-radius: var(--radius);
}
.main-nav a:hover { background: var(--bg-soft); }

.header-call {
  display: none;
  align-items: center;
  gap: .6rem;
  min-height: 48px;
  padding: .5rem 1rem;
  background: var(--brand-dark);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  line-height: 1.15;
}
.header-call:hover { background: var(--brand-deep); color: #fff; }
.header-call-label {
  display: block;
  font-size: .8125rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--steel-light);
}
.header-call-number {
  display: block;
  font-weight: 700;
  font-size: 1.125rem;
  white-space: nowrap;
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  /* Pfeil aus dem Logo als Dekor (erst ab Tablet-Breite, damit er keinen Text überlagert) */
  content: "";
  position: absolute;
  display: none;
  background: url("../img/pfeil-deko.svg") no-repeat center / contain;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding-block: 3rem 3.25rem;
}
.hero-text { max-width: 44rem; }
.hero .lead { max-width: 40rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  padding: .7rem 1.25rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
}
.btn-primary { background: var(--brand-dark); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-secondary { background: #fff; color: var(--brand-dark); border-color: var(--brand-dark); }
.btn-secondary:hover { background: var(--steel-soft); color: var(--brand-deep); }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { background: var(--steel-soft); color: var(--brand-deep); }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
}
.hero-facts li {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.hero-facts .icon { color: var(--brand); }

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

.section { padding-block: 3.5rem; }
.section-head {
  max-width: 46rem;
  margin-bottom: 2.25rem;
}

.cards {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card::before {
  /* Segmentleiste in den Logofarben */
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 5px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: repeating-linear-gradient(90deg, var(--steel) 0 2.25rem, #fff 2.25rem 2.5rem);
}
.card-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--steel-soft);
  color: var(--brand-dark);
}
.card-icon .icon { width: 2rem; height: 2rem; stroke-width: 1.6; }
.card p { color: var(--ink-soft); }

.check-list {
  margin: 1rem 0 0;
  padding: 1rem 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.check-list li {
  position: relative;
  padding-left: 1.6rem;
  font-weight: 600;
}
.check-list li + li { margin-top: .35rem; }
.check-list li::before {
  content: "";
  position: absolute;
  left: .2rem;
  top: .5em;
  width: .7rem;
  height: .38rem;
  border-left: 2.5px solid var(--brand);
  border-bottom: 2.5px solid var(--brand);
  transform: rotate(-45deg);
}

.more {
  display: grid;
  gap: 1rem;
  align-items: center;
  margin-top: 1.25rem;
  padding: 1.5rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.more .card-icon { margin-bottom: 0; }
.more h3 { margin-bottom: .35rem; }
.more p { color: var(--ink-soft); }
.more .btn { justify-self: start; }

/* ---------- Kontakt (dunkler Abschnitt) ---------- */

.section-dark {
  position: relative;
  overflow: hidden;
  background: var(--brand-dark);
  color: #fff;
}
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--steel-light); }
.section-dark a { color: #fff; }
.section-dark .btn-light { color: var(--brand-dark); }
.section-dark .btn-light:hover { color: var(--brand-deep); }
.section-dark p { color: #e6edf2; }
.section-dark .small { color: var(--steel-light); }

.contact-grid {
  display: grid;
  gap: 2rem;
}
.contact-intro .btn-row { margin-top: 1.5rem; }
.contact-intro .small { margin-top: .75rem; }

.contact-card {
  padding: 1.5rem;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgb(0 0 0 / 18%);
}
.contact-card h3 { margin-bottom: 1rem; }
.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-list li {
  display: flex;
  gap: .85rem;
  padding-block: .7rem;
  border-bottom: 1px solid var(--line);
}
.contact-list li:first-child { padding-top: 0; }
.contact-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-list .icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: .15rem;
  color: var(--brand);
}
.contact-label {
  display: block;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contact-card a {
  color: var(--brand-dark);
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* ---------- Unterseiten ---------- */

.page-head {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding-block: 2rem 1.75rem;
}
.page-head h1 { margin: 0; }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .5rem;
  margin: 0 0 .75rem;
  padding: 0;
  list-style: none;
  font-size: .9375rem;
  color: var(--ink-soft);
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: .5rem;
  color: var(--grey);
}

.legal > * { max-width: 48rem; }
.legal h2 {
  margin-top: 2.25rem;
  font-size: clamp(1.5rem, 1.25rem + 1vw, 1.9rem);
  text-transform: none;
}
.legal h2:first-child { margin-top: 0; }
.legal h3 {
  margin-top: 1.75rem;
  font-size: 1.3rem;
}
.legal h4 {
  margin: 1.25rem 0 .4rem;
  font-size: 1.0625rem;
}
.legal p,
.legal li { overflow-wrap: break-word; }
.legal ul { padding-left: 1.25rem; }
.legal li + li { margin-top: .4rem; }
.legal .source {
  margin-top: 2rem;
  font-size: .9375rem;
  color: var(--ink-soft);
}

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

.error-page {
  padding-block: 3.5rem 4rem;
  text-align: left;
}
.error-page .error-code {
  margin: 0 0 .5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(4.5rem, 3rem + 7vw, 8rem);
  line-height: 1;
  color: var(--steel);
}
.error-page .lead { max-width: 38rem; }

/* ---------- Fußbereich ---------- */

.site-footer {
  background: var(--brand-deep);
  color: #dbe4ec;
  padding-block: 2.5rem 2rem;
  font-size: .9375rem;
}
.site-footer a { color: #fff; }
.footer-grid {
  display: grid;
  gap: 1.75rem;
}
.footer-title {
  margin-bottom: .5rem;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
}
.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-list li { padding-block: .2rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 18%);
}
.footer-bottom:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-bottom a {
  display: inline-block;
  padding-block: .2rem;
}

/* ---------- Kontaktleiste (Handy) ---------- */

.callbar {
  position: fixed;
  inset: auto 0 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--brand-dark);
  border-top: 3px solid var(--steel);
}
.callbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  min-height: 4rem;
  color: #fff;
  font-weight: 700;
  font-size: .875rem;
  text-decoration: none;
}
.callbar a + a { border-left: 1px solid rgb(255 255 255 / 18%); }
.callbar a:hover { background: var(--brand-deep); }
.callbar .icon { width: 1.5rem; height: 1.5rem; }
.callbar a:focus-visible {
  outline-color: #fff;
  outline-offset: -5px;
}

/* ---------- Breitere Bildschirme ---------- */

@media (min-width: 30em) {
  .brand img { width: 170px; }
}

@media (min-width: 48em) {
  body {
    font-size: 1.125rem;
    padding-bottom: 0;
  }
  .callbar { display: none; }

  .container { padding-inline: 2rem; }
  .header-inner { flex-wrap: nowrap; padding-block: 1rem; }
  .brand img { width: 196px; }
  .header-call { display: flex; }

  .hero::before {
    display: block;
    top: 50%;
    right: -4rem;
    width: 22rem;
    height: 24rem;
    transform: translateY(-50%);
  }
  .hero-inner { padding-block: 4.5rem 4.75rem; }
  .hero-text { max-width: 31rem; }

  .section { padding-block: 4.75rem; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  @supports (grid-template-rows: subgrid) {
    /* Symbol, Überschrift, Text und Liste stehen in allen drei Karten auf gleicher Höhe */
    .card {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 4;
      row-gap: 0;
      align-content: start;
    }
  }
  .more {
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }
  .contact-card { padding: 2rem; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .page-head { padding-block: 2.75rem 2.25rem; }
}

@media (min-width: 64em) {
  .hero::before { right: 4%; width: 30rem; height: 33rem; }
  .hero-text { max-width: 40rem; }
  .card { padding: 2rem 1.75rem 1.75rem; }
}

@media (max-width: 47.99em) and (max-width: 22em) {
  .main-nav a { padding-inline: .5rem; font-size: 1.0625rem; }
}

@media print {
  body { padding-bottom: 0; }
  .callbar, .skip-link, .main-nav, .header-call, .hero::before { display: none !important; }
  .section-dark, .site-footer { background: none; color: #000; }
  .section-dark h2, .section-dark p, .section-dark a, .site-footer a { color: #000; }
}
