Layout Startseite/FAQ

This commit is contained in:
Simona Oswald 2026-04-25 14:47:47 +02:00
parent 0041ab8d7a
commit 46eeecdc3a
6 changed files with 58 additions and 64 deletions

View File

@ -153,7 +153,7 @@ input[type="number"],
textarea { textarea {
font-family: var(--font-main); font-family: var(--font-main);
font-weight: 400; font-weight: 400;
font-size: 1.25rem; font-size: 1.125rem;
padding: var(--space-16) var(--space-20); padding: var(--space-16) var(--space-20);
border: 1.5px solid var(--olive-light); border: 1.5px solid var(--olive-light);
border-radius: var(--radius-md); border-radius: var(--radius-md);

View File

@ -48,14 +48,6 @@
/* --------------------------------------------------------- /* ---------------------------------------------------------
Overview Header + Filters Overview Header + Filters
--------------------------------------------------------- */ --------------------------------------------------------- */
.filter-label {
font-family: var(--font-main);
font-size: 1rem;
font-weight: 600;
letter-spacing: var(--ls-sm);
line-height: 1;
margin-bottom: var(--space-8);
}
.filter-row { .filter-row {
display: flex; display: flex;
@ -87,7 +79,7 @@
.meta-filter-group { .meta-filter-group {
display: flex; display: flex;
flex-wrap: nowrap; flex-wrap: nowrap;
gap: var(--space-2); gap: var(--space-12);
margin-bottom: 0; margin-bottom: 0;
} }

View File

@ -179,7 +179,7 @@
.how-step__footer-badges { .how-step__footer-badges {
display: flex; display: flex;
gap: var(--space-2); gap: var(--space-16);
justify-content: center; justify-content: center;
} }
@ -204,6 +204,10 @@
/* --- Carousel gallery --- */ /* --- Carousel gallery --- */
.gallery {
margin-bottom: 100px;
}
.gallery__carousel { .gallery__carousel {
position: relative; position: relative;
overflow: hidden; overflow: hidden;
@ -433,35 +437,27 @@
/* --- FAQ Section: Akkordion --- */ /* --- FAQ Section: Akkordion --- */
.faq-section { .faq-section {
padding: var(--space-8) var(--space-24); margin-bottom: 0px;
margin: var(--space-8) 0 var(--space-5);
}
.faq-section h2 {
text-align: center;
margin-bottom: var(--space-5);
color: var(--brown);
} }
.faq-accordion { .faq-accordion {
width: 100%; width: 100%;
max-width: 56rem;
margin: 0 auto;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: var(--space-2); gap: var(--space-12);
} }
.faq-item { .faq-item {
border: 1.5px solid var(--olive-light); border: 1.5px solid var(--olive-light);
border-radius: var(--radius-lg); border-radius: var(--radius-lg);
overflow: hidden; overflow: hidden;
background: var(--white); background: var(--butter-light);
transition: background-color 0.2s ease, box-shadow var(--shadow-interaction); padding: var(--space-12) var(--space-24) ;
transition: background-color 0.2s ease;
} }
.faq-item:hover { .faq-item:hover {
box-shadow: var(--shadow-interaction); background: var(--olive-light);
} }
.faq-trigger { .faq-trigger {
@ -469,41 +465,32 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: var(--space-3) var(--space-24);
background: transparent; background: transparent;
border: none; border: none;
cursor: pointer; cursor: pointer;
font-family: var(--font-main);
font-size: 1.25rem; font-size: 1.25rem;
font-weight: 400; font-weight: 400;;
color: var(--olive);
text-align: left; text-align: left;
transition: background-color 0.2s ease; transition: background-color 0.2s ease;
font-family: var(--font-main);
} }
.faq-trigger:hover {
background-color: var(--butter-light);
}
.faq-trigger:focus-visible {
outline: 2px solid var(--olive);
outline-offset: -2px;
}
.faq-title { .faq-title {
flex: 1; flex: 1;
font-weight: 600; font-weight: 400;
font-size: 1.25rem;
} }
.faq-icon { .faq-icon {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
width: 28px; width: 24px;
height: 28px; height: 24px;
font-size: 1.5rem; font-size: 1.5rem;
font-weight: 300; font-weight: 400;
color: var(--olive); color: var(--black);
transition: transform 0.3s ease; transition: transform 0.3s ease;
flex-shrink: 0; flex-shrink: 0;
} }
@ -513,19 +500,16 @@
} }
.faq-content { .faq-content {
padding: 0 var(--space-24); padding: 0;
max-height: 0; max-height: 0;
overflow: hidden; overflow: hidden;
transition: max-height 0.3s ease, padding 0.3s ease; transition: max-height 0.3s ease;
font-size: 1.125rem;
line-height: 1.7;
color: var(--black);
font-family: var(--font-main);
} }
.faq-content p { .faq-content p {
margin: 0; margin: 0;
padding: var(--space-3) 0; padding: var(--space-12) var(--space-24) var(--space-12) 0;
} }
.faq-trigger[aria-expanded="true"] + .faq-content { .faq-trigger[aria-expanded="true"] + .faq-content {
@ -534,6 +518,16 @@
padding: var(--space-3) var(--space-24); padding: var(--space-3) var(--space-24);
} }
.faq-list {
padding-left: var(--space-24);
margin: var(--space-12) var(--space-24) var(--space-12) 0;
}
.faq-list li {
font-size: 1.125rem;
margin-bottom: var(--space-12)
}
/* --- Responsive: FAQ Section --- */ /* --- Responsive: FAQ Section --- */

View File

@ -51,11 +51,6 @@
border-radius: var(--radius-pill); border-radius: var(--radius-pill);
} }
.category-item.is-active .btn-count {
background: var(--butter-light);
}
/* Konsistentes Karten-Layout für alle Profilsektionen. */ /* Konsistentes Karten-Layout für alle Profilsektionen. */
.profile-panel { .profile-panel {
background: var(--butter-light); background: var(--butter-light);

View File

@ -120,7 +120,8 @@ p {
margin-bottom: 0rem; margin-bottom: 0rem;
} }
.label-input-field { .label-input-field,
.filter-label {
font-family: var(--font-main); font-family: var(--font-main);
font-size: 1rem; font-size: 1rem;
font-weight: 400; font-weight: 400;
@ -574,7 +575,7 @@ label {
font-weight: 400; font-weight: 400;
font-size: 1.125rem; font-size: 1.125rem;
line-height: 1; line-height: 1;
padding: var(--space-1) var(--space-20); padding: var(--space-6) var(--space-20);
cursor: pointer; cursor: pointer;
transition: background-color 0.2s ease, color 0.2s ease; transition: background-color 0.2s ease, color 0.2s ease;
} }

View File

@ -82,7 +82,7 @@
<!-- Main Content: uses .gallery, .gallery__carousel, .gallery__track, .gallery__item, and .gallery__info to present event carousel content --> <!-- Main Content: uses .gallery, .gallery__carousel, .gallery__track, .gallery__item, and .gallery__info to present event carousel content -->
<section class="gallery" aria-label="Bildergalerie" aria-roledescription="Karussell"> <section class="gallery" aria-label="Bildergalerie" aria-roledescription="Karussell">
<div class="gallery__header"> </div><h2>Einblick in Cooking-Erlebnisse</h2> </div><h2>Einblick in Cooking-Erlebnisse</h2>
<p>#gemeinsam_invité auf Instagram</p> <p>#gemeinsam_invité auf Instagram</p>
</div> </div>
<div class="gallery__carousel"> <div class="gallery__carousel">
@ -221,7 +221,6 @@
<div class="gallery_dots" role="tablist" aria-label="Seite auswählen"></div> <div class="gallery_dots" role="tablist" aria-label="Seite auswählen"></div>
</section> </section>
</main>
<!-- Lightbox: Bildansicht vergrössert --> <!-- Lightbox: Bildansicht vergrössert -->
<div class="lightbox" id="gallery-lightbox" aria-hidden="true"> <div class="lightbox" id="gallery-lightbox" aria-hidden="true">
@ -236,7 +235,6 @@
<!-- FAQ Section: Akkordion mit häufig gestellten Fragen --> <!-- FAQ Section: Akkordion mit häufig gestellten Fragen -->
<section class="faq-section"> <section class="faq-section">
<div class="container">
<h2>Häufig gestellte Fragen</h2> <h2>Häufig gestellte Fragen</h2>
<div class="faq-accordion"> <div class="faq-accordion">
<div class="faq-item"> <div class="faq-item">
@ -245,10 +243,24 @@
<span class="faq-icon">+</span> <span class="faq-icon">+</span>
</button> </button>
<div class="faq-content"> <div class="faq-content">
<p><strong>Schritt 1: Kostenloses Konto erstellen</strong><br>Gehe auf Invité, klicke auf "Jetzt beitreten" und fülle das Anmeldeformular aus. Du benötigst nur deine E-Mail und ein Passwort.</p> <ol class="faq-list">
<p><strong>Schritt 2: Dein Profil ausfüllen</strong><br>Lade ein Profilfoto hoch, schreib ein bisschen über dich und gib deine Allergien/Ernährungspräferenzen an. Das hilft anderen, dich besser kennenzulernen.</p> <li>
<p><strong>Schritt 3: Erkunde Events</strong><br>Browsing durch unsere Events, filtere nach Diät oder Allergie-Einstellungen, und melde dich zu den Events an, die dich interessieren!</p> <strong>Kostenloses Konto erstellen</strong><br>
<p><strong>Schritt 4: Erstelle dein eigenes Event</strong><br>Du kannst auch selbst ein Kochevent hosten! Klick auf "Event erstellen", beschreib dein Menü, und lade Gäste ein.</p> Gehe auf Invité, klicke auf "Jetzt beitreten" und fülle das Anmeldeformular aus. Du benötigst nur deine E-Mail und ein Passwort.
</li>
<li>
<strong>Dein Profil ausfüllen</strong><br>
Lade ein Profilfoto hoch, schreib ein bisschen über dich und gib deine Allergien/Ernährungspräferenzen an. Das hilft anderen, dich besser kennenzulernen.
</li>
<li>
<strong>Erkunde Events</strong><br>
Browsing durch unsere Events, filtere nach Diät oder Allergie-Einstellungen und melde dich zu den Events an, die dich interessieren!
</li>
<li>
<strong>Erstelle dein eigenes Event</strong><br>
Du kannst auch selbst ein Kochevent hosten! Klick auf "Event erstellen", beschreib dein Menü und lade Gäste ein.
</li>
</ol>
</div> </div>
</div> </div>
@ -302,8 +314,8 @@
</div> </div>
</div> </div>
</div> </div>
</div>
</section> </section>
</main>
<div class="footer"> <div class="footer">
<div class="footer-left"> <div class="footer-left">