:root {
    --slate-50: #f8fafc; --slate-100: #f1f5f9; --slate-200: #e2e8f0; --slate-300: #cbd5e1; 
    --slate-400: #94a3b8; --slate-500: #64748b; --slate-600: #475569; --slate-700: #334155; 
    --slate-800: #1e293b; --slate-900: #0f172a;
    --amber-100: #fef3c7; --amber-300: #fcd34d; --amber-400: #fbbf24; --amber-500: #f59e0b; --amber-600: #d97706;
    --orange-500: #f97316; --orange-600: #ea580c;
    --red-50: #fef2f2; --red-100: #fee2e2; --red-400: #f87171; --red-500: #ef4444; 
    --red-600: #dc2626; --red-700: #b91c1c; --red-800: #991b1b;
    --emerald-400: #34d399; --emerald-500: #10b981; --emerald-600: #059669; --emerald-700: #047857;
    --blue-500: #3b82f6; --blue-600: #2563eb; --blue-700: #1d4ed8;
    --teal-500: #14b8a6; --purple-500: #a855f7; --purple-600: #9333ea;
    --pink-500: #ec4899; --rose-400: #fb7185; --rose-500: #f43f5e; --rose-600: #e11d48;
    --primary-color: #e0001b; --primary: #e0001b;
    --bg-color: #f5f7fa; --card-bg: #ffffff; --text-main: #2d3748; --text-muted: #718096; --border-color: #e2e8f0; --border-radius: 8px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; margin-block: 0px; }
::-webkit-scrollbar-thumb { background-color: #475569; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background-color: #64748b; }
::-webkit-details-marker { display: none; }

input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; height: 0.5em; width: 0.5em; border-radius: 20em; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: contain; opacity: 0; pointer-events: none; cursor: pointer; }
input[type="search"]::-moz-search-cancel-button { appearance: none; height: 1em; width: 1em; border-radius: 50em; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: contain; opacity: 0; pointer-events: none; cursor: pointer; }
input[type="search"]:focus::-webkit-search-cancel-button, input[type="search"]:focus::-moz-search-cancel-button { opacity: .3; pointer-events: all; }


@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
@keyframes fadeInView { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut from { opacity: 1; } to { opacity: 0; } }
@keyframes blink { 50% { opacity: 0.08; } }
@keyframes panic { 0% { text-shadow: 0 0 8px #ff1111; } 100% { text-shadow: 0 0 20px #ff1111; } }
@keyframes toast-pulse {
    0%, 100% { box-shadow: 0 10px 15px -3px rgba(30, 58, 138, 0.3), 0 0 0 0 rgba(96, 165, 250, 0.4); }
    50% { box-shadow: 0 10px 15px -3px rgba(30, 58, 138, 0.5), 0 0 0 8px rgba(96, 165, 250, 0); }
}

.pulse-animation { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-pulse-fast { animation: pulse 1s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.fade-in-view { animation: fadeInView 0.3s ease-out forwards; }
.fadeIn { animation: fadeIn 0.3s ease forwards; }
.fadeOut { animation: fadeOut 0.3s ease forwards; }

.border-slate-accent-100 { border-left: 4px solid var(--slate-300) !important; }   
.border-slate-accent { border-left: 4px solid var(--slate-700) !important; }
.border-blue-accent { border-left: 4px solid var(--blue-500) !important; }
.border-emerald-accent { border-left: 4px solid var(--emerald-600) !important; }
.border-amber-accent { border-left: 4px solid var(--amber-500) !important; }
.border-teal-accent { border-left: 4px solid var(--teal-500) !important; }
.border-pink-accent { border-left: 4px solid var(--pink-500) !important; }
.border-orange-accent { border-left: 4px solid var(--orange-500) !important; }
.border-yellow-accent { border-left: 4px solid var(--amber-400) !important; }
.border-purple-accent { border-left: 4px solid var(--purple-600) !important; }
.border-red-accent, .border-cabcde-accent { border-left: 4px solid var(--red-500) !important; }

.bg-slate-100 { background-color: var(--slate-300); color: #fff; }
.bg-slate-main { background-color: var(--slate-700); color: #ffffff; }
.bg-blue-main { background-color: var(--blue-500); color: #ffffff; }
.bg-emerald-main { background-color: var(--emerald-600); color: #ffffff; }
.bg-amber-main { background-color: var(--amber-500); color: #ffffff; }
.bg-red-main, .bg-cabcde-main { background-color: var(--red-500); color: #ffffff; }
.bg-teal-main { background-color: var(--teal-500); color: #ffffff; }
.bg-pink-main { background-color: var(--pink-500); color: #ffffff; }
.bg-orange-main { background-color: var(--orange-500); color: #ffffff; }
.bg-yellow-main { background-color: var(--amber-400); color: var(--slate-900); }
.bg-purple-main { background-color: var(--purple-600); color: #ffffff; }
.text-black { color: #333!important; }
.text-yellow { color: var(--amber-600); } .text-blue { color: var(--blue-500); } .text-slate { color: var(--slate-600); } 
.text-green { color: var(--emerald-600); } .text-purple { color: var(--purple-500); } .text-red, .text-danger { color: var(--red-600) !important; } 
.text-pink { color: var(--pink-500); } .text-orange { color: var(--orange-600); } .text-darkred { color: var(--red-700); } .text-brown { color: #9a3412; }
.dot { width: 0.625rem; height: 0.625rem; border-radius: 50%; display: inline-block; }
.dot-red { background-color: var(--red-500); box-shadow: 0 0 8px rgba(239, 68, 68, 0.8); }
.dot-pink { background-color: var(--pink-500); box-shadow: 0 0 8px rgba(236, 72, 153, 0.8); }
.dot-blue { background-color: var(--blue-500); box-shadow: 0 0 8px rgba(59, 130, 246, 0.8); }
.dot-teal { background-color: var(--teal-500); box-shadow: 0 0 8px rgba(20, 184, 166, 0.8); }
.dot-purple { background-color: var(--purple-500); box-shadow: 0 0 8px rgba(168, 85, 247, 0.8); }
.dot-amber { background-color: var(--amber-500); box-shadow: 0 0 8px rgba(245, 158, 11, 0.8); }


* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font-sans); background-color: var(--slate-50); color: var(--slate-900);
    height: 100dvh; overflow: hidden; display: flex; flex-direction: column; 
	user-select: none; outline: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; 
}
.hidden { display: none !important; }
.icon-element { display: inline-flex; width: 1.5rem; height: 1.5rem; align-items: center; justify-content: center; }

.app-header, .top-menu { background-color: var(--slate-900); color: #fff; padding: 1rem; flex-shrink: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.top-menu { padding-top: 0.5rem; padding-bottom: 0.5rem; flex-wrap: wrap; flex-direction: row; gap:4px; }
.app-main, .main-menu { flex-grow: 1; overflow-y: auto; overflow-x: hidden; }
.app-content { position: relative; margin: 0 auto; width: 100%; max-width: 48rem; }
.header-left, .header-right { display: flex; align-items: center; gap: 1rem; position: relative; }
.header-logo { height: 2.5rem; width: auto; object-fit: contain; cursor: pointer; }

.app-content .header { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.app-content .title { font-size: 1.5rem; font-weight: 900; color: var(--slate-800); }     
.app-content .subtitle { font-size: 0.875rem; color: var(--slate-500); margin-top: 0.25rem; font-weight: 500; }
.app-content .section-title { font-size: 0.75rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; padding-left: 4px; display:flex; align-items:center; }

.container { max-width: 37.5rem; margin: 0 auto; background: #ffffff; padding: 1.25rem; border-radius: 0.75rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.container header { text-align: center; margin-bottom: 1.25rem; }
.container h1 { color: var(--slate-800); margin: 0; font-size: 1.25rem; text-transform: uppercase; font-weight: 900; }

/* Buttons */
.menu-toggle-btn { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }
.search-toggle-btn { background: none; border: none; color: white; cursor: pointer; font-size: 1.25rem; transition: color 0.2s; }
.search-toggle-btn:hover { color: var(--amber-300); }
.btn-emergency-trigger { background-color: var(--red-600); color: white; padding: 0.5rem 1rem; border-radius: 0.5rem; font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; border: none; cursor: pointer; }
.btn-back-dashboard { margin: 0 auto; background-color: var(--slate-900); color: #fff; font-weight: 700; padding: 0.35rem; border-radius: 0.25rem; display: flex; align-items: center; gap: 0.5rem; border: 1px solid var(--slate-300); cursor: pointer; transition: all 0.2s; }
.btn-back-dashboard:active { transform: scale(0.95); }
.btn-back-dashboard:hover { background-color: var(--slate-300); }
.btn-primary { display: flex; align-items: center; justify-content: center; width: 100%; background-color: #dc2626; color: white; font-weight: 700; padding: 1rem; border-radius: 0.75rem; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; border: none; cursor: pointer; transition: all 0.2s; gap: 8px; text-decoration: none; }
.btn-primary:hover, .btn-primary:active { background-color: #b91c1c; }
.btn-install { width: 100%; padding: 0.75rem; margin-top: 1rem; background-color: var(--emerald-600); border-radius: 0.75rem; font-weight: 700; display: flex; gap: 0.75rem; align-items: center; justify-content: center; color: white; border: none; cursor: pointer; box-shadow: 0 0 15px rgba(5, 150, 105, 0.3); transition: all 0.2s; }
.btn-install:active { transform: scale(0.95); }
.btn-install:hover { background-color: var(--emerald-500); }
.btn-reset { background-color: var(--slate-700); color: white; font-size: 10px; font-weight: 700; padding: 0.5rem 0.75rem; border-radius: 0.5rem; text-transform: uppercase; border: none; cursor: pointer; transition: background-color 0.2s; }
.btn-reset:hover { background-color: var(--red-700); }

/* NAV*/
body.menu-open #overlay, #overlay.open { opacity: 1; pointer-events: auto; display: block; }
#overlay { position: fixed; inset: 0; background-color: rgba(0,0,0,0.5); z-index: 3999; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.sidebar { 
    position: fixed; top: 0; left: 0; width: 16rem; background-color: var(--slate-900); color: #fff;
    padding-bottom: env(safe-area-inset-bottom); z-index: 4000; box-shadow: 10px 0 15px -3px rgba(0, 0, 0, 0.3); 
    transform: translateX(-100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100dvh; overflow: hidden; display: flex; flex-direction: column; 
}
.sidebar.open { transform: translateX(0); }
.sidebar-nav { display: flex; flex-direction: column; padding: 1rem; padding-top:0; gap: 0.25rem;}
.sidebar-nav details .wrapper { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease-in-out; }
.sidebar-nav details .arrow { transition: transform 0.2s; font-size: 0.75rem; }
.sidebar-nav details[open] .wrapper { grid-template-rows: 1fr; }
.sidebar-nav details[open] .arrow { transform: rotate(180deg); }
.sidebar-nav summary { font-size: 0.625rem; font-weight: 900; color: var(--slate-500); text-transform: uppercase; letter-spacing: 0.1em; padding: 0 0.5rem; margin-top: 0.5rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; list-style: none; transition: color 0.2s; }
.sidebar-nav summary:hover { color: var(--slate-300); }
.sidebar-nav .content { overflow: hidden; display: flex; flex-direction: column; gap: 0.25rem; padding-left: 0.5rem; margin-left: 0.5rem; border-left: 1px solid rgba(51, 65, 85, 0.5); margin-top: 0.5rem; margin-bottom: 0.5rem; overflow-y: hidden; }
.nav-divider { border-top: 1px solid var(--slate-800); margin: 0.5rem 0.5rem; }
.nav-item-dashboard { padding: 0.7rem; background-color: var(--slate-800); border: 1px solid var(--slate-700); border-radius: 0.55rem; font-weight: 700; display: flex; gap: 0.75rem; align-items: center; justify-content: center; color: white; box-shadow: 0 4px 6px rgba(0,0,0,0.1); text-align: center; transition: all 0.2s; cursor: pointer; width: 100%; font-family: inherit; font-size: 1rem; }
.nav-item-kiwoMap { padding: 0.5rem; border: 0; background-color: transparent; font-weight: 700; display: flex; gap: 0.75rem; align-items: center; justify-content: center; color: white; text-align: center; transition: all 0.2s; cursor: pointer; width: 100%; font-family: inherit; font-size: 0.8rem; }
.nav-item-dashboard:active { transform: scale(0.95); }
.nav-item-link, .nav-sub-link { padding: 12px 15px; border-radius: 0.5rem; font-weight: 700; display: flex; gap: 12px; align-items: center; color: var(--slate-300); transition: all 0.2s; margin-bottom: 0.5rem; background: none; border: none; cursor: pointer; width: 100%; text-align: left; font-family: inherit; font-size: 1rem; white-space: normal; word-break: break-word; line-height: 1.4; }
.nav-item-link:hover, .nav-sub-link:hover { color: #fff; background-color: var(--slate-800); }
.nav-sub-link .icon-element { display: inline-flex; justify-content: center; align-items: center; min-width: 24px; height: 24px; flex-shrink: 0; }
.asb-logo-mini { height: 20px; display: inline-block; vertical-align: middle; }
.sidebar-footer { margin-top: auto; padding-top: 1.5rem; padding-bottom: 0.5rem; }
.impressum-link { font-size: 0.625rem; color: var(--slate-500); display: block; text-align: center; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; transition: color 0.2s; background: none; border: none; cursor: pointer; width: 100%; font-family: inherit; padding: 0.5rem 0; }
.impressum-link:hover { color: #fff; }

/* CONTROLS */
.input-group { margin-bottom: 0.75rem; }
.input-group label { display: block; font-size: 0.75rem; font-weight: 700; margin-bottom: 0.25rem; color: var(--slate-500); text-transform: uppercase; }
.input-group input[type="text"], .input-group input[type="email"], .input-group select, .input-group textarea { 
    width: 100%; padding: 0.875rem 1rem; border: 2px solid var(--slate-200); border-radius: 0.75rem; font-size: 1rem; font-weight: 500; background-color: var(--slate-50); color: var(--slate-800); outline: none; font-family: var(--font-sans); transition: all 0.2s ease; -webkit-appearance: none; -moz-appearance: none; appearance: none;
}
.item-controls select, .item-controls input[type="text"] {
    width: 100%; height: 2.75rem; padding: 0 1rem; border: 2px solid var(--slate-200); border-radius: 0.5rem; font-size: 0.875rem; font-weight: 700; background-color: var(--slate-50); color: var(--slate-800); outline: none; -webkit-appearance: none; appearance: none; transition: all 0.2s ease; font-family: var(--font-sans);
}
.input-group input:hover, .input-group select:hover, .input-group textarea:hover,
.item-controls select:hover, .item-controls input[type="text"]:hover { border-color: var(--slate-300); }
.input-group input:focus, .input-group select:focus, .input-group textarea:focus,
.item-controls select:focus, .item-controls input[type="text"]:focus { border-color: var(--blue-500); background-color: #ffffff; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15); }
.input-group select, .item-controls select, .filters select {
    cursor: pointer; padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1rem center; background-size: 1.25rem;
}
.input-group input:disabled, .item-controls input[type="text"]:disabled { background-color: var(--slate-100); color: var(--slate-400); cursor: not-allowed; border-color: var(--slate-200); }

.source-caption-box{ text-align: center; font-size: 10px; margin-top: 1rem; margin-bottom: 1rem; }

/* Mod Card */
.mt{ margin-top: 1rem; }
.p{ padding: 1rem; }

.mod-card{
  background-color: #ffffff; border-radius: 0.75rem; overflow: hidden; box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.03); border: none; border-left: 4px solid transparent; margin-bottom: 1.25rem; 
}
.mod-header{
  padding: 0.625rem 1rem; color: #ffffff; font-size: 0.875rem; font-weight: 700; display: flex; justify-content: space-between; align-items: center; 
}
.mod-body{
  background-color: var(--slate-50); color: var(--slate-700); font-size: 0.875rem; line-height: 1.5;
}
.mod-body.p5{ padding: 5px; }
.mod-body.p20{ padding: 20px; }
.mod-body h2 { color: #0f172a; font-size: 12pt; font-weight: bold; margin-top: 30px; margin-bottom: 15px; border-left: 4px solid #eff6ff; padding-left: 12px; line-height: 1.3; border-bottom: none !important; background: none !important; }
.mod-body p, .mod-body ul { font-size: 11pt; margin-bottom: 1em; color: #334155; }
.mod-body ul { padding-left: 20px; list-style-type: disc !important; }
.mod-body li { margin-bottom: 0.5em; }
.mod-alert { background-color: #fef2f2; border: 1px solid #fca5a5; border-left: 4px solid #ef4444; color: #991b1b; padding: 12px 16px; border-radius: 4px; margin-bottom: 20px; font-size: 0.9rem; }
.mod-highlight-box{ background-color: #eff6ff; padding: 15px 20px; margin: 20px 0; border-radius: 0 4px 4px 0; font-weight: 500; color: #1e40af; text-align:center;
}
.mod-hint-text { font-size: 0.75rem; color: var(--slate-500); margin-bottom: 0.75rem; text-align: center; }
.mod-section { background-color: #fff7ed; border: 1px dashed #f97316; padding: 20px; margin: 20px 0; border-radius: 6px; }
.mod-section-title { font-weight: bold; color: #c2410c; margin-top: 0; margin-bottom: 10px; text-transform: uppercase; font-size: 9pt; letter-spacing: 0.05em; }

.mod-rows-container { display: flex; flex-direction: column; }
.mod-row-item { padding: 1rem; border-bottom: 1px solid var(--slate-100); cursor: pointer; transition: background-color 0.15s ease; }
.mod-row-item:last-child { border-bottom: none; }
.mod-row-item:hover { background-color: var(--slate-50); }
.mod-row-layout { display: flex; gap: 0.75rem; }
.mod-row-content { flex: 1; min-width: 0; }
.mod-label  { font-weight: 700; color: var(--slate-800); font-size: 0.875rem; text-transform: uppercase; }
.mod-description { font-size: 0.6875rem; color: var(--slate-500); margin-top: 0.125rem; }
.mod-footer { margin-top: 10px; padding-top: 20px; border-top: 1px solid #e2e8f0; text-align: center; }
.mod-footer-note { margin-top: 40px; font-size: 9pt; color: #94a3b8; text-align: center; border-top: 1px solid #e2e8f0; padding-top: 20px; }
.mod-footer-action { background-color: var(--slate-50); padding: 0.75rem 1rem; border-top: 1px solid var(--slate-100); display: flex; align-items: center; gap: 0.75rem; }
.btn-mod-info { background-color: #be185d; color: white; font-size: 0.625rem; font-weight: 700; padding: 0.25rem 0.625rem; border-radius: 9999px; display: flex; align-items: center; gap: 0.25rem; border: none; box-shadow: 0 1px 2px rgba(0,0,0,0.05); cursor: pointer; transition: all 0.15s ease; text-transform: uppercase; letter-spacing: 0.05em; }
.btn-mod-info:hover { background-color: #9d174d; }

 /* List */
.database-section-title { margin-top: 1.5rem; margin-bottom: 1rem; }
.database-section-title h2 { font-size: 1.25rem; font-weight: 900; color: var(--slate-800); }
.database-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.db-item-btn { width: 100%; background-color: var(--slate-800); padding: 0.5rem; border-radius: 0.75rem; border: none; box-shadow: 0 1px 3px rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: transform 0.1s; }
.db-item-btn:active { transform: scale(0.95); }
.db-item-content { display: flex; align-items: center; gap: 0.75rem; }
.db-icon-circle { width: 2rem; height: 2rem; border-radius: 50%; background-color: var(--slate-700); color: white; display: flex; align-items: center; justify-content: center; }
.db-text-wrapper { text-align: left; }
.db-title { display: block; font-weight: 700; color: white; font-size: 0.875rem; }
.db-subtitle { display: block; font-size: 10px; color: var(--slate-400); text-transform: uppercase; margin-top: 0.125rem; }
.db-arrow-indicator { color: var(--slate-500); font-weight: 700; padding-right: 0.5rem; }

 /* Table */

.mod-table table { width: 100%; text-align: left; font-size: 0.875rem; color: var(--slate-700); border-collapse: collapse; background-color: #fff; border-radius: 0.75rem; overflow:hidden; }
.mod-table table.table-responsive { width: 100%; border-radius: 0.75rem; border: 1px solid var(--slate-200); box-shadow: 0 1px 3px rgba(0,0,0,0.05); overflow-x: auto; margin-bottom: 1.5rem; background-color: #ffffff; }
.mod-table table.table-fixed { table-layout: fixed; word-wrap: break-word; }
.mod-table thead { background-color: var(--slate-800); color: var(--slate-300); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.05em; }
.mod-table th { padding: 0.75rem 1rem; font-weight: 700; color: #ffffff;  }
.mod-table tr { border-bottom: 1px solid var(--slate-100); transition: background-color 0.15s ease; }
.mod-table tr:last-child { border-bottom: none; }
.mod-table tbody tr:hover { background-color: var(--slate-50); }
.mod-table td { padding: 0.75rem 1rem; vertical-align: middle; }

.mod-accordion { border-radius: 0.5rem; border: 1px solid var(--slate-300); overflow: hidden; background-color: #ffffff; }
.mod-accordion-header { background-color: var(--slate-800); position: relative; overflow: hidden; padding: 1rem; }
.mod-accordion-title { font-size: 1.25rem; color: #fff; text-transform: uppercase; display: flex; align-items: center; gap: 0.5rem; font-weight: 700; margin: 0; }
.mod-accordion .icon-box { width: 2.5rem; height: 2.5rem; background-color: #fff; color: var(--slate-500); border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; }
.mod-accordion details { border-bottom: 1px solid var(--slate-100); }
.mod-accordion summary { padding: 1rem; background-color: #fff; cursor: pointer; display: flex; justify-content: space-between; font-size: 0.75rem; font-weight: 900; color: var(--slate-500); text-transform: uppercase; }
.mod-accordion summary::-webkit-details-marker { display: none; }
.mod-accordion table { width: 100%; font-size: 0.875rem; border-collapse: collapse; }
.code-col { padding: 0.75rem 1rem; width: 4rem; font-family: var(--font-mono); font-weight: 700; color: #4f46e5; background-color: rgba(238, 242, 255, 0.5); }
.text-col { padding: 0.75rem 1rem; font-weight: 500; color: var(--slate-700); }


 /* Tip */
[data-bubble] { position: relative; cursor: pointer; user-select: none; outline: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
[data-bubble]:focus, [data-bubble]:active { outline: none !important; background-color: transparent !important; box-shadow: none !important; }
[data-bubble]:focus-visible { box-shadow: 0 0 0 3px rgba(100, 100, 100, 0.4); border-radius: 4px; }
[data-bubble]::before { content: attr(data-bubble); position: absolute; background-color: #333; color: #fff; padding: 8px 12px; border-radius: 6px; font-size: 14px; white-space: nowrap; z-index: 10; opacity: 0; pointer-events: none; transition: opacity 0.2s ease-in-out; bottom: 125%; left: 50%; transform: translateX(calc(-100% + 24px)); }
[data-bubble]::after { content: ""; position: absolute; border-width: 6px; border-style: solid; opacity: 0; pointer-events: none; transition: opacity 0.2s ease-in-out; bottom: 110%; left: 50%; transform: translateX(-50%); border-color: #333 transparent transparent transparent; }
[data-bubble]:hover::before, [data-bubble]:hover::after { opacity: 1; }
[data-bubble].bubble-tc::before { transform: translateX(-50%); }
[data-bubble].bubble-tr::before { transform: translateX(-24px); }
[data-bubble].bubble-bl::before { bottom: auto; top: 125%; transform: translateX(calc(-100% + 24px)); }
[data-bubble].bubble-bl::after { bottom: auto; top: 110%; border-color: transparent transparent #333 transparent; }
[data-bubble].bubble-bc::before { bottom: auto; top: 125%; transform: translateX(-50%); }
[data-bubble].bubble-bc::after { bottom: auto; top: 110%; border-color: transparent transparent #333 transparent; }
[data-bubble].bubble-br::before { bottom: auto; top: 125%; transform: translateX(-24px); }
[data-bubble].bubble-br::after { bottom: auto; top: 110%; border-color: transparent transparent #333 transparent; }


/* ==========================================================================
   9. OVERLAYS, MODALS & TOASTS
   ========================================================================== */
/* Toasts */
#toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.success-toast { background-color: #059669; color: #ffffff; padding: 16px 24px; border-radius: 12px; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2); display: flex; align-items: center; gap: 12px; max-width: 400px; pointer-events: auto; transform: translateX(120%); opacity: 0; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease; }
.success-toast.show { transform: translateX(0); opacity: 1; }
.toast-title { font-weight: bold; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
.toast-message { font-size: 14px; color: #d1fae5; }
.toast-visible { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast-info { background-color: var(--slate-800); color: #fff; }
.toast-success { background-color: var(--emerald-600); }
.toast-error { background-color: var(--red-600); }
.toast-warning { background-color: var(--orange-500); }
.toast-live { background-color: #e64141a5; }

/* Modals */
.modal-overlay { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 1rem; background-color: rgba(15, 23, 42, 0.95); backdrop-filter: blur(8px); }
.modal-card { background-color: #fff; border-radius: 1rem; width: 100%; max-width: 28rem; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); overflow: hidden; display: flex; flex-direction: column; max-height: 90vh; }
.modal-body { padding: 1.5rem; overflow-y: auto; }
.alert-icon-wrapper { width: 4rem; height: 4rem; background-color: var(--amber-100); color: var(--amber-600); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.875rem; margin: 0 auto 1rem auto; }
.modal-title { font-size: 1.25rem; font-weight: 900; color: var(--slate-800); text-align: center; margin-bottom: 1rem; }
.modal-text { font-size: 0.875rem; color: var(--slate-600); display: flex; flex-direction: column; gap: 1rem; }
.ai-warning-box { padding: 0.75rem; background-color: var(--red-50); border-left: 4px solid var(--red-500); color: var(--red-700); font-weight: 700; font-size: 0.75rem; }
.disclaimer-subtext { font-size: 10px; color: var(--slate-400); }
.modal-footer { padding: 1.5rem; background-color: var(--slate-50); border-top: 1px solid var(--slate-100); }

.modal { display: none; position: fixed; z-index: 1000; padding-top: 50px; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); justify-content: center; align-items: center; }
.modal-content { border-radius: 4px; background: white; padding: 20px; border-radius: 12px; width: 90%; max-width: 400px; }
.modal-img { display:block; margin: auto; max-width: 90%; max-height: 80vh; border-radius: 4px; object-fit: contain; }
#lightboxCaption { text-align: center; color: #ccc; padding: 15px 0; font-size: 18px; font-weight: bold; }
.modal-close { position: absolute; top: 15px; right: 25px; color: #f1f1f1; font-size: 40px; font-weight: bold; cursor: pointer; transition: color 0.2s; }
.modal-close:hover { color: var(--primary-color); }

/* Fullscreen Emergency/Search */
.fullscreen-overlay { position: fixed; inset: 0; background-color: var(--slate-900); z-index: 200; display: flex; flex-direction: column; }
.emergency-header { padding: 1rem; background-color: var(--red-600); color: white; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.emergency-title { font-size: 1.25rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; }
.btn-back-light { font-weight: 700; background-color: var(--red-800); color: white; padding: 0.25rem 0.75rem; border-radius: 0.25rem; border: none; cursor: pointer; }
.emergency-body { flex: 1; padding: 1rem; display: flex; flex-direction: column; gap: 1rem; overflow-y: auto; }
.location-box { background-color: var(--slate-800); border-radius: 0.75rem; padding: 1rem; box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06); text-align: center; }
.location-label { color: var(--slate-400); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; margin-bottom: 0.25rem; }
.location-value { color: white; font-weight: 700; font-size: 1.125rem; line-height: 1.25; }
.coordinates-wrapper { display: flex; justify-content: center; gap: 1rem; font-size: 0.75rem; color: var(--slate-400); font-family: var(--font-mono); margin-top: 0.75rem; }
.map-container { flex: 1; border-radius: 0.75rem; overflow: hidden; background-color: var(--slate-800); position: relative; border: 1px solid var(--slate-700); min-height: 200px; }
#map-iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
#map-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--slate-500); font-size: 0.875rem; font-weight: 700; }
.btn-emergency-call { width: 100%; background-color: var(--red-600); color: white; font-weight: 900; font-size: 1.5rem; padding: 1.5rem; border-radius: 1rem; display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-top: auto; text-decoration: none; transition: all 0.2s; box-shadow: 0 10px 15px rgba(220, 38, 38, 0.3); }
.btn-emergency-call:active { transform: scale(0.95); }
.btn-emergency-call:hover { background-color: var(--red-500); }
.phone-icon-scale { font-size: 2.25rem; display: inline-flex; color: var(--red-500); }


/* Fullscreen Search */
.search-fullscreen { position: fixed; inset: 0; background-color: rgba(71, 85, 105, 0.95); z-index: 100; display: flex; flex-direction: column; pointer-events: auto; padding-top: 6rem; padding-left: 1rem; padding-right: 1rem; backdrop-filter: blur(4px); transition: opacity 0.2s ease-in-out; }
.search-bg-logo { position: fixed; top: 40%; width: 100%; left: 0; z-index: 101; display: flex; align-items: center; justify-content: center; opacity: 0.15; pointer-events: none; }
.search-close-btn { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; color: white; cursor: pointer; transition: color 0.2s; }
.search-close-btn:hover { color: var(--red-500); }
.svg-icon-close { width: 2.5rem; height: 2.5rem; }
.search-input-wrapper { width: 100%; max-width: 48rem; position: relative; }
.search-icon-inside { position: absolute; left: 1.25rem; top: 50%; transform: translateY(-50%); color: var(--slate-400); font-size: 1.5rem; z-index: 10; }
#searchInput { width: 100%; background-color: white; color: var(--slate-900); font-size: 1.25rem; border-radius: 1rem; padding: 1.25rem 1.5rem 1.25rem 4rem; border: none; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
#searchInput:focus { outline: none; box-shadow: 0 0 0 4px var(--amber-300); }
.search-results-box { width: 100%; max-width: 48rem; margin-top: 1rem; border-radius: 0.75rem; overflow: hidden; z-index: 102; }
.search-loading-state { padding: 1rem; color: var(--slate-500); text-align: center; font-weight: 500; animation: pulse 2s infinite; }
.search-result-empty { padding: 1.5rem; text-align: center; background-color: white; color: var(--slate-500); font-size: 0.875rem; }
.search-result-btn { width: 100%; display: block; padding: 1rem; border: none; border-bottom: 1px solid var(--slate-100); background-color: #ffffff; text-align: left; cursor: pointer; }
.search-result-layout { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.search-result-title { font-size: 11pt; font-weight: 700; color: var(--slate-800); margin: 0; }
.search-result-snippet { font-size: 0.75rem; color: var(--slate-600); margin-top: 0.25rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-result-meta { font-size: 10px; color: var(--slate-400); text-transform: uppercase; font-weight: 700; margin-top: 0.5rem; }
.search-highlight { background-color: var(--amber-300); color: var(--slate-900); font-weight: 900; padding: 0 0.25rem; border-radius: 0.125rem; }



.disclaimer-body { line-height: 1.6; }
.disclaimer-body p { margin: 0 0 20px 0; font-size: 0.95rem; }

.btn-reset-app { background: transparent; border: none; color: #64748b; text-decoration: underline; font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: color 0.2s ease; padding: 5px 10px; }
.btn-reset-app:hover { color: #ef4444; }

/* Open Source Credits */
.os-grid { display: flex; flex-direction: column; gap: 16px; }
.os-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px; background: #f8fafc; border-radius: 8px; border-left: 4px solid #3b82f6; transition: transform 0.2s ease; }
.os-item:hover { transform: translateX(4px); }
.os-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.os-text { display: flex; flex-direction: column; }
.os-text strong { color: #334155; font-size: 1rem; margin-bottom: 4px; }
.os-text span { color: #64748b; font-size: 0.85rem; line-height: 1.4; }
.os-item.ai-item { border-left: 4px solid #a855f7; background: #faf5ff; }
.os-item.uschi-item { border-left: 4px solid #f43f5e; background: #fff1f2; }




.disclaimer { background: var(--amber-50); border-left: 4px solid var(--amber-500); color: var(--amber-700); padding: 0.75rem; font-size: 0.8125rem; border-radius: 0.25rem; margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.item-card { border: 1px solid var(--slate-200); border-radius: 0.5rem; padding: 0.75rem; margin-bottom: 0.625rem; background: #ffffff; transition: all 0.2s ease; }
.item-card.active { border-color: var(--blue-500); background-color: #eff6ff; }
.item-header { font-weight: 700; font-size: 0.9375rem; margin-bottom: 0.5rem; display: flex; justify-content: space-between; color: var(--slate-800); }
.item-controls { display: grid; grid-template-columns: 1fr 110px; gap: 0.5rem; align-items: end; }


/* LOGIN  */
.login-fullscreen-container { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 80vh; padding: 1rem; }
.login-card { background-color: #ffffff; padding: 2rem; border-radius: 1rem; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); width: 100%; max-width: 24rem; border: 1px solid var(--slate-100); text-align: center; }
.login-logo-circle { width: 5rem; height: 5rem; background-color: var(--slate-900); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem auto; overflow: hidden; }
.login-logo-circle img { width: 100%; height: 100%; object-fit: cover; }
.login-password-input { width: 100%; padding: 1rem; background-color: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 0.75rem; outline: none; text-align: center; font-size: 0.8rem; letter-spacing: 0.1em; font-weight: 700; color: var(--slate-800); margin-bottom: 1rem; }
.btn-login-submit { width: 100%; background-color: var(--blue-500); color: #ffffff; font-weight: 700; padding: 1rem; border-radius: 0.75rem; border: none; cursor: pointer; }
.login-subtitle { margin-bottom: 15px; }
.login-error-banner { display: flex; align-items: center; color: #ff0000; margin-bottom: 10px; justify-content: center; gap: 5px; }











/* ==========================================================================
   22. EVENTS & FILTERS
   ========================================================================== */
.evt-item svg {
  display: inline-block;
  max-height: 27px!important;
  max-width: 27px!important;
  color: #333!important;
}
.filters { display: flex; flex-direction: column; flex-wrap: wrap; gap: 4px; background: var(--card-bg); padding: 4px; border-radius: var(--border-radius); box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 6px; }
.filters .filterbar {
  display: flex; flex-direction: row; gap: 4px; align-items: center; z-index: 20;
}
.filters .filterbarplus {
  display: flex; flex-direction: column; gap: 4px;
}
.filters input[type="search"], .filters select { flex: 1; width: 100%; padding: 6px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; appearance: none; -webkit-appearance: none; -moz-appearance: none; 
  }
.eventConter{
  text-align: center;
  font-size: 11px;
  color: #888;
}
.checkbox-wrapper { display: flex; align-items: center; gap: 8px; width: 100%; font-size: 14px; color: var(--text-muted); }

.date-group { margin-bottom: 40px; }
.date-header { font-size: 1.2rem; border-bottom: 2px solid var(--primary); padding-bottom: 8px; margin-bottom: 15px; color: var(--primary); }

.event-card { display: flex; flex-direction: column; background: var(--card-bg); border-radius: var(--border-radius); padding: 15px; margin-bottom: 15px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); transition: transform 0.2s; }
.event-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.event-time { font-size: 0.85rem; color: var(--primary); font-weight: bold; margin-bottom: 4px; display: flex; flex-direction:row; justify-content: space-between; align-items:center;}
.event-time > span:nth-child(2){
  font-size: 0.7rem;
  font-weight: normal;
}
.event-title { font-size: 1.1rem; font-weight: bold; margin: 0 0 8px 0; }
.event-meta { font-size: 0.85rem; color: var(--text-muted); display: flex; gap: 10px; flex-wrap: wrap; }
.event-meta span { background: #eee; padding: 3px 8px; border-radius: 12px; }
.evt-item, .evt-map-link{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap:3px;
}
.filterbar button {
  color: #fff;
  background-color: #0078D7;
  border: 0;
  border-radius: 4px;
}
.evt-map-link { justify-content:center;
  width:auto;margin-left:auto; margin-top: 12px; padding: 8px 8px; background-color: #0078D7; color: white; text-decoration: none; border-radius: 4px; font-size: 0.85rem; font-weight: bold; transition: background-color 0.2s; }
.evt-map-link:hover, .filterbar button:hover { background-color: #005fa3; }

.no-results { text-align: center; color: var(--text-muted); padding: 40px 0; }


/* ==========================================================================
   23. BUBBLES & TOOLTIPS
   ========================================================================== */


/* ==========================================================================
   24. MEDIENABFRAGEN / RESPONSIVE BREAKPOINTS & BROWSER FIXES
   ========================================================================== */
@media (min-width: 32rem) { #app-content { max-width: 32rem; } }
@media (min-width: 48rem) { #app-content { max-width: 42rem; } .taktik-grid-container { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 64rem) { #app-content { max-width: 56rem; } .taktik-grid-container { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 80rem) { #app-content { max-width: 72rem; } }

@media (max-width: 600px) {
    .vehicle-item { flex-direction: column; }
    .photo-wrapper { width: 100%; min-width: 100%; height: auto; min-height: 120px; padding: 15px 0; border-right: none; border-bottom: 1px dashed var(--border-color); }
    .vehicle-photo { max-height: 120px; }
    .info-container { padding-right: 0; margin-bottom: 40px; }
}

@media (max-width: 440px) {
    .digital-text { font-size: 2.4rem; letter-spacing: 2px; }
    .timer-case { padding: 15px 15px; }
    .timer-case .title { font-size: 0.6rem; letter-spacing: 1px; }
    .labels { font-size: 0.5rem; }
}

/* Fixes für Search Input Cancel Buttons (Browser spezifisch) */

/* ==========================================================================
   TIMER DROPDOWN MENU / DATETIME OVERLAY
   ========================================================================== */
#master-timer, .master-timer { 
    font-family: var(--font-mono); 
    color: var(--amber-300); 
    font-weight: 700; 
    font-size: 1.125rem; 
    letter-spacing: 0.1em; 
    cursor: pointer; 
    transition: color 0.2s; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#master-timer:hover, .master-timer:hover { 
    color: #ffffff; 
}

/* Aktiver Timer-Status (läuft) */
#master-timer.running, .master-timer.running { 
    color: var(--emerald-400); 
}

/* Pausierter Timer-Status */
#master-timer.paused, .master-timer.paused { 
    color: var(--rose-400); 
}

.dropdown-overlay {
    position: absolute; 
    top: 100%; 
    left: 3rem; 
    margin-top: 1rem;
    background-color: var(--slate-800); 
    border: 1px solid var(--slate-700);
    border-radius: 0.75rem; 
    padding: 0.75rem; 
    display: flex; 
    flex-direction: column;
    align-items: center; 
    z-index: 150; 
    min-width: 180px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.3);
}

.dropdown-arrow {
    position: absolute; 
    top: -0.5rem; 
    left: 1.5rem; 
    width: 1rem; 
    height: 1rem;
    background-color: var(--slate-800); 
    border-top: 1px solid var(--slate-700);
    border-left: 1px solid var(--slate-700); 
    transform: rotate(45deg);
}

.dropdown-date { 
    font-size: 0.75rem; 
    color: var(--slate-400); 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
    margin-bottom: 0.25rem; 
    z-index: 10; 
}

.dropdown-time { 
    font-family: var(--font-mono); 
    font-size: 1.875rem; 
    color: var(--amber-300); 
    font-weight: 900; 
    letter-spacing: 0.1em; 
    z-index: 10; 
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); 
}

.dropdown-divider { 
    width: 100%; 
    border-top: 1px solid var(--slate-700); 
    margin: 0.75rem 0; 
    z-index: 10; 
}

.timer-controls-wrapper { 
    z-index: 10; 
    width: 100%; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

.controls-title { 
    font-size: 0.625rem; 
    color: var(--slate-400); 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
    margin-bottom: 0.5rem; 
    display: flex; 
    align-items: center; 
    gap: 0.25rem; 
}

.btn-group { 
    display: flex; 
    gap: 0.5rem; 
    width: 100%; 
    justify-content: center; 
}

.btn-timer { 
    flex: 1; 
    border: none; 
    color: white; 
    font-size: 0.75rem; 
    font-weight: 700; 
    padding: 0.5rem 0.25rem; 
    border-radius: 0.5rem; 
    cursor: pointer; 
    transition: transform 0.1s; 
}

.btn-timer:active { transform: scale(0.95); }
.btn-start { background-color: var(--emerald-600); }
.btn-stop { background-color: var(--rose-600); }
.btn-reset { background-color: var(--slate-600); }
/* ==========================================================================
   VIEW STYLES: MELDUNG (Defekt / Verlust / Verletzung)
   ========================================================================== */

/* Dateiauswahl-Feld optisch aufwerten */
#meld-foto {
    width: 100%;
    padding: 0.75rem;
    border: 2px dashed var(--slate-300);
    border-radius: 0.75rem;
    background-color: var(--slate-50);
    color: var(--slate-700);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
    outline: none;
}

#meld-foto:hover, #meld-foto:active {
    border-color: var(--blue-500);
    background-color: #ffffff;
}

/* Den Standard-Button im Dateifeld (Webkit/Blink) an dein Design anpassen */
#meld-foto::file-selector-button {
    background-color: var(--slate-800);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    margin-right: 1rem;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
    font-family: inherit;
}

#meld-foto::file-selector-button:hover {
    background-color: var(--slate-900);
}

/* Textbereich (Beschreibung) nach unten aufziehbar machen */
#meld-beschreibung {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* Galerie-Container für die ausgewählten Bilder */
#foto-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.foto-preview-wrap {
    position: relative;
    width: 80px !important;
    height: 80px !important;
    display: inline-block;
    margin: 5px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
}

.foto-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
}

.btn-foto-delete {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc2626; /* Rot */
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}


.btn-foto-delete:active {
    transform: scale(0.9);
}

.btn-foto-delete:hover {
    background-color: var(--red-700);
}
.sprechblase-rechts {
    position: relative;
    background: var(--slate-100);
    color: var(--slate-800);
    padding: 15px;
    border-radius: 15px;
    max-width: 60%;
    margin-left: auto; /* Rechtsbündig */
    margin-right: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--slate-200);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-size: 0.9rem;
    font-style: italic;
}
.sprechblase-text {
    display: flex;
    align-items: center;
    gap: 10px;
}
#btn-submit-meldung{
  margin-bottom: 8px;
}
/* --- Meldungshistorie Design --- */
#historie-container h3 {
    color: var(--slate-800);
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--slate-200);
}

.historie-card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    border-left: 4px solid var(--slate-400); /* Standard-Farbe */
}

/* Farbige Ränder passend zu deinen Kategorien */
.historie-card[data-cat="medizin"] { border-left-color: #3b82f6; } /* Blau */
.historie-card[data-cat="bekleidung"] { border-left-color: #f59e0b; } /* Bernstein */
.historie-card[data-cat="fahrzeug"] { border-left-color: #10b981; } /* Smaragd */
.historie-card[data-cat="sonstiges"] { border-left-color: #64748b; } /* Schiefer */

.historie-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.historie-badge {
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--slate-100);
    color: var(--slate-700);
    padding: 3px 8px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.historie-datum {
    font-size: 0.75rem;
    color: var(--slate-400);
}

.historie-card-body {
    font-size: 0.9rem;
    color: var(--slate-700);
    margin-bottom: 10px;
    font-style: italic;
    line-height: 1.4;
}

.historie-card-footer {
    font-size: 0.75rem;
    color: var(--slate-400);
    display: flex;
    align-items: center;
    gap: 5px;
    border-top: 1px dashed var(--slate-200);
    padding-top: 8px;
}
