/* /webdesign: Handy-Faecher im Hero, Vergleich Vorlage gegen Laden, Nutzen,
   Schaufenster mit Buehne und Karten, Ablauf, Anfrage. Preise stehen auf /preise. Uebernommen von der
   Online-Fassung (27.09.2026) und auf styles.css umgestellt: dieselben Tokens
   (--accent-2 statt Koralle, --card statt Papier-hell), Knoepfe und Textlinks wie
   auf allen anderen Seiten, Etiketten auf dem Handy ohne Versalien.
   Alle Regeln bleiben auf wd-* beschraenkt. */

/* ---------- Hero mit Handy-Faecher ---------- */
.uc-hero.wd-hero { position: relative; max-width: none; min-height: 520px; padding: 56px 0 40px; }
.uc-hero.wd-hero > :not(.wd-fan) { max-width: 58%; }
.uc-hero.wd-hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1.05; letter-spacing: -0.035em; margin: 14px 0 20px; }
.uc-hero.wd-hero > p { font-size: 1.04rem; line-height: 1.65; }
.uc-hero.wd-hero > .wd-fan {
  position: absolute; inset-inline-end: 0; inset-block-start: 50%; z-index: 0;
  display: grid; grid-template-columns: repeat(3, 128px); gap: 0;
  width: auto; max-width: none; margin: 0; transform: translateY(-50%); pointer-events: none;
}
.wd-fan .wd-phone {
  width: 128px;
  transform: rotate(var(--wd-rot, 0deg)) translateY(var(--wd-lift, 0));
  box-shadow: 0 30px 50px -34px rgba(20, 35, 58, 0.8);
}
.wd-fan .wd-phone:nth-child(1) { --wd-rot: -7deg; --wd-lift: 26px; }
.wd-fan .wd-phone:nth-child(2) { --wd-rot: 0deg; --wd-lift: -6px; z-index: 1; margin-inline: -18px; }
.wd-fan .wd-phone:nth-child(3) { --wd-rot: 7deg; --wd-lift: 26px; }
/* Rechts-nach-links (Arabisch): der Faecher wird gespiegelt, sonst kippen die aeusseren Handys
   zum Rand hin und ragen um zwei Pixel aus dem Bildschirm. */
[dir="rtl"] .wd-fan .wd-phone:nth-child(1) { --wd-rot: 7deg; }
[dir="rtl"] .wd-fan .wd-phone:nth-child(3) { --wd-rot: -7deg; }
/* Arabische Schrift kennt keine Kursive, der Browser wuerde sie nur schraeg stellen. */
[dir="rtl"] .wd-card__titel { font-style: normal; }

@media (max-width: 1100px) {
  .uc-hero.wd-hero > :not(.wd-fan) { max-width: 55%; }
  .uc-hero.wd-hero > .wd-fan { grid-template-columns: repeat(3, 100px); }
  .wd-fan .wd-phone { width: 100%; }
}
@media (max-width: 800px) {
  .uc-hero.wd-hero { min-height: 0; padding: 40px 0 10px; }
  .uc-hero.wd-hero > :not(.wd-fan) { max-width: 100%; }
  .uc-hero.wd-hero h1 { font-size: clamp(2.1rem, 8vw, 2.9rem); }
  .uc-hero.wd-hero > .wd-fan {
    position: relative; inset: auto; grid-template-columns: repeat(3, minmax(0, 118px));
    width: min(100%, 375px); margin: 32px auto 8px; transform: none;
  }
}
@media (max-width: 540px) {
  .uc-hero.wd-hero > .wd-fan { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .wd-fan .wd-phone:nth-child(2) { margin-inline: 0; }
}

/* ---------- Handy-Rahmen ---------- */
.wd-phone {
  --wd-screen: 390 / 844;
  --wd-scroll: -67.5%;
  position: relative; display: block; width: 100%;
  padding: 7px 4px 6px; border: 1px solid #888984; border-radius: 12% / 5.8%;
  background: #282927; color: inherit; font: inherit; text-align: start;
  box-shadow: inset 0 0 0 1px rgba(232, 230, 223, 0.38), 0 2px 3px rgba(20, 35, 58, 0.12), 0 24px 36px -20px rgba(20, 35, 58, 0.33);
  cursor: pointer; transition: transform 260ms ease;
}
.wd-phone__screen {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: var(--wd-screen); border-radius: 10% / 4.8%; background: var(--paper-2);
}
.wd-phone__screen img {
  position: absolute; inset-block-start: 0; inset-inline-start: 0; display: block;
  width: 100%; height: auto; transition: transform 7s linear; will-change: transform;
}
.wd-phone:hover .wd-phone__screen img,
.wd-phone:focus-visible .wd-phone__screen img,
.wd-card.is-scrolling .wd-phone__screen img { transform: translateY(var(--wd-scroll)); }
.wd-phone:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) {
  .wd-phone__screen img { transition: none; }
  .wd-phone:hover .wd-phone__screen img, .wd-phone:focus-visible .wd-phone__screen img { transform: none; }
  .wd-card.is-scrolling .wd-phone__screen img { transform: translateY(var(--wd-scroll)); }
  .wd-phone:hover { transform: none; }
}

/* Zwei Absaetze hintereinander brauchen Luft */
.uc-sec > p + p { margin-top: 14px; }

/* ---------- Vergleich: Vorlage gegen Laden ---------- */
.wd-vergleich {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px);
  align-items: end; margin-top: 40px; max-width: 880px;
}
.wd-vergleich figure { margin: 0; }
.wd-vergleich figcaption { margin-top: 16px; font-family: var(--body); font-size: 0.95rem; line-height: 1.5; color: var(--ink-2); }
.wd-vergleich figcaption strong { display: block; margin-bottom: 4px; color: var(--ink); font-family: var(--display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.wd-vergleich .wd-phone { width: min(100%, 250px); margin-inline: auto; cursor: default; }
.wd-vorlage { width: min(100%, 300px); margin-inline: auto; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 26px 46px -32px rgba(20, 35, 58, 0.4); }
.wd-vorlage > * + * { margin-top: 12px; }
.wd-vorlage__bar { display: flex; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid #ececec; }
.wd-vorlage__bar i { width: 8px; height: 8px; border-radius: 50%; background: #dcdcdc; }
.wd-vorlage__bar i:last-child { margin-inline-start: auto; width: 46px; border-radius: 4px; }
.wd-vorlage__hero { display: grid; gap: 7px; padding: 14px 12px 12px; border-radius: 6px; background: linear-gradient(120deg, #eef0f4, #e2e6ee); }
.wd-vorlage__hero b { display: block; width: 30%; height: 6px; border-radius: 3px; background: #c9ced8; }
.wd-vorlage__hero span { display: block; width: 78%; height: 10px; border-radius: 3px; background: #b8bfcc; }
.wd-vorlage__hero span.short { width: 52%; }
.wd-vorlage__hero em { display: block; width: 34%; height: 16px; margin-top: 4px; border-radius: 99px; background: #7a8598; }
.wd-vorlage__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.wd-vorlage__cards div { display: grid; gap: 5px; padding: 8px 6px; border: 1px solid #ececec; border-radius: 6px; }
.wd-vorlage__cards i { width: 14px; height: 14px; border-radius: 50%; background: #d7dbe3; }
.wd-vorlage__cards span { display: block; height: 5px; border-radius: 3px; background: #e3e6eb; }
.wd-vorlage__cards span:last-child { width: 70%; }
.wd-vorlage__quote { display: grid; gap: 5px; padding: 10px; border-radius: 6px; background: #f4f5f7; }
/* Fuenf Sterne als Punkte gezeichnet, keine Textzeichen */
.wd-vorlage__quote .stars { display: flex; gap: 3px; }
.wd-vorlage__quote .stars i { width: 7px; height: 7px; border-radius: 50%; background: #e0b23a; }
.wd-vorlage__quote span:not(.stars) { display: block; height: 5px; border-radius: 3px; background: #dfe2e8; }
.wd-vorlage__quote span:last-child { width: 60%; }
.wd-vorlage__foot { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding-top: 10px; border-top: 1px solid #ececec; }
.wd-vorlage__foot span { display: block; height: 5px; border-radius: 3px; background: #e6e8ec; }
/* Die Vorlage steht seit dem 29.09.2026 im selben Handy-Rahmen wie "Ihr Laden", damit
   beide Bilder gleich gross sind; die Drahtgitter-Teile ordnen sich dafuer untereinander. */
.wd-phone--vorlage .wd-phone__screen { background: #fff; }
.wd-phone--vorlage .wd-vorlage {
  position: absolute; inset: 0; width: auto; margin: 0; padding: 14px 10px 12px;
  border: 0; border-radius: 0; box-shadow: none; background: #fff;
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
}
.wd-phone--vorlage .wd-vorlage > * + * { margin-top: 0; }
.wd-phone--vorlage .wd-vorlage__hero { flex: 0 0 32%; align-content: end; }
.wd-phone--vorlage .wd-vorlage__cards { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.wd-phone--vorlage .wd-vorlage__cards div { grid-template-columns: 16px minmax(0, 1fr); align-items: center; column-gap: 8px; row-gap: 6px; padding: 12px 8px; }
.wd-phone--vorlage .wd-vorlage__cards i { grid-row: span 2; }
@media (max-width: 640px) {
  .wd-vergleich { grid-template-columns: minmax(0, 1fr); }
  .wd-vergleich .wd-phone { width: min(100%, 220px); }
}

/* ---------- Nutzen als Liste ---------- */
.wd-nutzen { display: grid; gap: 0; max-width: 860px; margin: 8px 0 0; padding: 0; counter-reset: nutzen; }
.wd-nutzen > div { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 18px; padding: 22px 0; border-top: 1px solid var(--line); counter-increment: nutzen; }
.wd-nutzen > div:last-child { border-bottom: 1px solid var(--line); }
.wd-nutzen > div::before {
  content: counter(nutzen, decimal-leading-zero); grid-row: 1 / span 2; color: var(--accent-2);
  font-family: var(--display); font-size: 1.7rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1;
}
.wd-nutzen dt { margin: 0; font-family: var(--display); font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); }
.wd-nutzen dd { margin: 0; font-family: var(--body); font-size: 1rem; line-height: 1.62; color: var(--ink-2); }

/* ---------- Schaufenster: Buehne und Karten ---------- */
.wd-stage { --wd-scroll: -62.5%; display: none; margin: 36px 0 0; }
@media (min-width: 900px) { .wd-stage { display: block; } }
.wd-stage__frame { overflow: hidden; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; box-shadow: 12px 12px 0 var(--paper-2); }
.wd-stage__chrome { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--card); }
.wd-stage__chrome i:not(.wd-stage__url) { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.wd-stage__url { flex: 1; margin-inline-start: 10px; padding: 5px 12px; border-radius: 6px; background: var(--paper-2); font-family: var(--body); font-size: 0.78rem; font-style: normal; color: var(--ink-2); }
.wd-stage__screen { position: relative; overflow: hidden; aspect-ratio: 1440 / 900; background: var(--paper-2); }
.wd-stage__screen img { position: absolute; inset-block-start: 0; inset-inline-start: 0; display: block; width: 100%; height: auto; transition: transform 9s linear; will-change: transform; }
.wd-stage__screen:hover img { transform: translateY(var(--wd-scroll)); }
.wd-stage figcaption { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin-top: 14px; font-family: var(--body); font-size: 0.95rem; color: var(--ink-2); }
.wd-stage figcaption strong { font-family: var(--display); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .wd-stage__screen img { transition: none; }
  .wd-stage__screen:hover img { transform: none; }
}
.wd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: clamp(28px, 4vw, 44px) clamp(18px, 2.6vw, 30px); margin-top: 40px; }
@media (max-width: 600px) { .wd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 14px; } }
/* Handy: eine Karte je Zeile, Handy-Rahmen links, Text rechts; so bleiben Titel und
   Domain lesbar, statt in zwei 165px schmalen Spalten zu brechen. */
@media (max-width: 480px) {
  .wd-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 28px; }
  .wd-card { grid-template-columns: 132px minmax(0, 1fr); gap: 0 14px; align-items: start; }
  .wd-card__text { gap: 5px; }
  .wd-card__titel { font-size: 1.12rem; }
}
.wd-card { display: grid; gap: 14px; align-content: start; }
.wd-card[hidden], .wd-more[hidden] { display: none !important; }
.wd-card__text { display: grid; gap: 6px; }
.wd-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-family: var(--body); font-size: 0.8rem; font-weight: 650; letter-spacing: 0; color: var(--ink-3); }
.wd-stamp { display: inline-block; padding: 3px 7px 2px; border: 1.5px solid currentColor; border-radius: 3px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.04em; line-height: 1.2; transform: rotate(-3deg); }
.wd-stamp--entwurf { color: var(--accent-2); }
.wd-stamp--live { color: var(--sea); }
.wd-card__titel { margin: 0; font-family: var(--display); font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 600; font-style: italic; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }
.wd-card__idee { margin: 0; font-family: var(--body); font-size: 0.92rem; line-height: 1.55; color: var(--ink-2); }
.wd-card__link { margin: 0; font-family: var(--body); font-size: 0.9rem; }
/* Domainnamen in den schmalen Karten: als Fliesstext umbrechen, das Symbol haengt am Wort */
.wd-card__link .textlink { display: inline; overflow-wrap: anywhere; }
.wd-more { margin-top: 32px; }

.wd-preislink { margin: 26px 0 0; }

/* ---------- Anfrage ----------
   Das Formular steckt in derselben Karte wie auf der Startseite (.kontakt in styles.css),
   eigene Regeln gibt es hier nicht mehr (29.09.2026). */

/* ---------- Handy (Etiketten ohne Versalien gelten seit dem 28.09.2026 ueberall) ---------- */
@media (max-width: 720px) {
  .wd-nutzen > div { grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; padding: 18px 0; }
  .wd-nutzen > div::before { font-size: 1.3rem; }
}
