/* ═══════════════════════════════════════════════════════════════════════
   Renovierung-Landingpages (Template 3, 11 Domains) — Design-Schicht V2
   Stand 04.08.2026, orientiert am Designkatalog der neuen handwertig.com
   (docs/handwertig-relaunch-designkatalog.md): ein Pink, Navy, Montserrat,
   Radius 0, keine Schatten, gestrichelte Linien als Mikro-Detail.

   Lädt NACH bootstrap + mbr_additional_CSS und überstimmt deren Typo/
   Farben. Die Seiteninhalte (Mobirise-Klassen display-N, mbr-text, btn)
   bleiben unangetastet — nur die Gestaltung wird hier definiert.
   Ersetzt zugleich die frühere Abhängigkeit von
   /cms-css/handwertig.com/main_CSS.tpl (Domain gehört seit dem Livegang
   dem Relaunch-Projekt und lieferte fremdes CSS) sowie die Inline-
   <style>-Blöcke aus meta.tpl (Cookie-Banner, .renov-Header).
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --hw-ink: #101112;
  --hw-navy: #222357;
  --hw-navy-2: #2E2F6E;
  --hw-pink: #E22278;        /* Deko/Flächen (4,44:1 auf Weiß) */
  --hw-pink-tief: #C91D6A;   /* Interaktion/Hover (5,4:1) */
  --hw-sky: #47B5ED;         /* Nur auf Navy einsetzen */
  --hw-mist: #fafafa;
  --hw-line: #D8DAE0;
  --font: 'Montserrat', -apple-system, 'Segoe UI', sans-serif;
}

/* ─── Basis ──────────────────────────────────────────────────────────── */
body {
  font-family: var(--font);
  color: var(--hw-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
:focus-visible { outline: 3px solid var(--hw-navy); outline-offset: 2px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.uppercase { text-transform: uppercase; }
a { color: var(--hw-pink-tief); }
a:hover { color: var(--hw-navy); }

/* ─── Typo-Skala (Mobirise-Klassen der Seiteninhalte) ────────────────── */
.mbr-fonts-style, .mbr-text, .mbr-section-title, .mbr-section-subtitle {
  font-family: var(--font);
}
.display-1 {
  font-family: var(--font);
  font-size: clamp(40px, 5.4vw, 84px);
  font-weight: 800; line-height: 1.04; letter-spacing: -.005em;
  text-transform: uppercase;
}
.display-2 {
  font-family: var(--font);
  font-size: clamp(28px, 3.4vw, 52px);
  font-weight: 800; line-height: 1.08; letter-spacing: -.005em;
}
.display-4 {
  font-family: var(--font);
  font-size: 1.0625rem; line-height: 1.7; font-weight: 400;
}
.display-5 {
  font-family: var(--font);
  font-size: clamp(19px, 1.6vw, 24px); font-weight: 800; line-height: 1.25;
}
.display-7 {
  font-family: var(--font);
  font-size: .9375rem; font-weight: 700; line-height: 1.4;
  letter-spacing: .14em;
}
/* Kicker über Überschriften (Content setzt Pink inline) */
p.display-7.uppercase { margin-bottom: 12px; }

/* ─── Buttons (Radius 0, keine Schatten, ein Pink) ───────────────────── */
.btn, .btn-primary, .btn-secondary {
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: var(--font);
  font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 17px 30px; border: 0; transition: background .15s, color .15s;
}
.btn-primary, .btn-primary:active {
  background: var(--hw-pink) !important; color: #fff !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary.focus, .btn-primary.active {
  background: var(--hw-pink-tief) !important; color: #fff !important;
}
.btn-secondary, .btn-secondary:active {
  background: var(--hw-navy) !important; color: #fff !important;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--hw-navy-2) !important; color: #fff !important;
}
.btn.display-4 { font-size: .9688rem; line-height: 1.2; }

/* ─── Hero (header3): Marken-Motiv der neuen handwertig.com, statisch —
   Parallax entfiel beim Redesign (kein Parallax im Designkatalog). Der
   .mbr-overlay aus den Seiteninhalten wird ausgeblendet; die Abdunklung
   uebernimmt derselbe Navy-Verlauf wie auf handwertig.com (hero-slim).
   Breakpoints identisch zu den Preloads in meta.tpl. */
.header3 {
  min-height: 62vh; display: flex; align-items: center;
  padding: clamp(140px, 16vw, 220px) 0 clamp(72px, 8vw, 130px);
  position: relative; color: #fff;
  background:
    linear-gradient(112deg, rgba(34,35,87,.94) 0 62%, rgba(46,47,110,.86) 62% 100%),
    url('/cms-assets/handwertig-v2/hero/willkommen-1920.jpg') center / cover no-repeat,
    var(--hw-navy);
}
@media (max-width: 768px) {
  .header3 { background-image:
    linear-gradient(112deg, rgba(34,35,87,.94) 0 62%, rgba(46,47,110,.86) 62% 100%),
    url('/cms-assets/handwertig-v2/hero/willkommen-768.webp'); }
}
@media (min-width: 769px) and (max-width: 1280px) {
  .header3 { background-image:
    linear-gradient(112deg, rgba(34,35,87,.94) 0 62%, rgba(46,47,110,.86) 62% 100%),
    url('/cms-assets/handwertig-v2/hero/willkommen-1280.webp'); }
}
@media (min-width: 1281px) {
  .header3 { background-image:
    linear-gradient(112deg, rgba(34,35,87,.94) 0 62%, rgba(46,47,110,.86) 62% 100%),
    url('/cms-assets/handwertig-v2/hero/willkommen-1920.webp'); }
}
.header3 .container { position: relative; z-index: 2; }
.header3 .mbr-section-title { color: #fff; max-width: 17ch; }
.header3 .mbr-text { max-width: 58ch; }
.header3 .mbr-overlay { display: none; }

/* ─── Inhaltssektionen ───────────────────────────────────────────────── */
.mbr-section-title { color: var(--hw-ink); }
section .container { max-width: 1200px; }

/* ─── Formular (cms_form kontakt: Bootstrap-Klassen) ─────────────────── */
.form-label { font-weight: 700; font-size: .9062rem; color: var(--hw-ink); }
.form-control {
  border: 1px solid var(--hw-line); border-radius: 0;
  padding: 14px 16px; font-family: var(--font); font-size: .9688rem;
  background: #fff; color: var(--hw-ink); box-shadow: none;
}
.form-control:focus {
  border-color: var(--hw-navy); box-shadow: none;
  outline: 3px solid var(--hw-navy); outline-offset: 0;
}
.form-check-input { border: 1px solid var(--hw-line); border-radius: 0; width: 1.15em; height: 1.15em; }
.form-check-input:checked { background-color: var(--hw-pink); border-color: var(--hw-pink); }
.form-check-input:focus { box-shadow: none; outline: 3px solid var(--hw-navy); }
.cms-form button[type="submit"], .cms-form .btn {
  background: var(--hw-pink); color: #fff; border: 0; border-radius: 0;
  font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 17px 30px;
}
.cms-form button[type="submit"]:hover { background: var(--hw-pink-tief); }
.alert-success { border-radius: 0; border: 1px solid #1E7B4F; background: #EAF5EF; color: #14532D; }
.form1 { background: var(--hw-mist); padding: clamp(56px, 6vw, 96px) 0; }

/* ─── Header (fix, transparent über dem Hero, Navy nach Scroll) ──────── */
.renov-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(20px, 3vw, 44px);
  background: transparent; transition: background .2s ease;
  border-bottom: 1px dashed transparent;
}
.renov-header.scrolled {
  background: var(--hw-navy);
  border-bottom-color: rgba(255,255,255,.35);
}
.header-left { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); }
.renov-logo img { display: block; width: clamp(126px, 11vw, 150px); height: auto; }
.renov-phone {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; text-decoration: none; font-weight: 700; font-size: .9375rem;
  padding: 10px 0;
}
.renov-phone:hover { color: var(--hw-sky); }
.renov-burger {
  background: var(--hw-pink); border: 0; border-radius: 0;
  width: 52px; height: 52px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.renov-burger:hover { background: var(--hw-pink-tief); }
.renov-burger-icon { display: block; width: 22px; }
.renov-burger-icon span { display: block; height: 2px; background: #fff; margin: 5px 0; }

/* ─── Seitenmenü (Navy-Panel, gestrichelte Trennungen) ───────────────── */
.renov-side-overlay {
  position: fixed; inset: 0; background: rgba(16,17,18,.5);
  opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 1001;
}
.renov-side-overlay.open { opacity: 1; pointer-events: auto; }
.renov-side-menu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1002;
  width: min(400px, 92vw); background: var(--hw-navy); color: #fff;
  transform: translateX(100%); transition: transform .28s ease;
  display: flex; flex-direction: column;
  padding: 76px 30px 28px; overflow-y: auto;
}
.renov-side-menu.open { transform: translateX(0); }
.renov-side-close {
  position: absolute; top: 16px; right: 18px;
  background: none; border: 0; color: #fff; font-size: 2rem;
  line-height: 1; cursor: pointer; padding: 8px 12px;
}
.renov-side-close:hover { color: var(--hw-sky); }
.renov-menu-list { list-style: none; margin: 0; padding: 0; }
.renov-menu-list > li { border-bottom: 1px dashed rgba(255,255,255,.25); }
.renov-menu-list > li > a,
.renov-menu-toggle > a {
  display: block; color: #fff; text-decoration: none;
  font-weight: 700; font-size: 1.0625rem; padding: 14px 0;
}
.renov-menu-list a:hover { color: var(--hw-sky); }
.renov-menu-toggle {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
}
.renov-menu-toggle > a { flex: 1 1 auto; }
.renov-menu-toggle .arrow {
  font-size: 1.375rem; padding: 8px 14px; transition: transform .2s;
  color: rgba(255,255,255,.75);
}
.renov-menu-toggle.active .arrow { transform: rotate(90deg); color: var(--hw-sky); }
.renov-menu-sub {
  list-style: none; margin: 0; padding: 0 0 10px;
  display: none;
}
.renov-menu-sub.open { display: block; }
.renov-menu-sub a {
  display: block; color: rgba(255,255,255,.85); text-decoration: none;
  font-size: .9688rem; padding: 8px 0 8px 16px;
}
.renov-menu-footer { margin-top: auto; padding-top: 26px; }
.renov-menu-cta {
  display: block; text-align: center; background: var(--hw-pink); color: #fff;
  text-decoration: none; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; padding: 16px 20px;
}
.renov-menu-cta:hover { background: var(--hw-pink-tief); color: #fff; }
.renov-menu-phone {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: #fff; text-decoration: none; font-weight: 700; padding: 16px 0 6px;
}
.renov-menu-phone:hover { color: var(--hw-sky); }
.renov-menu-social { display: flex; justify-content: center; gap: 20px; padding: 8px 0; }
.renov-menu-social a { color: #fff; font-size: 1.25rem; padding: 8px; }
.renov-menu-social a:hover { color: var(--hw-sky); }
.renov-menu-legal {
  border-top: 1px dashed rgba(255,255,255,.25);
  margin: 12px 0 0; padding-top: 14px;
  font-size: .8125rem; color: rgba(255,255,255,.65); text-align: center;
}
.renov-menu-legal a { color: rgba(255,255,255,.85); text-decoration: none; }
.renov-menu-legal a:hover { color: #fff; }

/* ─── Footer (Navy, Spalten, gestrichelte Sektionen wie handwertig.com) ─ */
.lfoot { background: var(--hw-navy); color: #fff; font-family: var(--font); }
.lfoot__grid {
  max-width: 1200px; margin: 0 auto;
  padding: clamp(52px, 5vw, 76px) clamp(20px, 3vw, 44px) clamp(40px, 4vw, 60px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 52px); align-items: start;
}
.lfoot h2 {
  font-size: .8438rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.65);
  margin: 0 0 18px; padding-bottom: 12px;
  border-bottom: 1px dashed rgba(255,255,255,.25);
}
.lfoot__grid a {
  display: block; color: #fff; text-decoration: none;
  font-size: .9688rem; line-height: 1.45; padding: 5px 0; margin-bottom: 3px;
}
.lfoot__grid a:hover { color: var(--hw-sky); }
.lfoot__logo { color: #fff; margin-bottom: 16px; display: block; width: 132px; height: auto; }
.lfoot address {
  font-style: normal; font-size: .9375rem; color: rgba(255,255,255,.75);
  line-height: 1.9; margin: 0;
}
.lfoot address a { display: inline; padding: 0; color: #fff; }
.lfoot__hinweis {
  border-top: 1px dashed rgba(255,255,255,.35);
  max-width: 1200px; margin: 0 auto;
  padding: 24px clamp(20px, 3vw, 44px) 6px;
  font-size: .8125rem; line-height: 1.6; color: rgba(255,255,255,.78);
}
.lfoot__hinweis p { max-width: 72rem; margin: 0 0 10px; }
.lfoot__legal {
  border-top: 1px dashed rgba(255,255,255,.35);
  max-width: 1200px; margin: 0 auto;
  padding: 20px clamp(20px, 3vw, 44px);
  font-size: .8438rem; color: rgba(255,255,255,.65);
  display: flex; gap: 10px 22px; flex-wrap: wrap; align-items: center;
}
.lfoot__legal a { color: rgba(255,255,255,.85); text-decoration: none; padding: 6px 0; }
.lfoot__legal a:hover { color: #fff; }
.lfoot__copy { margin-left: auto; }
.lfoot__copy .herz { color: var(--hw-pink); }

/* ─── Cookie-Banner (aus meta.tpl übernommen, Schatten → Linie) ──────── */
#hw-cookie-banner {
  position: fixed; bottom: 24px; right: 24px; z-index: 99999;
  background: var(--hw-navy); color: #fff;
  padding: 24px 26px 22px;
  border: 1px solid rgba(255,255,255,.25);
  max-width: 460px; width: calc(100% - 48px);
  display: flex; flex-direction: column;
  font-family: var(--font); font-size: .85rem; line-height: 1.55;
}
#hw-cookie-banner a { color: var(--hw-sky); }
.hw-cookie-eyebrow {
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.6); margin: 0 0 6px;
}
.hw-cookie-title { font-size: 1.05rem; font-weight: 800; margin: 0 0 10px; color: #fff; }
.hw-cookie-text { margin: 0 0 12px; color: rgba(255,255,255,.85); }
.hw-cookie-text-small { font-size: .78rem; color: rgba(255,255,255,.65); margin: 10px 0 0; }
.hw-cookie-fakten { list-style: none; margin: 0 0 14px; padding: 0; }
.hw-cookie-fakten li { padding: 3px 0; color: rgba(255,255,255,.85); }
.hw-cookie-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.hw-cookie-btn {
  border: 0; border-radius: 0; cursor: pointer;
  font-family: var(--font); font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; font-size: .8rem; padding: 12px 18px;
}
.hw-cookie-btn-primary { background: var(--hw-pink); color: #fff; }
.hw-cookie-btn-primary:hover { background: var(--hw-pink-tief); }
.hw-cookie-btn-secondary { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); padding: 11px 18px; }
.hw-cookie-btn-secondary:hover { border-color: #fff; }
.hw-cookie-mehr {
  background: none; border: 0; color: var(--hw-sky); cursor: pointer;
  font: inherit; text-decoration: underline; padding: 0;
}
.hw-cookie-cat { border-top: 1px dashed rgba(255,255,255,.25); padding: 12px 0; }
.hw-cookie-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hw-cookie-cat-name { font-weight: 700; }
.hw-cookie-cat-fixed { font-size: .72rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .06em; }
.hw-cookie-cat-desc { margin: 6px 0 0; color: rgba(255,255,255,.75); font-size: .8rem; }
.hw-cookie-cat-services { margin-top: 6px; font-size: .78rem; color: rgba(255,255,255,.7); }
.hw-cookie-cat-services summary { cursor: pointer; color: var(--hw-sky); }
.hw-cookie-cat-services ul { margin: 6px 0 0; padding-left: 16px; }
.hw-cookie-toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex: 0 0 auto; }
.hw-cookie-toggle input { opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; position: absolute; z-index: 2; }
.hw-cookie-toggle-slider {
  position: absolute; inset: 0; background: rgba(255,255,255,.3); transition: background .15s;
}
.hw-cookie-toggle-slider::before {
  content: ""; position: absolute; width: 18px; height: 18px; top: 3px; left: 3px;
  background: #fff; transition: transform .15s;
}
.hw-cookie-toggle input:checked + .hw-cookie-toggle-slider { background: var(--hw-pink); }
.hw-cookie-toggle input:checked + .hw-cookie-toggle-slider::before { transform: translateX(20px); }
.hw-cookie-toggle input:focus-visible + .hw-cookie-toggle-slider { outline: 3px solid #fff; }

/* ─── Preloader neutralisieren (kein Spinner-Design im Katalog) ──────── */
#preloader { display: none !important; }

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .lfoot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .header3 { min-height: 58vh; }
  .display-1 { font-size: clamp(34px, 9vw, 44px); }
  .display-2 { font-size: clamp(26px, 7vw, 32px); }
  .lfoot__grid a { padding: 9px 0; }
  .lfoot__legal a { padding: 12px 0; }
  #hw-cookie-banner { bottom: 12px; right: 12px; width: calc(100% - 24px); }
}
@media (max-width: 640px) {
  .lfoot__grid { grid-template-columns: 1fr; }
  .renov-phone { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .renov-side-menu, .renov-side-overlay, .renov-menu-toggle .arrow { transition: none; }
}
