frontend_nyla/src/components/UiComponents/BauvorschriftenSection/BauvorschriftenSection.module.css

127 lines
2.6 KiB
CSS

/* Bauvorschriften Section Styles */
.bauvorschriftenSection {
margin-top: 1rem;
padding-top: 1rem;
border-top: 1px solid var(--color-border, #e5e7eb);
}
.bauvorschriftenHeader {
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
padding: 0.5rem 0;
margin-bottom: 0.75rem;
transition: opacity 0.2s;
}
.bauvorschriftenHeader:hover {
opacity: 0.8;
}
.bauvorschriftenHeader .subSectionTitle {
margin: 0;
display: flex;
align-items: center;
color: var(--color-accent, #10b981);
font-size: 1rem;
font-weight: 600;
}
.expandButton {
background: none;
border: none;
cursor: pointer;
padding: 0.25rem;
display: flex;
align-items: center;
justify-content: center;
color: var(--color-text-secondary, #6b7280);
transition: color 0.2s;
}
.expandButton:hover {
color: var(--color-text, #111827);
}
.bauvorschriftenContent {
display: flex;
flex-direction: column;
gap: 1rem;
}
.bauvorschriftenGrid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 0.75rem;
margin-top: 0.5rem;
}
.bauvorschriftItem {
padding: 0.75rem;
background: linear-gradient(135deg, rgba(243, 244, 246, 0.8) 0%, rgba(249, 250, 251, 0.8) 100%);
backdrop-filter: blur(10px);
border-radius: 8px;
border-left: 3px solid var(--color-accent, #10b981);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
transition: transform 0.2s, box-shadow 0.2s;
}
.bauvorschriftItem:hover {
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(16, 185, 129, 0.2);
}
.bauvorschriftItem .label {
display: block;
font-size: 0.75rem;
font-weight: 500;
color: var(--color-text-secondary, #6b7280);
margin-bottom: 0.25rem;
}
.bauvorschriftItem .value {
display: block;
font-size: 1rem;
font-weight: 600;
color: var(--color-text, #111827);
}
.sourceLink {
margin-top: 0.5rem;
}
.sourceLinkButton {
display: inline-flex;
align-items: center;
padding: 0.75rem 1rem;
background: linear-gradient(135deg, var(--color-accent, #10b981) 0%, #059669 100%);
color: white;
text-decoration: none;
border-radius: 8px;
font-weight: 500;
transition: all 0.2s;
box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
}
.sourceLinkButton:hover {
transform: translateY(-2px);
box-shadow: 0 6px 12px rgba(16, 185, 129, 0.4);
}
.bauvorschriftenFooter {
margin-top: 0.5rem;
padding-top: 0.5rem;
border-top: 1px solid var(--color-border, #e5e7eb);
}
.lastUpdated {
font-size: 0.75rem;
color: var(--color-text-secondary, #6b7280);
}
@media (max-width: 768px) {
.bauvorschriftenGrid {
grid-template-columns: 1fr;
}
}