/* ==========================================================================
   VertexPK – Geräte-Mockups (Browser + Handy) und Beispiel-Entwürfe
   Reines HTML/CSS: gestochen scharf, wenige KB, keine Fotos. Alle Größen innen
   in Container-Einheiten (cqw), damit jedes Mockup in jeder Breite gleich aussieht.
   Wird nur auf Seiten mit Mockups geladen (Start, Leistungen).
   ========================================================================== */

/* ---- Bühne: Browser links oben, Handy überlappt unten rechts ---------------- */
.devices,
.example__stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1.34;
    container-type: inline-size;
}
.device { position: absolute; }
.device--browser {
    left: 0;
    top: 0;
    width: 86%;
    overflow: hidden;
    border-radius: 1cqw;
    background: var(--paper);
    box-shadow: 0 0 0 1px var(--line), 0 3cqw 6cqw -3.6cqw rgba(20, 20, 20, 0.42);
}
.on-ink .device--browser { box-shadow: 0 0 0 1px rgba(245, 243, 239, 0.08), 0 3cqw 7cqw -3cqw rgba(0, 0, 0, 0.7); }
.device__bar {
    display: flex;
    align-items: center;
    gap: 1.4cqw;
    height: 3.6cqw;
    padding: 0 1.6cqw;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
}
.device__dots { display: flex; gap: 0.6cqw; }
.device__dots i { display: block; width: 0.9cqw; height: 0.9cqw; border-radius: 50%; background: rgba(20, 20, 20, 0.18); }
.device__url { display: block; width: 30%; height: 1.5cqw; margin-inline: auto; border-radius: 1cqw; background: rgba(20, 20, 20, 0.07); }
.device--browser .device__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; container-type: inline-size; }

.device--phone {
    right: 0;
    bottom: 0;
    width: 23%;
    padding: 0.85cqw;
    border-radius: 3.6cqw;
    background: var(--ink);
    box-shadow: 0 0 0 1px rgba(245, 243, 239, 0.1), 0 3cqw 6cqw -2.4cqw rgba(20, 20, 20, 0.55);
}
.device--phone::before {
    content: "";
    position: absolute;
    top: 1.7cqw;
    left: 50%;
    z-index: 3;
    width: 5.4cqw;
    height: 1.3cqw;
    margin-left: -2.7cqw;
    border-radius: 1cqw;
    background: var(--ink);
}
.device--phone .device__screen { position: relative; aspect-ratio: 9 / 19; overflow: hidden; border-radius: 2.8cqw; background: var(--paper); container-type: inline-size; }
/* Bildschirm-Inhalte außerhalb des Sichtbereichs nicht rendern (Größe steht über aspect-ratio fest,
   abgeschnitten wird ohnehin) – spart beim Laden viel Layout-Arbeit. */
.device__screen { content-visibility: auto; }

/* ---- Szenen der Leistungen ---------------------------------------------------- */
.scene { position: absolute; inset: 0; }

/* Aufgeräumte, moderne Website (aus Flächen gebaut) */
.ws {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: 11% 54% 1fr;
    column-gap: 2cqw;
    padding: 0 5cqw 4.4cqw;
    background: var(--paper);
}
.ws i, .ws span { display: block; }
.ws__nav { grid-column: 1 / -1; display: flex; align-items: center; gap: 2.6cqw; border-bottom: 1px solid var(--line); }
.ws__logo { width: 2.8cqw; height: 2.8cqw; margin-right: auto; border-radius: 50%; background: var(--orange); }
.ws__link { width: 6cqw; height: 0.9cqw; border-radius: 1cqw; background: rgba(20, 20, 20, 0.22); }
.ws__cta { width: 10.5cqw; height: 3.4cqw; margin-left: 1cqw; border-radius: 3cqw; background: var(--ink); }
.ws__hero { grid-column: 1 / span 6; align-self: center; display: grid; gap: 1.6cqw; justify-items: start; }
.ws__h { height: 4.6cqw; border-radius: 0.5cqw; background: var(--ink); transform-origin: left center; }
.ws__h--1 { width: 100%; }
.ws__h--2 { width: 66%; }
.ws__p { height: 1.15cqw; margin-top: 0.4cqw; border-radius: 1cqw; background: rgba(20, 20, 20, 0.2); transform-origin: left center; }
.ws__p--1 { width: 86%; margin-top: 1.4cqw; }
.ws__p--2 { width: 62%; }
.ws__btn { width: 16cqw; height: 4.4cqw; margin-top: 1.8cqw; border-radius: 3cqw; background: var(--orange); }
.ws__img { position: relative; grid-column: 7 / -1; align-self: stretch; margin: 4cqw 0 3cqw; overflow: hidden; border-radius: 0.6cqw; }
.ws__img-in { position: absolute; inset: 0; background: var(--paper-3); }
.ws__sun { position: absolute; top: 18%; right: 20%; width: 7cqw; height: 7cqw; border-radius: 50%; background: var(--orange); }
.ws__img svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46%; }
.ws__img path { fill: var(--ink); opacity: 0.88; }
.ws__cards { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2cqw; }
.ws__cards i { border-radius: 0.6cqw; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); }

/* Varianten: neue Gestaltung nach der Überarbeitung, Live-Seite beim Hosting */
.ws--fresh .ws__img-in { background: var(--ink); }
.ws--fresh .ws__img path { fill: var(--orange); opacity: 1; }
.ws--fresh .ws__sun { background: var(--paper); }
.ws--fresh .ws__h { background: var(--ink); }
.ws--fresh .ws__btn { background: var(--ink); }
.ws--fresh .ws__cards i:first-child { background: var(--orange); box-shadow: none; }

/* Handy-Version: eine Spalte */
.ws--mobile { grid-template-columns: minmax(0, 1fr); grid-template-rows: 10% auto 32% 1fr; row-gap: 5cqw; padding: 0 7cqw 7cqw; }
.ws--mobile .ws__nav { gap: 3cqw; padding-top: 5cqw; }
.ws--mobile .ws__logo { width: 7cqw; height: 7cqw; }
.ws--mobile .ws__link { display: none; }
.ws--mobile .ws__cta { width: 8cqw; height: 2cqw; margin: 0; border-radius: 1cqw; box-shadow: 0 3.4cqw 0 var(--ink); transform: translateY(-1.7cqw); }
.ws--mobile .ws__hero { grid-column: 1; gap: 3cqw; }
.ws--mobile .ws__h { height: 9cqw; border-radius: 1cqw; }
.ws--mobile .ws__p { height: 2.6cqw; }
.ws--mobile .ws__btn { width: 42cqw; height: 10cqw; margin-top: 3cqw; border-radius: 6cqw; }
.ws--mobile .ws__img { grid-column: 1; margin: 0; border-radius: 1.6cqw; }
.ws--mobile .ws__sun { width: 15cqw; height: 15cqw; }
.ws--mobile .ws__cards { grid-template-columns: 1fr 1fr; gap: 4cqw; }
.ws--mobile .ws__cards i:last-child { display: none; }

/* Hilfslinien beim Aufbau einer neuen Website */
.guides { position: absolute; inset: 0 5cqw; z-index: 2; display: flex; justify-content: space-between; pointer-events: none; opacity: 0; }
.guides i { display: block; width: 0; height: 100%; border-left: 1px dashed rgba(242, 101, 15, 0.55); transform-origin: 50% 0; }

/* Veraltete Website: graue Kästen, Seitenleiste, blaue Links, Laufschrift-Balken */
.old {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: 23% 1fr;
    grid-template-rows: 15% 5% 1fr;
    background: #d4d0c8;
    font-family: "Times New Roman", Times, serif;
}
.old i { display: block; }
.old__head { grid-column: 1 / -1; display: grid; place-items: center; background: #34508a; border-bottom: 0.5cqw solid #1d2f57; }
.old__logo { width: 34cqw; height: 4.4cqw; background: #e8c547; box-shadow: inset 0.4cqw 0.4cqw 0 #fff3b0, inset -0.4cqw -0.4cqw 0 #8f7414; }
.old__marquee { grid-column: 1 / -1; position: relative; overflow: hidden; background: #fff59d; }
.old__marquee i { position: absolute; top: 25%; left: 30%; width: 34%; height: 50%; background: #c62828; }
.old__side { display: grid; align-content: start; gap: 2.2cqw; padding: 3cqw 2.2cqw; background: #bdb9b1; box-shadow: inset -0.4cqw 0 0 #e9e6df; }
.old__side i { width: 82%; height: 1.5cqw; background: #1f3fbf; }
.old__side i:nth-child(2n) { width: 64%; background: #6a1b9a; }
.old__main { position: relative; }
.old__title { position: absolute; top: 7%; left: 4%; width: 52%; height: 4cqw; background: #8e1c1c; }
.old__box { position: absolute; }
.old__box--a { top: 26%; left: 4%; width: 33%; height: 34%; background: #fff; box-shadow: inset 0.4cqw 0.4cqw 0 #8c8c8c, inset -0.4cqw -0.4cqw 0 #f5f5f5; }
.old__box--b { top: 22%; left: 45%; width: 30%; height: 40%; background: #8eaacc; transform: rotate(-2.2deg); }
.old__txt { position: absolute; left: 4%; width: 70%; height: 1.3cqw; background: #4a4a4a; }
.old__txt:nth-of-type(4) { top: 68%; }
.old__txt:nth-of-type(5) { top: 74%; width: 64%; }
.old__txt--s { top: 80%; width: 40%; }
.old__counter { position: absolute; right: 6%; bottom: 7%; width: 13cqw; height: 4cqw; background: #000; box-shadow: inset 0 0 0 0.4cqw #00c853; }

/* Relaunch als Standbild: links „vorher“, rechts „nachher“, getrennt durch eine orange Linie.
   Auf dem Handy-Mockup steht nur das Ergebnis. */
.scene--relaunch > .old { clip-path: inset(0 50% 0 0); }
.device--browser .scene--relaunch::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; z-index: 3; width: 2px; margin-left: -1px; background: var(--orange); }
.scene--relaunch > .old-mobile { display: none; }

/* Handy vorher: die Desktop-Seite einfach verkleinert (nicht mobil optimiert) */
.old-mobile { position: absolute; inset: 0; z-index: 2; background: #d4d0c8; }
.old-mobile__page { position: absolute; left: 0; top: 0; width: 400%; aspect-ratio: 16 / 10; container-type: inline-size; transform: scale(0.25); transform-origin: 0 0; }

/* Hosting: Server-Einschübe, Datenpakete laufen zum Browser */
.rack {
    position: absolute;
    right: 0;
    top: 12%;
    z-index: 3;
    display: grid;
    gap: 1.1cqw;
    width: 29%;
}
.rack__unit { position: relative; height: 7.2cqw; border-radius: 0.8cqw; background: var(--ink); box-shadow: 0 0 0 1px rgba(245, 243, 239, 0.08), 0 2cqw 4cqw -2cqw rgba(20, 20, 20, 0.6); }
.rack__unit i { position: absolute; display: block; }
.rack__led { top: 50%; left: 1.7cqw; width: 1cqw; height: 1cqw; margin-top: -0.5cqw; border-radius: 50%; background: #3ddc84; animation: led 2.6s steps(1, end) infinite; }
.rack__unit:nth-child(2) .rack__led { animation-delay: 0.9s; }
.rack__unit:nth-child(3) .rack__led { animation-delay: 1.7s; background: var(--orange); }
.rack__slot { top: 50%; left: 4.2cqw; width: 8.5cqw; height: 0.9cqw; margin-top: -0.45cqw; border-radius: 1cqw; background: rgba(245, 243, 239, 0.18); }
.rack__vents { top: 30%; bottom: 30%; right: 1.7cqw; width: 6.6cqw; background: repeating-linear-gradient(90deg, rgba(245, 243, 239, 0.22) 0 0.35cqw, transparent 0.35cqw 0.95cqw); }
.rack__link {
    position: absolute;
    top: 58%;
    right: 100%;
    width: 18cqw;
    height: 1px;
    background-image: linear-gradient(90deg, var(--line-strong) 50%, transparent 0);
    background-size: 1cqw 1px;
}
.rack__packet { position: absolute; top: -0.45cqw; right: 0; width: 1cqw; height: 1cqw; border-radius: 0.2cqw; background: var(--orange); animation: packet 2.4s linear infinite; }
.rack__packet:nth-child(2) { animation-delay: 0.8s; }
.rack__packet:nth-child(3) { animation-delay: 1.6s; }
@keyframes led { 0%, 100% { opacity: 1; } 8% { opacity: 0.25; } 14% { opacity: 1; } }
@keyframes packet {
    0% { opacity: 0; transform: translate3d(0, 0, 0); }
    12% { opacity: 1; }
    88% { opacity: 1; }
    100% { opacity: 0; transform: translate3d(-17cqw, 0, 0); }
}

/* Einzelszene Hosting: Browser kleiner links, Server rechts, kein Handy */
.devices--hosting .device--browser { top: 14%; width: 62%; }
.devices--hosting .device--phone { display: none; }
.devices--hosting .rack { top: 18%; width: 30%; }
/* Gepinnte Bühne: die Server kommen erst in Szene 3 */
.devices--stage .rack { opacity: 0; }
.devices--stage .scene:not(:first-child) { opacity: 0; }

/* ---- Beispiel-Entwürfe ---------------------------------------------------------- */
.example { display: grid; gap: 22px; margin: 0; }
.example__cap { display: flex; align-items: baseline; gap: 16px; padding-top: 14px; border-top: 1px solid var(--line-ink); font-size: var(--fs-14); color: var(--on-ink-2); }
.example__num { color: var(--orange); font-weight: 600; font-variant-numeric: tabular-nums; }
.example__tag { font-weight: 600; color: var(--on-ink); }

/* Text der erfundenen Seiten kommt aus data-t (siehe example.php) */
.ex [data-t]::before { content: attr(data-t); white-space: pre-line; }
.ex {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 0 5cqw 4cqw;
    font-family: var(--font-text);
    font-size: 1.5cqw;
    line-height: 1.3;
    overflow: hidden;
}
.ex b, .ex i { font-style: normal; }
.ex i:empty:not([data-t]) { display: block; }
.ex__nav { display: flex; align-items: center; gap: 2.8cqw; flex: none; height: 11%; border-bottom: 1px solid currentColor; border-bottom-color: color-mix(in srgb, currentColor 16%, transparent); }
.ex__logo { margin-right: auto; font-size: 2.2cqw; font-weight: 700; letter-spacing: -0.02em; }
.ex__links { display: flex; gap: 2.6cqw; opacity: 0.72; }
.ex__btn { display: inline-flex; align-items: center; justify-content: center; height: 3.6cqw; padding: 0 2cqw; border-radius: 3cqw; font-size: 1.3cqw; font-weight: 600; white-space: nowrap; }
.ex__btn--lg { height: 4.6cqw; padding: 0 2.8cqw; font-size: 1.5cqw; }
.ex__hero { flex: 1; display: grid; grid-template-columns: 1.08fr 1fr; gap: 4cqw; align-items: center; min-height: 0; }
.ex__copy { display: grid; gap: 1.5cqw; justify-items: start; }
.ex__kicker { font-size: 1.25cqw; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.ex__h1 { display: block; font-size: 5.6cqw; line-height: 1.15; letter-spacing: -0.02em; }
.ex__bar { width: 82%; height: 1cqw; border-radius: 1cqw; background: currentColor; opacity: 0.16; }
.ex__bar--s { width: 58%; }
.ex__row, .ex__hours, .ex__menu, .ex__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3cqw; flex: none; padding-top: 2.2cqw; }
.ex__burger { width: 6cqw; height: 0.9cqw; border-radius: 1cqw; background: currentColor; box-shadow: 0 2.2cqw 0 currentColor; transform: translateY(-1.1cqw); }

/* Tischlerei: warmes Holz, Serifenschrift */
.ex--tischlerei { background: #ede4d6; color: #33241a; }
.ex--tischlerei .ex__logo, .ex--tischlerei .ex__h1, .ex--tischlerei .ex__row b { font-family: Georgia, "Times New Roman", serif; }
.ex--tischlerei .ex__h1 { font-weight: 400; }
.ex--tischlerei .ex__kicker { color: #a0531a; }
.ex--tischlerei .ex__btn { background: #33241a; color: #f4ece0; }
.ex--tischlerei .ex__btn--lg { background: #a0531a; }
.ex__wood {
    position: relative;
    align-self: stretch;
    margin: 4cqw 0;
    border-radius: 0.4cqw;
    background:
        radial-gradient(ellipse 9% 5% at 30% 40%, rgba(80, 45, 20, 0.55), transparent 70%),
        repeating-linear-gradient(97deg, #b98a5c 0 1.1cqw, #a9794c 1.1cqw 1.7cqw, #c5976a 1.7cqw 2.9cqw, #b08051 2.9cqw 3.4cqw);
}
.ex__wood-label { position: absolute; left: 1.6cqw; bottom: 1.6cqw; padding: 0.7cqw 1.3cqw; background: #ede4d6; font-size: 1.2cqw; font-weight: 600; }
.ex--tischlerei .ex__row { border-top: 1px solid rgba(51, 36, 26, 0.16); }
.ex--tischlerei .ex__row span { display: grid; gap: 1cqw; }
.ex--tischlerei .ex__row b { font-size: 1.9cqw; font-weight: 400; }

/* Café: tiefes Grün, Senfgelb, mittig gesetzt */
.ex--cafe { background: #1e3a2f; color: #f1e7d0; text-align: center; }
.ex--cafe .ex__nav { justify-content: space-between; }
.ex--cafe .ex__links { flex: 1; gap: 3cqw; }
.ex--cafe .ex__links:last-of-type { justify-content: flex-end; }
.ex__badge { display: grid; place-items: center; flex: none; width: 7.4cqw; height: 7.4cqw; margin-top: 5cqw; border-radius: 50%; background: #1e3a2f; box-shadow: inset 0 0 0 1px #e3a93b; color: #e3a93b; font-family: var(--font-display); font-size: 1.9cqw; font-weight: 700; letter-spacing: -0.02em; }
.ex--cafe .ex__hero { grid-template-columns: none; justify-items: center; align-content: center; gap: 2cqw; }
.ex--cafe .ex__kicker { color: #e3a93b; }
.ex--cafe .ex__h1 { font-family: var(--font-display); font-size: 6.6cqw; font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
.ex--cafe .ex__btn { background: #e3a93b; color: #1e3a2f; }
.ex--cafe .ex__menu { border-top: 1px solid rgba(241, 231, 208, 0.2); }
.ex--cafe .ex__menu span { display: flex; align-items: baseline; gap: 1cqw; text-align: left; }
.ex--cafe .ex__menu b { font-weight: 600; white-space: nowrap; }
.ex--cafe .ex__menu i { flex: 1; height: 0; border-bottom: 1px dotted rgba(241, 231, 208, 0.5); }
.ex__cup { position: absolute; right: 7cqw; top: 26%; width: 9cqw; height: auto; fill: none; stroke: #e3a93b; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Praxis: Salbeigrün, ruhige Kreise */
.ex--praxis { background: #f2f5f1; color: #1f2b25; }
.ex--praxis .ex__logo { font-size: 1.9cqw; font-weight: 600; }
.ex--praxis .ex__kicker { color: #4e7058; }
.ex--praxis .ex__h1 { font-family: var(--font-display); font-weight: 400; font-size: 6cqw; letter-spacing: -0.02em; line-height: 1.12; }
.ex--praxis .ex__btn { background: #4e7058; color: #fff; }
.ex__shapes { position: relative; align-self: stretch; margin: 3cqw 0; }
.ex__shapes i { position: absolute; border-radius: 50%; }
.ex__shapes i:nth-child(1) { left: 6%; top: 6%; width: 24cqw; height: 24cqw; background: #dbe5dc; }
.ex__shapes i:nth-child(2) { right: 6%; bottom: 6%; width: 14cqw; height: 14cqw; background: #4e7058; }
.ex__shapes i:nth-child(3) { right: 26%; top: 14%; width: 8cqw; height: 8cqw; box-shadow: inset 0 0 0 1px #4e7058; }
.ex--praxis .ex__hours { border-top: 1px solid rgba(31, 43, 37, 0.15); }
.ex--praxis .ex__hours span { display: grid; gap: 0.6cqw; }
.ex--praxis .ex__hours b { font-weight: 600; }
.ex--praxis .ex__hours i { color: #4e7058; }

/* Elektrobetrieb: Schwarz und Signalgelb, kräftige Versalien */
.ex--elektro { background: #121212; color: #fff; }
.ex--elektro .ex__logo { font-family: var(--font-display); font-size: 1.9cqw; font-weight: 800; letter-spacing: 0.04em; }
.ex--elektro .ex__btn { border-radius: 0.3cqw; background: #f6c500; color: #121212; }
.ex--elektro .ex__hero { grid-template-columns: 1.15fr 1fr; }
.ex--elektro .ex__h1 { font-family: var(--font-display); font-size: 6.2cqw; font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; text-transform: uppercase; }
.ex__stripes { align-self: stretch; margin: 4cqw 0; background: repeating-linear-gradient(-45deg, #f6c500 0 2.2cqw, #121212 2.2cqw 4.4cqw); }
.ex--elektro .ex__tiles span { display: flex; align-items: center; gap: 1.4cqw; padding: 1.6cqw; background: #1f1f1f; font-weight: 600; }
.ex__ico { flex: none; width: 2.8cqw; height: 2.8cqw; background: #f6c500; clip-path: polygon(55% 0, 15% 56%, 46% 56%, 38% 100%, 85% 40%, 54% 40%); }
.ex__ico--b { border-radius: 50%; clip-path: none; box-shadow: inset 0 0 0 0.7cqw #121212; }
.ex__ico--c { clip-path: none; transform: rotate(45deg) scale(0.8); }

/* Handy-Versionen der Entwürfe */
.ex--m { padding: 0 7cqw 8cqw; font-size: 4cqw; gap: 6cqw; }
.ex--m .ex__nav { height: auto; padding: 9cqw 0 4cqw; }
.ex--m .ex__logo { font-size: 5.4cqw; }
.ex--m .ex__h1 { font-size: 12.5cqw; }
.ex--m .ex__kicker { font-size: 3.4cqw; margin-bottom: -3cqw; }
.ex--m .ex__btn { height: 11cqw; padding: 0 6cqw; border-radius: 7cqw; font-size: 4cqw; align-self: flex-start; }
.ex--m .ex__wood, .ex--m .ex__shapes, .ex--m .ex__stripes { flex: 1; min-height: 0; margin: 0; }
.ex--m .ex__burger { width: 7cqw; height: 0.8cqw; box-shadow: 0 2.4cqw 0 currentColor; }
.ex--cafe.ex--m { align-items: center; }
.ex--cafe.ex--m .ex__nav--m { justify-content: center; padding-top: 10cqw; border: 0; }
.ex--cafe.ex--m .ex__badge { width: 20cqw; height: 20cqw; margin: 0; font-size: 5cqw; }
.ex--cafe.ex--m .ex__h1 { font-size: 13cqw; }
.ex--cafe.ex--m .ex__menu { display: grid; grid-template-columns: 1fr; gap: 3cqw; width: 100%; padding-top: 4cqw; }
.ex--cafe.ex--m .ex__btn { align-self: center; }
.ex--praxis.ex--m .ex__shapes i:nth-child(1) { width: 46cqw; height: 46cqw; }
.ex--praxis.ex--m .ex__shapes i:nth-child(2) { width: 26cqw; height: 26cqw; }
.ex--praxis.ex--m .ex__shapes i:nth-child(3) { width: 14cqw; height: 14cqw; }
