/* Agentic AI Workshop:
   the parts of its section beyond the other four, the yellow plane in the panel of Rapid AI Prototyping ("Fläche"),
   the new direct entry of the chat, and the booking sheet in the chat ("Blatt") on top of termin.css.
   Colours and type families from styles.css and leistungen.css, nothing else. */

/* ---------- The section: level, what you bring, prices, who may book, the two buttons ---------- */
.tafel {
  .tafel__niveau, .tafel__intro, .tafel__artikel { margin-top: 0.6em; font-size: clamp(17px, calc(1.25vw + 1px), 19px); line-height: 1.5; text-wrap: pretty; }
  /* The sentence that asks the chat (js/leistungen.js): the marker of „Mehr dazu“ under the words, fuller on hover. */
  .tafel__niveau a, .tafel__artikel a {
    color: inherit; text-decoration: none; cursor: pointer;
    background: linear-gradient(var(--marker), var(--marker)) no-repeat 0 88% / 100% 0.38em;
    transition: background-size var(--dur-fast) var(--ease);
    &:hover { background-size: 100% 1.05em; }
  }
  .tafel__mitbringen p:not(.tafel__listentitel) { text-wrap: pretty; }
  .tafel__preis {
    display: grid; gap: 0; margin: 1.6em 0 0; border-top: 1.5px solid var(--tinte);
    div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 18px; padding: 0.7em 0 0.75em; border-bottom: 1px solid var(--linie-stark); }
    dt { font: 500 11.5px / 1.3 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; }
    dd { margin: 0; grid-column: 1 / -1; font-size: clamp(15px, 1.1cqw, 16.5px); line-height: 1.4; color: var(--c-text-muted); }
    dd b { margin-right: 0.35em; color: var(--tinte); font: 700 clamp(22px, 2cqw, 28px) / 1 var(--marke); letter-spacing: -0.03em; }
  }
  .tafel__fuer { margin-top: 0.9em; font-size: clamp(16px, calc(1.1vw + 1px), 17.5px); line-height: 1.45; }
  .tafel__knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 1.6em; }
  .tafel__knoepfe .tafel__mehr { margin-top: 0; }
  .tafel__buchen { margin: 0; }
}

/* ---------- Fläche: a yellow plane of the grid pictures, in the panel of Rapid AI Prototyping (workshop) and in a band
   above the AI+ Design Sprint (whitepaper, js/leistungen.js) ---------- */
.ws-banner {
  grid-column: 1 / -1; min-width: 0; font-family: var(--antiqua);
  display: grid; gap: 10px; padding: 26px 28px 28px; background: var(--gelb); color: var(--fest-tinte);
  /* A dividing line above, as between sections, so the banner does not read as part of the panel it stands in
     (lines above and below). It reaches past the padding of .tafel (leistungen.css: 16px, 72px from 900px) to its edges and sits
     halfway between picture and banner: half of row-gap 36px of .tafel plus margin-top. */
  position: relative; margin-top: 28px;
  &::before { content: ""; position: absolute; inset-inline: -16px; top: -32px; border-top: 1px solid var(--linie-stark); }
  p { text-wrap: pretty; }
  .ws-banner__name { font: 700 clamp(22px, 2.2cqw, 30px) / 1.1 var(--marke); letter-spacing: -0.03em; }
  p:not([class]) { max-width: 34em; font-size: clamp(17px, 1.42cqw, 20.5px); line-height: 1.45; }
  .ws-banner__preis { font: 500 12px / 1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
  .ws-banner__knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 8px; }
  .knopf { margin: 0; --tinte: var(--fest-tinte); --grund: var(--fest-grund); }
  /* The button of the whitepaper is a link to another page (js/leistungen.js, whitepaperFlaeche). */
  a.knopf { display: inline-block; text-decoration: none; }
  .tafel__mehr {
    margin-top: 0; color: var(--fest-tinte); background-image: linear-gradient(var(--fest-tinte), var(--fest-tinte)); background-size: 100% 1.5px;
    /* The black stroke must not rise over the words like the yellow one of the page does; it only gets stronger. */
    &:hover { background-size: 100% 3px; }
  }
}
/* The band of the whitepaper above the AI+ Design Sprint (js/leistungen.js): as wide as a panel, with the line of a
   panel above; the line of the sprint closes it below. The banner inside needs no line of its own. */
.banner-band {
  max-width: 1440px; margin-inline: auto; padding: 48px 16px 56px; border-top: 1px solid var(--linie-stark);
  .ws-banner { margin-top: 0; &::before { display: none; } }
}
@container (min-width: 900px) {
  .banner-band { padding: 72px 72px 80px; }
  .banner-band .ws-banner { grid-template-columns: minmax(0, 1fr) auto; column-gap: 40px; align-items: end; }
  /* The whitepaper has two lines of text, the workshop three: with three rows the button would sit below the sentence. */
  .banner-band .ws-banner .ws-banner__knoepfe { grid-row: 1 / span 2; }
  .tafel .ws-banner { grid-row: 2; margin-top: 60px; grid-template-columns: minmax(0, 1fr) auto; column-gap: 40px; align-items: end; }
  .tafel .ws-banner::before { inset-inline: -72px; top: -48px; }
  .ws-banner .ws-banner__knoepfe { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
}

/* The new direct entry of the empty chat. */
.chip--neu { box-shadow: inset 4px 0 0 var(--gelb); }

/* ---------- The booking sheet in the chat ---------- */
.termin.kauf { max-width: 640px; }
.termin.kauf .termin__inhalt > * + * { margin-top: 2px; }
.termin .termin__zeit:disabled { opacity: 0.38; cursor: not-allowed; }
.termin .termin__zeit:disabled:hover { background: transparent; }
.termin .kauf__info { font: 400 16px / 1.45 var(--t-antiqua); }
.termin .kauf__feld { display: block; }
.termin .kauf__angaben { display: grid; gap: 16px; }

@container termin (min-width: 460px) {
  .termin .kauf__zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Number of places: four squares, the chosen one yellow. */
.termin .kauf__plaetze { display: flex; gap: 8px; }
.termin .kauf__zahl {
  width: 52px; height: 52px; border: 1px solid var(--t-tinte); border-radius: 0; background: transparent; color: inherit; cursor: pointer;
  font: 600 18px / 1 var(--t-marke);
  &:hover:not(:disabled) { background: var(--t-grund); }
  &[aria-pressed="true"] { background: var(--t-gelb); color: var(--t-auf-gelb); box-shadow: inset 0 0 0 1px var(--t-auf-gelb); }
  &:disabled { opacity: 0.3; cursor: not-allowed; }
  &:focus-visible { outline: 2px solid var(--t-gelb); outline-offset: 2px; }
}
.termin .kauf__plaetze + .termin__notiz { margin-top: 8px; }

/* The sum: netto, tax, total; the total in the type of the headlines. */
.termin .kauf__summe {
  margin: 0; border-top: 1.5px solid var(--t-tinte);
  div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--t-haar); }
  dt { font: 500 12px / 1.4 var(--t-mono); letter-spacing: 0.02em; }
  dd { margin: 0; font: 400 16px / 1.3 var(--t-antiqua); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .kauf__gesamt dd { font: 600 18px / 1.2 var(--t-marke); letter-spacing: -0.02em; }
  .termin__notiz { margin-top: 10px; }
}

/* Stripe draws its own form into this place, on white like its own pages; dark mode leaves it as Stripe sets it. */
.termin .kauf__stripe-ziel { min-height: 120px; padding: 6px; border-radius: 8px; background: #ffffff; color: #30313d; }
.termin .kauf__zurueck {
  justify-self: start; padding: 6px 0; border: 0; background: none; color: inherit; cursor: pointer;
  font: 500 12px / 1 var(--t-mono); text-decoration: underline; text-underline-offset: 4px;
}
