Vorlage:Infobox Baudenkmal/styles.css
Aus Hist. Verein Herne / Wanne-Eickel
/* ===========================================================
TemplateStyles für Vorlage:Infobox Baudenkmal
Speichern unter: Vorlage:Infobox Baudenkmal/styles.css
Aufgerufen aus: Vorlage:Infobox Baudenkmal
=========================================================== */
.ibbau {
float: right;
clear: right;
width: 420px;
max-width: 100%;
margin: 0 0 1.2em 1.2em;
background: #ffffff;
border: 1px solid #e0e0d8;
border-radius: 12px;
box-shadow: 0 2px 8px rgba( 0, 0, 0, 0.06 );
overflow: hidden;
font-size: 15px;
line-height: 1.55;
font-family: sans-serif;
}
/* ---------- Kopfzeile mit Plakette ---------- */
.ibbau__header {
background: #7a8aa8; /* Schiefer-Indigo – amtliche Markenfarbe für Baudenkmäler */
color: #ffffff;
padding: 8px 12px;
display: flex;
align-items: center;
gap: 10px;
min-height: 48px;
}
.ibbau__plakette {
flex: 0 0 36px;
display: flex;
align-items: center;
justify-content: center;
}
.ibbau__plakette img {
display: block;
width: 36px;
height: auto;
}
.ibbau__title {
flex: 1 1 auto;
font-weight: 500;
font-size: 16px;
letter-spacing: 0.02em;
text-align: center;
padding-right: 36px; /* gleicher Platz wie links für die Plakette = optisch zentriert */
}
/* ---------- Hero-Bild ---------- */
.ibbau__hero {
background: #f6f4ec;
padding: 0;
margin: 0;
text-align: center;
}
.ibbau__hero a,
.ibbau__hero img {
display: block;
max-width: 100%;
height: auto;
margin: 0 auto;
}
.ibbau__caption {
padding: 8px 16px;
font-size: 13px;
color: #6b6b66;
font-style: italic;
background: #faf8f1;
border-bottom: 1px solid #f1efe8;
}
/* ---------- Body ---------- */
.ibbau__body {
padding: 14px 16px 12px;
}
.ibbau__lead {
font-size: 14px;
color: #5f5e5a;
margin: 0 0 12px;
line-height: 1.55;
}
/* ---------- Badges ---------- */
.ibbau__badges {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin: 0 0 14px;
}
.ibbau__badge {
display: inline-block;
font-size: 13px;
font-weight: 500;
padding: 3px 11px;
border-radius: 999px;
line-height: 1.4;
white-space: nowrap;
cursor: help;
}
.ibbau__badge a,
.ibbau__badge a:visited {
color: inherit !important;
text-decoration: none;
}
.ibbau__badge--bezirk {
background: #e1f5ee;
color: #085041;
}
.ibbau__badge--ortsteil {
background: #f1efe8;
color: #444441;
}
/* ---------- Datenzeilen ---------- */
.ibbau__data {
border-top: 1px solid #f1efe8;
padding-top: 8px;
margin-top: 4px;
}
.ibbau__row {
display: flex;
gap: 10px;
align-items: flex-start;
padding: 7px 0;
border-bottom: 1px solid #f7f5ee;
}
.ibbau__row:last-child {
border-bottom: none;
}
.ibbau__icon {
flex: 0 0 22px;
font-size: 15px;
line-height: 1.5;
text-align: center;
color: #888780;
user-select: none;
}
.ibbau__field {
flex: 1 1 auto;
min-width: 0;
}
.ibbau__label {
display: block;
color: #888780;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.04em;
margin-bottom: 1px;
}
.ibbau__value {
font-weight: 500;
color: #2c2c2a;
font-size: 15px;
}
.ibbau__hint {
font-size: 13px;
color: #888780;
margin-top: 2px;
line-height: 1.45;
font-weight: 400;
}
/* ---------- Karte ---------- */
.ibbau__map {
margin: 14px 0 0;
border-radius: 8px;
overflow: hidden;
border: 1px solid #f1efe8;
}
.ibbau__map .maps-leaflet,
.ibbau__map .maps-googlemaps3 {
border-radius: 8px;
}
/* ---------- Farb-Legende ---------- */
.ibbau__legend {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: 12px;
padding-top: 8px;
border-top: 1px solid #f1efe8;
font-size: 12px;
color: #888780;
}
.ibbau__legend-item {
display: inline-flex;
align-items: center;
gap: 5px;
white-space: nowrap;
}
.ibbau__legend-dot {
display: inline-block;
width: 10px;
height: 10px;
border-radius: 50%;
flex: 0 0 10px;
}
.ibbau__legend-dot--bezirk { background: #5DCAA5; }
.ibbau__legend-dot--ortsteil { background: #B4B2A9; }
/* ---------- Footer ---------- */
.ibbau__footer {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
gap: 6px;
margin-top: 10px;
padding-top: 8px;
border-top: 1px solid #f1efe8;
font-size: 12px;
color: #aaa9a3;
}
.ibbau__footer a,
.ibbau__footer a:visited {
color: #888780;
}
/* ---------- Responsive ---------- */
@media ( max-width: 720px ) {
.ibbau {
float: none;
width: 100%;
margin: 0 0 1em 0;
}
}
/* ---------- Druckansicht ---------- */
@media print {
.ibbau {
box-shadow: none;
border: 1px solid #ccc;
break-inside: avoid;
}
.ibbau__map,
.ibbau__footer {
display: none;
}
}
/* ---------- Dunkler Modus ---------- */
@media ( prefers-color-scheme: dark ) {
.ibbau {
background: #2c2c2a;
border-color: #444441;
box-shadow: none;
}
.ibbau__header { background: #4a5670; color: #ffffff; }
.ibbau__hero { background: #1f1f1d; }
.ibbau__caption { background: #232321; color: #b4b2a9; border-color: #444441; }
.ibbau__lead { color: #d3d1c7; }
.ibbau__value { color: #f1efe8; }
.ibbau__hint,
.ibbau__label,
.ibbau__legend { color: #b4b2a9; }
.ibbau__data,
.ibbau__map,
.ibbau__footer,
.ibbau__legend { border-color: #444441; }
.ibbau__row { border-bottom-color: #38383640; }
.ibbau__badge--bezirk { background: #0f6e56; color: #e1f5ee; }
.ibbau__badge--ortsteil { background: #444441; color: #f1efe8; }
}
