/* GWR KURSE - App-spezifische Styles
   Diese Datei wird nach Bootstrap und dem dynamischen Theme-CSS geladen.
   Theme-Variablen (--gwr-*) kommen aus inc/theme.php */



/* Smooth scroll & subtle entrance */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Reveal animation utility — mit "js-ready"-Guard:
   solange JS noch nicht gelaufen ist, bleiben Elemente sichtbar (kein flash-of-invisible) */
html.js-ready [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 500ms ease, transform 500ms cubic-bezier(.22,.61,.36,1);
}
html.js-ready [data-reveal].visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html.js-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Hero */
.gwr-hero { position: relative; padding: 3.5rem 0 3rem; overflow: hidden; }
@media (max-width: 768px) {
    .gwr-hero { padding: 2rem 0 2rem; text-align: center; }
    .gwr-hero h1 { font-size: 1.85rem !important; }
    .gwr-hero .lead { font-size: .92rem !important; }
    .gwr-hero .btn-lg { font-size: .9rem; padding: .5rem 1.2rem; }
    .gwr-hero .display-3 { font-size: 2rem !important; }
}
.gwr-hero::before {
    content:''; position:absolute; inset:0;
    background: linear-gradient(135deg, var(--gwr-primary), var(--gwr-secondary) 60%, var(--gwr-accent));
    opacity: .95; z-index:-1;
}
.gwr-hero h1 { font-weight: 700; letter-spacing: -.02em; }
.gwr-hero .lead { font-size: clamp(1rem, 2vw, 1.25rem); opacity: .92; }

/* === COURSE CARD V2: weniger rund, linksbündig, gleich groß === */
.course-card-v2 {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,.04);
    background: #fff;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    display: flex; flex-direction: column;
    text-align: left;
    hyphens: none; word-break: keep-all; overflow-wrap: normal;
}
.course-card-v2:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    border-color: var(--gwr-primary);
}
.course-card-v2.cc-past {
    opacity: .6;
    filter: grayscale(.3);
}
.course-card-v2.cc-past:hover { opacity: .85; transform: none; }
.cc-past-banner {
    position: absolute; top: 0; left: 0; right: 0; z-index: 3;
    background: rgba(108, 117, 125, .95);
    color: #fff;
    text-align: center;
    font-size: .68rem; font-weight: 500;
    padding: .25rem .5rem;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.cc-past-banner i { margin-right: .25em; }
.course-card-v2 .cc-img {
    aspect-ratio: 16/10; width: 100%; object-fit: cover; display: block;
    background: var(--gwr-soft);
}
.course-card-v2 .cc-img-placeholder {
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 3rem; opacity: .9;
}
.course-card-v2 .cc-date {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    background: #fff; color: var(--gwr-primary);
    padding: 4px 8px; border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    text-align: center; line-height: 1; min-width: 42px;
}
.course-card-v2 .cc-day { font-size: 1.1rem; font-weight: 700; }
.course-card-v2 .cc-mon { font-size: .6rem; text-transform: uppercase; opacity: .8; }
.course-card-v2 .cc-cat {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    color: #fff; font-size: .7rem; font-weight: 500;
    padding: .25em .7em; border-radius: 4px; text-decoration: none;
}
.course-card-v2 .cc-cat:hover { color: #fff; opacity: .9; text-decoration: none; }
.course-card-v2 .cc-prog-badge {
    position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
    z-index: 3; pointer-events: none;
}
.course-card-v2 .cc-prog-badge .badge { font-size: .62rem; letter-spacing: .03em; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.course-card-v2 .cc-online-badge {
    position: absolute; top: 42px; left: 50%; transform: translateX(-50%);
    z-index: 3; pointer-events: none;
    background: linear-gradient(90deg, #0d6efd, #20c997);
    color: #fff; font-size: .58rem; font-weight: 700;
    padding: .2em .6em; border-radius: 300px;
    letter-spacing: .05em; text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(13,110,253,.3);
    display: inline-flex; align-items: center; gap: .3em;
    animation: pulse-online 2s ease-in-out infinite;
}
.course-card-v2 .cc-online-badge i { font-size: .7rem; }
@keyframes pulse-online {
    0%, 100% { box-shadow: 0 2px 6px rgba(13,110,253,.3); }
    50%      { box-shadow: 0 2px 14px rgba(13,110,253,.6); }
}
.course-card-v2 .cc-body {
    padding: .85rem 1rem 1rem;
    display: flex; flex-direction: column; flex: 1;
    text-align: left;
}
.course-card-v2 .cc-title {
    font-size: .95rem; line-height: 1.3; font-weight: 600;
    margin: 0 0 .6rem; text-align: left;
    /* Titel IMMER vollständig zeigen, kein clamp */
    hyphens: none; word-break: keep-all; overflow-wrap: normal;
}
.course-card-v2 .cc-title a { color: inherit; }
.course-card-v2 .cc-meta {
    font-size: .78rem; color: var(--gwr-muted);
    margin-bottom: .6rem; text-align: left;
}
.course-card-v2 .cc-meta-row {
    display: flex; align-items: center; gap: .4em;
    margin-bottom: .15rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.course-card-v2 .cc-meta-row i { color: var(--gwr-primary); flex-shrink: 0; }
.course-card-v2 .cc-meta-row span { overflow: hidden; text-overflow: ellipsis; }
.course-card-v2 .cc-footer {
    margin-top: auto; padding-top: .6rem;
    border-top: 1px solid #f0f0f0;
    display: flex; justify-content: space-between; align-items: center;
    gap: .5rem; flex-wrap: wrap; text-align: left;
}
.course-card-v2 .cc-price strong { color: var(--gwr-primary); font-size: 1.05rem; line-height: 1; display: block; }
.course-card-v2 .cc-price small { font-size: .65rem; color: var(--gwr-muted); display: block; line-height: 1.3; }
.course-card-v2 .cc-footer .badge { font-size: .68rem; padding: .25em .6em; border-radius: 4px; }

/* === COURSE CARD WIDE: Querformat, Bild links, Content rechts === */
.course-wide {
    display: flex; gap: 0;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none; color: var(--gwr-dark);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    hyphens: none; word-break: keep-all;
    box-shadow: 0 2px 6px rgba(0,0,0,.03);
}
.course-wide:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
    border-color: var(--gwr-primary);
    text-decoration: none; color: var(--gwr-dark);
}
.cw-image {
    position: relative; flex-shrink: 0;
    width: 220px;
    background: var(--gwr-soft);
}
.cw-image img, .cw-image-ph {
    width: 100%; height: 100%; min-height: 160px;
    object-fit: cover; display: block;
}
.cw-image-ph {
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 3rem; opacity: .85;
}
.cw-date {
    position: absolute; top: 10px; left: 10px;
    background: #fff; color: var(--gwr-primary);
    border-radius: 6px; padding: 4px 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    text-align: center; line-height: 1.05;
    display: flex; flex-direction: column; min-width: 44px;
}
.cw-date .cw-wd  { font-size:.55rem; text-transform:uppercase; opacity:.7; letter-spacing:.03em; }
.cw-date .cw-day { font-size:1.25rem; font-weight:700; margin:.05rem 0; }
.cw-date .cw-mon { font-size:.55rem; text-transform:uppercase; opacity:.7; }
.cw-body {
    flex: 1; padding: 1rem 1.25rem;
    display: flex; flex-direction: column;
    text-align: left; min-width: 0;
}
.cw-cat {
    align-self: flex-start;
    color: #fff; font-size: .68rem; font-weight: 500;
    padding: .2em .65em; border-radius: 4px;
    margin-bottom: .5rem;
}
.cw-title {
    font-size: 1.05rem; line-height: 1.3;
    font-weight: 600; margin: 0 0 .25rem;
    color: var(--gwr-dark);
}
.cw-sub {
    font-size: .85rem; color: var(--gwr-muted);
    margin: 0 0 .5rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cw-meta {
    font-size: .78rem; color: var(--gwr-muted);
    display: flex; flex-wrap: wrap; gap: .35rem .9rem;
    margin-bottom: .65rem;
}
.cw-meta i { color: var(--gwr-primary); margin-right: .2em; }
.cw-footer {
    margin-top: auto; padding-top: .6rem;
    border-top: 1px solid #f0f0f0;
    display: flex; align-items: center; justify-content: space-between;
    gap: .5rem;
}
.cw-price strong { color: var(--gwr-primary); font-size: 1rem; }
.cw-price small  { color: var(--gwr-muted); font-size: .65rem; margin-left: .3rem; }
.cw-arrow {
    color: var(--gwr-primary); font-size: 1.1rem; opacity: .6;
    transition: transform .25s, opacity .25s;
}
.course-wide:hover .cw-arrow { opacity: 1; transform: translateX(4px); }

@media (max-width: 575.98px) {
    .cw-image { width: 110px; }
    .cw-image img, .cw-image-ph { min-height: 130px; }
    .cw-image-ph { font-size: 1.8rem; }
    .cw-date { padding: 3px 5px; min-width: 38px; }
    .cw-date .cw-day { font-size: 1rem; }
    .cw-body { padding: .7rem .85rem; }
    .cw-title { font-size: .92rem; }
    .cw-sub, .cw-meta { font-size: .7rem; }
    .cw-cat { font-size: .6rem; padding: .15em .5em; }
}

/* === DEMNÄCHST Section (unter Hero) === */
.upcoming-section {
    margin-top: -3rem; position: relative; z-index: 5;
    padding: 0 1rem;
}
.upcoming-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    border: 1px solid rgba(0,0,0,.04);
}
.upcoming-title {
    font-family: var(--gwr-font-heading);
    font-size: 1.05rem; font-weight: 600;
    color: var(--gwr-primary);
    margin: 0 0 .75rem;
    display: flex; align-items: center; justify-content: space-between;
}
.upcoming-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: .75rem;
}
@media (max-width: 575.98px) {
    .upcoming-section { margin-top: -2rem; padding: 0 .75rem; }
    .upcoming-card { padding: .9rem; }
    .upcoming-list { grid-template-columns: 1fr; }
}

/* Globale Wort-Umbrüche unterbinden in Card-Texten */
.card h1, .card h2, .card h3, .card h4, .card h5, .card h6,
.card .card-title, .card-text, .meta {
    hyphens: none; word-break: keep-all; overflow-wrap: normal;
    text-align: left;
}

/* Legacy support */
.course-card { height: 100%; background: #fff; overflow: hidden; }
.course-card .card-img-top { aspect-ratio: 16/10; object-fit: cover; }
.course-card .card-body { text-align: left; }

/* Filter-bar */
.filter-bar {
    background: var(--gwr-sand);
    border-radius: var(--gwr-radius-card);
    padding: 1.25rem;
}
.filter-bar .form-select, .filter-bar .form-control {
    border-radius: var(--gwr-radius-btn);
    border: 1px solid transparent;
    background: #fff;
}
.filter-bar .form-select:focus, .filter-bar .form-control:focus {
    border-color: var(--gwr-primary);
    box-shadow: 0 0 0 3px rgba(var(--gwr-primary-rgb), .15);
}

/* Instructor card */
.instructor-card {
    text-align: center; padding: 1.5rem 1rem;
    background: #fff; border-radius: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 6px rgba(0,0,0,.04);
    transition: transform var(--gwr-anim-speed), box-shadow var(--gwr-anim-speed);
    height: 100%;
}
.instructor-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.10); }
.instructor-card .avatar {
    width: 120px; height: 120px; border-radius: 2px;
    object-fit: cover; margin: 0 auto 1rem;
    background: var(--gwr-soft);
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.instructor-card .avatar-placeholder {
    display:flex; align-items:center; justify-content:center;
    background: linear-gradient(135deg, var(--gwr-primary), var(--gwr-accent));
    color:#fff; font-weight:600; font-size: 2rem;
}

/* === Einheitlicher Page-Header für ALLE Sub-Seiten === */
.detail-hero,
.page-hero,
.gwr-page-header {
    background: var(--gwr-sand) !important;
    padding: 1rem 0 1.25rem !important;
    border-bottom: 1px solid #e9ecef;
    color: var(--gwr-dark) !important;
    margin-bottom: 0;
}
@media (min-width: 768px) {
    .detail-hero, .page-hero, .gwr-page-header { padding: 1.25rem 0 1.5rem !important; }
}
.detail-hero h1, .page-hero h1, .gwr-page-header h1,
.page-hero-title {
    font-family: var(--gwr-font-heading);
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: var(--gwr-dark) !important;
    margin: 0 0 .2rem !important;
    line-height: 1.2;
    text-shadow: none !important;
}
.detail-hero .lead, .page-hero .lead, .gwr-page-header .lead {
    font-size: .9rem !important; color: var(--gwr-muted) !important;
    margin: 0; font-weight: 400 !important;
}
.detail-hero .breadcrumb, .page-hero .breadcrumb { margin-bottom: .35rem; }
.detail-hero .breadcrumb a, .page-hero .breadcrumb a { color: var(--gwr-muted); }
.detail-hero a, .page-hero a { color: var(--gwr-primary); }
.detail-meta { background: #fff; border-radius: var(--gwr-radius-card); padding: 1.5rem; box-shadow: var(--gwr-shadow); position: sticky; top: 6rem; }
.detail-meta dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gwr-muted); margin-top: .8rem; }
.detail-meta dd { margin: 0; font-weight: 500; }

/* Skeleton loader */
.skel { background: linear-gradient(90deg, var(--gwr-sand) 0%, #fff 50%, var(--gwr-sand) 100%); background-size: 200% 100%; animation: skel 1.4s linear infinite; border-radius: .5rem; }
@keyframes skel { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }

/* Print */
@media print {
    .navbar, footer, .no-print { display: none !important; }
    a { color: #000; text-decoration: none; }
    .card { box-shadow: none; border: 1px solid #ddd; }
}

/* Mobile nav improvements */
@media (max-width: 991.98px) {
    #navMain { padding-top: 1rem; }
    #navMain .search-input { width: 100%; }
}

/* Accessibility focus */
*:focus-visible {
    outline: 3px solid var(--gwr-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* === DRAG-DROP UPLOAD WIDGET === */
.gu-wrapper {
    display: flex; flex-direction: column; gap: .65rem;
}
.gu-preview {
    position: relative;
    border-radius: 10px; overflow: hidden;
    background: #f4f4f4;
    aspect-ratio: 16/10;
    border: 1px solid #e0e0e0;
}
.gu-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gu-remove {
    position: absolute; top: .5rem; right: .5rem;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(0,0,0,.6); color: #fff; border: 0;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background .2s;
}
.gu-remove:hover { background: var(--gwr-danger); }
.gu-drop {
    display: block;
    border: 2px dashed #cfd6cf;
    background: #fafbfa;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
}
.gu-drop:hover, .gu-drop.gu-drag {
    border-color: var(--gwr-primary);
    background: rgba(var(--gwr-primary-rgb), .04);
}
.gu-drop.gu-has-image { padding: .75rem 1rem; }
.gu-drop-inner { display: flex; align-items: center; gap: .85rem; justify-content: center; text-align: left; }
.gu-icon { font-size: 1.8rem; color: var(--gwr-primary); }
.gu-text { display: flex; flex-direction: column; line-height: 1.3; }
.gu-text strong { font-size: .9rem; color: var(--gwr-dark); }
.gu-text small { font-size: .72rem; color: var(--gwr-muted); }
.gu-status {
    display: flex; align-items: center; gap: .5rem;
    padding: .55rem .8rem;
    border-radius: 8px;
    font-size: .82rem;
    transition: opacity .2s;
}
.gu-status .gu-bar {
    flex: 1; height: 4px;
    background: rgba(0,0,0,.08);
    border-radius: 2px; overflow: hidden;
    margin-left: .5rem;
}
.gu-status .gu-bar-fill {
    height: 100%; background: currentColor;
    transition: width .2s ease;
}
.gu-status.gu-progress { background: rgba(var(--gwr-primary-rgb), .1); color: var(--gwr-primary); }
.gu-status.gu-success  { background: rgba(10,138,0,.1); color: #0a8a00; }
.gu-status.gu-error    { background: rgba(198,10,10,.1); color: var(--gwr-danger); }
.gu-status.gu-info     { background: rgba(0,0,0,.05); color: var(--gwr-muted); }

/* === FULL-SCREEN SEARCH MODAL (Mobile) === */
.search-modal-fullscreen {
    position: fixed; inset: 0;
    background: rgba(255,255,255,.92);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    z-index: 1090;
    overflow-y: auto;
    animation: fadeInBlur .25s ease;
}
@keyframes fadeInBlur { from {opacity:0; backdrop-filter: blur(0);} to {opacity:1;} }

.search-close-btn {
    position: fixed; top: 1rem; right: 1rem;
    background: #fff;
    border: 0; border-radius: 50%;
    width: 44px; height: 44px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    font-size: 1.3rem; color: var(--gwr-dark);
    z-index: 1095;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.search-close-btn:hover { background: var(--gwr-primary); color: #fff; }

.search-modal-inner {
    max-width: 720px; margin: 0 auto;
    padding: 1rem;
    /* Suchbox auf 20% von oben */
    padding-top: calc(20vh + env(safe-area-inset-top, 0px));
}
.search-chip-count {
    margin-left: .15em;
    font-size: .72em;
    opacity: .6;
    font-weight: 400;
}
.search-hero-count {
    font-size: .7em; font-weight: 400;
    color: var(--gwr-muted); margin-left: .35em;
    letter-spacing: 0;
    display: inline-block;
}
.search-chip-instr {
    padding-left: .25em !important;
    padding-right: .85em !important;
    gap: .4em;
}
.search-chip-avatar {
    width: 24px; height: 24px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
}
.search-chip-avatar-ph {
    display: inline-flex;
    align-items: center; justify-content: center;
    background: var(--gwr-primary); color: #fff;
    font-size: .6rem; font-weight: 600;
}
.search-chip-instr:hover .search-chip-avatar-ph {
    background: rgba(255,255,255,.95); color: var(--gwr-primary);
}
.search-hero { animation: searchHeroFadeIn .35s ease; }
@keyframes searchHeroFadeIn { from { opacity:0; transform: translateY(-8px); } to { opacity:1; transform: none; } }
.search-hero-title {
    font-family: var(--gwr-font-heading);
    font-weight: 700; color: var(--gwr-dark);
    font-size: 1.6rem; margin-bottom: .25rem;
}
.search-hero-sub {
    color: var(--gwr-muted); font-size: .9rem; margin: 0;
}
.search-hero-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%; transform: translateY(-50%);
    color: var(--gwr-primary); font-size: 1.15rem;
    z-index: 2; pointer-events: none;
    line-height: 1;
}
.search-input-hero {
    border: 2px solid transparent;
    background: #fff;
    border-radius: 999px;
    padding: 1rem 1.3rem 1rem 3.2rem;  /* genug Platz für Icon */
    font-size: 1.05rem;
    line-height: 1.4;
    box-shadow: 0 6px 24px rgba(0,0,0,.08);
    width: 100%;
}
.search-input-hero:focus {
    outline: none;
    border-color: var(--gwr-primary);
    box-shadow: 0 0 0 4px rgba(var(--gwr-primary-rgb), .15), 0 6px 24px rgba(0,0,0,.08);
}

/* === FILTER CHIPS === */
.search-chips { text-align: left; }
.search-chips-label {
    display: block;
    font-size: .7rem;
    color: var(--gwr-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .5rem;
    padding-left: .3rem;
}
.search-chips-row {
    display: flex; flex-wrap: wrap; gap: .4rem;
}
.search-chip {
    display: inline-flex; align-items: center; gap: .3em;
    padding: .4em .85em;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 999px;
    text-decoration: none;
    color: var(--gwr-dark);
    font-size: .82rem; font-weight: 500;
    transition: all .2s;
    white-space: nowrap;
}
.search-chip:hover {
    background: var(--gwr-primary); color: #fff !important;
    border-color: var(--gwr-primary) !important;
    text-decoration: none;
    transform: translateY(-1px);
}
.search-chip:active { transform: translateY(0); }
/* Stelle sicher, dass Chips über Suchergebnissen klickbar bleiben */
.search-chips, .search-chips-row, .search-chip {
    position: relative; z-index: 1;
}
.search-chip i { font-size: .9em; }

/* Legacy */
.search-input-big {
    border: 2px solid transparent;
    background: #fff;
    border-radius: 12px;
    padding: .9rem 1.1rem;
    font-size: 1.05rem;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.search-input-big:focus {
    outline: none; border-color: var(--gwr-primary);
    box-shadow: 0 0 0 4px rgba(var(--gwr-primary-rgb), .15);
}
.search-results-mobile {
    display: flex; flex-direction: column; gap: .5rem;
}
.search-result-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: .75rem;
    display: flex; gap: .65rem; align-items: flex-start;
    text-decoration: none; color: var(--gwr-dark);
    transition: all .2s;
}
.search-result-item:hover, .search-result-item:focus {
    border-color: var(--gwr-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
    text-decoration: none; color: var(--gwr-dark);
}
.search-result-item .sr-icon {
    flex-shrink: 0; width: 36px; height: 36px;
    border-radius: 8px; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.search-result-item .sr-text { flex: 1; min-width: 0; text-align: left; }
.search-result-item .sr-title { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.search-result-item .sr-meta {
    font-size: .75rem; color: var(--gwr-muted);
    margin-top: .15rem; display: flex; gap: .5rem; flex-wrap: wrap;
}
.search-result-item .sr-meta i { color: var(--gwr-primary); }
.sr-empty, .sr-loading {
    text-align: center; padding: 2rem 1rem;
    color: var(--gwr-muted);
}

/* === Share-Modal === */
.gwr-share-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    opacity: 0; transition: opacity .2s;
}
.gwr-share-overlay.show { opacity: 1; }
.gwr-share-modal {
    background: #fff;
    border-radius: 14px;
    padding: 1.5rem;
    max-width: 440px; width: 100%;
    max-height: 90vh; overflow-y: auto;
    position: relative;
    transform: scale(.95) translateY(10px);
    transition: transform .25s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.gwr-share-overlay.show .gwr-share-modal { transform: scale(1) translateY(0); }
.gwr-share-close {
    position: absolute; top: .5rem; right: .85rem;
    background: none; border: 0;
    font-size: 1.6rem; color: var(--gwr-muted);
    cursor: pointer; line-height: 1;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: background .15s;
}
.gwr-share-close:hover { background: var(--gwr-sand); color: var(--gwr-dark); }
.gwr-share-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    margin: 1rem 0;
}
.gwr-share-action {
    display: flex; flex-direction: column; align-items: center;
    gap: .35rem;
    padding: .85rem .5rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: .72rem; font-weight: 500;
    transition: transform .15s, box-shadow .15s;
    -webkit-tap-highlight-color: transparent;
}
.gwr-share-action:hover, .gwr-share-action:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,.15);
    color: inherit;
}
.gwr-share-action i { font-size: 1.4rem; }
.gwr-share-url-group {
    display: flex; gap: .5rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}
.gwr-share-url-group input { font-size: .78rem; }
.gwr-share-url-group .btn { white-space: nowrap; }
@media (max-width: 575.98px) {
    .gwr-share-modal { padding: 1.25rem; max-width: 100%; }
    .gwr-share-actions { grid-template-columns: repeat(3, 1fr); gap: .4rem; }
    .gwr-share-action { padding: .7rem .35rem; font-size: .68rem; }
    .gwr-share-action i { font-size: 1.2rem; }
}

/* === Instructor-Avatare: überall quadratisch mit 2px Radius (statt rund) === */
.instructor-avatar,
.ic-avatar,
.instructor-photo-big,
img.instructor-thumb,
.search-chip-avatar,
.search-chip-avatar-ph,
.instructor-card .avatar,
.instructor-card .avatar-placeholder {
    border-radius: 2px !important;
}

/* In Tabellen (Admin) und überall: jeder rounded-circle der ein Instructor-Bild ist → quadratisch.
   Wir matchen "rounded-circle" nur wenn das Bild aus /uploads/instructors/ kommt */
img.rounded-circle[src*="/uploads/instructors/"] {
    border-radius: 2px !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}

/* === MOBILE KOMPAKTER (≤767.98px) === */
@media (max-width: 767.98px) {
    /* Allgemein kleinere Schrift */
    body { font-size: 14px; }
    h1, .h1 { font-size: 1.5rem; }
    h2, .h2 { font-size: 1.25rem; }
    h3, .h3 { font-size: 1.1rem; }
    h4, .h4 { font-size: 1rem; }
    .lead { font-size: 1rem; }
    /* Sections kompakter */
    section.py-4, section.py-md-5 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
    /* Container etwas mehr Side-Padding */
    .container, .container-fluid { padding-left: 1rem; padding-right: 1rem; }
    /* Cards kleiner */
    .card .card-body { padding: .85rem; }
    .course-card-v2 .cc-body { padding: .65rem .8rem .85rem; }
    .course-card-v2 .cc-title { font-size: .88rem; }
    .course-card-v2 .cc-meta { font-size: .72rem; }
    .course-card-v2 .cc-price { font-size: 1.1rem; }
    /* Buttons kompakter */
    .btn { padding: .4rem .85rem; font-size: .88rem; }
    .btn-sm { padding: .3rem .65rem; font-size: .78rem; }
    .btn-lg { padding: .55rem 1.1rem; font-size: 1rem; }
    /* Form-Inputs */
    .form-control, .form-select { padding: .45rem .75rem; font-size: .9rem; }
    /* Filter-Toggle Counter-Badge */
    .filter-toggle-count {
        display: inline-flex; align-items: center; justify-content: center;
        min-width: 1.4em; height: 1.4em;
        margin-left: .35em;
        background: var(--gwr-primary); color: #fff;
        border-radius: 300px;
        font-size: .68rem; font-weight: 600;
        padding: 0 .45em;
    }
    .ivhs-scope .filter-toggle-count { background: #3B7771; }
    /* Hero auf mobile kompakter (Home Video-Hero) */
    .gwr-hero-video { min-height: 55vh !important; }
    .gwr-hero-content { padding: 1.25rem 0 !important; }
    .gwr-hero-logo { height: 40px !important; }
    .gwr-hero-eyebrow { font-size: .68rem !important; margin-bottom: .65rem !important; letter-spacing: .15em !important; }
    .gwr-hero-headline { font-size: 1.25rem !important; margin-bottom: .65rem !important; line-height: 1.25 !important; }
    .gwr-hero-subline { font-size: .85rem !important; margin: 0 auto 1.1rem !important; }
    .gwr-hero-ctas { flex-direction: column; align-items: stretch; gap: .5rem !important; margin-bottom: 1.1rem !important; }
    .gwr-hero-ctas .btn { width: 100%; }
    .gwr-hero-stats { font-size: .72rem !important; padding: .35rem .85rem !important; }
    .gwr-hero-logo-wrap { padding: .35rem .5rem !important; margin-bottom: .85rem !important; border-radius: 8px !important; }
}

/* ============================================================
   LINKS: kein Underline mehr, dafür Color-Shift + Background-Pill
   Gilt für normale Inhalts-/CMS-Links. Ausgeschlossen sind
   Buttons, Nav-Items, Cards, Tab-Items, etc., die ihren eigenen
   Hover-Style behalten sollen.
   ============================================================ */
main a:not(.btn):not(.nav-link):not(.dropdown-item):not(.cc-cat):not(.cc-prog-badge):not(.themen-tile):not(.upcoming-block):not(.search-chip):not(.dropdown-toggle):not(.navbar-brand):not([class*="ub-"]):not([class*="footer-"]),
.cms-content a,
.about-content a {
    text-decoration: none !important;
    color: var(--gwr-primary);
    border-bottom: 1px dashed transparent;
    transition: color .2s, border-color .2s, background .2s;
    padding: 0 .12em;
    border-radius: 3px;
}
main a:not(.btn):not(.nav-link):not(.dropdown-item):not(.cc-cat):not(.cc-prog-badge):not(.themen-tile):not(.upcoming-block):not(.search-chip):not(.dropdown-toggle):not(.navbar-brand):not([class*="ub-"]):not([class*="footer-"]):hover,
.cms-content a:hover,
.about-content a:hover {
    text-decoration: none !important;
    color: var(--gwr-dark);
    background: rgba(var(--gwr-primary-rgb), .08);
    border-bottom-color: var(--gwr-primary);
}
/* Bootstrap btn-link: kein Underline */
.btn-link,
.btn-link:hover,
.btn-link:focus { text-decoration: none !important; }

/* Footer-Links subtle (Opacity-Shift statt Underline) */
footer a:not(.btn):not(.footer-social-link) {
    text-decoration: none !important;
    transition: color .2s, opacity .2s;
}
footer a:not(.btn):not(.footer-social-link):hover { opacity: .75; }

