
/* ── Sonnenstand Widget CSS (kein Tailwind nötig, alles self-contained) ── */
.tw-sun-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    overflow: hidden;
}
.tw-sun-header {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
    color: #ffffff;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.tw-sun-header-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}
.tw-sun-header h3 {
    margin: 0;
    font-size: 1.05em;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.tw-sun-header .tw-sun-date {
    margin-left: auto;
    font-size: 0.82em;
    opacity: 0.85;
    font-weight: 400;
}
.tw-sun-body {
    padding: 20px 16px 16px;
}
.tw-sun-arc-wrap {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}
.tw-sun-arc-wrap svg {
    width: 100%;
    height: auto;
    display: block;
}
.tw-sun-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 8px 4px;
    max-width: 480px;
    margin: 0 auto;
}
.tw-sun-info-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.tw-sun-info-block.left { align-items: flex-start; }
.tw-sun-info-block.right { align-items: flex-end; }
.tw-sun-info-block.center { align-items: center; }
.tw-sun-info-label {
    font-size: 0.72em;
    color: #9ca3af;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.tw-sun-info-value {
    font-size: 1.35em;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}
.tw-sun-info-sub {
    font-size: 0.75em;
    color: #6b7280;
    font-weight: 500;
}
.tw-daylight-bar-wrap {
    max-width: 480px;
    margin: 10px auto 0;
    padding: 0 8px;
}
.tw-daylight-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.72em;
    color: #9ca3af;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.tw-daylight-bar {
    width: 100%;
    height: 8px;
    background: #1e293b;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.tw-daylight-fill {
    height: 100%;
    border-radius: 4px;
    position: absolute;
    top: 0;
}
.tw-daylight-fill.dawn {
    background: linear-gradient(90deg, #312e81, #6366f1);
}
.tw-daylight-fill.day {
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
}
.tw-daylight-fill.dusk {
    background: linear-gradient(90deg, #6366f1, #312e81);
}
.tw-daylight-marker {
    position: absolute;
    top: -3px;
    width: 3px;
    height: 14px;
    background: #ef4444;
    border-radius: 2px;
    z-index: 2;
}
.tw-sun-location {
    max-width: 480px;
    margin: 14px auto 0;
    padding: 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tw-sun-location select {
    flex: 1;
    padding: 8px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.88em;
    font-family: inherit;
    color: #374151;
    background-color: #f9fafb;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
.tw-sun-location select:focus {
    border-color: #2563eb;
}
.tw-sun-loc-label {
    font-size: 0.78em;
    color: #6b7280;
    font-weight: 600;
    white-space: nowrap;
}
/* Responsive: Mobil-Optimierung */
@media (max-width: 400px) {
    .tw-sun-body { padding: 14px 8px 10px; }
    .tw-sun-info-value { font-size: 1.1em; }
    .tw-sun-info-label { font-size: 0.65em; }
    .tw-sun-header h3 { font-size: 0.95em; }
    .tw-sun-header .tw-sun-date { font-size: 0.75em; }
}
@media (max-width: 340px) {
    .tw-sun-info { flex-wrap: wrap; gap: 8px; justify-content: center; }
    .tw-sun-info-block.left,
    .tw-sun-info-block.right { align-items: center; }
}
