
/* === Base Styles === */
* { box-sizing: border-box; }
body {
    font-size: 13px;
    font-family: Arial, sans-serif;
    background-color: #f0f9ff;
    margin: 0;
    padding: 20px 16px;
    color: #075985;
    line-height: 1.6;
}

/* === Modern Template (libvi-* classes) === */
.libvi-container {
    max-width: 640px;
    margin: 0 auto;
}
.libvi-header {
    text-align: center;
    margin-bottom: 24px;
}
.libvi-title {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #0c4a6e;
    margin: 0 0 8px 0;
}
.libvi-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.libvi-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.libvi-btn-primary {
    background: linear-gradient(135deg, #34cbff 0%, #0ea5e9 50%, #008bcf 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.libvi-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.libvi-btn-secondary {
    background: white;
    color: #075985;
    border: 2px solid #e0e0e0;
}
.libvi-btn-secondary:hover {
    border-color: #e0f4ff;
    background: #f0f9ff;
}
.libvi-message {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 3px 8px 1px rgba(0,0,0,0.15);
    border: 2px solid #0ea5e9;
    transition: transform 0.2s, box-shadow 0.2s;
}
.libvi-message:hover {
    transform: translateY(-1px);
}
.libvi-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.libvi-message-author {
    font-weight: 600;
    color: #0c4a6e;
}
.libvi-message-date {
    font-size: 13px;
    color: #999;
}
.libvi-message-content {
    color: #075985;
    line-height: 1.7;
}
.libvi-empty {
    text-align: center;
    padding: 48px 24px;
    background: white;
    border-radius: 16px;
    border: 2px dashed #ddd;
}
.libvi-empty-icon { font-size: 48px; margin-bottom: 16px; }
.libvi-empty-text { color: #888; font-size: 16px; }
.libvi-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.libvi-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: white;
    color: #0284c7;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s;
}
.libvi-pagination a:hover {
    border-color: #e0f4ff;
    background: #f0f9ff;
}
.libvi-pagination a.current {
    background: linear-gradient(135deg, #34cbff 0%, #0ea5e9 100%);
    color: #ffffff;
    border-color: transparent;
}

/* === Legacy Template Compatibility (table-based) === */
table.aussen {
    font-size: 13px;
    background-color: #e0f4ff;
    border: 2px solid #0ea5e9;
    border-radius: 16px;
    box-shadow: 0 3px 8px 1px rgba(0,0,0,0.15);
    margin-bottom: 16px;
}
table.innen {
    font-size: 13px;
    background-color: #fff;
    border: solid 1px #d3d3d3;
    border-radius: 12px;
}
td { font-size: 13px; color: #075985; }
td.toptext { color: #0c4a6e; font-weight: 500; }
a { color: #0284c7; font-weight: bold; text-decoration: underline; }
a:hover { text-decoration: underline; opacity: 0.8; }
#volvbut { display: block; margin-bottom: 16px; }
button, .pp-btn {
    background: linear-gradient(135deg, #34cbff 0%, #0ea5e9 50%, #008bcf 100%);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
button:hover, .pp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
h4 {
    display: block;
    color: #0c4a6e;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
}

/* === Responsive === */
@media (max-width: 480px) {
    body { padding: 16px 12px; }
    .libvi-title { font-size: 20px; }
    .libvi-btn { padding: 10px 20px; font-size: 13px; }
    .libvi-message { padding: 16px; }
    .libvi-message-header { flex-direction: column; align-items: flex-start; gap: 4px; }
}
