/* telc-Prüfungsübersicht (auf #telc-termine begrenzt) */
#telc-termine {
    --el-dark: #5B7560;
    --el-mid: #92A394;
    --el-light: #AEBAAF;
    --el-orange: #C8A96E;
    --el-dark-text: #333333;
    --el-mid-text: #666666;
    --el-bg: #F5F5F5;
    --el-white: #FFFFFF;
    --el-line: #e8ede9;
    --max-w: 900px;
    --pad: clamp(1rem, 4vw, 3rem);
    font-family: 'Lato', sans-serif;
    color: var(--el-dark-text);
    background: var(--el-bg);
    hyphens: none;
    -webkit-hyphens: none;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    line-height: 1.5;
  }
  #telc-termine, #telc-termine *, #telc-termine *::before, #telc-termine *::after { box-sizing: border-box !important; }
  #telc-termine p { margin: 0; }
  #telc-termine .tt-inner {
    width: 100%;
    max-width: var(--max-w) !important;
    margin: 0 auto !important;
    padding: 0 var(--pad) !important;
  }
  #telc-termine h1, #telc-termine h2, #telc-termine h3 {
    font-family: 'Montserrat', sans-serif !important;
    hyphens: none; -webkit-hyphens: none;
    overflow-wrap: normal; word-break: normal;
    color: var(--el-dark) !important;
    margin: 0;
  }

  /* ---------- HERO ---------- */
  #telc-termine .tt-hero {
    background: var(--el-dark);
    padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3rem);
  }
  #telc-termine .tt-hero-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: #C8A96E !important; margin-bottom: 0.6rem;
  }
  #telc-termine .tt-hero h1 {
    color: #ffffff !important;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700; line-height: 1.2; margin-bottom: 0.9rem;
  }
  #telc-termine .tt-hero p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255,255,255,0.92) !important;
    max-width: 640px; line-height: 1.6;
  }
  #telc-termine .tt-hero .tt-hero-hint {
    font-size: 0.85rem; color: rgba(255,255,255,0.78) !important; margin-top: 0.9rem;
  }
  #telc-termine .tt-hero .tt-hero-hint strong { color: #ffffff !important; }

  /* Fakten-Leiste im Hero */
  #telc-termine .tt-facts {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem;
    margin-top: clamp(1.4rem, 4vw, 2rem);
  }
  #telc-termine .tt-fact {
    min-width: 0; overflow-wrap: break-word;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px; padding: 0.75rem 0.9rem;
  }
  #telc-termine .tt-fact-label {
    display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
    color: rgba(255,255,255,0.75) !important; margin-bottom: 0.15rem;
  }
  #telc-termine .tt-fact-value {
    display: block; font-family: 'Montserrat', sans-serif; font-weight: 700;
    font-size: clamp(0.9rem, 2.2vw, 1.02rem); color: #ffffff !important;
  }

  /* ---------- SECTIONS ---------- */
  #telc-termine .tt-section { padding: clamp(2rem, 5vw, 3.5rem) 0; }
  #telc-termine .tt-section-white { background: var(--el-white); }
  #telc-termine .tt-eyebrow {
    font-family: 'Montserrat', sans-serif; font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--el-mid-text);
    margin-bottom: 0.5rem;
  }
  #telc-termine h2 {
    font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 700; margin-bottom: 0.6rem;
  }
  #telc-termine .tt-intro {
    color: var(--el-mid-text); max-width: 640px; margin-bottom: 1.6rem; line-height: 1.6;
  }

  /* ---------- BADGES ---------- */
  #telc-termine .tt-badge {
    display: inline-block; font-family: 'Montserrat', sans-serif; font-weight: 700;
    font-size: 0.78rem; line-height: 1; padding: 6px 12px; border-radius: 20px;
  }
  #telc-termine .tt-badge-b1 { background: #5B7560; color: #ffffff !important; }
  #telc-termine .tt-badge-b2 { background: #C8A96E; color: #1E2820 !important; }

  #telc-termine .tt-status {
    display: inline-block; font-size: 0.72rem; font-weight: 700; line-height: 1.2;
    text-transform: uppercase; letter-spacing: 0.05em; border-radius: 4px; padding: 3px 7px;
  }
  #telc-termine .tt-status-frei { background: #edf2ee; color: #3f5a45 !important; }
  #telc-termine .tt-status-letzte { background: #f6eedd; color: #6b5220 !important; }
  #telc-termine .tt-status-voll { background: #f3e1df; color: #9b2c20 !important; }

  /* ---------- BUTTONS ---------- */
  #telc-termine .btn-primary,
  #telc-termine .btn-primary:link,
  #telc-termine .btn-primary:visited {
    background: #C8A96E; color: #ffffff !important;
    border: none; border-radius: 8px; padding: 14px 24px;
    font-family: 'Lato', sans-serif; font-size: 0.95rem; font-weight: 700;
    text-decoration: none !important; display: inline-block; cursor: pointer;
    transition: opacity 0.2s; text-align: center; min-height: 44px; line-height: 1.2;
  }
  #telc-termine .btn-primary:hover,
  #telc-termine .btn-primary:focus,
  #telc-termine .btn-primary:active { opacity: 0.88; color: #ffffff !important; }
  #telc-termine .btn-ghost,
  #telc-termine .btn-ghost:link,
  #telc-termine .btn-ghost:visited {
    background: transparent; color: #ffffff !important;
    border: 1.5px solid rgba(255,255,255,0.55); border-radius: 8px; padding: 13px 24px;
    font-family: 'Lato', sans-serif; font-size: 0.95rem; font-weight: 700;
    text-decoration: none !important; display: inline-block; text-align: center;
    min-height: 44px; line-height: 1.2;
  }
  #telc-termine .btn-ghost:hover,
  #telc-termine .btn-ghost:focus,
  #telc-termine .btn-ghost:active { border-color: rgba(255,255,255,0.85); color: #ffffff !important; }

  /* ---------- N&Auml;CHSTE TERMINE (Highlight) ---------- */
  #telc-termine .tt-next-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
  #telc-termine .tt-next {
    min-width: 0; overflow-wrap: break-word;
    background: var(--el-white); border: 1px solid var(--el-line); border-radius: 12px;
    padding: clamp(1.2rem, 3vw, 1.6rem);
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    display: flex; flex-direction: column; gap: 0.9rem;
    border-top: 4px solid #5B7560;
  }
  #telc-termine .tt-next.tt-lvl-b2 { border-top-color: #C8A96E; }
  #telc-termine .tt-next-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; }
  #telc-termine .tt-next-title {
    font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.95rem; color: #333333;
  }
  #telc-termine .tt-next-date {
    font-family: 'Montserrat', sans-serif; font-weight: 700;
    font-size: clamp(1.2rem, 3vw, 1.45rem); color: #333333; line-height: 1.25;
  }
  #telc-termine .tt-next-meta { font-size: 0.9rem; color: var(--el-mid-text); line-height: 1.7; }
  #telc-termine .tt-next-meta strong { color: #333333; }
  #telc-termine .tt-next .btn-primary { display: block; width: 100%; }

  /* ---------- FILTER ---------- */
  #telc-termine .tt-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.4rem; }
  #telc-termine .tt-filter-btn {
    font-family: 'Lato', sans-serif; font-size: 0.9rem; font-weight: 700;
    min-height: 44px; padding: 10px 18px; border-radius: 22px; cursor: pointer;
    background: #ffffff; color: #5B7560 !important; border: 1.5px solid #cdd8ce;
    transition: background 0.15s, border-color 0.15s;
  }
  #telc-termine .tt-filter-btn:hover,
  #telc-termine .tt-filter-btn:focus { border-color: #5B7560; color: #5B7560 !important; }
  #telc-termine .tt-filter-btn.tt-active,
  #telc-termine .tt-filter-btn.tt-active:hover,
  #telc-termine .tt-filter-btn.tt-active:focus { background: #5B7560; border-color: #5B7560; color: #ffffff !important; }

  /* ---------- TERMINLISTE ---------- */
  #telc-termine .tt-month { margin-bottom: clamp(1.4rem, 3vw, 2rem); }
  #telc-termine .tt-month:last-child { margin-bottom: 0; }
  #telc-termine .tt-month-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem;
    font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.95rem; color: #5B7560;
    padding-bottom: 0.45rem; margin-bottom: 0.7rem; border-bottom: 1.5px solid #AEBAAF;
  }
  #telc-termine summary.tt-month-head { cursor: pointer; list-style: none; min-height: 44px; align-items: center; }
  #telc-termine summary.tt-month-head::-webkit-details-marker { display: none; }
  #telc-termine summary.tt-month-head::after { content: '\25BE'; font-size: 0.9rem; color: #5B7560; transition: transform 0.2s; }
  #telc-termine details.tt-month:not([open]) summary.tt-month-head::after { transform: rotate(-90deg); }
  #telc-termine details.tt-month:not([open]) summary.tt-month-head { margin-bottom: 0; }
  #telc-termine .tt-month-count { margin-left: auto; font-family: 'Lato', sans-serif; font-weight: 400; font-size: 0.8rem; color: var(--el-mid-text); }
  #telc-termine .tt-list { display: grid; grid-template-columns: 1fr; gap: 0.6rem; }

  #telc-termine .tt-row {
    min-width: 0; overflow-wrap: break-word;
    display: grid; grid-template-columns: auto 1fr; gap: 0.8rem 1rem; align-items: center;
    background: #ffffff; border: 1px solid var(--el-line); border-radius: 12px;
    padding: 0.85rem 0.95rem;
    border-left: 4px solid #5B7560;
  }
  #telc-termine .tt-row.tt-lvl-b2 { border-left-color: #C8A96E; }
  #telc-termine .tt-row.tt-row-voll { background: #fafafa; }
  #telc-termine .tt-cal {
    min-width: 0; width: 58px; text-align: center; border-radius: 8px; overflow: hidden;
    border: 1px solid var(--el-line); background: #ffffff;
  }
  #telc-termine .tt-cal-wd {
    display: block; font-family: 'Montserrat', sans-serif; font-size: 0.68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 0;
    background: #5B7560; color: #ffffff !important;
  }
  #telc-termine .tt-row.tt-lvl-b2 .tt-cal-wd { background: #C8A96E; color: #1E2820 !important; }
  #telc-termine .tt-cal-day {
    display: block; font-family: 'Montserrat', sans-serif; font-size: 1.35rem; font-weight: 700;
    line-height: 1.1; padding-top: 4px; color: #333333;
  }
  #telc-termine .tt-cal-mon { display: block; font-size: 0.7rem; color: var(--el-mid-text); padding-bottom: 4px; }
  #telc-termine .tt-row-body { min-width: 0; }
  #telc-termine .tt-row-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.55rem; margin-bottom: 0.3rem; }
  #telc-termine .tt-row-date { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.98rem; color: #333333; }
  #telc-termine .tt-row-meta { font-size: 0.85rem; color: var(--el-mid-text); line-height: 1.55; }
  #telc-termine .tt-row-meta strong { color: #333333; }
  #telc-termine .tt-row-action { grid-column: 1 / -1; min-width: 0; }
  #telc-termine .tt-row-action .btn-primary { display: block; width: 100%; padding: 12px 18px; }

  #telc-termine .tt-empty {
    background: #ffffff; border: 1px dashed #cdd8ce; border-radius: 12px;
    padding: 1.2rem; color: var(--el-mid-text); text-align: center;
  }
  #telc-termine .tt-empty a { color: #5B7560 !important; font-weight: 700; }

  #telc-termine .tt-lade { display:inline-block; width:18px; height:18px; border:2px solid #AEBAAF; border-top-color:#5B7560; border-radius:50%; animation:tt-spin .8s linear infinite; vertical-align:-4px; margin-right:.55rem; }
  @keyframes tt-spin { to { transform:rotate(360deg); } }
  #telc-termine .tt-status-offen { background: #f0f0f0; color: #555555 !important; }
  #telc-termine .tt-fehler {
    background: #fff8ee; border: 1px solid #f0d9a0; border-radius: 12px;
    padding: 1rem 1.2rem; margin-bottom: 1.2rem; color: #333333; font-size: 0.9rem; line-height: 1.6;
  }
  #telc-termine .tt-fehler a { color: #5B7560 !important; font-weight: 700; }
  #telc-termine .tt-retry,
  #telc-termine .tt-retry:hover,
  #telc-termine .tt-retry:focus {
    display: inline-block; margin-top: 0.6rem; background: #5B7560; color: #ffffff !important;
    border: none; border-radius: 8px; padding: 10px 18px; min-height: 44px;
    font-family: 'Lato', sans-serif; font-size: 0.9rem; font-weight: 700; cursor: pointer;
  }
  #telc-termine .tt-retry:hover { opacity: 0.88; }

  /* ---------- WOCHENRHYTHMUS ---------- */
  #telc-termine .tt-week { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  #telc-termine .tt-week-item {
    min-width: 0; overflow-wrap: break-word;
    border: 1px solid var(--el-line); border-radius: 12px; background: #F5F5F5;
    padding: 0.9rem; display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start;
  }
  #telc-termine .tt-week-day { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1rem; color: #333333; }
  #telc-termine .tt-week-sub { font-size: 0.8rem; color: var(--el-mid-text); }

  /* ---------- HINWEIS ---------- */
  #telc-termine .tt-note {
    background: #eef2ee; border-left: 3px solid var(--el-dark); border-radius: 0 8px 8px 0;
    padding: 14px 18px; font-size: 0.88rem; color: #333333; line-height: 1.6; margin-top: 1.4rem;
  }
  #telc-termine .tt-note a { color: #5B7560 !important; font-weight: 700; }

  /* ---------- CTA ---------- */
  #telc-termine .tt-cta {
    background: var(--el-dark); border-radius: 16px;
    padding: clamp(1.8rem, 5vw, 2.8rem); text-align: center;
  }
  #telc-termine .tt-cta h2 { color: #ffffff !important; }
  #telc-termine .tt-cta p {
    color: rgba(255,255,255,0.9) !important; max-width: 560px; margin: 0 auto 1.4rem; line-height: 1.6;
  }
  #telc-termine .tt-cta-buttons { display: flex; flex-direction: column; gap: 0.8rem; }
  #telc-termine .tt-cta-buttons a { width: 100%; }

  /* ---------- TABLET / DESKTOP ---------- */
  @media (min-width: 641px) {
    #telc-termine .tt-facts { grid-template-columns: repeat(4, 1fr); }
    #telc-termine .tt-next-grid { grid-template-columns: 1fr 1fr; }
    #telc-termine .tt-row { grid-template-columns: auto 1fr auto; padding: 0.9rem 1.1rem; }
    #telc-termine .tt-row-action { grid-column: auto; }
    #telc-termine .tt-row-action .btn-primary { width: auto; }
    #telc-termine .tt-week { grid-template-columns: repeat(4, 1fr); }
    #telc-termine .tt-cta-buttons { flex-direction: row; justify-content: center; flex-wrap: wrap; }
    #telc-termine .tt-cta-buttons a { width: auto; }
  }
