/* ==========================================================================
   Websulting – SEO & Online-Marketing (seo-nuernberg/index.html)
   Eigene Bausteine nur für diese Seite, Präfix .seo-
   Seitenkopf (.page-intro), häufige Fragen und Kontakt kommen aus den
   gemeinsamen Stylesheets.
   ========================================================================== */

.seo-title { max-width: 22ch; }

/* ---------- Seitenkopf: Schaubild rechts (Smartphone mit lokaler Suche) ---------- */
.seo-hero { align-items: center; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.seo-hero__visual { position: relative; display: grid; place-items: center; min-height: 36rem; }
/* weicher Farbkreis hinter dem Telefon */
.seo-hero__visual::before {
  content: "";
  position: absolute;
  width: min(30rem, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--c-stage-peach), var(--c-stage-lilac) 55%, var(--c-stage-green) 100%);
  opacity: 0.9;
}
.seo-phone {
  position: relative;
  display: grid;
  gap: 0.7rem;
  align-content: start;
  width: 17.5rem;
  height: 33rem;
  padding: 2.25rem 0.85rem 1rem;
  border: 9px solid var(--c-ink);
  border-radius: 2.75rem;
  background: var(--c-white);
  box-shadow: var(--sh-3);
  overflow: hidden;
}
/* Kamera-Aussparung */
.seo-phone::before { content: ""; position: absolute; top: 0.6rem; left: 50%; width: 5rem; height: 1.1rem; border-radius: var(--r-pill); background: var(--c-ink); translate: -50% 0; }
.seo-phone__search { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.85rem; border: 1px solid var(--c-line-strong); border-radius: var(--r-pill); font-size: 0.8125rem; font-weight: 500; }
.seo-phone__search .icon { width: 0.9rem; height: 0.9rem; color: var(--c-ink-3); }
.seo-phone__map {
  position: relative;
  height: 9.5rem;
  border-radius: var(--r-md);
  background:
    linear-gradient(115deg, transparent 47%, rgba(255, 255, 255, 0.95) 47% 51%, transparent 51%),
    linear-gradient(20deg, transparent 60%, rgba(255, 255, 255, 0.95) 60% 63%, transparent 63%),
    linear-gradient(170deg, transparent 30%, rgba(255, 255, 255, 0.8) 30% 32%, transparent 32%),
    var(--c-green-tint);
}
.seo-pin { position: absolute; left: var(--x); top: var(--y); width: 10px; height: 10px; border: 2px solid var(--c-white); border-radius: 50%; background: var(--c-ink-3); translate: -50% -50%; }
.seo-pin--you { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border: 0; background: var(--c-orange-strong); box-shadow: 0 0 0 6px rgba(201, 65, 10, 0.2); color: var(--c-white); }
.seo-pin--you .icon { width: 1.1rem; height: 1.1rem; }
.seo-phone__biz { display: grid; gap: 0.2rem; padding: 0.85rem; border: 1px solid var(--c-line); border-radius: var(--r-md); box-shadow: var(--sh-1); }
.seo-phone__biz b { font-family: var(--font-display); font-size: 1rem; }
.seo-phone__stars { font-size: 0.8125rem; letter-spacing: 0.08em; color: #d98b00; }
.seo-phone__biz small { font-size: 0.75rem; color: var(--c-ink-3); }
.seo-phone__actions { display: flex; gap: 0.35rem; margin-top: 0.5rem; }
.seo-phone__actions span { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.35em 0.6em; border: 1px solid var(--c-line-strong); border-radius: var(--r-pill); font-size: 0.6875rem; font-weight: 600; }
.seo-phone__actions .icon { width: 0.75rem; height: 0.75rem; }
.seo-phone__actions .is-main { border-color: var(--c-orange-strong); background: var(--c-orange-strong); color: var(--c-white); }
.seo-phone__other { display: grid; gap: 0.35rem; padding: 0.6rem 0.85rem; }
.seo-phone__other i { display: block; height: 7px; border-radius: 4px; background: var(--c-paper-2); }
.seo-phone__other i:last-child { width: 60%; }
.seo-phone__other + .seo-phone__other { border-top: 1px solid var(--c-line); }

/* schwebende Benachrichtigungen */
.seo-toast {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--r-md);
  background: var(--c-white);
  box-shadow: var(--sh-2);
  font-size: 0.8125rem;
  line-height: 1.35;
  animation: seo-float 5s var(--ease-in-out) infinite alternate;
}
.seo-toast > span:nth-child(2) { display: grid; color: var(--c-ink-2); }
.seo-toast b { color: var(--c-ink); }
.seo-toast__icon { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--c-orange-tint); color: var(--c-orange-hover); }
.seo-toast--form .seo-toast__icon { background: var(--c-purple-tint); color: var(--c-purple); }
.seo-toast__icon .icon { width: 1rem; height: 1rem; }
.seo-toast em { display: inline-flex; align-items: center; gap: 0.2rem; padding: 0.15em 0.5em; border-radius: var(--r-pill); background: var(--c-green-tint); font-size: 0.6875rem; font-style: normal; font-weight: 600; color: var(--c-green-deep); }
.seo-toast em .icon { width: 0.7rem; height: 0.7rem; }
.seo-toast--call { top: 18%; left: -1rem; }
.seo-toast--form { right: -0.5rem; bottom: 16%; animation-delay: -2.5s; }
@keyframes seo-float { from { translate: 0 -6px; } to { translate: 0 6px; } }
@media (prefers-reduced-motion: reduce) {
  .seo-toast { animation: none; }
}
@media (max-width: 1099px) {
  .seo-hero__visual { display: none; }
}

/* ---------- Weg zur Anfrage: Band über die volle Breite ---------- */
.seo-path {
  padding-block: clamp(3rem, 2rem + 4vw, 6rem);
  background: linear-gradient(110deg, var(--c-stage-peach) 0%, var(--c-stage-lilac) 55%, var(--c-stage-green) 100%);
}
.seo-path__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
}
/* Verbindungslinie auf Höhe der Beschriftungen, darauf ein wandernder Punkt */
.seo-path__steps::before,
.seo-path__steps::after {
  content: "";
  position: absolute;
  top: 1.1rem;
  left: 0;
  pointer-events: none;
}
.seo-path__steps::before { right: 0; height: 2px; background: repeating-linear-gradient(90deg, rgba(30, 26, 34, 0.28) 0 8px, transparent 8px 14px); }
.seo-path__steps::after {
  top: calc(1.1rem - 5px);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-orange-strong);
  box-shadow: 0 0 0 5px rgba(201, 65, 10, 0.18);
  animation: seo-travel 6s var(--ease-in-out) infinite;
}
@keyframes seo-travel {
  0% { left: 0; opacity: 0; }
  8% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: calc(100% - 12px); opacity: 0; }
}
.seo-step { position: relative; display: flex; flex-direction: column; gap: 1rem; }
.seo-step__label {
  position: relative;
  align-self: flex-start;
  padding: 0.35em 0.95em;
  border-radius: var(--r-pill);
  background: var(--c-white);
  box-shadow: var(--sh-1);
  font-size: var(--fs-small);
  font-weight: 600;
}
.seo-step__card {
  display: grid;
  align-content: center;
  gap: 0.6rem;
  min-height: 10.5rem;
  padding: 1.25rem;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--sh-1);
}
.seo-step--goal .seo-step__card { box-shadow: 0 0 0 2px var(--c-green-deep), var(--sh-2); }
.seo-step--goal .seo-step__label { background: var(--c-ink); color: var(--c-white); }
.seo-step > p { font-size: var(--fs-small); line-height: 1.55; color: var(--c-ink-2); }

/* kleine Schaubilder in den Karten */
.seo-mock-search { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.9rem; border: 1.5px solid var(--c-line-strong); border-radius: var(--r-pill); background: var(--c-white); font-size: 0.875rem; font-weight: 500; }
.seo-mock-search .icon { width: 1rem; height: 1rem; color: var(--c-ink-3); }
.seo-mock-lines { display: grid; gap: 0.45rem; padding-inline: 0.4rem; }
.seo-mock-lines i, .seo-mock-result i, .seo-mock-page i { display: block; height: 7px; border-radius: 4px; background: var(--c-paper-2); }
.seo-mock-lines i:last-child { width: 70%; }
.seo-mock-result { display: flex; align-items: center; gap: 0.6rem; }
.seo-mock-result i { flex: 1; }
.seo-mock-result .icon { width: 1rem; height: 1rem; color: var(--c-purple); }
.seo-mock-result b { padding: 0.1em 0.5em; border: 1px solid var(--c-ink); border-radius: var(--r-xs); font-size: 0.6875rem; font-weight: 700; }
.seo-mock-result--ad i { background: var(--c-stage-peach); }
.seo-mock-page { display: grid; gap: 0.45rem; padding: 0.85rem; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-white); }
.seo-mock-page__h { width: 60%; height: 10px !important; background: var(--c-ink) !important; opacity: 0.8; }
.seo-mock-page i:nth-child(3) { width: 85%; }
.seo-mock-page span { justify-self: start; margin-top: 0.3rem; padding: 0.35em 0.9em; border-radius: var(--r-pill); background: var(--c-orange-strong); font-size: 0.75rem; font-weight: 600; color: var(--c-white); }
.seo-mock-conv { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.7rem; border-radius: var(--r-sm); background: var(--c-white); font-size: 0.875rem; font-weight: 600; }
.seo-mock-conv > .icon { width: 1rem; height: 1rem; color: var(--c-ink-2); }
.seo-mock-conv b { display: inline-flex; align-items: center; gap: 0.25rem; margin-left: auto; padding: 0.15em 0.55em; border-radius: var(--r-pill); background: var(--c-green-tint); font-size: 0.75rem; color: var(--c-green-deep); }
.seo-mock-conv b .icon { width: 0.8rem; height: 0.8rem; }

/* ---------- Aussage ---------- */
.seo-statement { padding-block: var(--section-y) calc(var(--section-y) * 0.6); }
.seo-statement h2 { max-width: 34ch; text-wrap: balance; font-size: clamp(2rem, 1.1rem + 3.4vw, 4.5rem); line-height: 1.06; letter-spacing: -0.02em; }
.seo-statement p { max-width: 46rem; margin: clamp(1.5rem, 3vw, 2.5rem) 0 0; font-size: var(--fs-lead); line-height: 1.6; color: var(--c-ink-2); }

/* ---------- Leistungen: Gruppenname links, nummerierte Leistungen rechts ---------- */
.seo-services { padding-bottom: var(--section-y); }
.seo-group {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 1.5rem clamp(2rem, 4vw, 5rem);
  padding-block: clamp(2.5rem, 4vw, 4rem);
  border-top: 1px solid var(--c-line-strong);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.seo-group__head { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; }
.seo-group__head h3 { font-size: var(--fs-h4); }
.seo-group__head p { margin-top: 0.35rem; font-size: var(--fs-small); color: var(--c-ink-3); }
.seo-group__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 3vw, 3.5rem); }
.seo-group__list li { padding-left: clamp(1rem, 1.6vw, 1.75rem); border-left: 1px solid var(--c-line-strong); }
.seo-num { display: block; font-size: var(--fs-meta); font-weight: 600; color: var(--c-ink-3); }
.seo-group__list h4 { margin-top: 0.4rem; font-size: clamp(1.1875rem, 1.05rem + 0.45vw, 1.4375rem); line-height: 1.25; }
.seo-group__list p { margin-top: 0.6rem; max-width: 38ch; font-size: var(--fs-small); line-height: 1.6; color: var(--c-ink-2); }
.seo-group__list a { color: var(--c-ink); font-weight: 600; }

/* ---------- Typischer Fall ---------- */
.seo-case { padding-block: var(--section-y); background: var(--c-white-veil); }
.seo-case h2 { max-width: 26ch; font-size: var(--fs-h2); }
.seo-case__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem clamp(2rem, 5vw, 6rem); margin-top: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.seo-mail {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-white);
  box-shadow: var(--sh-2);
}
.seo-mail__bar { display: flex; gap: 6px; padding: 0.85rem 1.1rem; background: var(--c-browser-bar); }
.seo-mail__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--c-browser-dot); }
.seo-mail__head { margin: 0; padding: 0.4rem 1.5rem; border-bottom: 1px solid var(--c-line); }
.seo-mail__head div { display: flex; gap: 1rem; padding: 0.5rem 0; font-size: var(--fs-small); }
.seo-mail__head div + div { border-top: 1px solid var(--c-line); }
.seo-mail__head dt { width: 4.5rem; color: var(--c-ink-3); }
.seo-mail__head dd { margin: 0; font-weight: 600; }
.seo-mail blockquote { margin: 0; padding: 1.75rem 1.5rem 0.5rem; }
.seo-mail blockquote p { font-family: var(--font-display); font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); font-weight: 600; line-height: 1.3; }
.seo-mail figcaption { padding: 0.5rem 1.5rem 1.5rem; font-size: var(--fs-small); color: var(--c-ink-3); }

.seo-case__steps { counter-reset: fall; }
.seo-case__steps li {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  column-gap: 1.25rem;
  padding-bottom: 2rem;
}
.seo-case__steps li::before {
  counter-increment: fall;
  content: counter(fall);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--c-white);
  box-shadow: inset 0 0 0 1.5px var(--c-line-strong);
  font-family: var(--font-display);
  font-weight: 700;
}
/* senkrechte Linie zwischen den Schritten */
.seo-case__steps li::after { content: ""; position: absolute; top: 3.25rem; bottom: 0.25rem; left: calc(1.5rem - 1px); width: 2px; background: var(--c-line); }
.seo-case__steps h3 { margin-top: 0.55rem; font-size: var(--fs-h4); line-height: 1.3; }
.seo-case__steps p { margin-top: 0.4rem; color: var(--c-ink-2); }
.seo-case__result { padding: clamp(1.5rem, 2.5vw, 2.25rem); border-radius: var(--r-lg); background: var(--c-stage-green); }
.seo-case__result-title { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 650; }
.seo-case__result p + p { margin-top: 0.5rem; color: var(--c-ink); }

/* ---------- Vergleich ---------- */
.seo-compare { padding-block: var(--section-y) calc(var(--section-y) * 0.5); }
.seo-compare__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 3rem; margin-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.seo-compare__head h2 { font-size: var(--fs-h2); }
.seo-compare__head p { max-width: 30rem; font-size: var(--fs-lead); color: var(--c-ink-2); }
.seo-table-wrap { overflow: hidden; border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-white); }
.seo-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.seo-table th, .seo-table td { padding: clamp(0.9rem, 1.5vw, 1.35rem) clamp(1rem, 2vw, 2rem); text-align: left; vertical-align: top; }
.seo-table thead th { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 650; }
.seo-table thead th:nth-child(1) { width: 22%; }
.seo-table thead th:nth-child(2) { background: var(--c-stage-peach); }
.seo-table thead th:nth-child(3) { background: var(--c-stage-lilac); }
.seo-table tbody tr + tr { border-top: 1px solid var(--c-line); }
.seo-table tbody th { font-size: var(--fs-small); font-weight: 600; color: var(--c-ink-3); }
.seo-table tbody td { line-height: 1.5; }
.seo-compare__tip { max-width: 52rem; margin-top: 1.5rem; font-size: var(--fs-lead); line-height: 1.55; color: var(--c-ink-2); }
.seo-compare__tip strong { color: var(--c-ink); }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  .seo-path__steps::after { display: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1099px) {
  .seo-path__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .seo-path__steps::before, .seo-path__steps::after { display: none; }
  .seo-group { grid-template-columns: minmax(0, 1fr); }
  .seo-group__head { position: static; }
  .seo-case__grid { grid-template-columns: minmax(0, 1fr); }
  .seo-mail { position: static; max-width: 34rem; }
}

/* ---------- Smartphone ---------- */
@media (max-width: 639px) {
  .seo-path__steps { grid-template-columns: minmax(0, 1fr); }
  .seo-step__card { min-height: 0; }
  .seo-group__list { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .seo-table thead th:nth-child(1) { width: 28%; }
  .seo-table th, .seo-table td { padding: 0.8rem 0.65rem; font-size: 0.875rem; }
  .seo-table thead th { font-size: 1rem; }
}
