/* Umzüge Madersbacher – ein Stylesheet, keine externen Ressourcen. */

:root {
  --red: #d5073e;          /* Logo-Rot */
  --red-dark: #a8052f;     /* Rot fuer Text/Flaechen mit ausreichend Kontrast */
  --ink: #1f2a33;
  --ink-soft: #46535e;
  --line: #dcd8d0;
  --paper: #ffffff;
  --tint: #f4f1ec;
  --dark: #1f2a33;
  --dark-2: #2a3843;
  --radius: 10px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --shadow: 0 1px 2px rgb(31 42 51 / .06), 0 8px 24px rgb(31 42 51 / .08);
  --bar-h: 0px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  padding-bottom: var(--bar-h);
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--red-dark); text-underline-offset: .18em; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red-dark); margin-bottom: .9em;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--red); border-radius: 2px; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 64px; height: auto; flex-shrink: 0; }
.brand { min-width: 0; min-height: 48px; }
.brand picture { flex-shrink: 0; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-size: 1.3rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.brand__sub { font-size: .8rem; color: var(--ink-soft); margin-top: 3px; }
.brand:hover { color: var(--ink); }

.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 10px 12px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem;
}
.site-nav a:hover { background: var(--tint); color: var(--ink); }

.header-call {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 999px;
  background: var(--red-dark); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.header-call:hover { background: var(--red); color: #fff; }
.header-call__label { display: none; }

/* ---------- Einstieg ---------- */

.hero { background: linear-gradient(180deg, var(--tint), #fff 85%); }
.hero__inner {
  display: grid; gap: clamp(28px, 4vw, 56px); align-items: center;
  grid-template-columns: 1fr;
  padding-block: clamp(32px, 6vw, 88px);
}
.hero__lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--ink-soft); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.hero__note { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.hero__media { margin: 0; position: relative; isolation: isolate; }
.hero__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: calc(var(--radius) * 1.4); box-shadow: var(--shadow);
}
.hero__media::before {
  content: ""; position: absolute; inset: auto -10px -10px auto; width: 45%; height: 45%;
  border-right: 6px solid var(--red); border-bottom: 6px solid var(--red);
  border-radius: 0 0 calc(var(--radius) * 1.8) 0; z-index: -1;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; font-size: 1.05rem; text-decoration: none; border: 2px solid transparent;
}
.btn--primary { background: var(--red-dark); color: #fff; font-size: 1.2rem; letter-spacing: .01em; }
.btn--primary:hover { background: var(--red); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: #fff; }
.btn--ghost:hover { background: var(--ink); color: #fff; }

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

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tint { background: var(--tint); }
.section--dark { background: var(--dark); color: #e9edf0; }
.section__head { max-width: 40em; margin-bottom: clamp(28px, 4vw, 44px); }
.section__head p:last-child { color: var(--ink-soft); font-size: 1.1rem; margin: 0; }

.services { display: grid; gap: 16px; grid-template-columns: 1fr; }
.service {
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red);
  border-radius: var(--radius); padding: 24px 24px 20px; box-shadow: var(--shadow);
}
.service ul { list-style: none; margin: 0; padding: 0; }
.service li { position: relative; padding: 7px 0 7px 26px; border-top: 1px solid #efece6; }
.service li:first-child { border-top: 0; }
.service li::before {
  content: ""; position: absolute; left: 2px; top: 15px; width: 12px; height: 7px;
  border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg);
}

.area { display: grid; gap: 28px; align-items: center; }
.area p:not(.eyebrow) { max-width: 34em; font-size: 1.1rem; }
.places { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.places li {
  padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-weight: 600;
}
.places .places__more { background: transparent; border-style: dashed; font-weight: 500; color: var(--ink-soft); }

.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr);
}
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.gallery a:hover img { transform: scale(1.04); }

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

.section--dark h2 { color: #fff; }
.section--dark .eyebrow { color: #ff8fa9; }
.section--dark a { color: #fff; }
.contact { display: grid; gap: 36px; }
.contact__intro p { color: #c9d1d7; max-width: 32em; }
.contact__phone {
  display: inline-flex; flex-direction: column; gap: 2px; margin-top: 12px;
  padding: 18px 26px; border-radius: 14px; background: var(--red-dark); text-decoration: none;
  box-shadow: 0 10px 30px rgb(0 0 0 / .25);
}
.contact__phone:hover { background: var(--red); }
.contact__phone-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; opacity: .9; }
.contact__phone-number { font-size: clamp(1.7rem, 1.3rem + 2vw, 2.4rem); font-weight: 800; letter-spacing: .02em; white-space: nowrap; }

.contact__list { margin: 0; display: grid; gap: 0; background: var(--dark-2); border-radius: 14px; padding: 8px 24px; }
.contact__list > div { padding: 16px 0; border-top: 1px solid rgb(255 255 255 / .1); }
.contact__list > div:first-child { border-top: 0; }
.contact__list dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: #9fb0bc; margin-bottom: 4px; }
.contact__list dd { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.contact__list address { font-style: normal; }
.maps-link { display: inline-block; margin-top: 10px; padding: 8px 0; font-weight: 600; }

/* ---------- Fuss ---------- */

.site-footer { background: #151d23; color: #aab6bf; padding-block: 40px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0; }
.site-footer__inner { display: grid; gap: 22px; }
.site-footer__name { color: #fff; font-weight: 700; margin-bottom: 6px !important; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px 22px; flex-wrap: wrap; }
.site-footer__links a { display: inline-block; padding: 8px 0; }

/* ---------- Schnellkontakt (Smartphone) ---------- */

.action-bar {
  position: fixed; inset: auto 0 0 0; z-index: 60;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px;
  padding: 8px max(8px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  background: rgb(255 255 255 / .97); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgb(31 42 51 / .08);
}
.action-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; border-radius: 12px; font-weight: 700; text-decoration: none; font-size: 1.05rem;
}
.action-bar__call { background: var(--red-dark); color: #fff; }
.action-bar__mail { background: var(--tint); color: var(--ink); border: 1px solid var(--line); }
body { --bar-h: calc(68px + env(safe-area-inset-bottom)); }

/* ---------- Lightbox ---------- */

.lightbox {
  padding: 0; border: 0; background: transparent; max-width: min(96vw, 1600px); max-height: 92vh;
}
.lightbox::backdrop { background: rgb(10 14 18 / .88); }
.lightbox img { max-width: min(96vw, 1600px); max-height: 92vh; width: auto; height: auto; border-radius: 8px; }
.lightbox__close {
  position: fixed; top: 12px; right: 12px; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: #fff; color: var(--ink); font-size: 2rem; line-height: 1; cursor: pointer;
}

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

.legal { padding-block: clamp(40px, 6vw, 80px); }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.6em; }
.legal address { font-style: normal; margin-bottom: 1em; }
.legal p, .legal li { overflow-wrap: anywhere; }

.notfound { padding-block: clamp(56px, 10vw, 120px); }
.notfound .hero__actions { margin-top: 20px; }

/* ---------- Breakpoints ---------- */

@media (max-width: 859px) {
  .site-nav { display: none; }
  .header-call { width: 48px; padding: 0; justify-content: center; }
  .header-call__number { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

@media (max-width: 420px) {
  .brand img { width: 52px; }
  .brand__name { font-size: 1.1rem; }
  .brand__sub { display: none; }
  .btn { width: 100%; }
}

@media (min-width: 600px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 860px) {
  .action-bar { display: none; }
  body { --bar-h: 0px; }
  .header-call__label { display: inline; }
  .header-call__number { display: none; }
}

@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1.05fr 1fr; }
  .area { grid-template-columns: 1fr 1.1fr; gap: 56px; }
  .contact { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .site-footer__inner { grid-template-columns: 1.2fr 1.2fr 1fr; }
  .site-footer__links { justify-content: flex-end; }
}

@media (min-width: 1100px) {
  .services { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .header-call__number { display: inline; }
}

@media (min-width: 1800px) {
  :root { --wrap: 1320px; }
  body { font-size: 1.125rem; }
}

@media print {
  .site-header, .action-bar, .lightbox { display: none !important; }
  body { padding: 0; }
}
