/* ==========================================================================
   DEINE BOXX – Nachbau der Live-Seite (www.deineboxx.de)
   Enfold/WordPress-Original in statisches HTML/CSS übersetzt.
   ========================================================================== */

:root {
  --red: #790626;          /* Markenfarbe (Weinrot) */
  --red-dark: #701932;     /* Buttons */
  --red-border: #500710;
  --red-hover: #9d2c4c;
  --text: #4b4b4d;
  --heading: #4b4b4d;
  --border: #e1e1e1;
  --bg-page: #e4e4e4;      /* Hintergrund hinter dem Boxed-Layout */
  --bg-light: #f4f4f4;
  --bg-box: #f2f2f2;
  --bg-footer: #f8f8f8;
  --font: 'Open Sans', Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.65em;
  color: var(--text);
  background: var(--bg-page);
}
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1.2em; }
ul, ol { margin: 0 0 1.2em; padding-left: 20px; }
strong, b { font-weight: 600; }
h1, h2, h3, h4, h5, h6 {
  font-weight: 600; color: var(--heading); margin: 0 0 .6em; line-height: 1.1em;
}
h1 { font-size: 34px; margin-bottom: 14px; }
h2 { font-size: 28px; margin-bottom: 10px; }
h3 { font-size: 20px; margin-bottom: 8px; }
h4 { font-size: 18px; margin-bottom: 4px; }

/* Boxed-Layout --------------------------------------------------------- */
#top {
  width: 1310px; max-width: 90%; margin: 0 auto;
  background: #fff; box-shadow: 0 0 25px rgba(0,0,0,.12);
  position: relative;
}
.container { position: relative; width: 100%; margin: 0 auto; padding: 0 50px; clear: both; }
.container::after, .row::after, .clearfix::after { content: ""; display: table; clear: both; }

/* Header --------------------------------------------------------------- */
#header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--border);
}
#header .container { display: flex; align-items: center; justify-content: space-between; height: 116px; }
.logo img { width: 300px; height: 100px; display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.main-nav li { margin: 0; }
.main-nav a {
  display: block; padding: 0 13px; font-size: 13px; font-weight: 400;
  color: var(--text); line-height: 116px; text-decoration: none;
  position: relative;
}
.main-nav a:hover, .main-nav li.current a { color: var(--red); text-decoration: none; }
.main-nav li.current a::after {
  content: ""; position: absolute; left: 13px; right: 13px; top: 0; height: 2px; background: var(--red);
}
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 10px;
  font: 600 13px/1 var(--font); color: var(--text); align-items: center; gap: 8px;
}
.nav-toggle .bars { display: inline-block; width: 24px; height: 2px; background: var(--text); position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: var(--text);
}
.nav-toggle .bars::before { top: -7px; } .nav-toggle .bars::after { top: 7px; }

/* Hero ----------------------------------------------------------------- */
.hero {
  position: relative; height: 480px; overflow: hidden;
  background: #ccc url(../img/header.jpg) no-repeat 50% 0; background-size: cover;
}
.hero--service { background-image: url(../img/service.jpg); }
.hero--half { height: 50vh; min-height: 320px; max-height: 480px; }
.hero .container { height: 100%; }
.hero-claim { position: absolute; left: 50px; top: 65px; width: 300px; }
.hero-box {
  position: absolute; left: 0; top: 240px;
  background: rgba(255,255,255,.6); padding: 40px; display: inline-block;
}
.hero-box h1 { font-size: 60px; margin: 0; line-height: 1.1em; color: var(--heading); }
.hero-box p { margin: 0; }
.hero-box strong { font-size: 38px; color: var(--text); line-height: 1.2em; }

/* Sektionen ------------------------------------------------------------ */
.section { padding: 50px 0; border-top: 1px solid var(--border); }
.section--light { background: var(--bg-light); }
.section--no-border { border-top: 0; }
.section--small { padding: 30px 0; }

/* Überschrift mit Linie rechts (Enfold "modern-quote") */
.heading { display: flex; align-items: center; margin-bottom: 20px; }
.heading > h1, .heading > h2, .heading > h3 { margin: 0; text-transform: uppercase; padding-right: 20px; white-space: nowrap; }
.heading > h3 { text-transform: none; font-size: 20px; }
.heading .line { flex: 1; border-top: 1px solid var(--border); }
.heading--sub { flex-wrap: wrap; }
.heading--sub .sub { width: 100%; font-size: 15px; margin: 4px 0 10px; }
.heading--sub .line { flex: 1 0 100%; }
.heading--stack { display: block; }
.heading--stack h1 { margin-bottom: 4px; }
.heading--stack .line { display: block; margin-top: 10px; }

/* Grid ----------------------------------------------------------------- */
.row { display: flex; flex-wrap: wrap; margin: 0 -1.5%; }
.col { padding: 0 1.5%; }
.col-1-2 { width: 50%; } .col-1-3 { width: 33.3333%; } .col-1-4 { width: 25%; } .col-2-3 { width: 66.6666%; } .col-full { width: 100%; }
.row--tight { margin: 0; } .row--tight .col { padding: 0; }

/* Buttons -------------------------------------------------------------- */
.btn, input[type=submit], button.btn {
  display: inline-block; background: var(--red-dark); color: #fff !important;
  border: 0; border-bottom: 1px solid var(--red-border); border-radius: 2px;
  padding: 7px 14px; font: 400 12px/1.5 var(--font); cursor: pointer; text-decoration: none !important;
  transition: background .2s;
}
.btn:hover, input[type=submit]:hover { background: var(--red-hover); }
.btn--icon::before { content: "\2913"; margin-right: 6px; font-size: 12px; }

/* Home: So einfach geht's ---------------------------------------------- */
.steps .step { display: block; color: inherit; text-decoration: none; position: relative; }
.steps .step:hover { text-decoration: none; }
.steps .step-img { min-height: 220px; display: flex; align-items: flex-start; }
.steps .step-img img { width: 300px; max-width: 100%; }
.pap-steps { padding-top: 50px; padding-bottom: 30px; }
.pap-ball {
  border-radius: 140px; background: var(--red); color: #fff; font-weight: bold;
  padding: 20px 26px; font-size: 24px; display: inline-block; line-height: 1;
}
.pap-ball-text { color: var(--red); padding-left: 10px; font-size: 24px; font-weight: bold; display: inline-block; }
.pap-steps-info { position: relative; display: inline-block; padding-bottom: 10px; }
.pap-steps-info::after {
  content: ""; position: absolute; bottom: -4px; left: 0; width: 0; height: 4px; background: var(--red);
  transition: width .2s ease-in-out;
}
.steps .step:hover .pap-steps-info::after { width: 100%; }

/* Home: Sie brauchen Platz --------------------------------------------- */
.reasons .row { margin-bottom: 20px; }
.reason { display: flex; align-items: center; gap: 15px; min-height: 110px; }
.reason img { width: 110px; flex: 0 0 110px; }
.reason h4 { margin: 0; font-size: 15px; color: var(--red); font-weight: 600; line-height: 1.3em; }

/* Iconbox (Download, Rabatt) ------------------------------------------- */
.iconbox { text-align: center; padding: 10px 0 20px; }
.iconbox .icon {
  width: 50px; height: 50px; margin: 0 auto 15px; border-radius: 50%;
  background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.iconbox h3 { font-size: 20px; margin: 0 0 6px; }
.iconbox p { margin-bottom: 15px; }

/* Leistungen ------------------------------------------------------------ */
.service-block { display: flex; gap: 20px; margin-bottom: 35px; }
.service-block .icon { flex: 0 0 60px; width: 60px; }
.service-block h2 { text-transform: uppercase; font-size: 20px; margin: 0 0 10px; }
.service-block ul { list-style: square; padding-left: 16px; margin: 0; }
.service-block li { margin-bottom: 2px; }
.siegel { display: flex; align-items: center; gap: 30px; margin-top: 20px; }
.siegel img { width: 180px; }
.siegel ul { list-style: square; padding-left: 16px; margin: 0; }

/* Service / Tipps (Bild + Text) ---------------------------------------- */
.media { display: flex; gap: 20px; margin-bottom: 30px; }
.media .media-img { flex: 0 0 150px; width: 150px; }
.media h3 { font-size: 15px; margin-bottom: 6px; }
.media ul { list-style: square; padding-left: 16px; }

/* Preise -------------------------------------------------------------- */
.table-head {
  display: flex; border-bottom: 3px solid var(--red-dark); margin: 20px 0 0; font-weight: bold;
}
.table-head > div { padding-bottom: 6px; }
.table-head--main > div:nth-child(1) { width: 35%; }
.table-head--main > div:nth-child(2) { width: 35%; }
.table-head--main > div:nth-child(3) { width: 10%; }
.table-head--main > div:nth-child(4) { width: 20%; text-align: right; }
.table-head--second > div:nth-child(1) { width: 34%; }
.table-head--second > div:nth-child(2) { width: 33%; }
.table-head--second > div:nth-child(3) { width: 33%; }
.spacer { height: 50px; }
.spacer--sm { height: 25px; }
.hr { border: 0; border-top: 1px solid var(--border); margin: 0; }

.price-row { display: flex; gap: 3%; align-items: flex-start; }
.price-row > div { flex: 1 1 0; }
.pap-container {
  position: relative; background: var(--bg-box); border-radius: 5px; border: 1px solid #ebebeb;
  text-align: center; height: 150px;
}
.pap-eurogroesse {
  position: absolute; left: 50%; top: -48px; transform: translateX(-50%);
  background: #fff; font-size: 45px; padding: 0 10px; font-weight: 700; border-radius: 150px;
  color: var(--red); min-width: 100px; min-height: 100px; line-height: 100px;
}
.pap-quadratmeter {
  position: absolute; left: 50%; top: 60%; transform: translate(-50%, -60%);
  font-size: 20px; font-weight: bold; color: #000; white-space: nowrap;
}
.pap-quadratmeter-preise { padding-top: 37px; }
.pap-content { margin-top: -20px; }
.pap-content ul { list-style: square; padding-left: 16px; }
.pap-content p { margin-bottom: 8px; }
.pap-form { margin-top: -20px; }
.pap-input-border { position: relative; border-bottom: 1px solid #000; padding: 5px 0 2px; }
.pap-input-border label { display: block; margin-left: 40px; cursor: pointer; }
.pap-input-border label span { float: right; }
.pap-input-border.head { display: none; }
.pap-input-border.head strong { display: inline-block; width: 49%; }
.pap-input-border.head strong + strong { text-align: right; }
input[type=radio].css-checkbox {
  appearance: none; -webkit-appearance: none; background: #fff; border: 2px solid var(--red);
  height: 20px; width: 20px; border-radius: 15px; float: left; margin: 0; cursor: pointer; position: relative;
}
input[type=radio].css-checkbox:checked::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--red);
}
.pap-form input[type=submit] { float: right; margin-top: 18px; }
.pap-raumhoehe { margin-top: 10px; }

/* Raumrechner ---------------------------------------------------------- */
.calc-row { display: flex; gap: 1%; align-items: stretch; margin-bottom: 50px; }
.calc-row > div { width: 33%; }
.calc-row > div:last-child { width: 32%; }
.pap-roomcalc-box { position: relative; background: var(--bg-box); padding: 10px; display: block; min-height: 200px; height: 100%; }
.pap-roomcalc-box .dims { max-width: 65%; }
.pap-roomcalc-box-sm-inner { position: absolute; right: 0; top: 0; border-left: 5px solid #fff; }
.pap-roomcalc-box-sm { position: relative; background: var(--bg-box); height: 95px; width: 95px; }
.pap-roomcalc-box-sm:first-of-type { margin-bottom: 10px; border-bottom: 5px solid #fff; }
.pap-roomcalc-box-sm img { position: absolute; z-index: 10; bottom: 10px; right: 10px; width: 70%; }
.pap-roomcalc-info {
  position: absolute; z-index: 12; top: 5px; left: 5px; width: 50px; height: 50px; padding: 12px 0;
  border-radius: 50px; background: var(--red); color: #fff; text-align: center; line-height: 13px; font-size: 12px;
}
.pap-roomcalc-info-two { background: transparent; padding: 10px 0; border: 1px solid var(--red); color: var(--red); }
.calc-row .pap-container { min-height: 200px; height: 100%; }
.calc-row .pap-quadratmeter { top: 50%; transform: translate(-50%, -50%); }
.pap-roomcalc-btn { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); }

/* FAQ Toggles ---------------------------------------------------------- */
.toggles { margin-bottom: 30px; }
.toggle { border: 1px solid var(--border); margin-bottom: -1px; background: #fff; }
.toggle-title {
  margin: 0; padding: 12px 15px 12px 38px; position: relative; cursor: pointer; font-weight: 400; font-size: 13px;
  color: var(--text); transition: background .2s, color .2s;
}
.toggle-title::before, .toggle-title::after {
  content: ""; position: absolute; left: 16px; top: 50%; background: currentColor;
}
.toggle-title::before { width: 11px; height: 1px; margin-top: 0; }
.toggle-title::after { width: 1px; height: 11px; margin-top: -5px; margin-left: 5px; }
.toggle.open .toggle-title::after { display: none; }
.toggle-title:hover, .toggle.open .toggle-title { background: var(--red); color: #fff; font-weight: bold; }
.toggle-body { display: none; padding: 15px 15px 5px 38px; border-top: 1px solid var(--border); }
.toggle.open .toggle-body { display: block; }
.toggle-body a { text-decoration: underline; }

/* Galerie -------------------------------------------------------------- */
.masonry { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.masonry a { display: block; aspect-ratio: 1 / 1; overflow: hidden; position: relative; background: #eee; }
.masonry img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.masonry a:hover img { transform: scale(1.04); }
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 1000; display: none;
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 90vh; box-shadow: 0 0 40px rgba(0,0,0,.6); }
.lightbox button {
  position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff;
  font-size: 48px; cursor: pointer; padding: 20px; opacity: .8;
}
.lightbox .prev { left: 10px; } .lightbox .next { right: 10px; }
.lightbox .close { top: 10px; right: 10px; transform: none; font-size: 32px; }

/* Formulare ------------------------------------------------------------ */
.form-row { display: flex; flex-wrap: wrap; gap: 0 2%; }
.form-el { width: 100%; margin: 0 0 15px; }
.form-el--half { width: 49%; }
.form-el--third { width: 32%; }
.form-el label { display: block; font-weight: 600; margin-bottom: 4px; }
.form-el abbr { color: var(--red); text-decoration: none; border: 0; }
.form-el input[type=text], .form-el input[type=email], .form-el textarea, .form-el select {
  width: 100%; padding: 10px; font: inherit; color: var(--text);
  border: 1px solid var(--border); border-radius: 2px; background: var(--bg-footer);
}
.form-el textarea { height: 140px; resize: vertical; }
.form-el--check label { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.form-el--check input { margin-top: 4px; }
.form-el--check a { text-decoration: underline; }
.form-el input:focus, .form-el textarea:focus, .form-el select:focus { outline: 0; border-color: var(--red); background: #fff; }
.contact-form h3 { margin-bottom: 15px; }
.kontakt-table td, .kontakt-table th { text-align: left; padding: 0 20px 0 0; }
.form-note { background: var(--bg-footer); border-left: 5px solid var(--red-dark); padding: 10px 15px; margin-bottom: 20px; }

/* Footer --------------------------------------------------------------- */
#footer { background: var(--bg-footer); border-top: 1px solid var(--border); padding: 45px 0 20px; }
#footer .widget h3 { font-size: 13px; text-transform: uppercase; margin-bottom: 16px; letter-spacing: .5px; }
#footer .widget { margin-bottom: 20px; }
#footer .siegel-widget img { width: 168px; margin-top: 35px; }
#socket { background: #fff; border-top: 1px solid var(--border); font-size: 11px; padding: 14px 0; }
#socket .container { display: flex; justify-content: space-between; align-items: center; }
#socket ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
#socket a { color: var(--text); }
#socket a:hover { color: var(--red); }
#scroll-top {
  position: fixed; right: 30px; bottom: 30px; width: 40px; height: 40px; border-radius: 3px;
  background: rgba(0,0,0,.3); color: #fff; display: flex; align-items: center; justify-content: center;
  text-decoration: none; opacity: 0; transition: opacity .3s; z-index: 50; font-size: 18px;
}
#scroll-top.visible { opacity: 1; }
#scroll-top:hover { background: var(--red); }

/* Rechtstexte ---------------------------------------------------------- */
.legal h1 { font-size: 34px; margin-top: 30px; }
.legal h1:first-child { margin-top: 0; }
.legal h2 { font-size: 24px; margin-top: 25px; }
.legal h3 { font-size: 16px; margin-top: 20px; }
.legal a { word-break: break-all; }

/* Responsive ----------------------------------------------------------- */
@media (max-width: 989px) {
  #top { max-width: 100%; width: 100%; box-shadow: none; }
  .container { padding: 0 25px; }
  #header .container { height: 90px; }
  .logo img { width: 240px; height: 80px; }
  .nav-toggle { display: flex; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { line-height: 44px; padding: 0 25px; border-top: 1px solid var(--border); }
  .main-nav li.current a::after { display: none; }
  .hero { height: 360px; }
  .hero-claim { left: 25px; top: 25px; width: 200px; }
  .hero-box { top: 170px; padding: 25px; }
  .hero-box h1 { font-size: 40px; }
  .hero-box strong { font-size: 22px; }
  .col-1-3, .col-1-4, .col-2-3 { width: 50%; }
  .masonry { grid-template-columns: repeat(3, 1fr); }
  .table-head { display: none; }
  .price-row, .calc-row { flex-direction: column; gap: 20px; }
  .calc-row > div, .calc-row > div:last-child { width: 100%; }
  .pap-roomcalc-box { min-height: 0; height: auto; }
  .pap-roomcalc-box .dims { max-width: 100%; }
  .pap-roomcalc-box-sm-inner { position: relative; border-left: 0; display: flex; gap: 10px; margin-top: 10px; }
  .pap-roomcalc-box-sm:first-of-type { margin-bottom: 0; border-bottom: 0; }
  .calc-row .pap-container, .pap-container { height: auto; min-height: 0; padding: 20px 10px; }
  .pap-eurogroesse { position: static; transform: none; line-height: 60px; min-height: 0; display: inline-block; }
  .pap-quadratmeter, .calc-row .pap-quadratmeter { position: static; transform: none; padding-top: 0; display: block; margin-top: 6px; }
  .pap-quadratmeter-preise { padding-top: 0; }
  .pap-roomcalc-btn { position: static; transform: none; margin-top: 10px; }
  .pap-content, .pap-form { margin-top: 0; }
  .pap-input-border.head { display: block; }
  .service-block { flex-direction: column; }
}
@media (max-width: 767px) {
  .col-1-2, .col-1-3, .col-1-4, .col-2-3 { width: 100%; }
  .row { margin: 0; } .col { padding: 0; }
  .hero { height: 280px; }
  .hero-box { top: 130px; left: 0; right: 0; padding: 20px; }
  .hero-box h1 { font-size: 32px; } .hero-box strong { font-size: 18px; }
  .hero-claim { width: 160px; }
  .reason { min-height: 0; margin-bottom: 15px; }
  .masonry { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .form-el--half, .form-el--third { width: 100%; }
  .media { flex-direction: column; }
  .siegel { flex-direction: column; align-items: flex-start; }
  #socket .container { flex-direction: column; gap: 10px; }
  .heading > h1, .heading > h2 { white-space: normal; }
  .steps .step-img { min-height: 0; }
  .pap-steps { padding-top: 20px; padding-bottom: 15px; }
}
