/* Taskado Website — hand-written rules on top of the generated design.css:
   language menu, 404 page and the responsive layout (tablet + mobile).
   The design uses inline styles, so responsive overrides need !important. */

.tw-page {
  overflow-x: clip;
}

/* Anchor targets stay visible below the sticky header. */
section[id] {
  scroll-margin-top: 64px;
}

#twLangMenu:not([hidden]) {
  display: flex;
}

.tw-lang-item[aria-current="true"] {
  background: rgba(79, 155, 74, 0.12) !important;
  color: #f4f3ef !important;
}

.tw-lang-item:hover {
  background: rgba(79, 155, 74, 0.12) !important;
}

.tw-lang-item:not([aria-current="true"]) .tw-lang-check {
  visibility: hidden;
}

.tw-nav-login {
  display: none;
}

.tw-feature > *,
.tw-hero > *,
.tw-app > * {
  min-width: 0;
}

/* Hero: radial menu of the "Neu" button — smaller circles, so they don't overlap */
.tw-fab-opt > span:first-child {
  width: 44px !important;
  height: 44px !important;
}

.tw-fab-opt > span:first-child > span:first-child {
  font-size: 21px !important;
}

.tw-fab-opt > span:first-child > span + span {
  transform: scale(0.85);
}

/* 39 Desktop view: looks like a monitor (bezel + stand) */
.tw-monitor {
  position: relative;
  border: 10px solid #1c1c20 !important;
  border-radius: 14px !important;
  box-shadow: 0 0 0 1px #2a2a2e, 0 30px 70px rgba(0, 0, 0, 0.55) !important;
  margin-bottom: 64px;
}

.tw-monitor::before {
  content: '';
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  width: 22%;
  height: 40px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #1a1a1d, #232327);
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
}

.tw-monitor::after {
  content: '';
  position: absolute;
  left: 50%;
  top: calc(100% + 48px);
  width: 40%;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #2c2c31, #18181b);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* 11 Key pad (no maker logo, generic hardware look) */
.tw-keypad {
  position: relative;
  padding: 16px !important;
  border-radius: 20px !important;
  border: 1px solid #2a2a2e !important;
  background: linear-gradient(180deg, #232327, #0e0e10) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 30px rgba(0, 0, 0, 0.55);
  margin-bottom: 30px !important;
}

.tw-keypad::after {
  content: '';
  position: absolute;
  left: 18%;
  right: 18%;
  top: 100%;
  height: 16px;
  background: linear-gradient(180deg, #2c2c31, #141417);
  clip-path: polygon(4% 0, 96% 0, 100% 100%, 0 100%);
}

.tw-keypad > div {
  border-radius: 8px !important;
  border: 1px solid rgba(0, 0, 0, 0.6) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 2px 0 #050506;
}

/* 43 Smartwatch: strap + crown around the round display */
.tw-watch-wrap {
  position: relative;
  padding: 34px 0 40px !important;
}

.tw-watch-wrap::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 6px;
  width: 128px;
  transform: translateX(-50%);
  border-radius: 22px;
  background: repeating-linear-gradient(180deg, #1f1f23 0 10px, #19191c 10px 12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.tw-watch {
  position: relative;
  z-index: 1;
}

.tw-watch::after {
  content: '';
  position: absolute;
  right: -17px;
  top: 50%;
  width: 9px;
  height: 30px;
  transform: translateY(-50%);
  border-radius: 3px;
  background: linear-gradient(90deg, #2a2a2e, #3a3a40);
}

/* Waiting list dialog (assets/js/waitlist.js) */
.tw-wl-open,
.tw-wl-open body {
  overflow: hidden;
}

.tw-wl {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  font-family: 'Manrope', sans-serif;
  color: #f4f3ef;
}

.tw-wl[hidden] {
  display: none;
}

.tw-wl-box {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 32px 28px 28px;
  border-radius: 20px;
  background: #131316;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.tw-wl-icon {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-size: 20px;
  line-height: 1;
}

.tw-wl-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: #17171a;
  color: #cbc9c2;
  cursor: pointer;
}

.tw-wl-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.tw-wl h2 {
  margin: 14px 0 8px;
  font-size: 26px;
  font-weight: 700;
}

.tw-wl-text {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.6;
  color: #cbc9c2;
}

.tw-wl-perk {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 20px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(79, 155, 74, 0.10);
  border: 1px solid rgba(79, 155, 74, 0.35);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  text-align: start;
}

.tw-wl-perk .tw-wl-icon {
  color: #c9a54d;
  font-size: 22px;
}

.tw-wl-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: start;
}

.tw-wl-form[hidden],
.tw-wl-done[hidden],
.tw-wl-msg[hidden] {
  display: none;
}

.tw-wl-form input[type="email"] {
  box-sizing: border-box;
  width: 100%;
  padding: 13px 14px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0a0a0c;
  color: #f4f3ef;
  font-family: inherit;
  font-size: 16px;
}

.tw-wl-form input[type="email"]:focus {
  outline: none;
  border-color: #4f9b4a;
}

/* Bot trap (honeypot): off-screen, not reachable by keyboard */
.tw-wl-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.tw-wl-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
  color: #8a877e;
  cursor: pointer;
}

.tw-wl-consent input {
  margin: 2px 0 0;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #4f9b4a;
}

.tw-wl-msg {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #e07a52;
}

.tw-wl-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 11px;
  border: none;
  background: #4f9b4a;
  color: #0f1a0e;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.tw-wl-submit:hover {
  background: #5cab56;
}

.tw-wl-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.tw-wl-done h3 {
  margin: 6px 0 8px;
  font-size: 22px;
}

.tw-wl-done p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #cbc9c2;
}

.tw-wl-done-icon {
  font-size: 44px;
  color: #4f9b4a;
}

/* Confirmation page of the waiting list (/warteliste/bestaetigen) */
.tw-confirm .tw-confirm-icon {
  font-size: 48px;
  color: #4f9b4a;
}

.tw-confirm .tw-confirm-link[hidden] {
  display: none;
}

/* 404 */
.tw-notfound {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.tw-notfound h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
}

.tw-notfound p {
  margin: 0;
  font-size: 16px;
  color: #8a877e;
}

.tw-notfound a {
  padding: 14px 26px;
  border-radius: 11px;
  background: #4f9b4a;
  color: #0f1a0e;
  font-weight: 700;
}

/* Impressum / Datenschutz */
.tw-legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px 88px;
  font-size: 15px;
  line-height: 1.7;
  color: #cbc9c2;
  overflow-wrap: break-word;
}

.tw-legal h1 {
  margin: 0 0 32px;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #f4f3ef;
}

.tw-legal h2 {
  margin: 44px 0 12px;
  font-size: 24px;
  font-weight: 700;
  color: #f4f3ef;
}

.tw-legal h3 {
  margin: 28px 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: #f4f3ef;
}

.tw-legal h4 {
  margin: 20px 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #c9a54d;
}

.tw-legal p,
.tw-legal ul {
  margin: 0 0 14px;
}

.tw-legal ul {
  padding-inline-start: 22px;
}

.tw-legal strong {
  color: #f4f3ef;
}

/* One block per language; <html lang> (set by the language menu) picks it. */
.tw-legal-lang {
  display: none;
}

html[lang="de"] .tw-legal-lang[data-lang="de"],
html[lang="en"] .tw-legal-lang[data-lang="en"],
html[lang="fr"] .tw-legal-lang[data-lang="fr"],
html[lang="es"] .tw-legal-lang[data-lang="es"],
html[lang="it"] .tw-legal-lang[data-lang="it"],
html[lang="pl"] .tw-legal-lang[data-lang="pl"],
html[lang="tr"] .tw-legal-lang[data-lang="tr"],
html[lang="uk"] .tw-legal-lang[data-lang="uk"],
html[lang="ru"] .tw-legal-lang[data-lang="ru"],
html[lang="ar"] .tw-legal-lang[data-lang="ar"],
html[lang="he"] .tw-legal-lang[data-lang="he"] {
  display: block;
}

.tw-legal-note {
  padding: 10px 14px;
  border-radius: 11px;
  border: 1px solid rgba(201, 165, 77, 0.35);
  background: rgba(201, 165, 77, 0.08);
  font-size: 13px;
  color: #c9a54d;
}

.tw-legal-back {
  margin-top: 48px !important;
}

.tw-legal-back a {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #f4f3ef;
  font-weight: 600;
}

.tw-legal-back a:hover {
  border-color: rgba(79, 155, 74, 0.40);
  color: #f4f3ef;
}

/* Separator between feature rows (the design's own borders are removed by
   convert-design.js, because the order changed). */
.tw-feature + .tw-feature {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Features alternate text/mockup; rows marked tw-flip by convert-design.js
   swap their columns (desktop only — on smaller screens text comes first). */
@media (min-width: 961px) {
  .tw-flip > :first-child {
    order: 2;
  }
}

/* ── Tablet ────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .tw-hero,
  .tw-app,
  .tw-feature {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .tw-hero {
    padding-top: 64px !important;
    padding-bottom: 56px !important;
  }

  .tw-hero > div:first-child {
    align-items: center;
    text-align: center;
  }

  .tw-hero > div:first-child > div,
  .tw-hero > div:first-child > p {
    align-self: center !important;
  }

  .tw-hero .tw-wrap {
    justify-content: center;
  }

  /* Text first, mockup second — also where the design puts the mockup left. */
  .tw-feature > div:has(> h3) {
    order: -1;
  }

  .tw-feature {
    padding: 44px 0 !important;
  }

  .tw-app > div:first-child {
    order: 1;
  }

  .tw-cards {
    grid-template-columns: 1fr !important;
    max-width: 480px !important;
    margin-left: auto;
    margin-right: auto;
  }

  #preise .tw-cards {
    gap: 28px !important;
  }

  .tw-h1 {
    font-size: 46px !important;
  }
}

/* ── Mobile ────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .tw-head {
    padding: 0 16px !important;
    gap: 10px !important;
  }

  .tw-head > div {
    gap: 8px !important;
  }

  .tw-head > div > a {
    padding: 8px 12px !important;
    font-size: 13px !important;
  }

  #twLangBtn {
    padding: 8px 10px !important;
  }

  .tw-burger {
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
  }

  /* Mockup cards: padding inside the width, so they keep the side gutter. */
  .tw-feature > div,
  .tw-phone {
    box-sizing: border-box;
  }

  /* Desktop mockup: detail panel below the list instead of beside it. */
  .tw-desk-grid {
    grid-template-columns: 1fr !important;
  }

  .tw-actionbar {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 8px !important;
    max-width: 100%;
    border-radius: 18px !important;
    padding: 8px 10px !important;
  }

  .tw-burger {
    display: inline-flex !important;
  }

  .tw-login,
  .tw-lang-name {
    display: none !important;
  }

  .tw-nav {
    display: none !important;
  }

  .tw-header.tw-menu-open .tw-nav {
    display: flex !important;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 8px 16px 16px;
    background: #0a0a0c;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 16px !important;
  }

  .tw-header.tw-menu-open .tw-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .tw-nav-login {
    display: block;
  }

  .tw-sec {
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }

  .tw-hero {
    padding-top: 40px !important;
  }

  .tw-h1 {
    font-size: 38px !important;
    letter-spacing: -0.5px !important;
  }

  .tw-h2 {
    font-size: 28px !important;
  }

  .tw-h3 {
    font-size: 22px !important;
  }

  .tw-wrap {
    flex-wrap: wrap;
    row-gap: 10px !important;
  }

  .tw-hero .tw-wrap > a {
    flex: 1 1 auto;
    text-align: center;
  }

  .tw-phone {
    width: 100% !important;
    max-width: 336px;
  }

  .tw-foot {
    flex-direction: column;
    text-align: center;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .tw-notfound {
    padding: 80px 16px;
  }

  .tw-legal {
    padding: 48px 16px 64px;
  }

  .tw-legal h1 {
    font-size: 30px;
  }

  .tw-legal h2 {
    font-size: 21px;
  }

  .tw-foot nav {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 10px !important;
  }

  .tw-notfound h1 {
    font-size: 30px;
  }
}

/* ── Very small phones ─────────────────────────────────────────────── */
@media (max-width: 380px) {
  .tw-head > a > span {
    display: none;
  }
}
