/* ==========================================================
   Bauman GmbH – Gebäudemanagement & Handwerkerservice, Berlin
   Helles, seriöses Design: Dunkelblau + Amber
   ========================================================== */

:root {
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --navy: #16283e;
  --navy-deep: #0f1c2d;
  --ink: #1c2532;
  --paper: #ffffff;
  --light: #f4f6f9;
  --muted: #5b6b7d;
  --line: #dde4ec;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(15, 28, 45, .10);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Archivo", "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: min(1140px, 92%); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--amber); color: var(--navy-deep); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  color: var(--navy-deep);
  font-weight: 700; font-size: 1rem; text-decoration: none;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  box-shadow: 0 8px 24px rgba(245, 158, 11, .35);
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn--small { padding: 10px 20px; font-size: .9rem; box-shadow: none; }
.btn--big { padding: 16px 32px; font-size: 1.1rem; }
.btn--ghost {
  background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; box-shadow: none;
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 14px 0;
  transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
}
.header.scrolled {
  background: rgba(15, 28, 45, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(15, 28, 45, .35);
  padding: 8px 0;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand__mark {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  color: var(--navy-deep); flex: none;
}
.brand__text { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; letter-spacing: .01em; }
.brand__text em { font-style: normal; font-weight: 600; color: var(--amber); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  color: rgba(255, 255, 255, .85); text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: color .18s ease;
}
.nav a:hover { color: #fff; }
.nav .nav__cta { color: var(--navy-deep); }
.nav .nav__cta:hover { color: var(--navy-deep); }

.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.burger span {
  width: 26px; height: 3px; border-radius: 3px; background: #fff;
  transition: transform .25s ease, opacity .25s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92svh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background: url("hero.jpg") center 60% / cover no-repeat;
  transform: scale(1.04);
  animation: heroZoom 14s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(15, 28, 45, .92) 0%, rgba(15, 28, 45, .68) 55%, rgba(15, 28, 45, .35) 100%);
}
.hero__content { position: relative; z-index: 1; padding: 140px 0 90px; color: #fff; }

.hero__kicker {
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem;
  color: var(--amber); margin-bottom: 18px;
}
.hero__title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2.8rem, 7vw, 4.8rem); line-height: 1.05; letter-spacing: -.01em;
}
.hero__title span { color: var(--amber); }
.hero__sub {
  max-width: 620px; margin-top: 22px;
  font-size: 1.12rem; color: rgba(255, 255, 255, .85);
}

.hero__badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: .9rem; font-weight: 600; color: #fff;
}
.badge svg { color: var(--amber); flex: none; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ---------- Sektionen allgemein ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--light); }
.section--dark { background: var(--navy); color: #fff; }

.section__kicker {
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem;
  color: var(--amber-dark); margin-bottom: 12px;
}
.section--dark .section__kicker { color: var(--amber); }

.section__title {
  font-family: var(--font-head); font-weight: 800; letter-spacing: -.01em;
  font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.15; color: var(--navy);
}
.section--dark .section__title { color: #fff; }

.section__lead { max-width: 640px; margin-top: 14px; color: var(--muted); font-size: 1.05rem; }
.section--dark .section__lead { color: rgba(255, 255, 255, .75); }

/* ---------- Leistungen ---------- */
.services {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
  margin-top: 52px;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(15, 28, 45, .16); }

.service-card__media { aspect-ratio: 16 / 9; overflow: hidden; }
.service-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.service-card:hover .service-card__media img { transform: scale(1.05); }

.service-card__body { padding: 30px 30px 34px; display: flex; flex-direction: column; flex: 1; }
.service-card__body h3 {
  font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; color: var(--navy);
}
.service-card__body > p { margin-top: 8px; color: var(--muted); }

.service-list { list-style: none; margin-top: 20px; display: grid; gap: 12px; }
.service-list li {
  position: relative; padding-left: 32px; font-weight: 500;
}
.service-list li::before {
  content: "";
  position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--amber);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9' fill='black' stroke='none'/%3E%3Cpath d='m8.5 12.2 2.4 2.4 4.6-5' stroke='white'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9' fill='black' stroke='none'/%3E%3Cpath d='m8.5 12.2 2.4 2.4 4.6-5' stroke='white'/%3E%3C/svg%3E") center / contain no-repeat;
}

.service-card__link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: auto; padding-top: 22px;
  color: var(--amber-dark); font-weight: 700; text-decoration: none;
}
.service-card__link svg { transition: transform .18s ease; }
.service-card__link:hover { color: var(--navy); }
.service-card__link:hover svg { transform: translateX(4px); }

.services__note {
  margin-top: 34px; padding: 18px 22px;
  background: var(--light); border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
}

/* ---------- Über uns ---------- */
.about {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center;
}
.about__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__content p + p { margin-top: 14px; }
.about__content > p { color: var(--muted); }

.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
  margin-top: 34px;
}
.stat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px;
}
.stat__value {
  font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--amber-dark);
  line-height: 1.1;
}
.stat dd { color: var(--muted); font-size: .92rem; margin-top: 4px; }

/* ---------- Ablauf ---------- */
.steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  margin-top: 52px; counter-reset: step;
}
.step {
  background: var(--light); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; position: relative;
}
.step__number {
  font-family: var(--font-head); font-weight: 800; font-size: 2.6rem;
  color: transparent;
  -webkit-text-stroke: 2px var(--amber);
  display: block; margin-bottom: 14px; line-height: 1;
}
.step h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--navy); }
.step p { margin-top: 8px; color: var(--muted); font-size: .97rem; }

/* ---------- Notdienst-Band ---------- */
.emergency { position: relative; padding: 110px 0; overflow: hidden; text-align: center; }
.emergency__bg {
  position: absolute; inset: 0;
  background: url("notdienst.jpg") center / cover no-repeat;
}
.emergency__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 28, 45, .88), rgba(15, 28, 45, .94));
}
.emergency__content { position: relative; z-index: 1; color: #fff; }
.emergency__kicker {
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem;
  color: var(--amber); margin-bottom: 14px;
}
.emergency__title {
  font-family: var(--font-head); font-weight: 800; letter-spacing: -.01em;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.emergency__sub { max-width: 560px; margin: 16px auto 34px; color: rgba(255, 255, 255, .8); }

/* ---------- Kontakt ---------- */
.contact {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start;
}
.contact__list { margin-top: 30px; display: grid; gap: 22px; }
.contact__list dt {
  font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 4px;
}
.contact__list dd { color: rgba(255, 255, 255, .85); }
.contact__list a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.contact__list a:hover { border-color: var(--amber); color: var(--amber); }

.form {
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius); padding: 34px;
  box-shadow: var(--shadow);
  display: grid; gap: 16px;
}
.form__title { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--navy); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 500;
  padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--light); color: var(--ink);
  transition: border-color .18s ease, background .18s ease;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--amber); background: #fff;
}
.form textarea { resize: vertical; }
.form .btn { justify-self: start; border: 0; }
.form__note { font-size: .85rem; color: var(--muted); }
.form__note a { color: var(--amber-dark); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: rgba(255, 255, 255, .7); padding: 56px 0 28px; }
.footer__inner {
  display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start;
  padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer__brand {
  font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: #fff; margin-bottom: 6px;
}
.footer__nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__nav a { color: rgba(255, 255, 255, .75); text-decoration: none; font-size: .95rem; }
.footer__nav a:hover { color: var(--amber); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  padding-top: 22px; font-size: .85rem;
}
.footer__credits { color: rgba(255, 255, 255, .45); }

/* ---------- Reveal-Animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg { animation: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about { grid-template-columns: 1fr; gap: 36px; }
  .contact { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 880px) {
  .burger { display: flex; }
  .nav {
    position: fixed; inset: 0;
    background: rgba(15, 28, 45, .98);
    flex-direction: column; justify-content: center; gap: 30px;
    transform: translateY(-100%);
    transition: transform .3s ease;
  }
  .nav.open { transform: none; }
  .nav a { font-size: 1.25rem; }
  .nav .nav__cta { font-size: 1.05rem; }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .emergency { padding: 80px 0; }
}

@media (max-width: 520px) {
  .form { padding: 26px 20px; }
  .form__row { grid-template-columns: 1fr; }
  .hero__content { padding-top: 120px; }
}
