fix(css): constrain gallery heading and pricing/contact sections to main container width #82

Merged
greggy merged 4 commits from feature/gallery-and-section-containers into main 2026-06-14 16:50:01 +02:00
2 changed files with 74 additions and 17 deletions
Showing only changes of commit 7913596836 - Show all commits

View File

@@ -153,6 +153,7 @@ $gridItems = [
<summary class="floor-header">
<span class="floor-title"><?= htmlspecialchars($t($floor['titleKey']), ENT_QUOTES) ?></span>
<span class="floor-area"><?= htmlspecialchars($t($floor['areaKey']), ENT_QUOTES) ?></span>
<span class="floor-icon" aria-hidden="true">+</span>
</summary>
<div class="floor-body">
<img src="/<?= htmlspecialchars($floorImageMap[$floor['id']] ?? 'bilder/grundrisse/EG.png', ENT_QUOTES) ?>"

View File

@@ -670,26 +670,63 @@ nav.scrolled {
color: var(--charcoal);
}
.floor-accordion {
border-top: 1px solid var(--warm);
.floors-accordion {
display: flex;
flex-direction: column;
gap: 0.75rem;
margin-top: -0.75rem;
}
.floor-item {
border-bottom: 1px solid var(--warm);
border: 1px solid var(--warm);
border-radius: 4px;
background: var(--white);
overflow: hidden;
position: relative;
transition:
border-color 0.25s ease,
box-shadow 0.25s ease;
}
.floor-item:hover {
border-color: var(--stone);
}
.floor-item.open {
border-color: var(--accent);
box-shadow: 0 4px 20px rgb(28 26 23 / 6%);
}
.floor-item.open::before {
content: "";
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 3px;
background: var(--accent);
}
.floor-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.5rem 0;
gap: 1rem;
padding: 1.25rem 1.5rem;
cursor: pointer;
transition: color 0.2s;
list-style: none;
transition: background 0.2s ease;
}
.floor-header:hover .floor-title {
color: var(--accent);
.floor-header::-webkit-details-marker {
display: none;
}
.floor-header::marker {
content: "";
}
.floor-header:hover {
background: var(--cream);
}
.floor-title {
@@ -699,41 +736,60 @@ nav.scrolled {
transition: color 0.2s;
}
.floor-size {
.floor-header:hover .floor-title {
color: var(--accent);
}
.floor-area {
margin-left: auto;
font-size: 0.78rem;
letter-spacing: 0.1em;
color: var(--stone);
display: flex;
align-items: center;
gap: 1rem;
gap: 0.75rem;
}
.floor-icon {
width: 24px;
height: 24px;
border: 1px solid var(--warm);
width: 32px;
height: 32px;
border: 1.5px solid var(--warm);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.8rem;
font-size: 1.15rem;
font-weight: 300;
line-height: 1;
color: var(--stone);
background: var(--white);
flex-shrink: 0;
transition:
transform 0.3s,
border-color 0.3s;
transform 0.3s ease,
border-color 0.25s ease,
color 0.25s ease,
background 0.25s ease;
}
.floor-header:hover .floor-icon {
border-color: var(--accent);
color: var(--accent);
}
.floor-item.open .floor-icon {
transform: rotate(45deg);
border-color: var(--accent);
color: var(--accent);
background: var(--cream);
}
.floor-body {
display: none;
padding: 0 0 1.5rem;
padding: 0 1.5rem 1.5rem;
max-width: 100%;
overflow: hidden;
border-top: 1px solid var(--warm);
margin-top: -1px;
}
.floor-rooms-grid {