/* =========================================================
   TIBOLIN KUNDENKONTO – Version 2.0
   Gleiche Gestaltung wie die Website:
   Navy = Auswahl, Orange = Aktion, Linien statt Schatten.
========================================================= */

body.tkd-account {
  --tkd-orange: #f28c28;
  --tkd-orange-deep: #d96a0e;
  --tkd-orange-hover: #c25c08;
  --tkd-navy: #101b32;
  --tkd-text: #3f4b60;
  --tkd-muted: #6b7587;
  --tkd-line: #e6e1dc;
  --tkd-field: #c9d1dc;
  --tkd-paper: #fffaf6;
  --tkd-cream: #fff0e2;
  --tkd-row: #f3f7fb;
  --tkd-green: #1f7a4d;
  --tkd-red: #b23a2b;
  --tkd-font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  background: var(--tkd-paper);
}

body.tkd-account .woocommerce,
body.tkd-account .woocommerce * { box-sizing: border-box; }

body.tkd-account .woocommerce {
  color: var(--tkd-text);
  font-family: var(--tkd-font);
}

.tkd-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================
   LAYOUT: Seitenleiste + Inhalt
========================================================= */
body.tkd-account.logged-in .woocommerce {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 3vw, 40px);
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) 0;
}

body.tkd-account.logged-in .woocommerce::before,
body.tkd-account.logged-in .woocommerce::after { content: none !important; display: none !important; }

body.tkd-account .woocommerce-MyAccount-content {
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  float: none !important;
  margin: 0 !important;
}

/* WooCommerce-Standardtext „Hallo … (nicht …? Abmelden)“ nur auf der Übersicht ausblenden */
body.tkd-home .woocommerce-MyAccount-content > p { display: none !important; }

/* ---------- Seitenleiste ---------- */
.tkd-side {
  position: sticky;
  top: 24px;
  overflow: hidden;
  border: 1px solid var(--tkd-line);
  border-radius: 20px;
  background: #fff;
}

.tkd-side__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--tkd-line);
}
.tkd-side__avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tkd-navy);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.tkd-side__who { min-width: 0; }
.tkd-side__who strong {
  display: block;
  color: var(--tkd-navy);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.tkd-side__who small {
  display: block;
  overflow: hidden;
  color: var(--tkd-muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.tkd-account .woocommerce-MyAccount-navigation {
  position: static !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  float: none !important;
  margin: 0 !important;
  padding: 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.tkd-account .woocommerce-MyAccount-navigation::before,
body.tkd-account .woocommerce-MyAccount-navigation::after { content: none !important; display: none !important; }

/* Vom Theme eingefügte Begrüßungen/Avatare in der Navigation ausblenden */
body.tkd-account .woocommerce-MyAccount-navigation > p,
body.tkd-account .woocommerce-MyAccount-navigation img.avatar,
body.tkd-account .woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--customer-avatar,
body.tkd-account .woocommerce-MyAccount-navigation > div:not(.tkd-side__head) { display: none !important; }

body.tkd-account .woocommerce-MyAccount-navigation ul {
  display: grid;
  gap: 2px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
body.tkd-account .woocommerce-MyAccount-navigation li {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  list-style: none !important;
}
body.tkd-account .woocommerce-MyAccount-navigation li a {
  display: flex !important;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px !important;
  border-radius: 10px;
  background: transparent;
  color: var(--tkd-navy) !important;
  font-family: var(--tkd-font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background-color 150ms ease, color 150ms ease;
}
body.tkd-account .woocommerce-MyAccount-navigation li a:hover { background: var(--tkd-row); }

body.tkd-account .woocommerce-MyAccount-navigation li.is-active a {
  background: var(--tkd-navy) !important;
  color: #fff !important;
  font-weight: 600;
}

body.tkd-account .woocommerce-MyAccount-navigation-link--customer-logout {
  margin-top: 6px !important;
  padding-top: 6px !important;
  border-top: 1px solid var(--tkd-line) !important;
}
body.tkd-account .woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--tkd-muted) !important; }

/* Icons je Menüpunkt (über Maske, erben die Textfarbe) */
body.tkd-account .woocommerce-MyAccount-navigation li a::before {
  content: "";
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: var(--tkd-ico, none) center / contain no-repeat;
          mask: var(--tkd-ico, none) center / contain no-repeat;
  opacity: 0.85;
}
.woocommerce-MyAccount-navigation-link--dashboard { --tkd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='9' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='5' rx='1.5'/%3E%3Crect x='14' y='12' width='7' height='9' rx='1.5'/%3E%3Crect x='3' y='16' width='7' height='5' rx='1.5'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--fooevents-tickets { --tkd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8a2 2 0 0 0 2-2h14a2 2 0 0 0 2 2v2a2 2 0 0 0 0 4v2a2 2 0 0 0-2 2H5a2 2 0 0 0-2-2v-2a2 2 0 0 0 0-4z'/%3E%3Cpath d='M14 6v12'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--bookings { --tkd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--orders { --tkd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18l-3-2-3 2-3-2-3 2z'/%3E%3Cpath d='M9 8h6M9 12h6M9 16h3'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--tibolin-ticketboerse { --tkd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h12l-3-3M17 17H5l3 3'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--points-and-rewards { --tkd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='m12 3 2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1L3.2 9.5l6.1-.9z'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--downloads { --tkd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11h16v10H4zM3 7h18v4H3zM12 7v14'/%3E%3Cpath d='M12 7c-2-3-6-3-6-.5S10 7 12 7zm0 0c2-3 6-3 6-.5S14 7 12 7z'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--support-ticket { --tkd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a3 3 0 0 1-3 3H8l-5 3V6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3z'/%3E%3Cpath d='M8 9h8M8 13h5'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--communication-preferences { --tkd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 16V11a6 6 0 0 1 12 0v5l2 2H4z'/%3E%3Cpath d='M10 20a2 2 0 0 0 4 0'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--edit-account { --tkd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--edit-address { --tkd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 9-7 9 7'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M10 20v-6h4v6'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--customer-logout { --tkd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 4h4v16h-4M10 8l-4 4 4 4M6 12h10'/%3E%3C/svg%3E"); }

/* =========================================================
   BAUSTEINE
========================================================= */
.tkd h2, .tkd h3, .tkd p, .tkd ul, .tkd dl, .tkd dd { margin: 0; }

.tkd-kicker {
  margin: 0 0 8px !important;
  color: var(--tkd-orange-deep) !important;
  font-family: var(--tkd-font);
  font-size: 14px;
  font-weight: 700;
}

.tkd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid transparent;
  border-radius: 12px;
  font-family: var(--tkd-font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.tkd-btn .tkd-icon { width: 18px; height: 18px; }
.tkd-btn--primary { background: var(--tkd-orange-deep); color: #fff !important; }
.tkd-btn--primary:hover { background: var(--tkd-orange-hover); }
.tkd-btn--light { border-color: #fff; background: transparent; color: #fff !important; }
.tkd-btn--light:hover { background: #fff; color: var(--tkd-navy) !important; }
.tkd-btn--ghost { border-color: var(--tkd-line); background: #fff; color: var(--tkd-navy) !important; }
.tkd-btn--ghost:hover { border-color: var(--tkd-navy); }

body.tkd-account a:focus-visible,
body.tkd-account button:focus-visible {
  outline: 3px solid var(--tkd-orange) !important;
  outline-offset: 2px;
}

/* =========================================================
   ÜBERSICHT
========================================================= */
.tkd { display: grid; gap: clamp(20px, 3vw, 28px); font-family: var(--tkd-font); }

/* ---------- Kopf ---------- */
.tkd-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  overflow: hidden;
  border: 1px solid var(--tkd-line);
  border-radius: 20px;
  background: #fff;
}

.tkd-hero__intro { padding: clamp(24px, 4vw, 40px); }

.tkd-hero h2 {
  color: var(--tkd-navy) !important;
  font-family: var(--tkd-font) !important;
  font-size: clamp(32px, 4.5vw, 48px) !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.03em !important;
}

.tkd-hero__lead {
  max-width: 460px;
  margin-top: 12px !important;
  color: var(--tkd-text) !important;
  font-size: 16px;
  line-height: 1.6;
}

.tkd-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 28px !important;
  border-top: 1px solid var(--tkd-line);
}
.tkd-stats > div {
  min-width: 120px;
  padding: 16px 24px 0 0;
  margin-right: 24px;
}
.tkd-stats > div + div { padding-left: 24px; border-left: 1px solid var(--tkd-line); }
.tkd-stats dt {
  color: var(--tkd-muted);
  font-size: 13px;
  font-weight: 500;
}
.tkd-stats dd a {
  display: inline-block;
  margin-top: 2px;
  color: var(--tkd-navy) !important;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-decoration: none !important;
  font-variant-numeric: tabular-nums;
}
.tkd-stats dd a:hover { color: var(--tkd-orange-deep) !important; }

/* Nächster Besuch */
.tkd-next {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 3.5vw, 32px);
  background: var(--tkd-navy);
  color: #fff;
}
.tkd-next__label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 14px;
  font-weight: 500;
}
.tkd-next__when {
  color: var(--tkd-orange) !important;
  font-weight: 700;
}
.tkd-next__date {
  margin-top: 14px !important;
  color: #fff !important;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.tkd-next__time {
  margin-top: 4px !important;
  color: #fff !important;
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.tkd-next__what {
  margin-top: 10px !important;
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 15px;
  line-height: 1.5;
}
.tkd-next .tkd-btn { margin-top: auto; }
.tkd-next__what + .tkd-btn { margin-top: 22px; }

/* ---------- Schnellzugriff ---------- */
.tkd-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.tkd-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 168px;
  padding: 20px;
  border: 1px solid var(--tkd-line);
  border-radius: 16px;
  background: #fff;
  color: var(--tkd-navy) !important;
  text-decoration: none !important;
  transition: border-color 150ms ease;
}
.tkd-tile:hover { border-color: var(--tkd-navy); }
.tkd-tile__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--tkd-cream);
  color: var(--tkd-orange-deep);
}
.tkd-tile__icon .tkd-icon { width: 22px; height: 22px; }
.tkd-tile__title {
  margin-top: auto;
  padding-top: 18px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}
.tkd-tile__text {
  margin-top: 4px;
  color: var(--tkd-muted);
  font-size: 13px;
  line-height: 1.45;
}
.tkd-tile__arrow {
  position: absolute;
  top: 20px;
  right: 18px;
  color: var(--tkd-muted);
  transition: color 150ms ease;
}
.tkd-tile:hover .tkd-tile__arrow { color: var(--tkd-navy); }

/* ---------- Blöcke ---------- */
.tkd-block {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--tkd-line);
  border-radius: 20px;
  background: #fff;
}
.tkd-block__title {
  padding-bottom: 12px !important;
  border-bottom: 2px solid var(--tkd-navy);
  color: var(--tkd-navy) !important;
  font-family: var(--tkd-font) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

.tkd-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 28px);
}

/* Weitere Termine */
.tkd-visits, .tkd-links { padding: 0 !important; list-style: none !important; }
.tkd-visits li, .tkd-links li { margin: 0 !important; border-bottom: 1px solid var(--tkd-line); }
.tkd-visits li:last-child, .tkd-links li:last-child { border-bottom: 0; }

.tkd-visits a,
.tkd-links a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 12px 4px;
  color: var(--tkd-navy) !important;
  text-decoration: none !important;
}
.tkd-visits a > .tkd-icon,
.tkd-links a > .tkd-icon {
  margin-left: auto;
  color: var(--tkd-muted);
  transition: transform 150ms ease, color 150ms ease;
}
.tkd-visits a:hover > .tkd-icon,
.tkd-links a:hover > .tkd-icon { color: var(--tkd-navy); transform: translateX(2px); }

.tkd-visits__day {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border: 2px solid var(--tkd-navy);
  border-radius: 12px;
  line-height: 1;
}
.tkd-visits__day strong { font-size: 18px; font-weight: 800; }
.tkd-visits__day small { margin-top: -6px; color: var(--tkd-muted); font-size: 11px; font-weight: 600; }

.tkd-visits__text strong,
.tkd-links__text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
.tkd-visits__text small,
.tkd-links__text small {
  display: block;
  color: var(--tkd-muted);
  font-size: 13px;
  line-height: 1.4;
}

.tkd-links__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--tkd-row);
  color: var(--tkd-navy);
}
.tkd-links__icon .tkd-icon { width: 18px; height: 18px; }

/* Abschluss */
.tkd-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 4px 0 0;
}
.tkd-foot p {
  max-width: 640px;
  padding-left: 12px;
  border-left: 3px solid var(--tkd-orange-deep);
  color: var(--tkd-text) !important;
  font-size: 14px;
  line-height: 1.55;
}

/* =========================================================
   WOOCOMMERCE-SEITEN IM KONTO
========================================================= */
body.tkd-account .woocommerce-MyAccount-content h2,
body.tkd-account .woocommerce-MyAccount-content h3 {
  color: var(--tkd-navy);
  font-family: var(--tkd-font);
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Hinweise */
body.tkd-account .woocommerce-message,
body.tkd-account .woocommerce-info,
body.tkd-account .woocommerce-error {
  margin: 0 0 20px !important;
  padding: 14px 16px 14px 18px !important;
  border: 0 !important;
  border-left: 4px solid var(--tkd-navy) !important;
  border-radius: 0 12px 12px 0 !important;
  background: #fff !important;
  color: var(--tkd-navy) !important;
  font-size: 15px;
  box-shadow: none !important;
}
body.tkd-account .woocommerce-message { border-left-color: var(--tkd-green) !important; }
body.tkd-account .woocommerce-error { border-left-color: var(--tkd-red) !important; background: #fbeceb !important; }
body.tkd-account .woocommerce-message::before,
body.tkd-account .woocommerce-info::before,
body.tkd-account .woocommerce-error::before { display: none !important; }

/* Buttons */
body.tkd-account .woocommerce .button,
body.tkd-account .woocommerce button.button,
body.tkd-account .woocommerce input.button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--tkd-orange-deep) !important;
  color: #fff !important;
  font-family: var(--tkd-font) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  text-transform: none !important;
  box-shadow: none !important;
  transition: background-color 150ms ease;
}
body.tkd-account .woocommerce .button:hover { background: var(--tkd-orange-hover) !important; }

/* „Ansehen“ in Tabellen ist eine Nebenaktion */
body.tkd-account .woocommerce .button.view,
body.tkd-account .woocommerce .woocommerce-button.view {
  border: 2px solid var(--tkd-navy) !important;
  background: #fff !important;
  color: var(--tkd-navy) !important;
}
body.tkd-account .woocommerce .button.view:hover { background: var(--tkd-navy) !important; color: #fff !important; }

/* Tabellen (Bestellungen, Downloads, Buchungen) */
body.tkd-account .woocommerce-MyAccount-content table.shop_table,
body.tkd-account .woocommerce-MyAccount-content table.woocommerce-orders-table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--tkd-line) !important;
  border-collapse: separate !important;
  border-spacing: 0;
  border-radius: 16px !important;
  background: #fff;
}
body.tkd-account .woocommerce-MyAccount-content table.shop_table th {
  padding: 14px 16px !important;
  border: 0 !important;
  border-bottom: 2px solid var(--tkd-navy) !important;
  background: #fff;
  color: var(--tkd-navy);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  text-transform: none;
}
body.tkd-account .woocommerce-MyAccount-content table.shop_table td {
  padding: 14px 16px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--tkd-line) !important;
  color: var(--tkd-text);
  font-size: 15px;
  vertical-align: middle;
}
body.tkd-account .woocommerce-MyAccount-content table.shop_table tbody tr:nth-child(even) td { background: var(--tkd-row); }
body.tkd-account .woocommerce-MyAccount-content table.shop_table tbody tr:last-child td { border-bottom: 0 !important; }
body.tkd-account .woocommerce-orders-table__cell-order-number a {
  color: var(--tkd-navy) !important;
  font-weight: 700;
  text-decoration: none !important;
}

/* Formulare */
body.tkd-account .woocommerce form .form-row label {
  color: var(--tkd-navy);
  font-size: 15px;
  font-weight: 600;
}
body.tkd-account .woocommerce input[type="text"],
body.tkd-account .woocommerce input[type="email"],
body.tkd-account .woocommerce input[type="tel"],
body.tkd-account .woocommerce input[type="password"],
body.tkd-account .woocommerce select,
body.tkd-account .woocommerce textarea,
body.tkd-account .woocommerce .select2-selection--single {
  min-height: 50px;
  padding: 12px 14px !important;
  border: 1px solid var(--tkd-field) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--tkd-navy) !important;
  font-family: var(--tkd-font) !important;
  font-size: 16px !important;
  box-shadow: none !important;
}
body.tkd-account .woocommerce input:focus,
body.tkd-account .woocommerce select:focus,
body.tkd-account .woocommerce textarea:focus {
  border-color: var(--tkd-navy) !important;
  outline: 3px solid rgba(242, 140, 40, 0.45) !important;
  outline-offset: 1px;
}
body.tkd-account .woocommerce fieldset {
  margin: 24px 0 0;
  padding: 20px;
  border: 1px solid var(--tkd-line);
  border-radius: 16px;
}
body.tkd-account .woocommerce fieldset legend {
  padding: 0 8px;
  color: var(--tkd-navy);
  font-weight: 700;
}

/* Adressen */
body.tkd-account .woocommerce-Addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
body.tkd-account .woocommerce-Addresses::before,
body.tkd-account .woocommerce-Addresses::after { display: none !important; }
body.tkd-account .woocommerce-Address {
  width: auto !important;
  float: none !important;
  padding: 20px;
  border: 1px solid var(--tkd-line);
  border-radius: 16px;
  background: #fff;
}
body.tkd-account .woocommerce-Address address {
  color: var(--tkd-text);
  font-style: normal;
  line-height: 1.6;
}
body.tkd-account .woocommerce-Address-title a {
  color: var(--tkd-orange-deep) !important;
  font-weight: 600;
}

/* =========================================================
   MEINE TICKETS (Karten aus der FooEvents-Tabelle)
========================================================= */
.tkd-original-table-hidden { display: none !important; }

.tkd-tickets-intro {
  margin: 0 0 18px;
  padding-left: 12px;
  border-left: 3px solid var(--tkd-orange-deep);
  color: var(--tkd-text);
  font-size: 15px;
  line-height: 1.55;
}

.tkd-ticket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  margin: 0 0 24px;
}

.tkd-ticket {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--tkd-line);
  border-radius: 16px;
  background: #fff;
}

.tkd-ticket__head {
  padding: 16px 18px 14px;
  border-bottom: 2px dashed var(--tkd-line);
}
.tkd-ticket__number {
  color: var(--tkd-muted);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.tkd-ticket__title {
  display: block;
  margin-top: 4px;
  color: var(--tkd-navy);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}
.tkd-ticket__detail {
  display: block;
  margin-top: 2px;
  color: var(--tkd-text);
  font-size: 14px;
}

.tkd-ticket__qr {
  display: grid;
  place-items: center;
  gap: 6px;
  margin: 0;
  padding: 18px;
  border: 0;
  background: #fff;
  color: var(--tkd-muted);
  font: inherit;
  font-size: 12px;
  cursor: zoom-in;
}
.tkd-ticket__qr img {
  display: block;
  width: 160px;
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
}
.tkd-ticket__qr--missing { cursor: default; padding: 32px 18px; }

.tkd-ticket__actions {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding: 0 18px 18px;
}
.tkd-ticket__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background-color 150ms ease, color 150ms ease;
}
.tkd-ticket__download { border: 2px solid var(--tkd-navy); color: var(--tkd-navy) !important; }
.tkd-ticket__download:hover { background: var(--tkd-navy); color: #fff !important; }
.tkd-ticket__wallet { color: var(--tkd-navy) !important; text-decoration: underline !important; text-underline-offset: 3px; }

/* Großer QR-Code zum Vorzeigen am Einlass */
.tkd-qr-dialog {
  width: min(420px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #fff;
  color: var(--tkd-navy);
  font-family: var(--tkd-font);
}
.tkd-qr-dialog::backdrop { background: rgba(16, 27, 50, 0.85); }
.tkd-qr-dialog__inner { display: grid; justify-items: center; gap: 10px; padding: 28px 24px 24px; text-align: center; }
.tkd-qr-dialog img { width: min(320px, 100%); height: auto; image-rendering: pixelated; }
.tkd-qr-dialog strong { font-size: 18px; font-weight: 700; }
.tkd-qr-dialog small { color: var(--tkd-muted); font-size: 14px; line-height: 1.45; }
.tkd-qr-dialog button {
  min-height: 48px;
  margin-top: 8px;
  padding: 0 24px;
  border: 2px solid var(--tkd-navy);
  border-radius: 12px;
  background: #fff;
  color: var(--tkd-navy);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* =========================================================
   LOGIN / REGISTRIERUNG
========================================================= */
body.tkd-account:not(.logged-in) .woocommerce {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) 0;
}

.tkd-login-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  margin: 0 0 28px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 20px;
  background: var(--tkd-navy);
  color: #fff;
}
.tkd-login-intro h2 {
  margin: 0 !important;
  color: #fff !important;
  font-family: var(--tkd-font) !important;
  font-size: clamp(30px, 4vw, 44px) !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.03em !important;
}
.tkd-login-intro .tkd-kicker { color: var(--tkd-orange) !important; }
.tkd-login-intro__text p:last-child {
  margin: 12px 0 0 !important;
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 16px;
  line-height: 1.6;
}
.tkd-login-intro__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.tkd-login-intro__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 !important;
}
.tkd-login-intro__list .tkd-icon { margin-top: 2px; color: var(--tkd-orange); }
.tkd-login-intro__list strong { display: block; color: #fff; font-size: 15px; font-weight: 700; }
.tkd-login-intro__list small { display: block; color: rgba(255, 255, 255, 0.7); font-size: 13px; line-height: 1.45; }

body.tkd-account:not(.logged-in) .u-columns {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
body.tkd-account:not(.logged-in) .u-columns::before,
body.tkd-account:not(.logged-in) .u-columns::after { display: none !important; }

body.tkd-account:not(.logged-in) .u-column1,
body.tkd-account:not(.logged-in) .u-column2,
.tkd-login-row > * {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: clamp(22px, 3vw, 32px) !important;
  border: 1px solid var(--tkd-line) !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: none !important;
}
body.tkd-account:not(.logged-in) .u-column1 h2,
body.tkd-account:not(.logged-in) .u-column2 h2,
.tkd-register-card h2 {
  margin: 0 0 18px !important;
  color: var(--tkd-navy) !important;
  font-family: var(--tkd-font) !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}
body.tkd-account:not(.logged-in) .woocommerce form.login,
body.tkd-account:not(.logged-in) .woocommerce form.register {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}
body.tkd-account:not(.logged-in) .woocommerce-form-login__submit,
body.tkd-account:not(.logged-in) .woocommerce-form-register__submit { width: 100%; min-height: 52px !important; }
body.tkd-account:not(.logged-in) .woocommerce-LostPassword a { color: var(--tkd-navy) !important; text-decoration: underline; text-underline-offset: 3px; }

/* Falls die Registrierung nicht auf derselben Seite steht: Karte per JS */
.tkd-login-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tkd-register-card .tkd-kicker { margin-bottom: 6px !important; }
.tkd-register-card p { margin: 0 0 14px; color: var(--tkd-text); line-height: 1.6; }
.tkd-register-card ul { margin: 0 0 20px; padding: 0; list-style: none; }
.tkd-register-card li {
  position: relative;
  padding: 8px 0 8px 22px;
  border-bottom: 1px solid var(--tkd-line);
  color: var(--tkd-navy);
  font-size: 15px;
}
.tkd-register-card li::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tkd-orange-deep);
}
.tkd-register-card .tkd-btn { width: 100%; }

/* Anmelde-/Registrierseite: Theme-Container auf volle Breite (sonst sehr schmal) */
body.tkd-account:not(.logged-in) .ast-container,
body.tkd-account:not(.logged-in) #primary,
body.tkd-account:not(.logged-in) .site-main,
body.tkd-account:not(.logged-in) .entry-content,
body.tkd-account:not(.logged-in) .woocommerce {
  width: 100% !important;
  max-width: 1120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
}
body.tkd-account:not(.logged-in) .woocommerce { padding: clamp(24px, 4vw, 48px) 16px; }

/* Kontoseite „Buchungen“ (Reservierungen) */
.tkd-res__empty { margin: 0 0 18px; color: var(--tkd-text); }
.tkd-res__list { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.tkd-res__item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 18px; align-items: center; margin: 0 !important; padding: 16px 0; border-bottom: 1px solid var(--tkd-line); }
.tkd-res__item.is-past { opacity: .55; }
.tkd-res__date { text-align: center; }
.tkd-res__date strong { display: block; color: var(--tkd-navy); font-size: 26px; line-height: 1; font-weight: 700; }
.tkd-res__date small { display: block; margin-top: 4px; color: var(--tkd-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.tkd-res__body strong { display: block; color: var(--tkd-navy); font-size: 16px; }
.tkd-res__body span { display: block; margin-top: 2px; color: var(--tkd-text); font-size: 14px; }
.tkd-res__status { display: block; margin-top: 4px; font-style: normal; font-size: 13px; font-weight: 600; color: var(--tkd-muted); }
.tkd-res__status.is-ok { color: var(--tkd-green); }
.tkd-res__status.is-wait { color: var(--tkd-orange-deep); }
.tkd-res__status.is-off { color: var(--tkd-red); }
.tkd-res__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.tkd-res__link { color: var(--tkd-navy) !important; font-size: 14px; font-weight: 600; text-decoration: underline !important; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .tkd-res__item { grid-template-columns: 52px minmax(0, 1fr); }
  .tkd-res__actions { grid-column: 1 / -1; align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 8px 16px; }
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1180px) {
  .tkd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tkd-tile { min-height: 140px; }
}

@media (max-width: 1024px) {
  .tkd-hero { grid-template-columns: 1fr; }
  .tkd-columns { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  body.tkd-account.logged-in .woocommerce {
    grid-template-columns: 1fr;
    padding: 16px 0 32px;
  }
  .tkd-side { position: static; }

  /* Menü auf dem Handy: zwei Spalten, kompakt */
  body.tkd-account .woocommerce-MyAccount-navigation ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  body.tkd-account .woocommerce-MyAccount-navigation li a { min-height: 44px; padding: 8px 10px !important; font-size: 14px; }
  body.tkd-account .woocommerce-MyAccount-navigation-link--customer-logout {
    grid-column: 1 / -1;
  }

  /* Auf der Übersicht ersetzt das Dashboard die Navigation */
  body.tkd-home .tkd-side,
  body.tkd-home .woocommerce-MyAccount-navigation { display: none !important; }

  .tkd-login-intro,
  body.tkd-account:not(.logged-in) .u-columns,
  .tkd-login-row { grid-template-columns: 1fr; }

  /* Tabellen als Karten */
  body.tkd-account .woocommerce-MyAccount-content table.shop_table thead { display: none; }
  body.tkd-account .woocommerce-MyAccount-content table.shop_table,
  body.tkd-account .woocommerce-MyAccount-content table.shop_table tbody,
  body.tkd-account .woocommerce-MyAccount-content table.shop_table tr,
  body.tkd-account .woocommerce-MyAccount-content table.shop_table td { display: block; width: 100%; }
  body.tkd-account .woocommerce-MyAccount-content table.shop_table tr { padding: 8px 0; border-bottom: 1px solid var(--tkd-line); }
  body.tkd-account .woocommerce-MyAccount-content table.shop_table tbody tr:nth-child(even) td { background: transparent; }
  body.tkd-account .woocommerce-MyAccount-content table.shop_table td {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 16px !important;
    border: 0 !important;
    text-align: right !important;
  }
  body.tkd-account .woocommerce-MyAccount-content table.shop_table td::before {
    content: attr(data-title);
    color: var(--tkd-muted);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
  }
  body.tkd-account .woocommerce-MyAccount-content table.shop_table td.woocommerce-orders-table__cell-order-actions { justify-content: flex-end; }
  body.tkd-account .woocommerce-MyAccount-content table.shop_table td.woocommerce-orders-table__cell-order-actions::before { display: none; }
}

@media (max-width: 560px) {
  .tkd-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tkd-tile { min-height: 0; padding: 16px; }
  .tkd-tile__arrow { display: none; }
  .tkd-tile__title { padding-top: 14px; font-size: 15px; }
  .tkd-tile__text { display: none; }

  .tkd-stats > div { min-width: 0; padding-right: 16px; margin-right: 16px; }
  .tkd-stats > div + div { padding-left: 16px; }
  .tkd-stats dd a { font-size: 24px; }

  .tkd-next .tkd-btn,
  .tkd-foot .tkd-btn { width: 100%; }

  .tkd-login-intro__list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  body.tkd-account * { transition: none !important; }
}
