/* ==========================================================================
   Rümpel Otto – Website (handcodierte Neuumsetzung der WordPress-Seite)
   Designsystem 1:1 nachgebaut
   ========================================================================== */

:root {
  --c-dark:   #222222;   /* Top-Bar / Karten-Sektion */
  --c-footer: #333333;   /* Footer */
  --c-blue:   #009FE3;   /* Akzent / CTA / Banner */
  --c-blue-d: #008cc8;   /* Hover */
  --c-red:    #DB191C;   /* Akzent rot (selten) */
  --c-grey:   #F3F5F8;   /* helle Sektion / Titelband */
  --c-text:   #28303D;   /* Fließtext */
  --c-muted:  #575756;
  --c-white:  #ffffff;
  --maxw: 1140px;
  --gap: 20px;
  --font: "Poppins", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; line-height: 1.2; }

p { margin: 0 0 1em; }

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

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

/* ============================ TOP BAR =================================== */
.topbar {
  background: var(--c-dark);
  color: var(--c-white);
  font-size: 15px;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar a { color: var(--c-white); }
.topbar__mail strong { font-weight: 600; }
.topbar__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  white-space: nowrap;
}
.topbar__phone .ico {
  display: inline-flex;
  width: 22px; height: 22px;
  color: var(--c-blue);
}
.topbar__phone .ico svg { width: 100%; height: 100%; }

/* ============================ HEADER / NAV ============================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-white);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 96px;
}
.brand { flex: 0 0 auto; display: inline-block; }
.brand img { height: 86px; width: auto; }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 46px; height: 46px;
  color: var(--c-dark);
}
.nav-toggle svg { width: 30px; height: 30px; }

.main-nav > ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  display: inline-block;
  padding: 6px 0;
  color: var(--c-dark);
  font-weight: 400;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.main-nav a:hover,
.main-nav a:focus,
.main-nav li.active > a {
  color: var(--c-blue);
  border-bottom-color: var(--c-blue);
}

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a .caret {
  display: inline-block;
  margin-left: 6px;
  border: 5px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 210px;
  background: var(--c-white);
  border-radius: 6px;
  box-shadow: 0 12px 34px rgba(0,0,0,.16);
  padding: 8px 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown li { display: block; }
.dropdown a {
  display: block;
  padding: 9px 22px;
  border: 0;
  white-space: nowrap;
}
.dropdown a:hover { color: var(--c-blue); border: 0; background: var(--c-grey); }

/* ============================ BUTTONS ================================== */
.btn {
  display: inline-block;
  background: var(--c-blue);
  color: var(--c-white);
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 4px;
  transition: background .15s ease;
}
.btn:hover { background: var(--c-blue-d); }

/* ============================ HERO ===================================== */
.hero {
  position: relative;
  background: #d9dde2 url("../img/hero.jpg") center center / cover no-repeat;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 24px;
  overflow: hidden;
}
.hero__banner {
  background: var(--c-blue);
  color: var(--c-white);
  text-align: center;
  max-width: 760px;
  width: 100%;
  padding: 34px 46px;
  border-radius: 10px;
  transform: rotate(-3deg);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}
.hero__banner h1 {
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 600;
  line-height: 1.3;
}
.hero__banner p {
  margin: 14px 0 0;
  font-weight: 600;
  font-size: clamp(15px, 1.8vw, 20px);
}

/* ============================ SECTION TITLES ========================== */
.section { padding: 70px 0; }

.dark-section {
  background: var(--c-dark);
  color: var(--c-white);
  padding: 64px 0 72px;
}
.dark-section h2 {
  text-align: center;
  color: var(--c-white);
  font-size: clamp(26px, 3.4vw, 36px);
  margin-bottom: 46px;
}

/* ============================ SERVICE CARDS =========================== */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.card__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
}
.card h4 {
  margin: 18px 0 12px;
  color: var(--c-white);
  font-size: 22px;
}
.card ul {
  list-style: none;
  margin: 0; padding: 0;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.9;
  color: #e9edf2;
}
.card ul li { position: relative; }

/* ============================ VERSPRECHEN ============================= */
.promise {
  background: var(--c-white);
  padding: 80px 0;
  overflow: hidden;
}
.promise__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}
.promise h2 {
  color: var(--c-blue);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  margin-bottom: 26px;
}
.promise__text { font-size: 17px; max-width: 520px; }
.promise__steps {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  counter-reset: step;
}
.promise__steps li {
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--c-text);
}
.promise__img {
  align-self: end;
  justify-self: center;
}
.promise__img img { max-height: 560px; width: auto; }

/* ============================ CTA ===================================== */
.cta {
  background: var(--c-blue);
  color: var(--c-white);
  text-align: center;
  padding: 54px 24px;
}
.cta h2 {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
}
.cta a { color: var(--c-white); }

/* ============================ FEATURES =============================== */
.features { background: var(--c-white); padding: 70px 0; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  text-align: center;
}
.feature .ico {
  color: var(--c-blue);
  width: 58px; height: 58px;
  margin: 0 auto 18px;
}
.feature .ico svg { width: 100%; height: 100%; }
.feature span {
  display: block;
  font-weight: 600;
  font-size: 19px;
  color: var(--c-text);
  line-height: 1.25;
}

/* ============================ PAGE HEAD (Titelband) ================== */
.page-head {
  background: var(--c-grey);
  background-image:
    repeating-linear-gradient(135deg, rgba(0,0,0,.025) 0 1px, transparent 1px 11px);
  padding: 72px 0 84px;
}
.page-head__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}
.page-head h1 {
  color: var(--c-blue);
  text-transform: uppercase;
  font-size: clamp(30px, 4.6vw, 54px);
  font-weight: 700;
  letter-spacing: .5px;
}
.page-head h1::before {
  content: "";
  display: block;
  width: 100%;
  max-width: 520px;
  height: 1px;
  background: #2b2b2b;
  margin-bottom: 26px;
}
.page-head__aside { padding-top: 30px; font-size: 16px; }
.page-head__aside strong { font-weight: 600; }
.area-list { font-size: 16px; line-height: 1.8; color: var(--c-text); }

/* ============================ EINSATZGEBIET-INHALT =================== */
.area-content { padding: 72px 0; background: var(--c-white); }
.area-content__lead { max-width: 840px; margin: 0 auto 54px; }
.area-content__lead h2 {
  color: var(--c-text);
  font-size: clamp(26px, 3.4vw, 34px);
  margin-bottom: 22px;
}
.area-content__lead p { font-size: 17px; }
.area-content__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.area-content__cols h3 {
  color: var(--c-blue);
  font-size: 22px;
  margin-bottom: 18px;
}
.area-services ul { list-style: none; margin: 0; padding: 0; }
.area-services li {
  position: relative;
  padding: 11px 0 11px 32px;
  border-bottom: 1px solid #eef1f4;
  font-size: 16px;
}
.area-services li::before {
  content: "";
  position: absolute;
  left: 2px; top: 17px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--c-blue);
  border-bottom: 2px solid var(--c-blue);
  transform: rotate(-45deg);
}
.area-services > p { margin: 0 0 16px; font-size: 16px; }
.area-places p + p { margin-top: 16px; }

/* ============================ INFO BAND (rechtlich) ================== */
.info-band {
  background: var(--c-blue);
  color: var(--c-white);
  padding: 56px 0;
}
.info-band__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  font-weight: 400;
  line-height: 1.7;
}
.info-band strong, .info-band b { font-weight: 600; }
.info-band a { color: var(--c-white); }

/* ============================ ARTICLE (Datenschutz) ================= */
.article { padding: 64px 0 72px; }
.article h2 {
  color: var(--c-blue);
  font-size: 26px;
  margin: 38px 0 14px;
}
.article h3 {
  color: var(--c-text);
  font-size: 20px;
  margin: 26px 0 10px;
}
.article p { max-width: 920px; }

/* ============================ FOOTER ================================ */
.site-footer {
  background: var(--c-footer);
  color: #d9d9d9;
  padding: 56px 0 48px;
}
.footer-logo { text-align: center; margin-bottom: 44px; }
.footer-logo img { height: 92px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.footer-grid h3 {
  color: var(--c-white);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 18px;
}
.site-footer a:hover { color: var(--c-blue); }
.footer-grid p { line-height: 1.7; }
.footer-info a { display: inline-block; margin-right: 26px; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 30px 26px; }
  .features__grid { grid-template-columns: repeat(3, 1fr); gap: 34px 18px; }
  .info-band__grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .brand img { height: 74px; }
  .site-header .container { min-height: 82px; }
}

@media (max-width: 860px) {
  /* Mobile-Navigation */
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--c-white);
    box-shadow: 0 14px 30px rgba(0,0,0,.14);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }
  .main-nav li { border-top: 1px solid #eef1f4; }
  .main-nav li:first-child { border-top: 0; }
  .main-nav a { padding: 14px 24px; border-bottom: 0; }
  .main-nav a:hover, .main-nav li.active > a { border-bottom: 0; }
  .has-dropdown > a .caret { float: right; transform: translateY(8px); }
  .dropdown,
  .has-dropdown:hover > .dropdown,
  .has-dropdown:focus-within > .dropdown {
    position: static;
    left: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding: 0;
    min-width: 0;
    background: var(--c-grey);
    border-radius: 0;
    display: none;
  }
  .has-dropdown.open > .dropdown { display: block; }
  .dropdown a { padding-left: 44px; }
}

@media (max-width: 767px) {
  .topbar { font-size: 13px; }
  .topbar__mail { display: none; }
  .topbar .container { justify-content: center; }
  .hero { min-height: 420px; padding: 50px 20px; }
  .hero__banner { padding: 26px 26px; }
  .promise__grid { grid-template-columns: 1fr; }
  .promise__img { order: -1; }
  .promise__img img { max-height: 360px; }
  .page-head__grid { grid-template-columns: 1fr; gap: 20px; }
  .page-head__aside { padding-top: 0; }
  .page-head h1::before { max-width: 100%; }
  .info-band__grid { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .footer-info a { margin: 0 13px; }
  .section, .features, .promise { padding: 50px 0; }
}

@media (max-width: 420px) {
  .cards { grid-template-columns: 1fr; }
}
