/* =========================================================
   „Projekt anfragen“: Stil der anderen Unterseiten (Überschrift, dunkles Grün), kompakt, Felder als klare Kästen.
   Links das Formular, rechts der Webseiten-Entwurf. Wird von build-pages.js nur in anfrage.html eingehängt (nach atelier.css).
   Bewegung: projektanfrage.js
   ========================================================= */
/* weißer Grund */
.pa { --line: #e4e4e4; background: #fff; }
.pa .header::before { background: rgba(255, 255, 255, .88); }
.pa-main { padding-block: clamp(2rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem); }
.pa .pa-main .container { max-width: 75rem; }
@media (min-width: 1440px) { .pa .pa-main .container { max-width: 85rem; } }
.pa-grid { display: grid; gap: 2rem; grid-template-areas: "intro" "side" "form"; }
.pa-intro { grid-area: intro; }
.pa-side { grid-area: side; min-width: 0; }
.pa-form { grid-area: form; min-width: 0; }
.pa .pa-intro .page-hero__title { font-size: clamp(2.5rem, 4.4vw, 3.6rem); }
.pa-lead { margin: .85rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.5; }
@media (min-width: 960px) {
  .pa-main { padding-top: clamp(1.25rem, 2.5vw, 2rem); }
  .pa-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "intro side" "form side"; grid-template-rows: auto 1fr; gap: 2.5rem clamp(2.5rem, 5vw, 5rem); align-items: start; }
  .pa-side { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

/* ---------- Der erste Entwurf: eine kleine Webseite, die beim Ausfüllen entsteht ---------- */
.sk { --bg: #fbf4ea; --fg: #1d1a17; --a: #ff6b1a; --b: #5aae76; --soft: #f1e0d0; display: grid; gap: 1rem; min-width: 0; }
.sk[data-theme="wald"] { --bg: #142c20; --fg: #fbf1e4; --a: #ff6b1a; --b: #ffb27a; --soft: #22432f; }
.sk[data-theme="nacht"] { --bg: #1b1630; --fg: #f3efff; --a: #9d8cff; --b: #ff7d8f; --soft: #2d2550; }
.sk[data-theme="mint"] { --bg: #eaf6f1; --fg: #10312a; --a: #0f8f74; --b: #ffb35c; --soft: #cfe8de; }
.sk-win { overflow: hidden; border-radius: 1rem; background: #fff; box-shadow: 0 0 0 1px rgba(29, 26, 23, .1), 0 30px 60px -30px rgba(29, 26, 23, .35); }
.sk-bar { display: flex; align-items: center; gap: .35rem; padding: .6rem .85rem; border-bottom: 1px solid #ececec; }
.sk-bar i { width: .55rem; height: .55rem; border-radius: 50%; background: #dedede; }
.sk-url { flex: 1; min-width: 0; margin-left: .5rem; padding: .25rem .8rem; overflow: hidden; border-radius: 999px; background: #f3f3f3; color: #5d5750; font-size: .74rem; white-space: nowrap; text-overflow: ellipsis; transition: background .3s, color .3s; }
.sk.is-ready .sk-url { background: #e3f3e8; color: #1c6b39; }
.sk.is-ready .sk-url::after { content: " ✓"; font-weight: 800; }
.sk-page { display: grid; gap: .85rem; padding: 1rem 1.1rem 1.1rem; background: var(--bg); color: var(--fg); transition: background-color .45s, color .45s; }
.pa .sk button:not(.sk-mix):not([data-set]) { min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pa .sk button:focus-visible { outline: 2px solid var(--carrot); outline-offset: 3px; }
.sk-nav { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.sk-brand { min-width: 0; overflow: hidden; font-family: var(--font-display); font-size: .78rem; white-space: nowrap; text-overflow: ellipsis; }
.sk-menu { display: flex; gap: .45rem; margin-left: auto; }
.sk-menu i { width: 1.6rem; height: .3rem; border-radius: 9px; background: currentColor; opacity: .22; }
.sk-cart { position: relative; display: none; flex: none; }
.sk-cart svg { display: block; width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.sk-cart em { position: absolute; right: -.4rem; top: -.35rem; display: grid; place-items: center; min-width: .95rem; height: .95rem; border-radius: 9px; background: var(--a); color: #fff; font-size: .6rem; font-style: normal; font-weight: 800; }
.sk-cart.is-bump { animation: sk-bump .4s ease; }
@keyframes sk-bump { 40% { scale: 1.35; } }
.sk[data-kind="shop"] .sk-cart { display: block; }
.pa .sk .sk-head { display: grid; gap: .2rem; }
.sk-kind { color: var(--a); font-size: .64rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.sk-title { min-height: 1.15em; padding-bottom: .1em; font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; line-height: 1.15; letter-spacing: -.035em; overflow-wrap: anywhere; }
.sk.is-long-name .sk-title { font-size: 1.45rem; }
.sk-title.is-empty, .sk-text.is-empty { opacity: .38; }
.pa .sk .sk-copy { display: block; }
.sk-text { display: -webkit-box; min-height: 2.9em; overflow: hidden; font-size: .86rem; line-height: 1.45; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
.sk.is-writing-name .sk-title::after, .sk.is-writing-message .sk-text::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.12em; background: var(--a); animation: sk-caret 1s steps(1) infinite; }
@keyframes sk-caret { 50% { opacity: 0; } }

/* Kunstfläche: je nach Projektart anders angeordnet und anders zu bedienen */
.sk-art { position: relative; height: 13.5rem; overflow: hidden; border-radius: .7rem; }
.sk-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: .4rem; height: 100%; }
.sk-tiles i { font-style: normal; position: relative; display: block; min-width: 0; overflow: hidden; border-radius: .55rem; background: var(--soft); cursor: pointer; transition: background-color .45s, translate .25s var(--ease); }
.sk-tiles i:nth-child(1) { grid-area: 1 / 1 / 3 / 3; }
.sk-tiles i:nth-child(2) { grid-area: 1 / 3 / 2 / 5; }
.sk-tiles i:nth-child(n+5) { display: none; }
.sk-tiles b { position: absolute; left: 50%; top: 50%; height: 68%; aspect-ratio: 1; translate: -50% -50%; rotate: var(--r, 0deg); background: var(--f); transition: rotate .6s cubic-bezier(.2, .9, .3, 1.2), background-color .45s, border-radius .45s; }
.sk-tiles b.f0 { border-radius: 50%; }
.sk-tiles b.f1 { border-radius: 100% 0 0 0; }
.sk-tiles b.f2 { border-radius: 999px 999px 0 0; clip-path: inset(0 0 50% 0); }
.sk-tiles b.f3 { border-radius: 100% 0 0 0; background: repeating-radial-gradient(circle at 100% 100%, var(--f) 0 9%, transparent 9% 18%); }
.sk-tiles b.f4 { border-radius: 50%; background: radial-gradient(circle, transparent 0 27%, var(--f) 28%); }
.sk-tiles b.f5 { clip-path: polygon(50% 4%, 96% 92%, 4% 92%); }
/* Online Shop: sechs Produkte mit Preis */
.sk[data-kind="shop"] .sk-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sk[data-kind="shop"] .sk-tiles i:nth-child(n) { display: block; grid-area: auto; }
.sk[data-kind="shop"] .sk-tiles i:hover { translate: 0 -3px; }
.sk[data-kind="shop"] .sk-tiles b { top: 40%; height: 52%; }
.sk[data-kind="shop"] .sk-tiles i::after { content: attr(data-price); position: absolute; left: .45rem; bottom: .35rem; font-size: .68rem; font-weight: 700; }
/* Individuell: freie Formen zum Verschieben */
.sk[data-kind="free"] .sk-art { background: var(--soft); }
.sk[data-kind="free"] .sk-tiles { display: block; position: relative; }
.sk[data-kind="free"] .sk-tiles i:nth-child(n) { display: block; position: absolute; width: 4.4rem; height: 4.4rem; overflow: visible; background: none; cursor: grab; touch-action: none; translate: var(--x, 0px) var(--y, 0px); transition: none; }
.sk[data-kind="free"] .sk-tiles i:active { cursor: grabbing; z-index: 2; }
.sk[data-kind="free"] .sk-tiles b { height: 100%; }
.sk[data-kind="free"] .sk-tiles i:nth-child(1) { left: 6%; top: 9%; width: 6rem; height: 6rem; }
.sk[data-kind="free"] .sk-tiles i:nth-child(2) { left: 42%; top: 6%; }
.sk[data-kind="free"] .sk-tiles i:nth-child(3) { left: 70%; top: 20%; width: 5rem; height: 5rem; }
.sk[data-kind="free"] .sk-tiles i:nth-child(4) { left: 28%; top: 48%; }
.sk[data-kind="free"] .sk-tiles i:nth-child(5) { left: 55%; top: 50%; width: 3.4rem; height: 3.4rem; }
.sk[data-kind="free"] .sk-tiles i:nth-child(6) { left: 5%; top: 66%; width: 2.8rem; height: 2.8rem; }
/* Neugestaltung: Vorher und nachher mit Schieberegler */
.sk-old, .sk-cut { display: none; }
.sk[data-kind="redo"] .sk-old { position: absolute; inset: 0; display: block; padding: .8rem; overflow: hidden; background: #c9c9c9; color: #222; font: .66rem/1.5 "Times New Roman", serif; text-align: center; white-space: nowrap; clip-path: inset(0 calc(100% - var(--cut, 50%)) 0 0); pointer-events: none; }
.sk-old b { display: block; margin-bottom: .2rem; color: #00007a; font-size: .95rem; }
.sk-old u { color: #0000ee; }
.sk-old span { display: block; height: 2.2rem; margin-top: .45rem; border: 2px inset #eee; background: #dcdcdc; }
.pa .sk .sk-cut { position: absolute; inset: 0; display: none; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: none; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.pa .sk[data-kind="redo"] .sk-cut { display: block; }
.sk[data-kind="redo"] .sk-art::after { content: "↔"; position: absolute; top: 50%; left: var(--cut, 50%); display: grid; place-items: center; width: 2rem; height: 2rem; translate: -50% -50%; border-radius: 50%; background: #fff; color: #1d1a17; font-weight: 800; box-shadow: 0 0 0 1px rgba(29, 26, 23, .15), 0 6px 16px -6px rgba(29, 26, 23, .6); pointer-events: none; }
.sk[data-kind="redo"] .sk-art:focus-within::after { outline: 3px solid var(--carrot); }
.sk-hint { position: absolute; right: .5rem; bottom: .5rem; margin: 0; padding: .3rem .65rem; border-radius: 999px; background: rgba(20, 18, 16, .72); color: #fff; font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; pointer-events: none; transition: opacity .4s; }
.sk[data-kind="shop"] .sk-hint { right: auto; left: 50%; bottom: 50%; translate: -50% 50%; white-space: nowrap; }
.sk.is-played .sk-hint { opacity: 0; }

.pa .sk .sk-foot { display: grid; gap: .45rem; min-height: 3.2rem; align-content: start; }
.sk-ways { display: flex; flex-wrap: wrap; gap: .4rem; }
.sk-ways i { padding: .4rem .85rem; border-radius: 999px; background: var(--a); color: #fff; font-size: .74rem; font-style: normal; font-weight: 700; animation: sk-pop .4s cubic-bezier(.2, .9, .3, 1.4); }
.sk-ways em { padding: .3rem .85rem; border: 1.5px dashed currentColor; border-radius: 999px; font-size: .74rem; font-style: normal; opacity: .4; }
@keyframes sk-pop { from { scale: .7; opacity: 0; } }
.sk-address { font-size: .72rem; line-height: 1.5; opacity: .75; overflow-wrap: anywhere; white-space: pre-line; }
.sk-address:empty { display: none; }

/* Darunter: Statuszeile, Farbwelten, Neu mischen */
.sk-say { min-height: 1.4em; margin: .25rem 0 0; font-family: var(--font-display); font-size: 1rem; font-weight: 600; line-height: 1.4; letter-spacing: -.01em; }
.sk-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 1rem; }
.sk-themes { display: flex; gap: .55rem; }
.sk-themes button { width: 2.1rem; height: 2.1rem; padding: 0; border: 0; border-radius: 50%; background: linear-gradient(135deg, var(--c) 0 50%, var(--d) 50%); box-shadow: inset 0 0 0 1px rgba(29, 26, 23, .14); cursor: pointer; transition: scale .25s var(--ease), box-shadow .25s; }
.sk-themes button:hover { scale: 1.1; }
.sk-themes button[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--ink); }
.sk-mix { min-height: 2.5rem; padding: .4rem 1.1rem; border: 1.5px solid #d2d2d2; border-radius: 999px; background: #fff; color: var(--ink); font-family: var(--font-display); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: border-color .2s; }
.sk-mix:hover { border-color: var(--ink); }

/* Fehlt etwas / losschicken */
.sk.is-shaking .sk-win { animation: sk-shake .45s ease; }
@keyframes sk-shake { 25% { translate: -.5rem 0; } 55% { translate: .4rem 0; } 80% { translate: -.2rem 0; } }
.sk.is-sending .sk-win { animation: sk-fly 1.7s cubic-bezier(.6, 0, .3, 1); }
@keyframes sk-fly {
  12% { scale: .96; opacity: 1; }
  45% { translate: 0 -60vh; scale: .6; opacity: 0; }
  46% { translate: 0 3rem; scale: .96; opacity: 0; }
}

@media (min-width: 960px) {
  .pa .pa-direct { margin-top: 1.25rem; }
  .pa-side.is-tall { position: static; }
}

/* direkt erreichen */
.pa-direct { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin: 1.5rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--line); list-style: none; }
.pa-direct a { display: inline-block; padding: .35rem 0; color: var(--ink); font-family: var(--font-display); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; background: linear-gradient(var(--carrot), var(--carrot)) left bottom / 0 2px no-repeat; transition: background-size .45s var(--ease); }
.pa-direct a:hover, .pa-direct a:focus-visible { background-size: 100% 2px; }

/* ---------- Formular: jedes Feld ein klarer Kasten, kompakt ---------- */
.pa .rform.pa-form { --box: #d2d2d2; display: grid; gap: 1.75rem; padding: 0; border: 0; }
.pa .pa-form .rform__field { display: grid; align-content: start; gap: .65rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.pa .pa-form legend { float: left; width: 100%; padding: 0; margin-bottom: .65rem; }
.pa .pa-form legend + * { clear: both; }
.pa .pa-form .rform__label { color: var(--ink); font-size: .72rem; }
.pa .pa-form .form__hint { color: var(--muted); font-size: .76rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.pa .pa-form .rform__row { display: grid; gap: 1.75rem 1.25rem; }
@media (min-width: 600px) { .pa .pa-form .rform__row { grid-template-columns: 1fr 1fr; } }
.pa .rform.pa-form input:not([type="radio"]):not([type="checkbox"]),
.pa .rform.pa-form textarea { width: 100%; min-height: 3rem; padding: .65rem 1rem; border: 1.5px solid var(--box); border-radius: .7rem; background: #fff; font-size: 1rem; box-shadow: none; transition: border-color .2s, box-shadow .2s; }
.pa .rform.pa-form textarea { min-height: 11rem; padding-block: .9rem; line-height: 1.5; resize: vertical; }
.pa .rform.pa-form input:not([type="radio"]):not([type="checkbox"]):hover,
.pa .rform.pa-form textarea:hover { border-color: #9a9a9a; }
.pa .rform.pa-form input:not([type="radio"]):not([type="checkbox"]):focus,
.pa .rform.pa-form textarea:focus { outline: none; border-color: var(--carrot); background: #fff; box-shadow: 0 0 0 3px rgba(255, 107, 26, .22); }
.pa .rform.pa-form [aria-invalid="true"] { border-color: #d93025 !important; box-shadow: 0 0 0 3px rgba(217, 48, 37, .16) !important; }
.pa .pa-form .rform__chips, .pa .pa-form .pa-ways { display: flex; flex-wrap: wrap; gap: .65rem; }
.pa .pa-form :is(.rform__chip, .form__option) span { display: inline-flex; align-items: center; gap: .4rem; min-height: 3rem; padding: .45rem 1rem; background: #fff; box-shadow: inset 0 0 0 1.5px var(--box); font-size: .88rem; }
.pa .pa-form :is(.rform__chip, .form__option):hover span { box-shadow: inset 0 0 0 1.5px var(--ink); }
.pa .pa-form :is(.rform__chip, .form__option) input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.pa .pa-form .form__choice.is-invalid .form__option span { background: #fff6f5; box-shadow: inset 0 0 0 1.5px #d93025; }
.pa .pa-form :is(.rform__chip, .form__option) input:focus-visible + span { outline: 3px solid var(--carrot); outline-offset: 2px; }
.pa .pa-form .form__option input:checked + span::after { content: "✓"; margin: 0; font-weight: 800; }
.pa .pa-form .form__privacy { display: flex; align-items: flex-start; gap: .7rem; color: var(--muted); font-size: .88rem; }
.pa .pa-form .form__privacy input { width: 1.25rem; height: 1.25rem; flex: none; margin-top: .1rem; accent-color: var(--carrot); }
.pa .pa-form .form__privacy a { color: var(--carrot-dark); }
.pa .pa-form .form__privacy.is-invalid span { color: #b3261e; }
.pa .pa-form .rform__submit { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin: 0; padding: 0; }
.pa .pa-form .form__error, .pa .pa-form .form__success { flex-basis: 100%; margin: 0; }
.pa .pa-form .form__error[hidden], .pa .pa-form .form__success[hidden] { display: none; }
.pa .pa-form .form__error { background: #fdeceb; color: #b3261e; }
.pa main .pa-form .rform__submit .btn { min-width: min(100%, 15rem); }
/* Bestätigung nach dem Senden: nur das Pop-up in der Bildmitte; die Zeile unter dem Knopf bleibt für Screenreader */
.pa .pa-form .form__success:not([hidden]) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pa .sent-pop { top: 50%; bottom: auto; translate: -50% -50%; flex-direction: column; gap: .9rem; width: min(23rem, calc(100% - 2rem)); padding: 2rem 1.5rem 1.75rem; border: 0; border-radius: 1.25rem; text-align: center; box-shadow: 0 30px 70px -25px rgba(29, 26, 23, .45), 0 0 0 100vmax rgba(29, 26, 23, .3); animation-name: pa-sent-in; }
.pa .sent-pop.is-leaving { animation: pa-sent-out .3s ease forwards; }
.pa .sent-pop__icon { width: 3.5rem; height: 3.5rem; }
.pa .sent-pop__icon svg { width: 1.9rem; height: 1.9rem; }
.pa .sent-pop__text b { font-size: 1.2rem; line-height: 1.3; }
.pa .sent-pop__text span { margin-top: .4rem; font-size: .95rem; }
.pa .sent-pop__close { position: absolute; top: .5rem; right: .5rem; }
@keyframes pa-sent-in { from { opacity: 0; translate: -50% calc(-50% + 1rem); scale: .96; } }
@keyframes pa-sent-out { to { opacity: 0; translate: -50% calc(-50% + .6rem); } }
/* kurzes Aufleuchten, wenn ein Teil des Entwurfs zum Feld führt */
.pa .pa-form .is-called { animation: pa-called 1.2s ease-out; }
@keyframes pa-called { 0%, 35% { background-color: #ffe9da; box-shadow: 0 0 0 .6rem #ffe9da; } 100% { background-color: transparent; box-shadow: 0 0 0 .6rem transparent; } }

@media (prefers-reduced-motion: reduce) {
  .sk-page, .sk-tiles i, .sk-tiles b { transition: none; }
  .sk-ways i, .sk-cart.is-bump, .sk.is-shaking .sk-win, .sk.is-writing-name .sk-title::after, .sk.is-writing-message .sk-text::after { animation: none; }
}

/* ---------- Beim Öffnen: Einleitung, Felder und Entwurf tauchen nacheinander ruhig auf ---------- */
@media (prefers-reduced-motion: no-preference) {
  .pa-lead, .pa .pa-form > *, .pa-side { animation: pa-in 1s cubic-bezier(.22, 1, .36, 1) backwards; animation-delay: calc(.25s + var(--in, 0) * 90ms); }
  .pa .pa-form > :nth-child(2) { --in: 1; }
  .pa .pa-form > :nth-child(3) { --in: 2; }
  .pa .pa-form > :nth-child(4) { --in: 3; }
  .pa .pa-form > :nth-child(5) { --in: 4; }
  .pa .pa-form > :nth-child(6) { --in: 5; }
  .pa .pa-form > :nth-child(7) { --in: 6; }
  .pa .pa-form > :nth-child(n+8) { --in: 7; }
  .pa-side { --in: 2; animation-duration: 1.25s; }
}
@keyframes pa-in { from { opacity: 0; translate: 0 1.5rem; filter: blur(8px); } }
