/* Plankopf-Formular mit Stempelfeld. Gemeinsam für Planer- und Makler-Seite, Farben kommen aus den Seiten-Tokens (--pk-*). */
.pkf { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; border: 1px solid var(--pk-ink); background: var(--pk-sheet); color: var(--pk-ink); border-radius: 0; }
.pkf .cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pkf .cell { border-right: 1px solid var(--pk-ink); border-bottom: 1px solid var(--pk-ink); padding: 8px 12px 6px; display: flex; flex-direction: column; gap: 2px; min-width: 0; position: relative; }
.pkf .cell.w2 { grid-column: span 2; } .pkf .cell.w4 { grid-column: span 4; }
.pkf .cell.last { border-bottom: 0; }
.pkf label, .pkf .lb { font: 500 .64rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--pk-muted); }
.pkf input, .pkf textarea, .pkf select { border: 0; border-radius: 0; background: transparent; font: 500 1rem var(--mono); color: var(--pk-ink); padding: 4px 0 2px; width: 100%; min-height: 34px; }
.pkf textarea { resize: vertical; min-height: 58px; line-height: 1.45; }
.pkf select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 22px;
  background-image: linear-gradient(45deg, transparent 50%, var(--pk-ink) 50%), linear-gradient(-45deg, transparent 50%, var(--pk-ink) 50%);
  background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.pkf select option { color: #141a22; background: #fff; }
.pkf input::placeholder, .pkf textarea::placeholder { color: var(--pk-muted); opacity: .6; font-weight: 400; }
.pkf input:focus, .pkf textarea:focus, .pkf select:focus { outline: none; }
.pkf .cell:focus-within { background: var(--pk-focus-bg); outline: 1px solid var(--pk-accent); outline-offset: -1px; }
.pkf .v { font: 500 1rem var(--mono); padding-top: 4px; }
.pkf .v.big { font: 500 1.55rem/1.15 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pkf .sub { font: .7rem/1.35 var(--mono); color: var(--pk-muted); }
.pkf .cell.bad { outline: 2px solid var(--pk-bad); outline-offset: -2px; }
.pkf .cell.bad label { color: var(--pk-bad); }
.pkf .suggest { font: .78rem var(--mono); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 4px 0 2px; color: var(--pk-ink); }
.pkf .suggest button { border: 1px solid var(--pk-ink); border-radius: 0; background: transparent; color: var(--pk-ink); font: 500 .74rem var(--mono); padding: 3px 9px; min-height: 30px; cursor: pointer; }
.pkf .suggest button:hover { border-color: var(--pk-accent); color: var(--pk-accent); }
/* Stempelfeld = großer Abschluss-Knopf in der Akzentfarbe; nach dem Klick sitzt dort der Stempel */
.stampf { position: relative; display: grid; grid-template: 1fr / 1fr; padding: 0; border: 0; border-radius: 0; background: var(--pk-cta); color: var(--pk-cta-ink); cursor: pointer; text-align: left; min-height: 260px; font: inherit; transition: background-color .15s; }
.stampf .slot { position: relative; align-self: stretch; justify-self: stretch; display: grid; align-content: space-between; gap: 14px; padding: 22px 22px 20px; }
.stampf .slot .hint { font: 500 .68rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: inherit; }
.stampf .slot b { font: 700 clamp(1.7rem, 2.6vw, 2.15rem)/.98 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.stampf .slot .ar { display: block; font: 400 2.4rem/1 var(--mono); margin-top: 6px; transition: transform .2s; }
.stampf .slot small { font: .74rem/1.45 var(--mono); color: inherit; border-top: 1px solid currentColor; padding-top: 10px; }
.stampf:hover, .stampf:focus-visible { background: var(--pk-cta-hover); color: var(--pk-cta-ink); }
.stampf:hover .slot .ar, .stampf:focus-visible .slot .ar { transform: translateX(8px); }
.stampf:focus-visible { outline: 3px solid var(--pk-accent); outline-offset: 3px; }
.stampf.done { background: var(--pk-sheet); color: var(--pk-ink); cursor: default; }
.stampf.done .slot > * { visibility: hidden; }
/* Leitlinie im Plankopf: verdickte Linie vom Festpreis bis in den Knopf */
.pkf .leitin { position: absolute; bottom: -2px; left: calc((100% - 300px) * .5); width: calc((100% - 300px) * .5); height: 3px; background: var(--pk-cta); pointer-events: none; }
.pkf .leitin::after { content: ""; position: absolute; right: -2px; top: -7px; border-left: 14px solid var(--pk-cta); border-top: 8.5px solid transparent; border-bottom: 8.5px solid transparent; }
.stamp { position: absolute; left: 50%; top: 50%; width: min(220px, 80%); transform: translate(-50%, -50%) rotate(-8deg); opacity: 0; pointer-events: none; color: var(--pk-stamp); }
.stamp svg { width: 100%; height: auto; display: block; overflow: visible; }
.stamp .st1 { font: var(--pk-stamp-font); letter-spacing: 2px; }
.stamp .st2 { font: 15px var(--mono); }
.stampf.done .stamp { opacity: 1; animation: pkthump .32s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pkthump { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-8deg) scale(1.6); } 60% { opacity: 1; } 100% { transform: translate(-50%, -50%) rotate(-8deg) scale(1); } }
.pkfoot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 14px; font: .82rem/1.5 var(--mono); }
.pkfoot .msg { margin: 0; flex: 1 1 380px; color: var(--pk-ink); min-height: 1.5em; }
.pkfoot .msg.err { color: var(--pk-bad); }
.pkfoot .direct { margin: 0; color: var(--pk-muted); }
.pkfoot .direct span { color: var(--pk-ink); user-select: all; }
.linkbtn { border: 0; border-bottom: 1px solid currentColor; border-radius: 0; background: transparent; color: var(--pk-ink); font: inherit; padding: 0; margin-left: 8px; cursor: pointer; }
.linkbtn:hover { color: var(--pk-accent); }
@media (max-width: 900px) { .pkf { grid-template-columns: 1fr; } .stampf { min-height: 190px; } .pkf .leitin { display: none; } }
@media (max-width: 600px) { .pkf .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pkf .cell.w4, .pkf .cell.w2 { grid-column: span 2; } .pkf .cell.last { border-bottom: 1px solid var(--pk-ink); } .pkf .cell.lastrow { border-bottom: 0; } }
@media (prefers-reduced-motion: reduce) { .stampf.done .stamp { animation: none; } .stampf, .stampf .slot .ar { transition: none; } }
