/* Ergänzungen zur gemeinsamen Gestaltung; Logo, Farben und Schrift kommen aus style.css. */
.deutschland { padding-top: 28px; }
.de-search { margin: 24px 0 18px; }
.de-search > label { display: block; font-weight: 650; margin-bottom: 8px; }
.de-search-row { display: flex; gap: 8px; flex-wrap: wrap; }
.de-search-row input { flex: 1 1 280px; min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; }
.de-search-row button { font: inherit; padding: 10px 16px; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent); color: var(--on-accent); cursor: pointer; }
.de-search-row .btn-quiet { background: var(--surface); color: var(--accent); }
.de-layers { border: 0; padding: 0; margin: 20px 0; display: flex; gap: 10px; flex-wrap: wrap; }
.de-layers legend { font-size: .9rem; color: var(--text-muted); margin-bottom: 10px; }
.de-layers label { border: 1px solid var(--border); border-radius: 999px; padding: 9px 14px; background: var(--surface); cursor: pointer; }
.de-layers label:has(:checked) { border-color: var(--accent); background: var(--surface-2); }
.de-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.de-mapbox, .de-panel { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
#de-map { height: 570px; background: var(--surface-2); }
.de-legend { padding: 14px 16px; }
.de-legend strong { display: block; font-size: .85rem; margin-bottom: 8px; }
.de-legend-scale { display: flex; height: 12px; border-radius: 4px; overflow: hidden; }
.de-legend-scale span { flex: 1; }
.de-legend-labels { display: flex; justify-content: space-between; gap: 10px; font-size: .75rem; margin-top: 4px; }
.de-mapnote { margin: 0; padding: 0 16px 14px; }
.de-panel { padding: 22px; }
.de-panel h2 { margin: 0 0 4px; font-size: 1.45rem; }
.de-number { border-top: 1px solid var(--border); padding: 13px 0; }
.de-number strong { display: block; font-size: 1.55rem; font-variant-numeric: tabular-nums; }
.de-number span { font-size: .9rem; color: var(--text-muted); }
.de-number.is-current strong { color: var(--accent); }
.de-year-chart { display: block; width: 100%; height: auto; margin: 12px 0; }
.de-year-chart rect { fill: var(--sun); }
.de-year-chart text { fill: var(--text-muted); font: 11px system-ui, sans-serif; }
.de-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.de-list, .de-method, .de-explain, .de-next { margin-top: 30px; }
.de-list > summary, .de-method > summary { font-size: 1rem; padding: 14px 0; }
.de-counties { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-height: 420px; overflow: auto; padding: 4px; }
.de-counties button, .de-choices button { font: inherit; color: var(--accent); background: var(--surface); border: 1px solid var(--border); padding: 10px; border-radius: 8px; cursor: pointer; text-align: left; }
.de-explain-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.de-explain-grid article { border-top: 3px solid var(--sun); padding-top: 10px; }
.de-choices { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.de-table { max-height: 350px; overflow: auto; }
@media (max-width: 760px) {
 .de-grid { grid-template-columns: 1fr; }
 #de-map { height: 430px; }
 .de-counties { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .de-explain-grid { grid-template-columns: 1fr; gap: 6px; }
 .de-panel { padding: 18px; }
 .deutschland h1 { font-size: 1.9rem; }
}
@media (prefers-reduced-motion: reduce) { .deutschland * { scroll-behavior: auto; } }

.de-detailinfo:not([hidden]):not(:empty) { border: 1px solid var(--accent); border-radius: 10px; padding: 16px; background: var(--surface); margin: 16px 0; }
.de-detailinfo p { margin: 8px 0 0; }

.de-timeline { margin: 20px 0; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.de-timeline[hidden] { display: none; }
.de-timeline-head, .de-timeline-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.de-timeline-head { justify-content: space-between; margin-bottom: 12px; }
.de-timeline-head h2 { font-size: 1.1rem; margin: 0; }
.de-timeline-controls label { font-weight: 600; font-size: .95rem; }
.de-timeline-controls input { flex: 1 1 220px; min-width: 0; width: 100%; accent-color: var(--accent); cursor: pointer; }
.de-timeline .small { margin: 12px 0 0; }
.de-period { display: block; margin-top: 4px; color: var(--text-muted); font-size: .8rem; }
#de-zeitraum { font-weight: 650; color: var(--accent); margin: 10px 0; }
