/* =========================================================
   KOMPONENTEN
   Pill-Buttons mit Pfeil-Chip, Pills, Badges, Icon-Kacheln, Bilder, Formular, Dekor.
   ========================================================= */

/* =========================================================
   UI-Bausteine (v8, inspiriert von dekopro.rs – in DD-Farben)
   Pill-Buttons mit Pfeil-Chip, Pill-Eyebrows, zweifarbige Titel,
   Badges, Icon-Kacheln. Gilt für alle Seiten.
   ========================================================= */
/* ===== v8: Karten, Buttons & Farbakzente (inspiriert von dekopro.rs, in DD-Farben) ===== */
main .btn {
  border-radius: 999px;
}
.hp-btn {
  padding-right: 0.45rem;
  gap: 0.75rem;
}
.hp-btn:not(:has(.hp-chip)) {
  padding-right: 1.4rem;
}
.hp-chip {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-ink);
  color: #fff;
  transition: transform 0.2s;
}
.hp-chip svg {
  width: 16px !important;
  height: 16px !important;
}
.hp-btn:hover .hp-chip {
  transform: translateX(3px) rotate(-45deg);
}
.btn-primary .hp-chip {
  background: #fff;
  color: var(--c-primary-dark);
}
.hp-btn-ink {
  background: var(--c-ink);
  color: #fff;
}
.hp-btn-ink:hover {
  background: var(--c-primary-dark);
  color: #fff;
}
.hp-btn-ink .hp-chip {
  background: var(--c-accent);
  color: var(--c-ink);
}
.hp-btn-outline {
  background: #fff;
  color: var(--c-ink);
  border-color: var(--c-ink);
}
.hp-btn-outline:hover {
  background: var(--c-ink);
  color: #fff;
}
.hp-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem 0.4rem 0.7rem;
  border-radius: 999px;
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  border: 1px solid rgba(0, 113, 95, 0.15);
}
.hp-pill {
  align-self: flex-start;
  width: fit-content;
}
.hp-area-head .hp-pill {
  align-self: center;
}
.hp-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(255, 198, 41, 0.25);
}
.hp-contact .hp-pill {
  background: #fff;
}
.hp-pill-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.16);
}
.hp-hl {
  font-style: normal;
  color: var(--c-primary-dark);
}
.hp-badge {
  position: absolute;
  top: -0.8rem;
  left: 1.25rem;
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--c-accent);
  color: var(--c-ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 14px -6px rgba(11, 31, 46, 0.4);
}
.hp-tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  color: var(--c-primary-dark);
  box-shadow: 0 8px 20px -14px rgba(11, 31, 46, 0.5);
}
/* Zweifarbige Titel auf dunklem Grund: zweiter Teil in Volt-Gelb */
.ph-hero .hp-hl,
.cta-dk .hp-hl,
.lx-dark .hp-hl,
.ab-card .hp-hl {
  color: var(--c-accent);
}
/* Pill-Eyebrow in Nachtblau (für gelbe Flächen) */
.hp-pill-ink {
  background: var(--c-ink);
  color: #fff !important;
  border-color: var(--c-ink);
}
/* Icon-Kacheln in Farbvarianten */
.t-teal {
  background: var(--c-primary-dark);
  color: #fff;
}
.t-ink {
  background: var(--c-ink);
  color: var(--c-accent);
}
.t-yellow {
  background: var(--c-accent);
  color: var(--c-ink);
}
.t-soft {
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
  box-shadow: none;
}
.t-white {
  background: #fff;
  color: var(--c-primary-dark);
}
/* Gemeinsame Pills (Orte, Filter) */
.hp-pills {
  list-style: none;
  margin: 0.25rem 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.hp-pills li {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--c-line);
  font-weight: 550;
  font-size: 0.95rem;
  color: var(--c-ink);
}
.hp-pills .hp-pill-main {
  background: var(--c-primary-dark);
  border-color: var(--c-primary-dark);
  color: #fff;
}

/* ---------- Deco ---------- */
.deco {
  display: block;
  pointer-events: none;
}
.deco-flow {
  stroke-dasharray: 60 900;
  animation: decoFlow 6s linear infinite;
}
.deco-flow-dash {
  animation: decoDash 1.6s linear infinite;
}
@keyframes decoFlow {
  from {
    stroke-dashoffset: 960;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes decoDash {
  to {
    stroke-dashoffset: -20;
  }
}
@media (prefers-reduced-motion: reduce) {
  .deco-flow,
  .deco-flow-dash {
    animation: none;
  }
}

/* ---------- InquiryForm ---------- */
.inq {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 20px;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: 0 30px 60px -40px rgba(15, 27, 45, 0.35);
}
.inq fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 1.5rem;
  min-width: 0;
}
.inq .legend {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding: 0;
}
.inq-steps {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  gap: 0.4rem;
  grid-template-columns: repeat(4, 1fr);
  font-size: 0.78rem;
  font-weight: 550;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.inq.js .inq-steps {
  display: grid;
}
.inq-steps li {
  border-top: 4px solid var(--c-line);
  padding-top: 0.5rem;
}
.inq-steps li.on {
  border-color: var(--c-primary);
  color: var(--c-primary-dark);
}
.opts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 0.6rem;
}
.opt {
  position: relative;
  cursor: pointer;
}
.opt input {
  position: absolute;
  opacity: 0;
  inset: 0;
}
.opt span {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 56px;
  padding: 0.75rem 1rem;
  border: 1.5px solid #c5ccd6;
  border-radius: 12px;
  font-weight: 550;
  font-size: 0.97rem;
  background: #fff;
}
.opt span svg {
  color: var(--c-primary);
  flex: none;
}
.opt input:checked + span {
  border-color: var(--c-primary);
  background: var(--c-primary-soft);
  box-shadow: inset 0 0 0 1px var(--c-primary);
}
.opt input:focus-visible + span {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
}
.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
  margin-top: 1rem;
}
.drop {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem;
  border: 2px dashed #c5ccd6;
  border-radius: 12px;
  cursor: pointer;
  color: var(--c-ink-2);
  font-weight: 400 !important;
}
.drop svg {
  color: var(--c-primary);
  flex: none;
}
.drop:hover {
  border-color: var(--c-primary);
}
.inq input[type="file"]:focus-visible + .file-list,
.inq input[type="file"]:focus + ul {
  outline: none;
}
.file-list {
  list-style: none;
  padding: 0;
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  color: var(--c-ink-2);
}
.check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0.5rem 0;
  font-size: 0.95rem;
}
.check input {
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
  flex: none;
  accent-color: var(--c-primary);
}
.hp {
  position: absolute;
  left: -9999px;
}
.inq-nav {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  flex-wrap: wrap;
}
.inq:not(.js) .js-back,
.inq:not(.js) .js-next {
  display: none;
}
.inq-nav .js-submit,
.inq-nav .js-next {
  margin-left: auto;
}
.inq-alt {
  margin: 1.25rem 0 0;
}
.inq-done h3 {
  color: var(--c-primary-dark);
}
@media (max-width: 600px) {
  .row2 {
    grid-template-columns: 1fr;
  }
}

/* ---------- MediaPh ---------- */
.media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.media-ph {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.media-dark {
  background: radial-gradient(120% 90% at 80% 10%, var(--c-ink-2) 0%, var(--c-ink) 60%);
  color: var(--c-primary);
}
.media-light {
  background: radial-gradient(120% 90% at 80% 10%, #fff 0%, var(--c-primary-soft) 70%);
  color: var(--c-primary-dark);
}
.media-ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.media-light::before {
  background-image:
    linear-gradient(rgba(0, 113, 95, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 113, 95, 0.07) 1px, transparent 1px);
}
.media-icon {
  position: relative;
  opacity: 0.9;
}
.media-label {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  font-size: 0.8rem;
  line-height: 1.35;
  background: #fff3c4;
  color: var(--c-ink);
  border: 1px dashed #c99a00;
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
}

/* ---------- Pic ---------- */
.pic {
  display: block;
}
.pic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* ---------- Platzhalter / Vorschau-Schalter (nur HTML-Version) ----------
   <html class="live"> blendet alle gelben Platzhalter-Hinweise und Vorschau-Sektionen aus. */
html.live .placeholder-note,
html.live .preview-only {
  display: none !important;
}
