/* MD Termine – Gestaltung nach Entwurf (Farben mein Dithmarschen).
   Dunkle Variante vorbereitet: greift bei data-bs-theme="dark", .dark-mode oder .te[data-theme="dark"]. */
.te{
  --te-bg:#fbfaf7;--te-surface:#ffffff;--te-tile:#f0e9de;--te-line:#dfd7ca;--te-text:#5a4f42;--te-head:#1e293b;--te-muted:#6b6258;
  --te-accent:#0077b6;--te-onaccent:#ffffff;--te-info:#e8f2f8;--te-infoline:#c9dcea;--te-fact:#6e4b6e;--te-hot:#e8801a;--te-ok:#2e7d32;--te-bad:#b3261e;--te-warn:#fdf6e6;--te-warntext:#8a6a15;
  font-family:'Plus Jakarta Sans',system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--te-text);box-sizing:border-box;line-height:1.5;
}
[data-bs-theme="dark"] .te,.dark-mode .te,.te[data-theme="dark"]{
  --te-bg:#191919;--te-surface:#242424;--te-tile:#2b2823;--te-line:#3d3a35;--te-text:#e6e1d8;--te-head:#ffffff;--te-muted:#b0a99d;
  --te-accent:#4db3e6;--te-onaccent:#10222d;--te-info:#14303f;--te-infoline:#24516a;--te-fact:#d3a9d3;--te-warn:#3a321c;--te-warntext:#e8cf8a;
}
.te *,.te *::before,.te *::after{box-sizing:border-box}
.te a{color:inherit;text-decoration:none}
.te img{max-width:100%;height:auto;display:block}
.te [hidden]{display:none!important}
.te-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.te{display:flex;flex-direction:column;gap:24px;padding:8px 0 32px}
.te-h1{margin:0;font-size:clamp(26px,4vw,34px);line-height:1.15;color:var(--te-head);font-weight:700}
.te-lead{margin:6px 0 0;color:var(--te-muted);font-size:16px}
.te-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px}
.te-head__actions{display:flex;flex-wrap:wrap;gap:10px}

/* Buttons */
.te-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 20px;border-radius:6px;border:1px solid var(--te-line);background:var(--te-surface);color:var(--te-text);font:inherit;font-weight:600;font-size:15px;cursor:pointer;text-decoration:none;transition:filter .15s,background .15s}
.te-btn:hover{filter:brightness(.97)}
.te-btn:focus-visible,.te-input:focus-visible,.te-chip:focus-visible,.te-card:focus-visible,.te-page:focus-visible{outline:3px solid var(--te-accent);outline-offset:2px}
.te-btn--primary{background:var(--te-accent);border-color:var(--te-accent);color:var(--te-onaccent)}
.te-btn--danger{color:var(--te-bad);border-color:var(--te-bad)}
.te-btn--block{width:100%}
.te-btn--small{min-height:36px;padding:0 14px;font-size:14px}
.te-btn.is-on{border-color:var(--te-accent);color:var(--te-accent)}
.te-btn.is-on svg{fill:currentColor}

/* Suche */
.te-search{display:flex;flex-wrap:wrap;gap:10px;background:var(--te-tile);border:1px solid var(--te-line);border-radius:6px;padding:14px}
.te-field{display:flex;flex-direction:column;gap:4px;min-width:0}
.te-search .te-field{flex:1 1 160px}
.te-field--grow2{flex:2 1 260px!important}
.te-field--btn{flex:0 0 auto!important;justify-content:flex-end}
.te-field>label,.te-label{font-size:13px;color:var(--te-muted);font-weight:600}
.te-input{width:100%;height:44px;border:1px solid var(--te-line);border-radius:6px;padding:0 14px;font:inherit;font-size:15px;background:var(--te-surface);color:var(--te-text)}
textarea.te-input{height:auto;padding:12px 14px;line-height:1.5;resize:vertical}
.te-input--small{height:36px;padding:0 10px;font-size:14px;width:auto}
.te-file{height:auto;padding:10px 12px}

/* Chips */
.te-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.te-chips{display:flex;flex-wrap:wrap;gap:8px}
.te-chip{display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border-radius:6px;border:1px solid var(--te-line);background:var(--te-surface);color:var(--te-text);font-weight:600;font-size:14px}
.te-chip.is-on{background:var(--te-accent);border-color:var(--te-accent);color:var(--te-onaccent)}
.te-count{margin:0;font-size:14px;color:var(--te-muted)}

/* Karten */
.te-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:20px}
.te-card{display:flex;flex-direction:column;background:var(--te-surface);border:1px solid var(--te-line);border-radius:6px;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease}
.te-card:hover{transform:translateY(-3px);box-shadow:0 8px 22px rgba(0,0,0,.12)}
.te-card__media{position:relative;aspect-ratio:4/3;overflow:hidden;background:var(--te-tile)}
.te-card__img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.te-card:hover .te-card__img{transform:scale(1.04)}
.te-card__none,.te-gallery__none{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--te-muted);font-size:13px;font-weight:600}
.te-card__plaques{position:absolute;top:10px;left:10px;display:flex;gap:6px;flex-wrap:wrap}
.te-card__body{padding:14px 16px 16px;display:flex;flex-direction:column;gap:6px}
.te-card__price{font-size:20px;font-weight:700;color:var(--te-head)}
.te-card__title{font-size:16px;font-weight:600;color:var(--te-head);line-height:1.3;overflow-wrap:anywhere}
.te-card__meta{font-size:13px;color:var(--te-muted)}
.te-card__where{display:flex;align-items:center;gap:6px}
.te-plaque{display:inline-block;font-size:12px;font-weight:700;padding:3px 8px;border-radius:3px;line-height:1.3}
.te-plaque--hot{background:var(--te-hot);color:#1e293b}
.te-plaque--new{background:#0077b6;color:#fff}
.te-empty{padding:32px;text-align:center;background:var(--te-tile);border:1px dashed var(--te-line);border-radius:6px;color:var(--te-muted)}
.te-pages{display:flex;justify-content:center;flex-wrap:wrap;gap:8px}
.te-page{min-width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:6px;border:1px solid var(--te-line);background:var(--te-surface);font-weight:600}
.te-page.is-on{background:var(--te-accent);border-color:var(--te-accent);color:var(--te-onaccent)}
.te-page--gap{border:0;background:none}

/* Detail */
.te-crumbs{font-size:14px;color:var(--te-muted);display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.te-crumbs a{color:var(--te-accent);font-weight:600}
.te-cols{display:flex;flex-wrap:wrap;gap:28px;align-items:flex-start}
.te-main{flex:999 1 520px;min-width:0;display:flex;flex-direction:column;gap:24px}
.te-side{flex:1 1 320px;min-width:0;display:flex;flex-direction:column;gap:16px}
.te-gallery{display:flex;flex-direction:column;gap:10px}
.te-gallery__main{position:relative;display:block;aspect-ratio:4/3;border-radius:6px;overflow:hidden;background:var(--te-tile);border:1px solid var(--te-line)}
.te-gallery__main img{width:100%;height:100%;object-fit:contain}
.te-gallery__badge{position:absolute;top:12px;left:12px}
.te-gallery__count{position:absolute;right:12px;bottom:12px;background:rgba(30,41,59,.8);color:#fff;font-size:13px;font-weight:600;padding:4px 10px;border-radius:3px}
.te-thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:10px}
.te-thumb{display:block;aspect-ratio:4/3;border-radius:6px;overflow:hidden;border:2px solid var(--te-line)}
.te-thumb.is-on{border-color:var(--te-accent)}
.te-thumb img{width:100%;height:100%;object-fit:cover}
.te-section{display:flex;flex-direction:column;gap:12px}
.te-section h2{margin:0;font-size:22px;color:var(--te-head)}
.te-text{font-size:16px;line-height:1.65;overflow-wrap:anywhere}
.te-facts{margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr));gap:12px}
.te-fact{background:var(--te-tile);border:1px solid var(--te-line);border-radius:6px;padding:12px 14px;display:flex;flex-direction:column;gap:2px}
.te-fact dt{font-size:13px;color:var(--te-muted);font-weight:600}
.te-fact dd{margin:0;font-size:18px;font-weight:700;color:var(--te-fact)}
.te-where{margin:0;display:flex;align-items:center;gap:6px;font-size:15px}
.te-hint{margin:0;font-size:13px;color:var(--te-muted)}
.te-box{background:var(--te-surface);border:1px solid var(--te-line);border-radius:6px;padding:22px;display:flex;flex-direction:column;gap:14px}
.te-meta{font-size:13px;color:var(--te-muted);font-weight:600}
.te-title{margin:0;font-size:26px;line-height:1.25;color:var(--te-head);overflow-wrap:anywhere}
.te-kind{align-self:flex-start;background:var(--te-tile);border:1px solid var(--te-line);font-size:12px;font-weight:700;padding:2px 8px;border-radius:3px}
.te-price{font-size:30px;font-weight:700;color:var(--te-head)}
.te-row{display:flex;gap:10px}
.te-row>form{flex:1}
.te-report{display:flex;flex-direction:column;gap:8px}
.te-seller{background:var(--te-tile);border:1px solid var(--te-line);border-radius:6px;padding:18px}
.te-seller__who{display:flex;gap:14px;align-items:center}
.te-seller__who>div{display:flex;flex-direction:column;gap:4px}
.te-seller__name{font-size:17px;font-weight:700;color:var(--te-head)}
.te-avatar{width:56px;height:56px;border-radius:6px;background:#8c7f70;color:#fff;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:700;flex:0 0 auto}
.te-info{background:var(--te-info);border:1px solid var(--te-infoline);border-left:4px solid var(--te-accent);border-radius:6px;padding:14px 16px;font-size:14px;line-height:1.55}
.te-info strong{color:var(--te-head)}
.te-note{border-radius:6px;padding:12px 16px;font-size:15px}
.te-note--warn{background:var(--te-warn);color:var(--te-warntext);border:1px solid var(--te-line)}

/* Formular */
.te-formpage{max-width:880px}
.te-form{display:flex;flex-direction:column;gap:20px}
.te-card-box{background:var(--te-surface);border:1px solid var(--te-line);border-radius:6px;padding:20px;margin:0;display:flex;flex-direction:column;gap:16px;min-width:0}
.te-card-box legend{float:none;width:auto;padding:0 8px;margin:0 0 -4px;font-size:17px;font-weight:700;color:var(--te-head)}
.te-row2{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px}
.te-radios{display:flex;flex-wrap:wrap;gap:10px}
.te-radio,.te-check{display:inline-flex;align-items:center;gap:8px;font-size:15px;cursor:pointer}
.te-radio{padding:10px 16px;border:1px solid var(--te-line);border-radius:6px;background:var(--te-surface);font-weight:600}
.te-radio:has(input:checked){border-color:var(--te-accent);background:var(--te-info)}
.te-check--block{display:flex}
.te-suffix{display:flex;align-items:center;gap:8px}
.te-suffix span{color:var(--te-muted);font-weight:600}
.te-imgedit{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}
.te-imgedit__item{display:flex;flex-direction:column;gap:6px;font-size:13px}
.te-imgedit__item img{border-radius:6px;border:1px solid var(--te-line);width:100%;aspect-ratio:4/3;object-fit:cover}
.te-actions{display:flex;flex-wrap:wrap;gap:10px}

/* Karte */
.te-map{position:relative;border-radius:6px;overflow:hidden;border:1px solid var(--te-line);background:var(--te-tile)}
.te-map__box{height:320px;width:100%;z-index:0}
.te-map__gate{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:160px;padding:20px;text-align:center;font-size:14px;color:var(--te-muted)}
.te-map__gate p{margin:0;max-width:46ch}
.te-map__bar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:10px;background:var(--te-tile);border-bottom:1px solid var(--te-line)}
.te-map .leaflet-container{font-family:inherit}
.te-pin{background:none;border:0}

/* Meine Anzeigen */
.te-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}
.te-item{display:flex;gap:16px;background:var(--te-surface);border:1px solid var(--te-line);border-radius:6px;padding:14px}
.te-item__img{flex:0 0 140px;aspect-ratio:4/3;border-radius:6px;overflow:hidden;background:var(--te-tile);display:flex;align-items:center;justify-content:center;color:var(--te-muted)}
.te-item__img img{width:100%;height:100%;object-fit:cover}
.te-item__body{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}
.te-item__title{font-size:17px;font-weight:700;color:var(--te-head);overflow-wrap:anywhere}
.te-item__meta{display:flex;flex-wrap:wrap;gap:10px;align-items:center;font-size:14px;color:var(--te-muted)}
.te-item__actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.te-inline{display:inline-flex;gap:6px;align-items:center;margin:0}
.te-badge{font-size:12px;font-weight:700;padding:2px 8px;border-radius:3px;color:#fff}
.te-badge--ok{background:var(--te-ok)}
.te-badge--wait{background:var(--te-hot);color:#1e293b}
.te-badge--off{background:#8c7f70}
.te-badge--bad{background:var(--te-bad)}

@media (max-width:640px){
  .te-item{flex-direction:column}
  .te-item__img{flex-basis:auto;width:100%;max-width:280px}
  .te-search .te-field{flex:1 1 100%}
  .te-head__actions .te-btn{flex:1}
}
@media (prefers-reduced-motion:reduce){.te-card,.te-card__img{transition:none}.te-card:hover{transform:none}}

/* Innere Navigation */
.te-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px;border-bottom:2px solid var(--te-line)}
.te-nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;font-weight:600;font-size:15px;color:var(--te-text);border-bottom:3px solid transparent;margin-bottom:-2px}
.te-nav a:hover{color:var(--te-accent)}
.te-nav a.is-on{color:var(--te-accent);border-bottom-color:var(--te-accent)}
.te-nav a:focus-visible{outline:3px solid var(--te-accent);outline-offset:-3px}

/* Telefonnummer */
.te-phone{display:flex;flex-direction:column;gap:4px;padding:12px 14px;background:var(--te-tile);border:1px solid var(--te-line);border-radius:6px}
.te-phone__label{font-size:13px;color:var(--te-muted);font-weight:600}
.te-phone__num{font-size:20px;font-weight:700;color:var(--te-head)}
a.te-phone__num{color:var(--te-accent)}
.te-phone__blur{filter:blur(6px);user-select:none;pointer-events:none}
.te-phone .te-hint a{color:var(--te-accent);font-weight:600}

/* Abwicklung */
.te-handling{display:flex;flex-direction:column;gap:6px;padding:12px 14px;background:var(--te-tile);border:1px solid var(--te-line);border-radius:6px}
.te-handling__list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.te-handling__list li{background:var(--te-surface);border:1px solid var(--te-line);border-radius:3px;padding:2px 10px;font-size:14px;font-weight:700;color:var(--te-fact)}

/* Anbieterart, Filter, Hervorheben */
.te-tag{align-self:flex-start;background:var(--te-tile);border:1px solid var(--te-line);font-size:12px;font-weight:700;padding:1px 8px;border-radius:3px;color:var(--te-fact)}
.te-biz{margin-top:12px;padding-top:12px;border-top:1px solid var(--te-line);font-size:14px}
.te-range{display:flex;gap:8px}
.te-filtercheck{min-height:44px}
.te-btn--accent{background:var(--te-hot);border-color:var(--te-hot);color:#1e293b}

/* Einheitliche Felder und Buttons (Theme-Stile übersteuern) */
.te .te-input{-webkit-appearance:none;appearance:none;height:44px;border:1px solid var(--te-line)!important;border-radius:6px!important;box-shadow:none!important;background-color:var(--te-surface)!important;color:var(--te-text)!important;padding:0 14px;font:inherit;font-size:15px;line-height:1.2;margin:0}
.te textarea.te-input{height:auto;padding:12px 14px;line-height:1.5}
.te .te-input--small{height:36px;padding:0 10px;font-size:14px}
.te select.te-input{padding-right:38px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b6258' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:14px}
.te input[type=search].te-input::-webkit-search-decoration,.te input[type=search].te-input::-webkit-search-cancel-button{-webkit-appearance:none}
.te .te-input::placeholder{color:var(--te-muted);opacity:.8}
.te .te-input:focus{border-color:var(--te-accent)!important;outline:3px solid color-mix(in srgb,var(--te-accent) 35%,transparent);outline-offset:0}
.te .te-btn{border-radius:6px!important;box-shadow:none}
.te .te-btn--primary{background:var(--te-accent)!important;border-color:var(--te-accent)!important;color:var(--te-onaccent)!important}
.te .te-btn--ghost{background:var(--te-surface)!important;color:var(--te-text)!important}
.te .te-btn--accent{background:var(--te-hot)!important;border-color:var(--te-hot)!important;color:#1e293b!important}

/* Teilen */
.te-share{position:relative;margin-top:10px}
.te-share__menu{display:flex;flex-direction:column;margin-top:6px;background:var(--te-surface);border:1px solid var(--te-line);border-radius:6px;overflow:hidden}
.te-share__menu[hidden]{display:none}
.te-share__item{display:block;width:100%;text-align:left;padding:11px 14px;min-height:44px;background:transparent;border:0;border-bottom:1px solid var(--te-line);color:var(--te-text);font:inherit;font-size:15px;font-weight:600;text-decoration:none;cursor:pointer}
.te-share__item:last-child{border-bottom:0}
.te-share__item:hover,.te-share__item:focus-visible{background:var(--te-tile);color:var(--te-accent)}
.te-share__ok{display:block;margin-top:6px;color:var(--te-accent);font-weight:600}
.te-share__ok[hidden]{display:none}

/* Hervorhebung aktiv (gruene Anzeige statt Button) */
.te .te-done{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:#1f7a3d!important;border:1px solid #1f7a3d!important;color:#fff!important;font-weight:700;cursor:default;pointer-events:none}
.te .te-done svg{stroke:#fff}

/* ---- Termine: Kalender, Kachel-Datum, Plakat ---- */
.te-cal{background:var(--te-surface);border:1px solid var(--te-line);border-radius:6px;padding:16px;max-width:640px;width:100%}
.te-cal__head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.te-cal__title{margin:0;font-size:20px;color:var(--te-head)}
.te-cal__nav{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid var(--te-line);border-radius:6px;font-size:26px;line-height:1;color:var(--te-accent)}
.te-cal__grid{width:100%;border-collapse:separate;border-spacing:4px;table-layout:fixed}
.te-cal__grid th{font-size:12px;color:var(--te-muted);font-weight:700;padding:2px 0;text-align:center}
.te-cal__grid td{padding:0;text-align:center;height:44px;vertical-align:middle}
.te-cal__day>span,.te-cal__day>a{display:flex;align-items:center;justify-content:center;position:relative;height:100%;min-height:44px;border-radius:6px;font-size:15px;color:var(--te-muted)}
.te-cal__day.has-events>a{background:var(--te-info);border:1px solid var(--te-infoline);color:var(--te-head);font-weight:700}
.te-cal__day.has-events>a i{position:absolute;top:2px;right:4px;font-style:normal;font-size:10px;line-height:1;color:var(--te-accent)}
.te-cal__day.is-today>span,.te-cal__day.is-today>a{outline:2px solid var(--te-accent);outline-offset:-2px}
.te-cal__day.is-on>a{background:var(--te-accent);color:var(--te-onaccent)}
.te-cal__day.is-on>a i{color:var(--te-onaccent)}
.te-cal a:focus-visible{outline:3px solid var(--te-accent);outline-offset:2px}

.te-card__date{position:absolute;left:10px;bottom:10px;display:flex;flex-direction:column;align-items:center;min-width:48px;padding:5px 8px;background:var(--te-surface);border-radius:6px;box-shadow:0 2px 8px rgba(0,0,0,.25);font-size:12px;line-height:1.1;font-weight:700;color:var(--te-muted);text-transform:uppercase}
.te-card__date b{font-size:22px;color:var(--te-head)}
.te-card__cat{font-size:12px;font-weight:700;color:var(--te-fact);text-transform:uppercase;letter-spacing:.03em}
.te-card__media .te-card__img{object-fit:cover}

.te-poster{position:relative;display:block;border-radius:6px;overflow:hidden;border:1px solid var(--te-line);background:var(--te-tile)}
.te-poster img{width:100%;height:auto;max-height:80vh;object-fit:contain;margin:0 auto}
.te-when,.te-detail .te-where{display:flex;align-items:center;gap:8px;margin:6px 0 0;font-size:17px;color:var(--te-head);font-weight:600}
.te-detail .te-where{font-weight:500;font-size:16px}
.te-detail article header{display:flex;flex-direction:column;gap:2px;margin-bottom:16px}
.te-more{border:1px dashed var(--te-line);border-radius:6px;padding:10px 14px}
.te-more summary{cursor:pointer;font-weight:600;color:var(--te-accent);min-height:28px}
.te-more[open] summary{margin-bottom:10px}
.te-preview{border-radius:6px;border:1px solid var(--te-line);max-width:280px;height:auto;object-fit:cover}
.te-field input[type="date"],.te-field input[type="time"]{min-width:0}
@media (max-width:520px){.te-cal{padding:10px}.te-cal__grid{border-spacing:2px}.te-card-box{padding:14px}}

/* ---- Kacheln: Bild und Infos in einer Karte, Farbton je Termin wechselnd ---- */
.te-card{--te-c:var(--te-tile);--te-cl:var(--te-line);background:var(--te-c);border:1px solid var(--te-cl);box-shadow:0 1px 3px rgba(60,40,20,.08)}
.te-card--t0{--te-c:#e3eef6;--te-cl:#c9dcea}
.te-card--t1{--te-c:#f0e9de;--te-cl:#dfd7ca}
.te-card--t2{--te-c:#ece2ec;--te-cl:#d9c8d9}
.te-card--t3{--te-c:#e1ebe6;--te-cl:#c8d9d0}
.te-card--t4{--te-c:#f3e6d6;--te-cl:#e6d2b8}
[data-bs-theme="dark"] .te-card--t0,.dark-mode .te-card--t0{--te-c:#1b2d38;--te-cl:#2c4757}
[data-bs-theme="dark"] .te-card--t1,.dark-mode .te-card--t1{--te-c:#2b2823;--te-cl:#463f35}
[data-bs-theme="dark"] .te-card--t2,.dark-mode .te-card--t2{--te-c:#2e2430;--te-cl:#4a3a4d}
[data-bs-theme="dark"] .te-card--t3,.dark-mode .te-card--t3{--te-c:#1f2b26;--te-cl:#344a40}
[data-bs-theme="dark"] .te-card--t4,.dark-mode .te-card--t4{--te-c:#322a20;--te-cl:#50422f}
.te-card:hover,.te-card:focus-visible{transform:translateY(-4px);box-shadow:0 12px 26px rgba(60,40,20,.2);border-color:var(--te-accent)}
.te-card__body{background:transparent;border:0;padding:14px 16px 18px}
.te-card__title{font-size:17px}

/* Kalender: volle Breite */
.te-cal{max-width:none;width:100%}
.te-cal__grid td{height:52px}
@media (min-width:900px){.te-cal__grid td{height:64px}.te-cal__day>span,.te-cal__day>a{font-size:17px}.te-cal__day.has-events>a i{font-size:12px;top:5px;right:8px}}

/* Detail: Kopf ueber beiden Spalten, Bild und rechte Boxen beginnen auf einer Linie */
.te-eventhead{display:flex;flex-direction:column;gap:2px}
.te-detail .te-cols{align-items:flex-start}
.te-eventhead{margin-bottom:4px}

/* Interesse / Teilnahme */
.te-rsvp{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.te-rsvp form{display:contents}
.te-rsvp__btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:64px;padding:8px 10px;border:1px solid var(--te-line);border-radius:6px;background:var(--te-surface);color:var(--te-text);font:inherit;font-weight:600;font-size:14px;cursor:pointer;text-align:center;transition:filter .15s,border-color .15s}
.te-rsvp__btn b{font-size:22px;color:var(--te-head);line-height:1}
.te-rsvp__btn:hover{border-color:var(--te-accent)}
.te-rsvp__btn.is-on{background:var(--te-info);border-color:var(--te-accent);color:var(--te-accent)}
.te-rsvp__btn:focus-visible{outline:3px solid var(--te-accent);outline-offset:2px}

.te-qr{display:flex;gap:12px;align-items:center;margin-top:14px;padding-top:14px;border-top:1px solid var(--te-line)}
.te-qr__code{flex:0 0 96px;width:96px;height:96px;border-radius:3px;overflow:hidden;background:#fff}
.te-qr__code svg{display:block;width:100%;height:100%}
.te-qr__text{display:flex;flex-direction:column;gap:3px;font-size:13px;line-height:1.35}
.te-qr__text strong{color:var(--te-head);font-size:14px}
.te-qr__text a{color:var(--te-accent)}
