/*
 * TippyTaps v2 — "Kontakt" (design/Kontakt.dc.html). Loaded only where tt_v2()
 * is on, for this page only (inc/enqueue.php, v2-{context}.css). The markup is
 * the tt_v2() branch of page-kontakt.php; the old branch keeps page-kontakt.css,
 * which still loads underneath (see the form block).
 *
 * Every rule starts with `body.tt-v2` — see the header of v2.css for why.
 * Hover only inside @media (hover:hover); tt.js drives the data-fx hovers.
 */

/* ---------- shell ---------- */
body.tt-v2 .v2-ct-hero,
body.tt-v2 .v2-ct-sec{ max-width:1360px; margin:0 auto; padding:clamp(48px,7vw,96px) clamp(16px,3vw,40px) 0; box-sizing:border-box; }

/* ---------- shared bits (pills, kicker, headings) ---------- */
body.tt-v2 .v2-pills{ display:flex; gap:10px; flex-wrap:wrap; }
body.tt-v2 .v2-pill{ padding:8px 16px; border:1px solid var(--green); border-radius:999px; color:var(--green-ink);
  font-size:14px; font-weight:600; line-height:1.3; }
body.tt-v2 .v2-pill--lime{ padding:8px 14px; border-color:var(--lime); background:var(--lime); color:var(--ink); font-size:13px; font-weight:700; }
body.tt-v2 .v2-lead{ margin:0; font-size:18px; line-height:1.6; color:var(--ink-2); max-width:560px; text-wrap:pretty; }
body.tt-v2 .v2-kick{ display:block; font-size:13px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--green-ink); }
body.tt-v2 .v2-kick--lime{ color:var(--lime); }
body.tt-v2 .v2-h2{ margin:10px 0 0; font-family:var(--disp); font-weight:500; font-size:clamp(40px,5.4vw,80px);
  line-height:.95; letter-spacing:-.05em; color:var(--ink); }
body.tt-v2 .v2-shead{ display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:20px 40px; margin-bottom:36px; }
body.tt-v2 .v2-shead > p{ margin:0; max-width:380px; font-size:17px; line-height:1.55; color:var(--ink-2); }

/* ---------- hero ---------- */
body.tt-v2 .v2-ct-hero{ padding-top:clamp(28px,5vw,64px); display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,500px),1fr)); gap:clamp(28px,4vw,56px); align-items:center; }
body.tt-v2 .v2-ct-hero__text{ display:flex; flex-direction:column; gap:24px; min-width:0; }
body.tt-v2 .v2-ct-h1{ margin:0; font-family:var(--disp); font-weight:500; font-size:clamp(46px,6.4vw,96px); line-height:.92;
  letter-spacing:-.05em; color:var(--ink); max-width:none; }
body.tt-v2 .v2-ct-h1 span{ color:var(--green); }

body.tt-v2 .v2-ct-methods{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); gap:12px; }
body.tt-v2 .v2-ct-method{ background:var(--surface); border-radius:var(--tt-r); padding:22px; color:var(--ink); display:flex; flex-direction:column;
  gap:6px; text-decoration:none; transition:background .3s; min-width:0; }
body.tt-v2 .v2-ct-method__ic{ width:48px; height:48px; border-radius:16px; background:#e3f1ea; color:var(--green-ink); display:grid; place-items:center;
  margin-bottom:8px; transition:all .4s var(--tt-spring); }
body.tt-v2 .v2-ct-method__ic svg{ width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
body.tt-v2 .v2-ct-method__t{ font-family:var(--disp); font-weight:500; font-size:22px; line-height:1.2; }
body.tt-v2 .v2-ct-method__s{ font-size:14px; line-height:1.4; color:var(--ink-2); }
body.tt-v2 .v2-ct-method__v{ margin-top:4px; font-weight:700; overflow-wrap:anywhere; }

/* Arched photo that tilts with the cursor; Ťapko sits on its lower-left edge. */
body.tt-v2 .v2-ct-visual{ position:relative; min-height:clamp(380px,40vw,540px); min-width:0; }
body.tt-v2 .v2-ct-visual__arch{ position:absolute; inset:0 6% 30px 6%; border-radius:280px 280px var(--tt-r) var(--tt-r); overflow:hidden;
  background:var(--green); transition:transform .4s; }
body.tt-v2 .v2-ct-visual__arch img{ position:absolute; inset:-20px; width:calc(100% + 40px); height:calc(100% + 40px); object-fit:cover;
  max-width:none; transition:translate .4s; }
body.tt-v2 .v2-ct-visual__tapko{ position:absolute; left:0; bottom:-10px; }
body.tt-v2 .v2-ct-visual .v2-tapko{ --s:.65; }

/* ---------- form + aside ---------- */
body.tt-v2 .v2-ct-main{ display:flex; flex-wrap:wrap; gap:20px; align-items:flex-start; scroll-margin-top:100px; }
body.tt-v2 .v2-ct-main .v2-formcard{ flex:2 1 560px; scroll-margin-top:0; }
body.tt-v2 .v2-ct-aside{ flex:1 1 320px; min-width:0; display:flex; flex-direction:column; gap:20px; }
body.tt-v2 .v2-ct-card{ background:var(--surface); border-radius:var(--tt-r); padding:28px; display:flex; flex-direction:column; gap:10px; }
body.tt-v2 .v2-ct-card h3{ margin:0; font-family:var(--disp); font-weight:500; font-size:24px; letter-spacing:-.03em; line-height:1.15; color:var(--ink); }
body.tt-v2 .v2-ct-card__k{ font-size:13px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); }
body.tt-v2 .v2-ct-card__mail{ font-weight:700; font-size:18px; color:var(--green-ink); text-decoration:none; overflow-wrap:anywhere; }
body.tt-v2 .v2-ct-card--hours{ background:var(--forest); color:var(--bg); gap:4px; }
body.tt-v2 .v2-ct-card--hours h3{ margin-bottom:10px; color:var(--bg); }
body.tt-v2 .v2-ct-hours{ display:flex; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid rgba(242,238,228,.12); }
body.tt-v2 .v2-ct-hours:last-child{ border-bottom:0; }
body.tt-v2 .v2-ct-hours b{ font-weight:700; text-align:right; }
body.tt-v2 .v2-ct-hours b.is-closed{ color:#f4a88f; }
body.tt-v2 .v2-ct-hours b.is-sos{ color:var(--lime); }
@media (hover:hover){
  body.tt-v2 .v2-ct-card__mail:hover{ color:var(--green); }
}

/* ---------- form card ----------
   The <form> markup is the old one, verbatim (the page JS binds to its ids and
   classes), so these rules restyle the old classes: .form, .field, .frow,
   .topics/.topic, .consent, .send, .sent. The page's old stylesheet still loads
   underneath them; every property it sets that the design does not want is
   reset here. JS state: .field.err, .topic.on, .sent.show, .form-fail[hidden]. */
body.tt-v2 .v2-formcard{ background:var(--surface); border-radius:var(--tt-r); padding:clamp(24px,4vw,44px); display:flex; flex-direction:column;
  gap:20px; min-width:0; box-sizing:border-box; scroll-margin-top:100px; }
body.tt-v2 .v2-formcard__head h2{ margin:8px 0 0; font-family:var(--disp); font-weight:500; font-size:clamp(32px,3.6vw,48px);
  letter-spacing:-.045em; line-height:1; color:var(--ink); }
body.tt-v2 .v2-formcard__head p{ margin:10px 0 0; font-size:16px; line-height:1.5; color:var(--ink-2); }

body.tt-v2 .v2-formcard .form{ background:transparent; border:0; border-radius:0; padding:0; position:relative; }
body.tt-v2 .v2-formcard .frow{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:0 14px; }
body.tt-v2 .v2-formcard .field{ display:flex; flex-direction:column; gap:6px; margin:0 0 16px; min-width:0; }
body.tt-v2 .v2-formcard .field label{ font-size:14px; font-weight:700; color:var(--ink); }
body.tt-v2 .v2-formcard .field label .req{ color:inherit; }
body.tt-v2 .v2-formcard .field input,
body.tt-v2 .v2-formcard .field select,
body.tt-v2 .v2-formcard .field textarea{ width:100%; box-sizing:border-box; padding:15px 16px; border-radius:var(--tt-r-btn); background-color:var(--bg);
  border:1.5px solid rgba(24,39,31,.1); font-family:inherit; font-size:16px; font-weight:400; color:var(--ink); box-shadow:none;
  transition:border-color .2s, box-shadow .2s; }
body.tt-v2 .v2-formcard .field textarea{ min-height:118px; resize:vertical; }
body.tt-v2 .v2-formcard .field input::placeholder,
body.tt-v2 .v2-formcard .field textarea::placeholder{ color:#8a968e; }
body.tt-v2 .v2-formcard .field input:focus,
body.tt-v2 .v2-formcard .field select:focus,
body.tt-v2 .v2-formcard .field textarea:focus{ outline:none; border-color:var(--green); box-shadow:0 0 0 3px rgba(47,158,112,.16); }
body.tt-v2 .v2-formcard .field.err input,
body.tt-v2 .v2-formcard .field.err select,
body.tt-v2 .v2-formcard .field.err textarea{ border-color:var(--pop); background-color:var(--bg); }
body.tt-v2 .v2-formcard .field .msg{ font-size:13px; font-weight:500; color:#c94e2a; }

body.tt-v2 .v2-formcard .topics{ display:flex; flex-wrap:wrap; gap:6px; }
body.tt-v2 .v2-formcard .topic{ padding:11px 18px; border-radius:var(--tt-r-btn); border:1.5px solid rgba(24,39,31,.15); background:transparent;
  color:var(--ink); font-family:inherit; font-size:15px; font-weight:600; line-height:1.2; cursor:pointer; transition:all .2s; }
body.tt-v2 .v2-formcard .topic.on{ background:var(--ink); border-color:var(--ink); color:var(--bg); }

/* The real checkbox, drawn as the design's rounded box. */
body.tt-v2 .v2-formcard .consent{ display:flex; gap:12px; align-items:flex-start; margin:4px 0 20px; font-size:15px; line-height:1.45;
  font-weight:400; color:var(--ink); cursor:pointer; }
body.tt-v2 .v2-formcard .consent input{ -webkit-appearance:none; appearance:none; flex:none; width:22px; height:22px; margin:1px 0 0;
  border-radius:7px; border:1.5px solid rgba(24,39,31,.3); background:transparent center/12px no-repeat; cursor:pointer;
  transition:background-color .2s, border-color .2s; }
body.tt-v2 .v2-formcard .consent input:checked{ background-color:var(--green); border-color:var(--green);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FBF9F3' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
body.tt-v2 .v2-formcard .consent input:focus-visible{ outline:2px solid var(--green); outline-offset:3px; }

body.tt-v2 .v2-formcard .form .send{ width:auto; padding:18px 30px; border:0; border-radius:var(--tt-r-btn); background:var(--green); color:var(--surface);
  font-family:inherit; font-size:17px; font-weight:700; cursor:pointer; transition:background .2s; }
body.tt-v2 .v2-formcard .form .send:disabled{ opacity:.55; cursor:default; }
body.tt-v2 .v2-formcard .form-fail{ margin:0 0 16px; padding:12px 16px; border-radius:16px; background:#fbe3da; color:#9b2f12; font-size:15px; }

/* Success: Ťapko beside the message. Only .show displays it (old rule). */
body.tt-v2 .v2-formcard .sent.show{ flex-direction:row; flex-wrap:wrap; align-items:center; gap:24px; padding:20px 0; text-align:left; }
body.tt-v2 .v2-formcard .sent .v2-tapko{ --s:.75; }
body.tt-v2 .v2-sent__text{ flex:1 1 260px; display:flex; flex-direction:column; align-items:flex-start; gap:10px; }
body.tt-v2 .v2-formcard .sent h3{ margin:0; font-family:var(--disp); font-weight:500; font-size:36px; letter-spacing:-.04em; line-height:1.05; color:var(--ink); }
body.tt-v2 .v2-formcard .sent p{ margin:0; max-width:none; font-size:16px; font-weight:400; line-height:1.55; color:var(--ink-2); }
body.tt-v2 .v2-formcard .sent .btn{ padding:12px 20px; border-radius:var(--tt-r-btn); border:1.5px solid var(--ink); background:transparent; color:var(--ink);
  font-family:inherit; font-size:15px; font-weight:700; cursor:pointer; transition:background .2s, color .2s; }

@media (hover:hover){
  body.tt-v2 .v2-formcard .topic:not(.on):hover{ border-color:var(--ink); }
  body.tt-v2 .v2-formcard .form .send:not(:disabled):hover{ background:var(--green-ink); }
  body.tt-v2 .v2-formcard .sent .btn:hover{ background:var(--ink); color:var(--bg); }
}

/* ---------- FAQ ----------
   <details>, so it opens without JS; the round "+" turns into "×" when open. */
body.tt-v2 .v2-faq details{ border-top:1.5px solid var(--ink); background:transparent; border-radius:0; }
body.tt-v2 .v2-faq summary{ list-style:none; cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:16px;
  padding:22px 0; font-family:var(--disp); font-weight:500; font-size:clamp(20px,2.2vw,26px); letter-spacing:-.02em; line-height:1.2; color:var(--ink); }
body.tt-v2 .v2-faq summary::-webkit-details-marker{ display:none; }
body.tt-v2 .v2-faq summary::marker{ content:""; }
body.tt-v2 .v2-faq__pm{ flex:none; width:40px; height:40px; border-radius:50%; display:grid; place-items:center; background:var(--surface);
  color:var(--ink); transition:all .3s; }
body.tt-v2 .v2-faq__pm svg{ width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; }
body.tt-v2 .v2-faq details[open] .v2-faq__pm{ background:var(--green); color:var(--surface); rotate:45deg; }
body.tt-v2 .v2-faq__a{ margin:0 0 22px; padding:0; max-width:720px; font-size:17px; line-height:1.6; color:var(--ink-2); }
@media (hover:hover){
  body.tt-v2 .v2-faq summary:hover .v2-faq__pm{ background:var(--lime); }
  body.tt-v2 .v2-faq details[open] summary:hover .v2-faq__pm{ background:var(--green-ink); }
}
body.tt-v2 .v2-ct-faqsec{ max-width:1000px; }
body.tt-v2 .v2-ct-faqhead{ margin-bottom:20px; }
body.tt-v2 .v2-ct-faqhead h2{ margin:8px 0 0; font-family:var(--disp); font-weight:500; font-size:clamp(32px,4vw,56px); letter-spacing:-.045em;
  line-height:1; color:var(--ink); }

/* ---------- emergency CTA ---------- */
body.tt-v2 .v2-ct-sos{ position:relative; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:24px;
  background:var(--pop); color:var(--surface); border-radius:var(--tt-r); padding:clamp(28px,5vw,64px); overflow:hidden;
  text-decoration:none; }
body.tt-v2 .v2-ct-sos__text{ display:flex; flex-direction:column; gap:12px; max-width:620px; position:relative; z-index:1; }
body.tt-v2 .v2-ct-sos h2{ margin:0; font-family:var(--disp); font-weight:500; font-size:clamp(36px,4.6vw,64px); line-height:.95;
  letter-spacing:-.05em; color:var(--surface); }
body.tt-v2 .v2-ct-sos p{ margin:0; font-size:18px; line-height:1.55; color:rgba(251,249,243,.9); }
body.tt-v2 .v2-ct-sos__btn{ position:relative; z-index:1; display:inline-flex; align-items:center; gap:12px; padding:20px 30px;
  border-radius:var(--tt-r-btn); background:var(--surface); color:#b5431f; font-weight:700; font-size:18px;
  transition:all .3s cubic-bezier(.3,1.5,.5,1); }
body.tt-v2 .v2-ct-sos__pic{ position:absolute; right:30%; bottom:-90px; width:180px; height:180px; border-radius:50%; object-fit:cover;
  border:6px solid var(--surface); transition:translate .6s cubic-bezier(.3,1.5,.5,1), rotate .6s; }
body.tt-v2 .v2-ct-sos:focus-visible{ outline-offset:4px; }
/* The photo peeks from the bottom edge between text and button; on a narrow
   card those stack and the photo would sit on the text. */
@media (max-width:900px){
  body.tt-v2 .v2-ct-sos__pic{ display:none; }
}

/* ---------- Ťapko (design/Tapko.dc.html) ----------
   A 200px stage scaled by --s, as in the design, so the toe offsets stay in the
   design's own pixels. The toes hop with a stagger on hover (data-fx). */
body.tt-v2 .v2-tapko{ --s:1; --tk:var(--green); --tk-ink:var(--surface); position:relative; flex:none;
  width:calc(200px * var(--s)); height:calc(200px * var(--s)); }
body.tt-v2 .v2-tapko__in{ position:absolute; left:0; top:0; width:200px; height:200px; transform:scale(var(--s)); transform-origin:0 0;
  display:grid; place-items:center; cursor:pointer; }
body.tt-v2 .v2-tapko__look{ transition:transform .5s cubic-bezier(.2,.8,.2,1); }
body.tt-v2 .v2-tapko__tile{ position:relative; width:170px; height:170px; border-radius:48px; background:var(--tk);
  box-shadow:0 30px 40px -24px rgba(21,52,39,.55), inset 0 -8px 0 rgba(0,0,0,.1);
  transition:scale .4s cubic-bezier(.3,1.8,.5,1), border-radius .4s; }
body.tt-v2 .v2-tapko__toe,
body.tt-v2 .v2-tapko__pad{ position:absolute; border-radius:50%; background:var(--tk-ink); }
body.tt-v2 .v2-tapko__toe{ transition:translate .4s cubic-bezier(.3,1.9,.5,1); }
body.tt-v2 .v2-tapko__toe--1{ left:23px; top:62px; width:29px; height:29px; }
body.tt-v2 .v2-tapko__toe--2{ left:48px; top:32px; width:32px; height:32px; transition-delay:.05s; }
body.tt-v2 .v2-tapko__toe--3{ left:90px; top:32px; width:32px; height:32px; transition-delay:.1s; }
body.tt-v2 .v2-tapko__toe--4{ left:118px; top:62px; width:29px; height:29px; transition-delay:.15s; }
body.tt-v2 .v2-tapko__pad{ left:50px; top:79px; width:70px; height:58px; }
