
:root{--forest:#190c0e;--panel:#351419;--panel2:#281014;--gold:#f2bc4d;--cream:#fff0d0;--muted:#cdaFA0;--line:#87512b}
html,body{min-height:100%;background:var(--forest)!important;color:var(--cream)!important;font-family:Inter,"Segoe UI",system-ui,sans-serif}
body{background-image:radial-gradient(circle at 90% 0%,rgba(242,188,77,.075),transparent 35%)!important}
.cdv-app{max-width:1160px;padding:0 26px 55px}
.cdv-topbar{height:94px;display:flex;align-items:center;gap:15px;border-bottom:1px solid rgba(242,188,77,.22);margin-bottom:25px}
.cdv-crest{display:grid;place-items:center;width:52px;height:58px;border:1.5px solid var(--gold);border-radius:16px 16px 24px 24px;color:var(--gold);font-size:33px;background:linear-gradient(145deg,#59151e,#281014);box-shadow:0 8px 22px #0003}
.cdv-wordmark{font-family:Georgia,serif;font-size:32px;font-weight:700;line-height:1;color:var(--cream)}
.cdv-eyebrow,.cdv-kicker{font-size:10px;letter-spacing:2.2px;color:var(--gold);font-weight:800}
.cdv-eyebrow{margin-top:6px;font-size:9px}
.cdv-est{margin-left:auto;color:var(--gold);font-family:Georgia,serif;letter-spacing:2px;font-size:12px}
h1,h2,h3,h4,h5{font-family:Georgia,"Times New Roman",serif;color:var(--cream);letter-spacing:-.4px}
h2{font-size:clamp(26px,4vw,40px)}
h3{font-size:25px}
p,.cdv-muted{color:var(--muted)}
.cdv-main{max-width:100%}
.cdv-welcome{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin:0 0 20px}
.cdv-welcome h2{margin:8px 0 5px}
.cdv-welcome p{margin:0}
.btn,.btn-default{border-radius:11px}
.cdv-logout{background:transparent!important;border:1px solid var(--line)!important;color:var(--gold)!important;font-size:12px}
.cdv-logout:hover{background:var(--panel)!important}
.card,.well,.sidebar,.modal-content{background:var(--panel)!important;color:var(--cream)!important;border:1px solid var(--line)!important;border-radius:18px!important}
.card{box-shadow:0 16px 40px rgba(0,0,0,.15);overflow:hidden}
.card-header{background:var(--panel2)!important;border-bottom:1px solid var(--line)!important}
.card-body{padding:25px!important}
.nav-tabs{border-bottom:1px solid var(--line)!important;gap:5px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.nav-tabs .nav-link{border:0!important;border-bottom:2px solid transparent!important;background:transparent!important;color:var(--muted)!important;white-space:nowrap;padding:15px 17px;font-size:13px;font-weight:600}
.nav-tabs .nav-link.active{color:var(--gold)!important;border-bottom-color:var(--gold)!important}
.nav-tabs .nav-link:hover{color:var(--cream)!important}
.form-group,.shiny-input-container{max-width:100%;margin-bottom:16px}
label,.control-label{color:var(--cream)!important;font-size:13px;font-weight:600;margin-bottom:7px}
.form-control,.form-select,.selectize-input{background:#281014!important;color:var(--cream)!important;border:1px solid #87512b!important;border-radius:10px!important;min-height:42px}
.form-control:focus,.form-select:focus{border-color:var(--gold)!important;box-shadow:0 0 0 3px rgba(242,188,77,.14)!important}
.form-control::placeholder{color:#cdaFA0}
.selectize-dropdown{background:var(--panel);color:var(--cream)}
.btn-primary,.btn-default.action-button{background:var(--gold)!important;border:1px solid var(--gold)!important;color:var(--forest)!important;font-weight:800;padding:10px 17px}
.btn-primary:hover,.btn-default.action-button:hover{background:#f8d78a!important}
.cdv-login-card{width:min(100%,470px);margin:55px auto 30px;padding:42px;background:linear-gradient(155deg,#59151e,#281014);border:1px solid #87512b;border-radius:24px;box-shadow:0 22px 70px #0005}
.cdv-login-card h2{margin:8px 0 12px}
.cdv-login-crest{width:82px;height:82px;display:grid;place-items:center;border:1px solid var(--gold);border-radius:24px 24px 35px 35px;font-size:50px;color:var(--gold);margin:0 auto 28px}
.cdv-login-card>.cdv-kicker{text-align:center}
.cdv-login-card>h2{text-align:center}
.cdv-login-card>p{text-align:center;margin-bottom:26px}
.cdv-wide{width:100%;margin-top:8px;padding:13px!important}
.cdv-hero-card{background:linear-gradient(120deg,#59151e,#471018);border:1px solid #87512b;border-radius:20px;padding:24px 26px;margin-bottom:17px}
.cdv-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:20px}
.cdv-stats>div{text-align:center;padding:6px 4px;border-right:1px solid #87512b}
.cdv-stats>div:last-child{border-right:0}
.cdv-stat-number{font-family:Georgia,serif;color:var(--gold);font-size:clamp(27px,4vw,42px);line-height:1.15}
.cdv-stat-label{font-size:12px;color:var(--muted);margin-top:5px}
.cdv-prost-card{background:linear-gradient(130deg,#f8d78a,#d99b37);border:1px solid #f8d78a;color:var(--forest);border-radius:20px;text-align:center;padding:26px 18px;margin-bottom:24px}
.cdv-prost-icon{font-size:36px;margin-bottom:6px}
.cdv-prost-card h3{color:var(--forest);margin:6px 0}
.cdv-prost-card p{color:#52202a;margin:0 0 18px}
.cdv-prost-card .cdv-hero-button{background:var(--forest)!important;border:1px solid var(--forest)!important;color:var(--cream)!important;letter-spacing:1px;font-weight:800;border-radius:30px;padding:12px 27px}
.cdv-section-title{margin:10px 0 14px}
.cdv-tile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.cdv-tile{background:#351419;border:1px solid #87512b;border-radius:16px;padding:22px;min-height:135px}
.cdv-tile-icon{font-size:26px;margin-bottom:12px}
.cdv-tile h4{font-size:19px;margin:0 0 5px}
.cdv-tile p{font-size:12px;margin:0}
.cdv-motto{text-align:center;font-family:Georgia,serif;font-style:italic;font-size:12px;margin:30px 0 5px}
.cdv-panel{background:var(--panel);border:1px solid var(--line);border-radius:15px;padding:18px;margin:12px 0}
@media(max-width:720px){
 .cdv-app{padding:0 14px 104px}
 .cdv-topbar{height:76px;margin-bottom:20px}
 .cdv-crest{width:42px;height:46px;font-size:26px}
 .cdv-wordmark{font-size:26px}
 .cdv-est{font-size:9px;letter-spacing:0}
 .cdv-welcome h2{font-size:27px}
 .cdv-welcome p{font-size:12px}
 .cdv-logout{padding:7px 9px!important}
 .card{border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible}
 .card-body{padding:18px 0!important}
 .nav-tabs{position:fixed;bottom:0;left:0;right:0;z-index:1000;background:#471018!important;border-top:1px solid #87512b!important;border-bottom:0!important;justify-content:flex-start;padding:6px 8px calc(8px + env(safe-area-inset-bottom));box-shadow:0 -10px 35px #0007}
 .nav-tabs .nav-link{padding:11px 13px;font-size:12px}
 .cdv-login-card{margin:25px auto;padding:28px 22px}
 .cdv-hero-card{padding:20px 12px}
 .cdv-tile{padding:17px;min-height:123px}
}

/* CdV mobile app shell v3 – intentionally phone-sized on every screen */
html,body{margin:0!important;background:#190c0e!important}
body{background-image:radial-gradient(circle at 50% -10%,#59151e 0%,#190c0e 48%,#190c0e 100%)!important}
.cdv-app{width:100%;max-width:440px!important;min-height:100dvh;margin:0 auto;padding:0 19px 120px!important;background:linear-gradient(180deg,#281014 0%,#190c0e 55%);box-shadow:0 0 0 1px #471018,0 0 90px #0008}
.cdv-topbar{height:84px;margin-bottom:23px}
.cdv-est{display:none}
.cdv-wordmark{font-size:29px}
.cdv-crest{height:49px;width:46px;font-size:29px}
.cdv-welcome{margin-bottom:20px;align-items:center}
.cdv-welcome h2{font-size:29px;line-height:1.08;max-width:270px}
.cdv-welcome .cdv-muted{font-size:12px;max-width:275px;line-height:1.6}
.cdv-logout{font-size:10px!important;padding:8px 10px!important}
.cdv-main .tab-content{padding:0!important;margin:0!important}
.cdv-main .tab-pane{padding:0!important}
.cdv-hero-card{border-radius:22px;padding:24px 16px;box-shadow:inset 0 1px 0 #a66d2c55,0 14px 35px #0003}
.cdv-stat-number{font-size:35px}
.cdv-prost-card{border-radius:22px;padding:25px 12px 27px;box-shadow:0 12px 30px #0003}
.cdv-prost-icon{font-size:44px}
.cdv-prost-card h3{font-size:25px}
.cdv-tile-grid{gap:12px}
.cdv-tile{min-height:166px;padding:16px;border-radius:19px;position:relative;box-shadow:inset 0 1px 0 #a66d2c22}
.cdv-tile-icon{font-size:27px;margin-bottom:11px}
.cdv-tile h4{font-size:20px}
.cdv-tile p{font-size:11px}
.cdv-tile-action{display:block!important;background:none!important;border:0!important;color:#f2bc4d!important;padding:8px 0 0!important;font-size:11px!important;font-weight:700!important;text-align:left!important;box-shadow:none!important}
.cdv-bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,440px);display:grid;grid-template-columns:repeat(5,1fr);gap:0;padding:10px 10px calc(15px + env(safe-area-inset-bottom));z-index:1050;background:#471018;border-top:1px solid #87512b;box-shadow:0 -10px 32px #0008}
.cdv-bottom-nav .cdv-nav-btn{background:transparent!important;border:0!important;color:#f2bc4d!important;border-radius:13px!important;font-size:26px!important;padding:10px 0!important;line-height:1!important;box-shadow:none!important}
.cdv-bottom-nav .cdv-nav-btn:hover,.cdv-bottom-nav .cdv-nav-btn:focus{background:#59151e!important}
.cdv-menu-list{display:grid;gap:12px;margin:18px 0}
.cdv-menu-list .cdv-menu-item{background:#351419!important;border:1px solid #87512b!important;border-radius:16px!important;color:#fff0d0!important;text-align:left!important;font-size:15px!important;font-weight:600!important;padding:17px!important;box-shadow:none!important}
.cdv-menu-list .cdv-menu-item:hover{background:#59151e!important}
.cdv-login-card{margin:50px auto 0;padding:35px 23px;border-radius:24px}
.cdv-login-card h2{font-size:30px}
.cdv-main .shiny-input-container{width:100%!important}
.cdv-main textarea{min-height:90px}
.cdv-main .cdv-panel{border-radius:17px}
.cdv-main .tab-pane>h3,.cdv-main .tab-pane>h4{margin:17px 0}
@media(min-width:600px){.cdv-app{border-left:1px solid #87512b;border-right:1px solid #87512b}}

.cdv-world-map{height:310px;width:100%;border:1px solid #87512b;border-radius:18px;overflow:hidden;background:#301318;margin:15px 0 24px;z-index:0}
.cdv-world-map .leaflet-container{background:#301318}
.cdv-bottom-nav .cdv-nav-btn{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:10px!important;font-weight:600!important}
.cdv-bottom-nav .cdv-nav-btn svg{width:23px;height:23px;stroke-width:1.9}
.cdv-bottom-nav .cdv-nav-btn span{font-size:10px}

/* Bundled Lucide-style SVGs: rendered by Python, no external icon CDN */
.cdv-icon{display:inline-block;vertical-align:middle;flex-shrink:0;stroke:currentColor}
.cdv-crest,.cdv-login-crest,.cdv-prost-icon,.cdv-tile-icon{display:flex;align-items:center;justify-content:center}
.cdv-crest .cdv-icon{color:#f2bc4d}
.cdv-prost-icon .cdv-icon{color:#190c0e}
.cdv-tile-icon .cdv-icon{color:#f2bc4d}
.cdv-bottom-nav .cdv-nav-btn{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:5px}
.cdv-bottom-nav .cdv-nav-btn .cdv-icon{width:23px;height:23px}
.cdv-bottom-nav .cdv-nav-btn span{font-size:10px}
.cdv-menu-list .cdv-menu-item{display:flex;align-items:center;gap:14px}
.cdv-menu-list .cdv-menu-item .cdv-icon{color:#f2bc4d}

/* Icon-only bottom navigation, retain accessible labels */
.cdv-bottom-nav .cdv-nav-btn{min-height:48px;justify-content:center!important;gap:0!important}
.cdv-bottom-nav .cdv-nav-btn .visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.cdv-bottom-nav .cdv-nav-btn .cdv-icon{width:26px;height:26px}

/* Weltkarte vollständig lokal: kein Leaflet und keine externen Kartenkacheln */
.cdv-world-map{position:relative;height:auto!important;aspect-ratio:1000/510;min-height:195px;max-height:320px;touch-action:none;background:#301318!important}
.cdv-map-svg{display:block;width:100%;height:100%;touch-action:none;user-select:none}
.cdv-country{cursor:pointer;transition:fill .12s ease;vector-effect:non-scaling-stroke}
.cdv-country:hover{fill:#d99b37!important}
.cdv-map-controls{position:absolute;top:10px;right:10px;display:flex;flex-direction:column;gap:5px}
.cdv-map-control{width:34px;height:34px;border-radius:8px;background:#351419;color:#f2bc4d;border:1px solid #87512b;font-size:20px;line-height:1;cursor:pointer}

.cdv-world-map .cdv-map-svg{width:100%;height:100%;display:block;min-height:190px}
.cdv-world-map .cdv-country{fill:#78303a;stroke:#b47a68}

/* Interaktives Länder-Infofenster */
.cdv-world-map .cdv-country{cursor:pointer}
.cdv-world-map .cdv-country-selected{stroke:#fff4cb!important;stroke-width:2.4!important}
.cdv-map-popup{position:absolute;left:8px;right:8px;bottom:8px;z-index:5;background:#351419;border:1px solid #f2bc4d;border-radius:13px;padding:13px 38px 13px 14px;box-shadow:0 8px 25px #0009;color:#fff0d0;max-height:70%;overflow-y:auto}
.cdv-map-popup-name{font-family:Georgia,serif;font-weight:bold;font-size:17px;color:#f2bc4d;margin-bottom:5px}
.cdv-map-popup-details{font-size:12px;line-height:1.55;margin-bottom:9px}
.cdv-map-popup-add{background:#f2bc4d;color:#190c0e;border:0;border-radius:9px;padding:9px 12px;font-weight:700;font-size:12px;cursor:pointer}
.cdv-map-popup-close{position:absolute;top:7px;right:10px;background:transparent;color:#f2bc4d;border:0;font-size:25px;cursor:pointer}

/* Shiny-Länderdialog, unabhängig von Karten-JavaScript */
.modal-content{background:#351419!important;color:#fff0d0!important;border:1px solid #f2bc4d!important;border-radius:20px!important}
.modal-header,.modal-footer{border-color:#87512b!important}
.modal-content .btn-close{filter:invert(1)}

/* v5.9: interactive touch map; country selection does not alter unlocked colors */
#cdv-world-map .cdv-map-svg{touch-action:none;cursor:grab}
#cdv-world-map .cdv-map-svg:active{cursor:grabbing}
#cdv-world-map .cdv-country{cursor:pointer}
#cdv-world-map .cdv-country-selected{stroke-width:.8!important}

.cdv-visit-history{margin-top:30px;padding-top:16px;border-top:1px solid #87512b}

/* Clubtermine: mobile event cards */
.cdv-event-heading{display:flex;justify-content:space-between;align-items:center;margin:4px 0 22px}
.cdv-event-heading h3{margin:4px 0!important}
.cdv-event-plus{width:44px;height:44px;min-width:44px;border-radius:14px!important;border:1px solid #f2bc4d!important;background:#f2bc4d!important;color:#190c0e!important;font-size:29px!important;line-height:1!important;padding:0!important;box-shadow:none!important}
.cdv-event-list{display:grid;gap:15px;padding-bottom:20px}
.cdv-event-card{background:#351419;border:1px solid #87512b;border-radius:19px;padding:19px 17px;color:#fff0d0;box-shadow:0 8px 24px #0002}
.cdv-event-datetime{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#f2bc4d;font-size:13px;font-weight:700;margin-bottom:11px}
.cdv-event-title{font-size:21px!important;line-height:1.25;margin:0 0 12px!important;color:#fff0d0!important}
.cdv-event-location{display:flex;align-items:center;gap:7px;color:#cdaFA0;font-size:12px;margin:0 0 9px}
.cdv-event-description{font-size:14px;line-height:1.6;color:#fff4df;white-space:pre-wrap;margin:0 0 16px}
.cdv-event-attendees{padding:12px 0;border-top:1px solid #87512b}
.cdv-event-label{font-size:10px;letter-spacing:1.3px;color:#f2bc4d;font-weight:700;margin-bottom:6px}
.cdv-event-names{font-size:13px;color:#fff0d0;margin:0;line-height:1.5}
.cdv-rsvp-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.cdv-rsvp-btn{border:1px solid #87512b;background:#59151e;color:#fff0d0;border-radius:12px;padding:12px 6px;font-size:13px;font-weight:600}
.cdv-rsvp-btn.cdv-rsvp-selected{background:#f2bc4d;color:#190c0e;border-color:#f2bc4d}
.cdv-event-back{background:transparent!important;border:0!important;color:#f2bc4d!important;padding:7px 0!important;margin-bottom:16px!important;box-shadow:none!important}
.cdv-events-empty{background:#351419;border:1px solid #87512b;border-radius:18px;padding:30px 18px;text-align:center;color:#f2bc4d}
.cdv-events-empty p{color:#cdaFA0}

/* Hall of Vollidiotie */
.cdv-story-list{display:grid;gap:12px}
.cdv-story-card{margin:0!important}
.cdv-story-card h4{color:#fff0d0;margin:8px 0}
.cdv-story-body{white-space:pre-wrap;overflow-wrap:anywhere}

/* Ordensrat */
.cdv-order-form-heading{margin:30px 0 14px;padding-top:18px;border-top:1px solid #87512b}
.cdv-order-form-heading h3{margin:4px 0}
.cdv-order-recipients{color:#f2bc4d;font-size:14px;font-weight:600;margin-bottom:12px}
.cdv-order-tally{font-size:13px;color:#cdaFA0;border-top:1px solid #87512b;padding-top:12px}
.cdv-order-note{font-size:13px;color:#f2bc4d;margin-top:12px;line-height:1.5}

.cdv-my-medal-card{border-color:#d99b37;background:linear-gradient(145deg,#351419,#281014)}
.cdv-my-medal-icon{color:#f2bc4d;margin:8px 0}

/* Abmelden ausschließlich im Mehr-Menü */
.cdv-menu-logout{margin-top:18px!important;border-color:#87512b!important;color:#fff0d0!important}

/* Rot-Gold: original club crest and accent surfaces */
.cdv-crest,.cdv-login-crest{background:none;border:0;border-radius:0;box-shadow:none;flex-shrink:0}
.cdv-crest{width:64px;height:70px}
.cdv-login-crest{width:170px;height:170px;margin:0 auto 20px}
.cdv-crest img,.cdv-login-crest img{width:100%;height:100%;object-fit:contain;display:block}
.cdv-prost-card{background:linear-gradient(145deg,#701521,#421219);border-color:var(--line);color:var(--cream)}
.cdv-prost-card h3{color:var(--cream)}
.cdv-prost-card p{color:var(--muted)}
.cdv-prost-card .cdv-hero-button{background:var(--gold)!important;color:var(--forest)!important;border-color:var(--gold)!important}
.cdv-prost-icon .cdv-icon{color:var(--gold)}
.selectize-dropdown .active,.selectize-dropdown .selected{background:#59151e;color:var(--cream)}
.selectize-input>input{color:var(--cream)!important}
.selectize-control.multi .selectize-input>div{background:#59151e;color:var(--cream);border-color:var(--line)}
.datepicker{background:var(--panel);color:var(--cream);border-color:var(--line)}
.datepicker table tr td.day:hover,.datepicker table tr th:hover{background:#59151e;color:var(--cream)}
.datepicker table tr td.active.active{background:var(--gold)!important;color:var(--forest)!important}
