/* ==========================================================================
   SEO-Landingpages (webdesign-leverkusen/, websites-handwerker-koeln/,
   app-entwickeln-lassen/)
   --------------------------------------------------------------------------
   Ergänzt bre-core.css um wenige Bausteine, die es nur hier gibt.
   Nur Tokens. Aufbau:
   1  Schnellcheck-Formular (führt zum Website Analyzer)
   2  Preisleiste
   3  Einsatzgebiet (Tags mit Zwischenüberschrift)
   4  Vergleich „selbst bauen / Managed“
   5  Vorlagen
   6  Geräte-Szene im Seitenkopf (Smartphone mit Mini-Oberfläche)
   6b Funktionsraster (Symbol, Titel, Text – durch Haarlinien getrennt)
   7  Responsive
   ========================================================================== */

/* 1 · Schnellcheck --------------------------------------------------------- */

.quick-check {
  display: grid;
  gap: 0.6rem;
  padding-bottom: 1.25rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid var(--hairline);
}

.quick-check__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.quick-check__input {
  position: relative;
  min-width: 0;
}

.quick-check__input > i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  pointer-events: none;
}

.quick-check__input .input {
  padding-left: 2.6rem;
}

.quick-check__form .btn {
  min-height: 50px;
}

/* Im schmalen Seitenkopf-Panel steht der Knopf immer unter dem Feld */
.page-hero__aside .quick-check__form {
  grid-template-columns: minmax(0, 1fr);
}

/* 2 · Preisleiste ------------------------------------------------------------ */

.prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.prices__item {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
  padding: 1rem 0.9rem 1rem 0;
}

.prices__item + .prices__item {
  padding-left: 0.9rem;
  border-left: 1px solid var(--hairline);
}

.prices__name {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.prices__item.is-featured .prices__name {
  color: var(--accent);
}

.prices__item.is-featured .prices__value {
  background: var(--brand-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.prices__item.is-featured .prices__value small {
  -webkit-text-fill-color: var(--ink-3);
}

.prices__value {
  font-size: clamp(1.4rem, 1.05rem + 1.1vw, 1.9rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.prices__value small {
  margin-left: 0.15rem;
  font-size: 0.45em;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-3);
}

.prices__note {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--ink-2);
}

/* 3 · Einsatzgebiet ------------------------------------------------------------ */

.area__title {
  margin: 0.25rem 0 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.tags + .area__title {
  margin-top: 1.5rem;
}

.tags a {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.tags a:hover {
  text-decoration-color: currentColor;
}

.trades-note {
  margin-top: clamp(1.5rem, 4vh, 2.25rem);
}

/* 4 · Vergleich ------------------------------------------------------------------ */

.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}

.compare__col {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.compare__col.is-good {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--brand-gradient) border-box;
  box-shadow: var(--brand-glow);
}

.compare__col .label {
  margin-bottom: 1rem;
}

.compare__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}

.compare__list li {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: 0.75rem;
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--hairline);
  line-height: 1.5;
}

.compare__list li::before {
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.compare__list.is-bad li {
  color: var(--ink-2);
}

.compare__list.is-bad li::before {
  content: "×";
  color: var(--danger);
}

.compare__list.is-good li::before {
  content: "✓";
  color: var(--success);
}

/* 5 · Vorlagen -------------------------------------------------------------------- */

.templates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 3.5rem);
}

.template {
  min-width: 0;
}

.template__media {
  display: block;
  aspect-ratio: 4 / 3;
  margin-bottom: 1.1rem;
}

.template__media img {
  object-position: top center;
  transition: transform 0.9s var(--ease);
}

.template:hover .template__media img {
  transform: scale(1.03);
}

.template .label {
  margin-bottom: 0.5rem;
}

.template__title {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.template__text {
  margin: 0.5rem 0 1rem;
  max-width: 34rem;
  color: var(--ink-2);
  line-height: 1.6;
}

/* 6 · Geräte-Szene im Seitenkopf ------------------------------------------------------
   Smartphone mit echter Mini-Oberfläche, zwei schwebenden Hinweisen und dezentem
   Markenlicht. Rein dekorativ (aria-hidden). Rahmen immer schwarz (--night),
   Bildschirm folgt dem Theme. */

.device-stage {
  /* Abstand der Gruppe (Gerät + Hinweise) zum Rand; in breiten Panels mittig */
  --stage-inset: max(clamp(1rem, 7%, 2rem), calc(50% - 205px));
  position: relative;
  display: grid;
  place-items: center start;
  margin: 0.25rem 0 1.25rem;
  padding: 1.75rem 0 1.5rem var(--stage-inset);
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(60% 55% at 72% 22%, rgb(74 158 232 / 0.2), transparent 70%),
    radial-gradient(55% 50% at 22% 82%, rgb(61 204 142 / 0.18), transparent 70%),
    var(--paper-2);
  isolation: isolate;
}

/* Feine Ringe hinter dem Gerät */
.device-stage::before,
.device-stage::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(var(--stage-inset) + 98px);
  z-index: -1;
  border-radius: 50%;
  border: 1px solid var(--line);
  transform: translate(-50%, -50%);
}

.device-stage::before {
  width: 300px;
  height: 300px;
}

.device-stage::after {
  width: 430px;
  height: 430px;
  border-color: var(--hairline);
}

.device {
  position: relative;
  width: 196px;
  padding: 7px;
  border-radius: 38px;
  background: var(--night);
  box-shadow: inset 0 0 0 1.5px var(--night-line), var(--shadow);
  animation: deviceFloat 7s var(--ease) infinite;
}

/* Seitentasten */
.device::before,
.device::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: var(--night);
}

.device::before {
  top: 92px;
  left: -3px;
  height: 46px;
}

.device::after {
  top: 110px;
  right: -3px;
  height: 64px;
}

.device__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 392px;
  overflow: hidden;
  border-radius: 31px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.7rem;
  line-height: 1.3;
}

.device__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 0 1.05rem 0 1.25rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.device__status i {
  font-size: 0.56rem;
  margin-left: 0.2rem;
}

.device__island {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 64px;
  height: 19px;
  margin-left: -32px;
  border-radius: var(--radius-pill);
  background: var(--night);
}

.device__body {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  flex: 1;
  min-height: 0;
  padding: 0.35rem 0.8rem 0;
}

/* Kopfzeile der Mini-Oberfläche */
.device__bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.device__logo {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 7px;
  background: var(--brand-gradient-strong);
  color: var(--on-brand);
  font-size: 0.6rem;
}

.device__name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: -0.02em;
}

.device__name small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.device__bar > i,
.device__avatar {
  flex: none;
  color: var(--ink-2);
}

.device__avatar {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-gradient-strong);
  color: var(--on-brand);
  font-size: 0.55rem;
  font-weight: 600;
}

/* Titelfläche mit weißer Schrift auf kräftigem Verlauf */
.device__hero {
  position: relative;
  display: grid;
  gap: 0.3rem;
  padding: 0.8rem 0.75rem 0.85rem;
  overflow: hidden;
  border-radius: 14px;
  background: var(--brand-gradient-strong);
  color: var(--on-brand);
}

.device__hero > i {
  position: absolute;
  right: -0.4rem;
  bottom: -0.6rem;
  font-size: 3.6rem;
  opacity: 0.18;
}

.device__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.9;
}

.device__title {
  max-width: 11ch;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.device__meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink-2);
  font-size: 0.6rem;
}

.device__meta i {
  color: var(--accent);
  font-size: 0.55rem;
}

.device__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.device__chips span {
  padding: 0.22rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.56rem;
  font-weight: 500;
}

/* Infozeilen unter der Titelfläche */
.device__info {
  display: grid;
  gap: 0.35rem;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 0.6rem;
}

.device__info span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.device__info i {
  width: 0.8rem;
  color: var(--accent);
  font-size: 0.58rem;
  text-align: center;
}

/* Fortschritt und Listenzeilen (App-Variante) */
.device__card {
  display: grid;
  gap: 0.4rem;
  padding: 0.65rem 0.7rem;
  border-radius: 12px;
  background: var(--paper);
}

.device__card strong {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.device__progress {
  height: 5px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--line);
}

.device__progress span {
  display: block;
  width: 34%;
  height: 100%;
  border-radius: inherit;
  background: var(--brand-gradient);
}

.device__list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.device__list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--hairline);
}

.device__time {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--ink-3);
}

.device__list b {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.device__list small {
  display: block;
  font-size: 0.55rem;
  color: var(--ink-3);
}

.device__tag {
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.5rem;
  font-weight: 600;
}

.device__tag--done { background: var(--success-soft); color: var(--success); }
.device__tag--live { background: var(--accent-soft); color: var(--accent-strong); }
.device__tag--open { background: var(--warning-soft); color: var(--warning); }

/* Untere Leiste: Anruf-Knopf bzw. Tab-Leiste */
.device__dock {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding: 0.6rem 0.8rem 1.1rem;
  border-top: 1px solid var(--hairline);
  background: var(--surface-2);
}

.device__call {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: 32px;
  border-radius: var(--radius-pill);
  background: var(--brand-gradient-strong);
  color: var(--on-brand);
  font-size: 0.66rem;
  font-weight: 600;
}

.device__square {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  font-size: 0.66rem;
}

.device__tabs {
  justify-content: space-around;
  color: var(--ink-3);
  font-size: 0.8rem;
}

.device__tabs .is-active {
  color: var(--accent);
}

.device__home {
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 70px;
  height: 3px;
  margin-left: -35px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  opacity: 0.8;
}

/* Schwebende Hinweise neben dem Gerät */
.device-note {
  position: absolute;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.2rem 0.6rem;
  width: min(11.5rem, 46%);
  padding: 0.6rem 0.75rem 0.6rem 0.6rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: var(--brand-glow);
  font-size: 0.72rem;
  line-height: 1.3;
}

.device-note__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  grid-row: span 2;
  border-radius: 10px;
  background: var(--brand-gradient-strong);
  color: var(--on-brand);
  font-size: 0.72rem;
}

.device-note strong {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.device-note > span:not(.device-note__icon) {
  color: var(--ink-3);
  font-size: 0.64rem;
}

.device-note--top {
  top: 3.2rem;
  right: max(0.8rem, calc(50% - 205px));
  animation: noteIn 0.9s var(--ease) 0.5s both;
}

.device-note--bottom {
  bottom: 4.5rem;
  right: max(0.8rem, calc(50% - 205px));
  animation: noteIn 0.9s var(--ease) 0.9s both;
}

.device-note--bottom .device-note__icon {
  background: var(--status-soft);
  color: var(--status-ink);
}

@keyframes deviceFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes noteIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

/* Schmale Panels: Gerät mittig, nur der obere Hinweis */
@media (max-width: 480px) {
  .device-stage {
    place-items: center;
    padding: 3.6rem 0 1.5rem;
  }

  .device-stage::before,
  .device-stage::after {
    left: 50%;
  }

  /* Wie eine Push-Nachricht, die über die Statusleiste fällt */
  .device-note--top {
    top: 0.9rem;
    right: 50%;
    width: 12.5rem;
    margin-right: -6.25rem;
  }

  .device-note--bottom {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .device,
  .device-note--top,
  .device-note--bottom {
    animation: none;
  }

  .template__media img {
    transition: none;
  }
}

/* 6b · Funktionsraster ------------------------------------------------------------ */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(1.25rem, 3vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}

.feature {
  min-width: 0;
  padding: 1.5rem 0 1.6rem;
  border-bottom: 1px solid var(--hairline);
}

.feature > i {
  font-size: 1.15rem;
  color: var(--accent);
}

.feature__title {
  margin-top: 0.85rem;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.feature__text {
  margin-top: 0.4rem;
  max-width: 30rem;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* 7 · Responsive ------------------------------------------------------------------ */

@media (max-width: 960px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .features {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .compare,
  .templates {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .quick-check__form {
    grid-template-columns: minmax(0, 1fr);
  }

  .quick-check__form .btn {
    width: 100%;
  }

  .prices {
    grid-template-columns: minmax(0, 1fr);
  }

  .prices__item,
  .prices__item + .prices__item {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    padding: 0.85rem 0;
    border-left: 0;
  }

  .prices__item + .prices__item {
    border-top: 1px solid var(--hairline);
  }

  .prices__name {
    grid-column: 1;
  }

  .prices__value {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
}
