27 changed files with 1290 additions and 754 deletions

No files matched your search

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

+12
View File
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg id="Ebene_1" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 36 36">
<!-- Generator: Adobe Illustrator 30.3.0, SVG Export Plug-In . SVG Version: 2.1.3 Build 182) -->
<defs>
<style>
.st0 {
fill: #6b6b05;
}
</style>
</defs>
<path class="st0" d="M6,33c0-6.63,5.37-12,12-12s12,5.37,12,12h-3c0-4.97-4.03-9-9-9s-9,4.03-9,9h-3ZM18,19.5c-4.97,0-9-4.03-9-9S13.03,1.5,18,1.5s9,4.03,9,9-4.03,9-9,9ZM18,16.5c3.32,0,6-2.68,6-6s-2.68-6-6-6-6,2.68-6,6,2.68,6,6,6Z"/>
</svg>

After

Width:  |  Height:  |  Size: 553 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

-82
View File
@@ -1,82 +0,0 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg fill="#000000" height="800px" width="800px" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 0 298.096 298.096" xml:space="preserve">
<g>
<g>
<g>
<path d="M187.592,218.502c-10.82-3.316-27.172-8.32-30.632-20.716c-1.292-4.612-1.276-37.344-0.944-59.436
c20.636-0.22,39.808-1.256,54.66-2.984c27.704-3.224,27.704-7.308,27.704-9.272l-0.044-0.472l0.044-11.252
c0-0.056,0-0.108,0-0.16v-0.008c0-1.964,0-6.048-27.704-9.272c-16.8-1.952-39.12-3.028-62.848-3.028
c-23.732,0-46.048,1.076-62.848,3.028c-27.708,3.224-27.708,7.308-27.708,9.272v11.892c0,1.964,0,6.048,27.708,9.272
c14.852,1.728,34.02,2.764,54.656,2.984c0.332,22.092,0.348,54.824-0.944,59.436c-3.46,12.392-19.808,17.4-30.628,20.712
c-7.596,2.328-11.78,3.608-11.78,6.912c-0.012,0.304-0.044,1.124,0.44,1.86c0.416,0.884,0.996,1.172,0.972,1.148
c4.692,3.48,29.272,5.068,50.128,5.068c20.852,0,45.432-1.584,49.956-4.952c0.764-0.456,1.584-1.516,1.584-3.112
C199.372,222.114,195.188,220.83,187.592,218.502z M147.828,105.906c50.612,0,82.344,4.776,86.308,8.272
c-0.08,0.076-0.156,0.152-0.26,0.228c-0.144,0.104-0.304,0.212-0.496,0.32c-0.22,0.124-0.484,0.244-0.764,0.368
c-0.244,0.108-0.5,0.216-0.792,0.324c-0.34,0.128-0.728,0.256-1.132,0.384c-0.344,0.108-0.688,0.22-1.076,0.328
c-0.46,0.128-0.972,0.26-1.492,0.388c-0.436,0.108-0.876,0.22-1.356,0.328c-0.576,0.132-1.212,0.26-1.852,0.392
c-0.528,0.108-1.048,0.216-1.616,0.32c-0.696,0.132-1.452,0.26-2.208,0.388c-0.616,0.104-1.22,0.208-1.876,0.312
c-0.8,0.128-1.664,0.248-2.52,0.372c-0.712,0.104-1.412,0.208-2.168,0.308c-0.908,0.12-1.884,0.24-2.848,0.356
c-0.796,0.096-1.572,0.196-2.408,0.288c-1.024,0.116-2.116,0.228-3.196,0.336c-0.876,0.092-1.728,0.184-2.64,0.268
c-1.128,0.108-2.324,0.208-3.508,0.312c-0.96,0.084-1.892,0.168-2.884,0.248c-1.236,0.096-2.54,0.188-3.832,0.28
c-1.032,0.072-2.032,0.148-3.096,0.216c-1.34,0.088-2.756,0.164-4.148,0.24c-1.104,0.064-2.18,0.128-3.32,0.188
c-1.46,0.072-2.992,0.136-4.508,0.2c-1.156,0.048-2.272,0.104-3.46,0.148c-1.676,0.064-3.432,0.112-5.172,0.16
c-1.1,0.032-2.16,0.072-3.28,0.1c-2.056,0.052-4.196,0.084-6.332,0.116c-0.88,0.012-1.724,0.036-2.62,0.048
c-3.072,0.036-6.216,0.056-9.444,0.056c-3.22,0-6.36-0.02-9.424-0.056c-1.172-0.016-2.28-0.044-3.428-0.06
c-1.84-0.032-3.704-0.056-5.484-0.1c-1.672-0.04-3.268-0.096-4.884-0.148c-1.156-0.036-2.344-0.068-3.472-0.108
c-2.264-0.084-4.448-0.18-6.6-0.284c-0.38-0.02-0.784-0.032-1.16-0.052c-30.476-1.516-49.04-4.868-51.904-7.492
C65.292,110.71,97.072,105.906,147.828,105.906z M61.276,118.61c0.148,0.072,0.344,0.14,0.504,0.208
c0.228,0.096,0.46,0.188,0.716,0.284c0.3,0.112,0.628,0.224,0.964,0.336c0.288,0.096,0.576,0.196,0.892,0.292
c0.364,0.112,0.772,0.228,1.176,0.34c0.164,0.044,0.304,0.092,0.472,0.136l-4.724,5.66V118.61z M63.196,127.118l5.252-6.3
c0.268,0.06,0.524,0.124,0.808,0.184c0.56,0.124,1.184,0.244,1.796,0.368c0.412,0.084,0.792,0.164,1.228,0.248l-5.536,6.636
C65.284,127.87,64.08,127.49,63.196,127.118z M69.2,128.846l5.66-6.78c0.392,0.064,0.756,0.132,1.164,0.196
c0.884,0.14,1.856,0.28,2.824,0.416l-5.784,6.932C71.66,129.358,70.364,129.102,69.2,128.846z M75.644,130.062l5.856-7.02
c1.124,0.148,2.248,0.292,3.484,0.436c0.192,0.024,0.404,0.04,0.596,0.064l-5.936,7.112
C78.244,130.458,76.888,130.262,75.644,130.062z M82.308,130.998l5.988-7.172c16.376,1.728,37.308,2.68,59.536,2.68
c23.728,0,46.048-1.076,62.848-3.032c1.688-0.196,3.268-0.396,4.756-0.6c0.516-0.072,0.964-0.144,1.46-0.212
c0.932-0.132,1.872-0.268,2.724-0.4c0.524-0.084,0.984-0.168,1.476-0.252c0.74-0.124,1.492-0.248,2.168-0.376
c0.484-0.092,0.916-0.18,1.372-0.272c0.6-0.12,1.208-0.24,1.756-0.36c0.44-0.096,0.832-0.192,1.24-0.288
c0.488-0.116,0.98-0.228,1.424-0.344c0.388-0.1,0.732-0.2,1.088-0.3c0.392-0.112,0.788-0.22,1.144-0.332
c0.332-0.104,0.632-0.204,0.932-0.308c0.316-0.108,0.632-0.216,0.916-0.324c0.272-0.104,0.52-0.204,0.764-0.304
c0.148-0.06,0.328-0.124,0.468-0.184l-0.028,7.28l0.004,0.036c-3,3.508-34.972,8.46-86.512,8.46
C119.56,134.402,97.24,132.906,82.308,130.998z M147.828,229.486c-24.224,0-42.432-1.936-47.24-4.024
c1.372-0.904,5.364-2.128,8.648-3.136c11.652-3.568,29.256-8.96,33.308-23.46c1.764-6.312,1.252-49.452,1.092-60.468h8.372
c-0.16,11.016-0.672,54.156,1.092,60.464c4.052,14.5,21.66,19.896,33.312,23.464c3.312,1.016,7.344,2.248,8.684,3.156
C191.08,227.462,172.596,229.486,147.828,229.486z"/>
<path d="M82.696,153.378H22.28c-0.696,0-1.36,0.14-1.964,0.396c-0.5-8.16-0.996-16.324-1.492-24.484
c0.292,0.052,0.564,0.172,0.872,0.172c0.076,0,0.152,0,0.228-0.004c2.788-0.128,4.952-2.496,4.828-5.284l-2.684-60.356
c-0.12-2.788-2.54-4.992-5.284-4.832c-2.788,0.128-4.952,2.496-4.828,5.284l0.004,0.132c-0.46-0.088-5.384,0.036-7.344,0
L0,64.346v174.592c0,0,7.552,0.192,10.252,0.18c4.652-0.024,4.94-3.596,5.036-4.804c0.788-9.676,1.032-31.124,1.192-45.32
c0.052-4.576,0.096-8.704,0.148-11.012h49.536c0.252,2.24,0.72,6.46,1.232,11.132c1.528,13.912,3.836,34.936,5.224,45.928
c0.144,1.144,1.16,3.396,2.96,3.668c1.38,0.208,2.72,0.172,4.004,0.14l3.344-0.024v-75.368c2.68-0.12,4.84-2.304,4.84-5.02
C87.756,155.65,85.484,153.378,82.696,153.378z M16.88,61.25c0.044,0,0.084,0,0.124,0c1.484,0,2.728,1.172,2.792,2.668
l2.684,60.356c0.072,1.54-1.124,2.844-2.664,2.916c-0.404,0.016-0.788-0.052-1.136-0.18c-0.468-7.72-4.468-62.84-4.468-62.84
C14.144,62.63,15.34,61.322,16.88,61.25z M78.916,234.862c-0.78,0.016-1.524,0.02-2.224-0.044
c-0.06-0.104-0.104-0.216-0.116-0.276c-1.384-10.964-3.688-31.968-5.216-45.864c-1.3-11.836-1.416-12.836-1.484-13.136
l-0.352-1.56H12.876c0,0-0.804,50.472-1.584,60.008c-0.048,0.588-0.124,0.848-0.1,0.892c-0.088,0.024-7.04,0-7.2,0.004V68.39
l0.54,0.008c2.052,0.04,4.092,0.076,6.128-0.012c0.236-0.008,0.392-0.004,0.468-0.016c0.024,0.116,0.056,0.312,0.072,0.616
c0.488,9.028,1.04,18.056,1.588,27.08l0.488,8.02c1.136,18.784,3.712,61.672,3.712,61.672h61.928V234.862z M82.696,161.234H22.28
c-0.564,0-1.06-0.208-1.5-0.5c-0.024-0.18-0.064-0.364-0.076-0.544c-0.08-1.28-0.156-2.56-0.232-3.836
c0.492-0.424,1.112-0.708,1.808-0.708h60.416c1.54,0,2.792,1.252,2.792,2.792S84.236,161.234,82.696,161.234z"/>
<path d="M293.476,64.402c-1.96,0.04-3.92,0.076-5.872-0.012c-0.556-0.02-1.02,0.068-1.48,0.16l0.012-0.28
c0.124-2.788-2.04-5.156-4.828-5.284c-2.916-0.168-5.16,2.044-5.284,4.832l-2.684,60.356c-0.124,2.788,2.04,5.156,4.828,5.284
c0.08,0.004,0.152,0.004,0.228,0.004c0.308,0,0.58-0.116,0.872-0.172c-0.496,8.16-0.988,16.324-1.492,24.484
c-0.604-0.256-1.268-0.396-1.964-0.396h-60.42c-2.788,0-5.06,2.272-5.06,5.064c0,2.712,2.156,4.896,4.84,5.02v75.364l3.344,0.024
c1.284,0.036,2.62,0.072,4.004-0.14c1.8-0.272,2.816-2.524,2.96-3.668c1.388-10.996,3.696-32.016,5.224-45.928
c0.516-4.696,0.98-8.932,1.228-11.132h49.54c0.052,2.308,0.096,6.44,0.148,11.012c0.16,14.192,0.404,35.644,1.192,45.316
c0.092,1.208,0.328,4.68,5.112,4.588c2.384-0.044,10.172,0.04,10.172,0.04V64.342L293.476,64.402z M278.396,127.194
c-0.04,0-0.084,0-0.124,0c-1.54-0.072-2.736-1.376-2.664-2.916l2.684-60.356c0.068-1.536,1.248-2.724,2.916-2.668
c1.54,0.072,2.736,1.376,2.664,2.916l-0.084,1.868c-0.488,0.7-3.912,53.244-4.384,60.96
C279.092,127.118,278.752,127.194,278.396,127.194z M215.392,161.234c-1.54,0-2.792-1.252-2.792-2.792
c0-1.54,1.252-2.792,2.792-2.792h60.416c0.696,0,1.316,0.28,1.808,0.708c-0.08,1.276-0.156,2.556-0.232,3.832
c-0.012,0.18-0.052,0.368-0.076,0.548c-0.44,0.288-0.936,0.496-1.496,0.496H215.392z M294.096,234.886
c-0.16-0.004-6.736,0.032-6.844,0.032c-0.164,0-0.264-0.004-0.296,0.004c-0.04-0.104-0.112-0.364-0.16-0.936
c-0.776-9.536-1.016-30.904-1.176-45.04c-0.088-7.956-0.144-14.968-0.144-14.968h-56.912l-0.352,1.56
c-0.072,0.3-0.184,1.3-1.484,13.136c-1.528,13.9-3.832,34.904-5.212,45.848c-0.016,0.072-0.064,0.184-0.12,0.292
c-0.7,0.068-1.44,0.06-2.224,0.044v-69.1h62.288c0,0,2.212-42.888,3.352-61.672l0.488-8.02c0.552-9.024,1.1-18.052,1.588-27.08
c0.02-0.312,0.048-0.504,0.04-0.592c0.1-0.008,7.168,0,7.168,0V234.886z"/>
</g>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 8.1 KiB

+8 -49
View File
@@ -14,12 +14,6 @@
box-sizing: border-box; box-sizing: border-box;
} }
.site-header {
background: var(--color-bg);
border-top: 2px solid #232323;
border-bottom: 1px solid var(--color-border);
}
.event-create-page { .event-create-page {
width: min(100% - 2rem, var(--max-width)); width: min(100% - 2rem, var(--max-width));
margin: 0 auto; margin: 0 auto;
@@ -40,7 +34,7 @@
.step { .step {
display: none; display: none;
padding: var(--space-4) 0 var(--space-7); padding: var(--space-4) 0 var(--space-4);
} }
.submission-success { .submission-success {
@@ -55,7 +49,7 @@
width: min(100%, var(--content-width)); width: min(100%, var(--content-width));
margin: 0 auto; margin: 0 auto;
display: grid; display: grid;
gap: var(--space-6); gap: var(--space-40);
} }
.step-layout--intro { .step-layout--intro {
@@ -103,7 +97,7 @@ fieldset {
} }
.intro-card { .intro-card {
padding: var(--space-6); padding: var(--space-40);
border-radius: 1.75rem; border-radius: 1.75rem;
background: linear-gradient(135deg, var(--color-surface), var(--color-surface-soft)); background: linear-gradient(135deg, var(--color-surface), var(--color-surface-soft));
} }
@@ -215,7 +209,7 @@ textarea:focus {
.option-card { .option-card {
position: relative; position: relative;
display: grid; display: grid;
padding: var(--space-31); padding: 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);
background: var(--butter-light); background: var(--butter-light);
@@ -242,7 +236,7 @@ textarea:focus {
} }
.option-card--invalid { .option-card--invalid {
border-color: var(--tomato) !important; border-color: var(--error) !important;
box-shadow: 0 0 0 2px rgba(212, 75, 36, 0.14); box-shadow: 0 0 0 2px rgba(212, 75, 36, 0.14);
} }
@@ -339,9 +333,10 @@ textarea:focus {
} }
.error-message { .error-message {
order: -1; /* nach oben verschieben */ margin: 0;
text-align: center; text-align: center;
width: 100%; width: 100%;
} }
.progress-wrap { .progress-wrap {
@@ -393,25 +388,6 @@ textarea:focus {
gap: var(--space-4); gap: var(--space-4);
} }
.error-message {
min-height: 1.5rem;
margin: 0;
color: var(--color-error);
font-size: 0.95rem;
}
/*.button {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.9rem 1.35rem;
border-radius: var(--radius-pill);
border: 1px solid var(--color-border);
background: transparent;
color: var(--color-text);
cursor: pointer;
}*/
.button--ghost:hover { .button--ghost:hover {
background: rgba(0, 0, 0, 0.03); background: rgba(0, 0, 0, 0.03);
} }
@@ -468,28 +444,11 @@ textarea:focus {
justify-content: center; justify-content: center;
} }
.gallery-add-btn {
width: 5.5rem;
height: 5.5rem;
border: 2px dashed var(--color-border-strong);
border-radius: var(--radius-sm, 0.5rem);
background: transparent;
font-size: 2rem;
color: var(--color-muted);
cursor: pointer;
flex-shrink: 0;
transition: border-color 0.15s, color 0.15s;
}
.gallery-add-btn:hover {
border-color: var(--olive);
color: var(--olive);
}
.site-footer { .site-footer {
width: min(100% - 2rem, var(--max-width)); width: min(100% - 2rem, var(--max-width));
margin: 0 auto; margin: 0 auto;
padding: var(--space-5) 0 var(--space-6); padding: var(--space-5) 0 var(--space-40);
color: var(--color-muted); color: var(--color-muted);
text-align: center; text-align: center;
} }
+61 -146
View File
@@ -4,26 +4,15 @@
Shared Typography Tokens Shared Typography Tokens
Reuse common text styles across nav, controls and buttons Reuse common text styles across nav, controls and buttons
--------------------------------------------------------- */ --------------------------------------------------------- */
.nav-link,
.login-pill,
.category-item,
.meta-filter select, .meta-filter select,
.meta-filter input[type="date"], .meta-filter input[type="date"],
.btn-primary,
.empty-state-btn,
.detail-primary-btn { .detail-primary-btn {
font-family: "Jost", sans-serif; font-family: var(--font-main);
font-size: 17px; font-size: 1.125rem;
font-weight: 500; line-height: 1;
letter-spacing: var(--ls-ui); color: var(--black);
}
.event-date-time,
.event-location {
color: var(--olive);
font-size: 18px;
font-weight: 400;
line-height: 1.3;
} }
/* Heading hierarchy: page title > detail title > card title > section title */ /* Heading hierarchy: page title > detail title > card title > section title */
@@ -54,17 +43,15 @@
--------------------------------------------------------- */ --------------------------------------------------------- */
.filter-label { .filter-label {
margin: 0 0 var(--space-1); margin: 0 0 var(--space-1);
color: var(--olive);
font-size: 18px;
letter-spacing: var(--ls-la); letter-spacing: var(--ls-la);
} }
.filter-row { .filter-row {
display: flex; display: flex;
align-items: flex-end; align-items: center;
justify-content: space-between; justify-content: space-between;
gap: var(--space-3); gap: var(--space-3);
margin-bottom: var(--space-6); margin-bottom: var(--space-2);
} }
.category-group { .category-group {
@@ -75,26 +62,15 @@
flex: 1; flex: 1;
} }
.category-item { .event-tag {
border: 1.5px solid var(--tomato); border: 1.5px solid var(--tomato);
border-radius: var(--radius-pill);
background: var(--butter-light);
color: var(--tomato); color: var(--tomato);
line-height: 1.3; border-radius: var(--radius-pill);
padding: var(--space-1) var(--space-31); font-family: var(--font-main);
min-height: 40px; font-weight: 400;
cursor: pointer; font-size: 1rem;
transition: background-color 0.2s ease, color 0.2s ease; line-height: 1;
} padding: var(--space-1) var(--space-20);
.category-item:hover {
background: var(--tomato);
color: var(--butter-light);
}
.category-item.active {
background: var(--tomato);
color: var(--butter-light);
} }
.meta-filter-group { .meta-filter-group {
@@ -114,48 +90,43 @@
.meta-filter select, .meta-filter select,
.meta-filter input[type="date"] { .meta-filter input[type="date"] {
border: 1.5px solid var(--tomato); border: 1.5px solid var(--olive);
border-radius: var(--radius-sm); border-radius: var(--radius-sm);
background: var(--butter-light); background: var(--butter-light);
color: var(--black); height: 37px;
padding: var(--space-1) var(--space-4); padding: 0 var(--space-4);
min-height: 40px;
height: 40px;
box-sizing: border-box; box-sizing: border-box;
} }
/*
.meta-filter select:focus, .meta-filter select:focus,
.meta-filter input[type="date"]:focus { .meta-filter input[type="date"]:focus {
outline: 2px solid rgba(107, 107, 5, 0.35); border: 1.5px solid var(--olive-dark);
outline-offset: 1px; outline: 2px solid var(--butter);
}*/ }
.meta-filter input[type="date"] { .meta-filter input[type="date"] {
color-scheme: light; color-scheme: light;
accent-color: var(--tomato); accent-color: var(--olive-dark);
} }
.meta-filter input[type="date"]::-webkit-calendar-picker-indicator { .meta-filter input[type="date"]::-webkit-calendar-picker-indicator {
cursor: pointer; cursor: pointer;
border-radius: 4px; filter: invert(8%) sepia(5%) saturate(300%) hue-rotate(10deg) brightness(10%) contrast(95%);
padding: 4px;
filter: invert(35%) sepia(60%) saturate(600%) hue-rotate(22deg) brightness(90%) contrast(95%);
transition: background-color 0.2s ease; transition: background-color 0.2s ease;
} }
.meta-filter input[type="date"]::-webkit-calendar-picker-indicator:hover { .meta-filter input[type="date"]::-webkit-calendar-picker-indicator:hover {
background-color: var(--olive-light); filter: brightness(0.8);
} }
.meta-filter select { .meta-filter select {
cursor: pointer; cursor: pointer;
appearance: none;
-webkit-appearance: none; -webkit-appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6B05' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='currentColor' stroke-width='1.5' fill='none' stroke-linecap='butt' stroke-linejoin='miter'/%3E%3C/svg%3E");
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: right 12px center; color: var(--black);
padding-right: 36px; background-position: right var(--space-4) center;
} }
/* --------------------------------------------------------- /* ---------------------------------------------------------
@@ -164,7 +135,7 @@
.event-list { .event-list {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 18px; gap: var(--space-3);
} }
.event-card { .event-card {
@@ -172,11 +143,9 @@
background: var(--butter-light); background: var(--butter-light);
border: 1.5px solid var(--olive-light); border: 1.5px solid var(--olive-light);
border-radius: var(--radius-lg); border-radius: var(--radius-lg);
padding: var(--space-5) var(--space-6); padding: var(--space-5) var(--space-40);
display: flex; display: flex;
/*justify-content: space-between; gap: var(--space-40);
align-items: flex-start;*/
gap: var(--space-6);
cursor: pointer; cursor: pointer;
transition: box-shadow 0.2s ease, transform 0.2s ease; transition: box-shadow 0.2s ease, transform 0.2s ease;
} }
@@ -191,7 +160,9 @@
flex: 1; flex: 1;
} }
.event-date-time { .event-location,
.event-date-time,
.event-gast {
display: inline-flex; display: inline-flex;
gap: var(--space-0); gap: var(--space-0);
} }
@@ -232,7 +203,7 @@
font-weight: 400; font-weight: 400;
font-size: 1rem; font-size: 1rem;
line-height: 1; line-height: 1;
padding: var(--space-1) var(--space-31); padding: var(--space-1) var(--space-20);
} }
.event-spec-chip { .event-spec-chip {
@@ -262,6 +233,15 @@
flex-shrink: 0; flex-shrink: 0;
} }
.button-plaetze {
border: none;
padding: var(--space-01) var(--space-4);
font-family: var(--font-main);
font-weight: 400;
font-size: 1.125rem;
color: var(--olive);
}
.event-spots { .event-spots {
color: var(--olive); color: var(--olive);
font-size: 18px; font-size: 18px;
@@ -302,9 +282,8 @@
padding: 42px var(--space-5); padding: 42px var(--space-5);
border: 2px solid var(--olive-light); border: 2px solid var(--olive-light);
border-radius: var(--radius-lg); border-radius: var(--radius-lg);
background: rgba(255, 255, 255, 0.92); background: var(--butter-light);
margin-top: 8px; margin-top: 8px;
box-shadow: 0 3px 12px rgba(102, 52, 13, 0.08);
} }
.empty-state-kicker { .empty-state-kicker {
@@ -313,7 +292,6 @@
font-size: 13px; font-size: 13px;
font-weight: 600; font-weight: 600;
letter-spacing: var(--ls-la); letter-spacing: var(--ls-la);
text-transform: uppercase;
} }
.empty-state h3 { .empty-state h3 {
@@ -337,19 +315,6 @@
text-decoration: none; text-decoration: none;
} }
.empty-state-btn {
border: 0;
border-radius: var(--radius-pill);
background: var(--olive);
color: var(--butter-light);
font-weight: 600;
padding: 10px 22px;
cursor: pointer;
}
.empty-state-btn:hover {
filter: brightness(0.95);
}
/* --------------------------------------------------------- /* ---------------------------------------------------------
Detail Page Detail Page
@@ -359,29 +324,9 @@
gap: 14px; gap: 14px;
} }
.detail-back {
display: inline-flex;
align-items: center;
justify-content: flex-start;
gap: var(--space-1);
width: fit-content;
color: var(--tomato);
text-decoration: none;
font-family: "Jost", sans-serif;
font-size: 17px;
font-weight: 500;
letter-spacing: var(--ls-none);
line-height: 1.2;
}
.detail-back span {
font-size: 24px;
line-height: 1;
}
.detail-hero { .detail-hero {
display: grid; display: grid;
margin-bottom: var(--space-6); margin-bottom: var(--space-40);
} }
.detail-top-row { .detail-top-row {
@@ -406,7 +351,7 @@
display: grid; display: grid;
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 1fr;
grid-template-areas: "side gallery"; grid-template-areas: "side gallery";
gap: var(--space-6); gap: var(--space-40);
align-items: stretch; align-items: stretch;
} }
@@ -426,34 +371,25 @@
margin-bottom: 30px; margin-bottom: 30px;
} }
.host-avatar {
width: 32px;
height: 32px;
border-radius: 999px;
background: var(--olive);
color: var(--butter-light);
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 13px;
}
.host-name { .host-name {
font-weight: 500; margin-left: 12px;
font-weight: 600;
letter-spacing: var(--ls-sm);
} }
/*
.host-role { .host-role {
border: 1.5px solid var(--olive); border: 1.5px solid var(--olive-light);
background: var(--olive);; background: var(--olive-light);;
color: var(--butter-light); color: var(--olive);
border-radius: var(--radius-pill); border-radius: var(--radius-pill);
font-family: var(--font-main); font-family: var(--font-main);
font-weight: 400; font-weight: 400;
font-size: 1rem; font-size: 1rem;
line-height: 1; line-height: 1;
letter-spacing: var(--ls-la); letter-spacing: var(--ls-la);
padding: var(--space-1) var(--space-31); padding: var(--space-1) var(--space-20);
} }*/
.detail-gallery { .detail-gallery {
grid-area: gallery; grid-area: gallery;
@@ -653,9 +589,9 @@
box-shadow: var(--shadow-interaction); box-shadow: var(--shadow-interaction);
padding: var(--space-4) var(--space-5); padding: var(--space-4) var(--space-5);
margin-top: var(--space-6); margin-top: var(--space-40);
position: sticky; position: sticky;
bottom: var(--space-6); bottom: var(--space-40);
z-index: 100; z-index: 100;
} }
@@ -673,7 +609,7 @@
.detail-action-meta { .detail-action-meta {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
gap: 6px; gap: 16px;
flex-wrap: wrap; flex-wrap: wrap;
} }
@@ -684,8 +620,8 @@
} }
.detail-action-location img { .detail-action-location img {
width: 16px; width: 18px;
height: 16px; height: 18px;
} }
@@ -836,10 +772,6 @@
font-size: 15px; font-size: 15px;
} }
.category-item {
font-size: 15px;
padding: 8px 14px;
}
.meta-filter { .meta-filter {
min-width: 155px; min-width: 155px;
@@ -853,23 +785,6 @@
height: 38px; height: 38px;
} }
.event-card {
flex-direction: column;
align-items: stretch;
gap: 16px;
padding: 22px 20px 20px;
}
.event-date-time,
.event-location,
.event-spots {
font-size: 18px;
}
.event-side {
padding-top: 0;
justify-content: space-between;
}
.event-side-full { .event-side-full {
justify-content: flex-end; justify-content: flex-end;
+184 -60
View File
@@ -127,33 +127,43 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
gap: 12px; padding: var(--space-40);
padding: 28px 20px; background: var(--butter-light);
background: var(--white); border-radius: var(--radius-lg);
border-radius: 28px;
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
} }
.how-step--numbered { .how-step-number-numbered {
position: relative; position: relative;
} }
.how-step__corner-number { .how-step_corner-number {
position: absolute; position: absolute;
top: 12px; color: var(--butter-light);
left: 16px; background: var(--tomato);
font-size: 2.2rem; border-radius: var(--radius-lg);
font-weight: 700; top: var(--space-20);
left: var(--space-20);
width: 44px;
height: 44px;
display: flex;
align-items: center;
justify-content: center;
font-family: 'Bagel Fat One';
font-size: 1.5rem;
font-weight: 400;
color: var(--butter-light);
} }
.how-step__corner-number--brown { .how-step_corner-number--brown {
color: var(--brown); color: var(--brown);
} }
.how-step__icon { .how-step_icon {
font-size: 2.4rem; font-size: 3.5rem;
color: var(--brown); color: var(--brown);
margin-top: 12px; margin: var(--space-4) 0;
} }
.how-step__png { .how-step__png {
@@ -166,24 +176,14 @@
filter: brightness(0) saturate(100%) invert(18%) sepia(56%) saturate(2800%) hue-rotate(16deg) brightness(92%) contrast(95%); filter: brightness(0) saturate(100%) invert(18%) sepia(56%) saturate(2800%) hue-rotate(16deg) brightness(92%) contrast(95%);
} }
.how-step__label { .how-step_text {
margin: 0; margin-bottom: var(--space-4);
font-size: 0.95rem;
line-height: 1.6;
font-weight: 400;
color: var(--black);
text-align: center; text-align: center;
} }
.how-step__label--brown { .text-left{
color: var(--brown); text-align: left;
} }
.how-step__label--big {
font-size: 1.25rem;
font-weight: 700;
}
.how-step__footer-pill { .how-step__footer-pill {
margin-bottom: 4px; margin-bottom: 4px;
} }
@@ -246,77 +246,72 @@
.gallery__arrow { .gallery__arrow {
position: absolute; position: absolute;
top: 50%; display: grid;
transform: translateY(-50%); top: 45%;
width: 44px; width: 44px;
height: 44px; height: 44px;
display: grid; border: 1.5px solid var(--butter-light);
background: var(--butter-light);
border-radius: var(--radius-lg);
font-family: var(--font-main);
display: none;
font-weight: 400;
font-size: 1.25rem;
place-items: center; place-items: center;
border-radius: 50%;
background: rgba(0, 0, 0, 0.35);
backdrop-filter: blur(4px);
border: 2px solid rgba(255, 255, 255, 0.4);
color: var(--white);
cursor: pointer;
font-size: 1.2rem;
text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
transition: background 0.2s ease, transform 0.2s ease;
z-index: 2; z-index: 2;
color: var(--olive);
cursor: pointer;
text-decoration: none;
transition: background-color 0.2s ease, border-color 0.2s ease;
} }
.gallery__arrow:hover {
background: rgba(0, 0, 0, 0.55);
transform: translateY(-50%) scale(1.1);
}
.gallery__arrow:hover,
.gallery__arrow:focus-visible { .gallery__arrow:focus-visible {
outline: 2px solid var(--brown); border: 1.5px solid var(--butter);
outline-offset: 3px; background: var(--butter);
} }
.gallery__arrow--prev { .gallery__arrow--prev {
left: 12px; left: var(--space-4);
} }
.gallery__arrow--next { .gallery__arrow--next {
right: 12px; right: var(--space-4);
} }
/* --- Carousel dot indicators --- */ /* --- Carousel dot indicators --- */
.gallery__dots { .gallery_dots {
display: flex; display: flex;
justify-content: center; justify-content: center;
gap: 10px; gap: 10px;
padding: 12px 0 8px; padding: 12px 0 8px;
} }
.gallery__dot { .gallery_dot {
width: 12px; width: 12px;
height: 12px; height: 12px;
border-radius: 50%; border-radius: 50%;
border: 2px solid var(--brown); border: 2px solid var(--olive);
background: transparent; background: transparent;
cursor: pointer; cursor: pointer;
padding: 0; padding: 0;
transition: background 0.25s ease, transform 0.2s ease; transition: background 0.25s ease, transform 0.2s ease;
} }
.gallery__dot:hover { .gallery_dot:hover,
background: rgba(102, 52, 13, 0.3); .gallery_dot--active {
background: var(--olive);;
transform: scale(1.2); transform: scale(1.2);
} }
.gallery__dot:focus-visible { .gallery_dot:focus-visible {
outline: 2px solid var(--brown); outline: 2px solid var(--olive);
outline-offset: 3px; outline-offset: 3px;
} }
.gallery__dot--active {
background: var(--brown);
}
@media (max-width: 900px) { @media (max-width: 900px) {
.gallery__track { .gallery__track {
gap: 16px; gap: 16px;
@@ -398,3 +393,132 @@
font-size: 0.8rem; font-size: 0.8rem;
font-weight: 400; font-weight: 400;
} }
/* --- FAQ Section: Akkordion --- */
.faq-section {
padding: var(--space-8) var(--space-4);
margin: var(--space-8) 0 var(--space-5);
}
.faq-section h2 {
text-align: center;
margin-bottom: var(--space-5);
color: var(--brown);
}
.faq-accordion {
width: 100%;
max-width: 56rem;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: var(--space-2);
}
.faq-item {
border: 1.5px solid var(--olive-light);
border-radius: var(--radius-lg);
overflow: hidden;
background: var(--white);
transition: background-color 0.2s ease, box-shadow var(--shadow-interaction);
}
.faq-item:hover {
box-shadow: var(--shadow-interaction);
}
.faq-trigger {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--space-3) var(--space-4);
background: transparent;
border: none;
cursor: pointer;
font-size: 1.25rem;
font-weight: 400;
color: var(--olive);
text-align: left;
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 {
flex: 1;
font-weight: 600;
}
.faq-icon {
display: flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
font-size: 1.5rem;
font-weight: 300;
color: var(--olive);
transition: transform 0.3s ease;
flex-shrink: 0;
}
.faq-trigger[aria-expanded="true"] .faq-icon {
transform: rotate(45deg);
}
.faq-content {
padding: 0 var(--space-4);
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease, padding 0.3s ease;
font-size: 1.125rem;
line-height: 1.7;
color: var(--black);
font-family: var(--font-main);
}
.faq-content p {
margin: 0;
padding: var(--space-3) 0;
}
.faq-trigger[aria-expanded="true"] + .faq-content {
display: block;
max-height: 500px;
padding: var(--space-3) var(--space-4);
}
/* --- Responsive: FAQ Section --- */
@media (max-width: 768px) {
.faq-section {
padding: var(--space-40) var(--space-4);
margin: var(--space-40) 0 var(--space-5);
}
.faq-trigger {
padding: var(--space-2) var(--space-3);
font-size: 1.125rem;
}
.faq-content {
padding: 0 var(--space-3);
font-size: 1rem;
}
.faq-content p {
padding: var(--space-2) 0;
}
}
+22 -32
View File
@@ -128,7 +128,7 @@ button[type="submit"]:active {
background-color: var(--butter-light); background-color: var(--butter-light);
border-left: 4px solid var(--olive); border-left: 4px solid var(--olive);
padding: var(--space-3); padding: var(--space-3);
margin-bottom: var(--space-6); margin-bottom: var(--space-40);
border-radius: 4px; border-radius: 4px;
font-size: 0.9rem; font-size: 0.9rem;
color: var(--black); color: var(--black);
@@ -139,8 +139,6 @@ button[type="submit"]:active {
/* --- Hints & errors --- */ /* --- Hints & errors --- */
.error-message { .error-message {
color: var(--error);
font-size: 0.8rem;
margin-top: 5px; margin-top: 5px;
display: none; display: none;
} }
@@ -180,31 +178,12 @@ button[type="submit"]:active {
align-items: center; align-items: center;
} }
.modal-content {
background-color: var(--white);
padding: 40px;
border-radius: var(--radius-lg);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
max-width: 500px;
width: 90%;
text-align: center;
animation: slideIn 0.3s ease;
}
@keyframes slideIn { @keyframes slideIn {
from { transform: translateY(-50px); opacity: 0; } from { transform: translateY(-50px); opacity: 0; }
to { transform: translateY(0); opacity: 1; } to { transform: translateY(0); opacity: 1; }
} }
.modal-header {
position: relative;
margin-bottom: var(--space-4);
}
.modal-header h2 {
color: var(--olive);
font-size: 1.5rem;
}
.close-btn { .close-btn {
position: absolute; position: absolute;
@@ -222,13 +201,6 @@ button[type="submit"]:active {
justify-content: center; justify-content: center;
} }
.modal-body {
color: var(--black);
font-size: 1rem;
line-height: 1.6;
margin-bottom: var(--space-6);
}
.modal-footer { .modal-footer {
display: flex; display: flex;
gap: var(--space-2); gap: var(--space-2);
@@ -255,9 +227,10 @@ button[type="submit"]:active {
/* --- Footer --- */ /* --- Footer --- */
.footer { .footer {
display: flex; display: grid;
justify-content: center; grid-template-columns: 1fr auto 1fr;
align-items: center; align-items: center;
padding: var(--space-3) var(--space-5); padding: var(--space-3) var(--space-5);
border: none; border: none;
@@ -271,6 +244,23 @@ button[type="submit"]:active {
font-weight: 400; font-weight: 400;
} }
/* Left aligned */
.footer-left {
justify-self: start;
}
/* Center aligned */
.footer-center {
justify-self: center;
}
/* Right aligned */
.footer-right {
justify-self: end;
display: flex;
gap: var(--space-4);
}
/* --- Responsive --- */ /* --- Responsive --- */
@@ -294,7 +284,7 @@ button[type="submit"]:active {
transform: translateX(-50%) translateY(100px); transform: translateX(-50%) translateY(100px);
background: var(--olive); background: var(--olive);
color: var(--white); color: var(--white);
padding: var(--space-3) var(--space-6); padding: var(--space-3) var(--space-40);
border-radius: var(--radius-pill); border-radius: var(--radius-pill);
font-size: 1rem; font-size: 1rem;
font-weight: 600; font-weight: 600;
+16 -104
View File
@@ -22,7 +22,7 @@
letter-spacing: var(--ls-la); letter-spacing: var(--ls-la);
} }
#profile-headline { #headline {
margin: 0.4rem 0; margin: 0.4rem 0;
color: var(--brown); color: var(--brown);
font-size: clamp(2rem, 4.4vw, 2.8rem); font-size: clamp(2rem, 4.4vw, 2.8rem);
@@ -44,43 +44,11 @@
gap: var(--space-4); gap: var(--space-4);
} }
.profile-tabs {
display: inline-flex;
flex-wrap: wrap;
gap: var(--space-2);
}
.profile-tab {
border: 2px solid var(--olive);
border-radius: var(--radius-md);
background: var(--butter);
color: var(--black);
padding: 0.45rem 1rem;
min-height: 2.5rem;
font-family: "Jost", sans-serif;
font-size: 1rem;
font-weight: 500;
letter-spacing: var(--ls-ui);
cursor: pointer;
transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.profile-tab:hover,
.profile-tab:focus-visible {
background: #faf8e8;
}
.profile-tab.is-active {
border-color: transparent;
background: var(--olive);
color: var(--white);
}
/* Konsistentes Karten-Layout für alle Profilsektionen. */ /* Konsistentes Karten-Layout für alle Profilsektionen. */
.profile-panel { .profile-panel {
background: rgba(255, 255, 255, 0.88); background: var(--butter-light);
border-radius: var(--radius-lg); border-radius: var(--radius-lg);
box-shadow: 0 3px 12px rgba(102, 52, 13, 0.1);
padding: var(--space-5); padding: var(--space-5);
} }
@@ -115,38 +83,34 @@
/* Einzelne Eventkarte für "Meine Events" und "Meine Anmeldungen". */ /* Einzelne Eventkarte für "Meine Events" und "Meine Anmeldungen". */
.profile-event-card { .profile-event-card {
border: 1px solid rgba(107, 107, 5, 0.25); background: var(--butter-light);
border-radius: var(--radius-md); border: 1.5px solid var(--olive-light);
padding: var(--space-3); border-radius: var(--radius-lg);
box-shadow: var(--shadow-interaction);
padding: var(--space-5) var(--space-40);
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; gap: var(--space-40);
gap: var(--space-3);
}
.profile-event-card-clickable {
cursor: pointer; cursor: pointer;
transition: box-shadow 0.2s ease, transform 0.2s ease; transition: box-shadow 0.2s ease, transform 0.2s ease;
} }
.profile-event-card-clickable {
cursor: pointer;
}
.profile-event-card-clickable:hover { .profile-event-card-clickable:hover {
box-shadow: 0 6px 16px rgba(102, 52, 13, 0.14);
transform: translateY(-1px); transform: translateY(-1px);
} }
.profile-event-title { .profile-event-title h3{
margin: 0; margin: 0;
color: var(--black);
font-family: "Jost", sans-serif;
font-size: 1.25rem;
font-weight: 600;
} }
/*
.profile-event-meta { .profile-event-meta {
margin: 0.3rem 0 0;
font-size: 0.95rem; }*/
color: var(--olive);
}
.profile-event-address-block { .profile-event-address-block {
margin-top: 0.55rem; margin-top: 0.55rem;
@@ -162,7 +126,6 @@
font-size: 0.72rem; font-size: 0.72rem;
font-weight: 700; font-weight: 700;
letter-spacing: var(--ls-la); letter-spacing: var(--ls-la);
text-transform: uppercase;
} }
.profile-event-address { .profile-event-address {
@@ -192,56 +155,6 @@
gap: var(--space-2); gap: var(--space-2);
} }
.profile-unregister-btn {
border: none;
border-radius: var(--radius-md);
background: var(--tomato);
color: var(--butter-light);
padding: 0.45rem 0.95rem;
font-family: "Jost", sans-serif;
font-size: 0.95rem;
font-weight: 500;
cursor: pointer;
transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.profile-cancel-btn {
border: none;
border-radius: var(--radius-md);
background: var(--tomato);
color: var(--butter-light);
padding: 0.45rem 0.95rem;
font-family: "Jost", sans-serif;
font-size: 0.95rem;
font-weight: 500;
cursor: pointer;
transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.profile-cancel-btn:hover,
.profile-cancel-btn:focus-visible {
background: var(--tomato-dark);
transform: translateY(-1px);
box-shadow: 0 4px 10px rgba(188, 74, 52, 0.28);
}
.profile-cancel-btn:active {
transform: translateY(0);
box-shadow: 0 2px 6px rgba(188, 74, 52, 0.25);
}
.profile-unregister-btn:hover,
.profile-unregister-btn:focus-visible {
background: var(--tomato-dark);
transform: translateY(-1px);
box-shadow: 0 4px 10px rgba(188, 74, 52, 0.28);
}
.profile-unregister-btn:active {
transform: translateY(0);
box-shadow: 0 2px 6px rgba(188, 74, 52, 0.25);
}
.profile-empty { .profile-empty {
margin: 0; margin: 0;
color: var(--black); color: var(--black);
@@ -262,7 +175,6 @@
font-size: 0.8rem; font-size: 0.8rem;
font-weight: 600; font-weight: 600;
letter-spacing: var(--ls-la); letter-spacing: var(--ls-la);
text-transform: uppercase;
} }
.profile-empty-state h3 { .profile-empty-state h3 {
+243 -37
View File
@@ -30,6 +30,7 @@
--blue: #3489DA; --blue: #3489DA;
--blue-dark: #1D70BF; --blue-dark: #1D70BF;
--error: #FF3B30; --error: #FF3B30;
--error-text: #d91200;
--font-main: 'Jost', sans-serif; --font-main: 'Jost', sans-serif;
--font-size-base: 1rem; --font-size-base: 1rem;
@@ -44,10 +45,10 @@
--space-1: 0.5rem; /* 8px */ --space-1: 0.5rem; /* 8px */
--space-2: 0.75rem; /* 12px */ --space-2: 0.75rem; /* 12px */
--space-3: 1rem; /* 16px */ --space-3: 1rem; /* 16px */
--space-31: 1.25rem; /* 20px */ --space-20: 1.25rem; /* 20px */
--space-4: 1.5rem; /* 24px */ --space-4: 1.5rem; /* 24px */
--space-5: 2rem; /* 32px */ --space-5: 2rem; /* 32px */
--space-6: 2.5rem; /* 40px */ --space-40: 2.5rem; /* 40px */
--space-7: 3rem; /* 48px */ --space-7: 3rem; /* 48px */
--space-8: 4rem; /* 64px */ --space-8: 4rem; /* 64px */
@@ -146,10 +147,46 @@ p {
} }
.error-message { .error-message {
color: var(--error); color: var(--error-text);
font-size: 1rem; font-size: 1rem;
} }
/* Margins */
.margin-bottom-24 {
margin-bottom: var(--space-4);
}
.margin-bottom-40 {
margin-bottom: var(--space-40);
}
.event-side {
/* Right-side action area: availability status and optional signup button. */
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-end;
gap: var(--space-3);
padding-top: 36px;
flex-shrink: 0;
}
/* Event-Beschrieb oberhalb von Eventtitel */
.event-location,
.event-date-time,
.event-gast,
.profile-event-meta {
color: var(--olive);
font-family: var(--font-main);
font-size: 1.125rem;
font-weight: 400;
line-height: 1;
display: inline-flex;
gap: var(--space-0);
}
/* Layout */ /* Layout */
.main-content { .main-content {
margin-top: var(--space-8); margin-top: var(--space-8);
@@ -162,6 +199,19 @@ p {
margin: 0 auto; margin: 0 auto;
} }
/*
Content pages with sticky nav require top padding to avoid overlap.
Used on event_overview, event_detail, and similar pages.
*/
.container.page-content-safe {
padding-top: 6.5rem;
}
/* Detail pages with back button need less top padding. */
.container.page-content-safe.detail-page {
padding-top: 3.5rem;
}
.icon { .icon {
width: 20px; width: 20px;
height: 20px; height: 20px;
@@ -241,7 +291,8 @@ p {
/* Badge */ /* Badge */
.badge { .badge,
.host-role {
position: relative; position: relative;
display: inline-block; display: inline-block;
width: fit-content; width: fit-content;
@@ -250,11 +301,11 @@ p {
font-size: 1rem; font-size: 1rem;
font-weight: 600; font-weight: 600;
letter-spacing: var(--ls-la); letter-spacing: var(--ls-la);
margin-bottom: var(--space-6);
z-index: 0; z-index: 0;
} }
.badge::before { .badge::before,
.host-role::before {
content: ""; content: "";
position: absolute; position: absolute;
inset: 0; inset: 0;
@@ -323,10 +374,37 @@ p {
border-color: var(--blue-dark); border-color: var(--blue-dark);
} }
.button-primary-eigener-event{
display: inline-block;
padding: 0.375rem 1.5rem;
background-color: var(--blue);
border: 1.5px solid var(--blue);
border-radius: var(--radius-lg);
font-family: var(--font-main);
font-weight: 400;
font-size: 1.25rem;
color: var(--butter-light);
cursor: pointer;
text-decoration: none;
transition: background-color 0.2s ease, border-color 0.2s ease;
}
.button-primary-eigener-event:hover {
background: var(--blue-dark);
border-color: var(--blue-dark);
}
.button-primary-eigener-event:disabled {
border-color: transparent;
background-color: var(--olive-light);
color: var(--olive-dark);
cursor: not-allowed;
}
.button-secondary { .button-secondary {
display: inline-block; display: inline-block;
padding: 0.375rem 1.5rem; padding: 0.375rem 1.5rem;
background-color: var(--butter); background-color: transparent;
border: 1.5px solid var(--olive); border: 1.5px solid var(--olive);
border-radius: var(--radius-lg); border-radius: var(--radius-lg);
font-family: var(--font-main); font-family: var(--font-main);
@@ -344,6 +422,29 @@ p {
border-color: var(--olive-dark); border-color: var(--olive-dark);
} }
/* Butter-colored back button for detail pages. */
.btn-back-to-overview {
display: inline-block;
padding: 0.5rem 1.5rem;
background-color: var(--butter);
border: 1.5px solid var(--olive-light);
border-radius: var(--radius-lg);
font-family: var(--font-main);
font-weight: 400;
font-size: 1.125rem;
color: var(--olive);
cursor: pointer;
text-decoration: none;
transition: background-color 0.2s ease, border-color 0.2s ease;
margin-bottom: var(--space-4);
}
.btn-back-to-overview:hover,
.btn-back-to-overview:focus-visible {
background-color: var(--butter-light);
border-color: var(--olive);
}
.button--outline { .button--outline {
background-color: transparent; background-color: transparent;
@@ -365,7 +466,7 @@ p {
font-family: var(--font-main); font-family: var(--font-main);
font-weight: 400; font-weight: 400;
font-size: 1.25rem; font-size: 1.25rem;
color: var(--butter); color: var(--butter-light);
cursor: pointer; cursor: pointer;
text-decoration: none; text-decoration: none;
transition: background-color 0.2s ease, border-color 0.2s ease; transition: background-color 0.2s ease, border-color 0.2s ease;
@@ -376,23 +477,67 @@ p {
border-color: var(--olive-dark); border-color: var(--olive-dark);
} }
.category-item {
border: 1.5px solid var(--tomato);
color: var(--tomato);
border-radius: var(--radius-pill);
background: var(--butter-light);
font-family: var(--font-main);
font-weight: 400;
font-size: 1.125rem;
line-height: 1;
padding: var(--space-1) var(--space-20);
cursor: pointer;
transition: background-color 0.2s ease, color 0.2s ease;
}
.category-item:hover, .category-item:focus-visible {
background: var(--tomato);
color: var(--butter-light);
}
.category-item.is-active, .category-item.active {
background: var(--tomato);
color: var(--butter-light);
}
.category-item-profile {
font-size: 1.25rem;
font-weight: 400;
line-height: 1;
padding: var(--space-1) var(--space-4);
}
.category-items {
display: inline-flex;
flex-wrap: wrap;
gap: var(--space-1);
}
.button-small { .button-small {
background: var(--olive); background: var(--olive);
color: var(--butter-light); color: var(--butter-light);
border: none;
font-size: 1.125rem; font-size: 1.125rem;
font-weight: 400;
letter-spacing: var(--ls-sm); letter-spacing: var(--ls-sm);
font-family: var(--font-main);
font-weight: 400;
line-height: 1; line-height: 1;
border-radius: var(--radius-pill);
padding: 10px var(--space-3);
text-decoration: none; text-decoration: none;
cursor: pointer;
padding: var(--space-1) var(--space-4);
border-radius: var(--radius-md);
} }
§
.button-small:hover, .button-small:active, .button-small:hover, .button-small:active,
.button-small:focus-visible { .button-small:focus-visible {
background: var(--olive-dark); background: var(--olive-dark);
color: var(--butter-light); }
.logout-button {
margin-right: -1.25rem;
} }
/* Auth-Links in ausgeloggter Navigation: klarer Aktiv-/Default-Zustand. */ /* Auth-Links in ausgeloggter Navigation: klarer Aktiv-/Default-Zustand. */
@@ -432,19 +577,13 @@ p {
/* Utilities */ /* Utilities */
.text-center { .text-center {
text-align: left; text-align: center;
} }
.hidden { .hidden {
display: none !important; display: none !important;
} }
/* Card Footer */
.card-footer {
margin-top: auto;
padding-top: var(--space-3);
width: 100%;
}
/* Text Muted */ /* Text Muted */
.text-muted { .text-muted {
@@ -459,7 +598,7 @@ p {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
gap: 10px; height: 1em; /* keeps it aligned with text size */
margin-top: var(--space-7); margin-top: var(--space-7);
} }
@@ -470,7 +609,7 @@ p {
text-decoration: none; text-decoration: none;
} }
.instagram-invite__icon { .instagram-invite_icon {
height: 32px; height: 32px;
width: 32px; width: 32px;
object-fit: contain; object-fit: contain;
@@ -478,12 +617,45 @@ p {
filter: brightness(0) saturate(100%) invert(27%) sepia(81%) saturate(749%) hue-rotate(24deg) brightness(90%) contrast(90%); filter: brightness(0) saturate(100%) invert(27%) sepia(81%) saturate(749%) hue-rotate(24deg) brightness(90%) contrast(90%);
} }
.instagram-invite__logo { .footer-invite_logo {
height: 56px; height: 56px;
width: 56px; width: 56px;
object-fit: contain; object-fit: contain;
} }
.inline {
color: var(--tomato);
display: flex;
align-items: center;
gap: 8px;
}
/* Info button for event overview page */
.btn-info {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2.5rem;
height: 2.5rem;
border: 1.5px solid var(--olive-light);
border-radius: 999px;
background-color: var(--butter);
color: var(--olive);
font-family: var(--font-main);
font-size: 1.5rem;
font-weight: 600;
line-height: 1;
cursor: pointer;
transition: background-color 0.2s ease, border-color 0.2s ease;
flex-shrink: 0;
}
.btn-info:hover,
.btn-info:focus-visible {
background-color: var(--butter-light);
border-color: var(--olive);
}
/* Modal / Popup */ /* Modal / Popup */
.modal { .modal {
display: none; display: none;
@@ -510,9 +682,9 @@ p {
.modal-content { .modal-content {
background-color: var(--white); background-color: var(--white);
padding: 40px; padding: var(--space-20) var(--space-20) var(--space-40) var(--space-20);
border-radius: var(--radius-lg); border-radius: var(--radius-lg);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); box-shadow: var(--shadow-interaction);
max-width: 500px; max-width: 500px;
width: 90%; width: 90%;
text-align: center; text-align: center;
@@ -526,12 +698,10 @@ p {
.modal-header { .modal-header {
position: relative; position: relative;
margin-bottom: var(--space-4);
} }
.modal-header h2 { .modal-header h2 {
color: var(--olive); padding: var(--space-20)var(--space-20) 0 var(--space-20);
font-size: 1.5rem;
} }
.close-btn { .close-btn {
@@ -550,11 +720,24 @@ p {
justify-content: center; justify-content: center;
} }
.modal-body { .modal-close {
position: absolute;
right: 0;
top: 0;
font-size: 28px;
color: var(--black); color: var(--black);
font-size: 1rem; background: none;
line-height: 1.6; border: none;
margin-bottom: var(--space-6); cursor: pointer;
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
}
.modal-body {
padding: var(--space-20) var(--space-20) var(--space-4) var(--space-20);
} }
.modal-footer { .modal-footer {
@@ -571,7 +754,7 @@ p {
transform: translateX(-50%) translateY(100px); transform: translateX(-50%) translateY(100px);
background: var(--olive); background: var(--olive);
color: var(--white); color: var(--white);
padding: var(--space-3) var(--space-6); padding: var(--space-3) var(--space-40);
border-radius: var(--radius-pill); border-radius: var(--radius-pill);
font-size: 1rem; font-size: 1rem;
font-weight: 600; font-weight: 600;
@@ -643,14 +826,37 @@ p {
} }
/* Footer */ /* Footer */
.footer { .footer {
display: flex; display: grid;
justify-content: space-between; grid-template-columns: 1fr auto 1fr;
align-items: center; align-items: center;
gap: 1.5rem; margin-top: 120px;
padding: var(--space-3) var(--space-7); padding: var(--space-3) var(--space-7);
} }
.footer-links {
display: flex;
gap: var(--space-4);
}
/* Left aligned */
.footer-left {
justify-self: start;
}
/* Centered */
.footer-center {
justify-self: center;
}
/* Right aligned */
.footer-right {
justify-self: end;
display: flex;
gap: var(--space-4);
}
/* Media Queries (Responsive) */ /* Media Queries (Responsive) */
@media (max-width: 48rem) { @media (max-width: 48rem) {
.container { .container {
+4 -4
View File
@@ -4,11 +4,11 @@
"title": "Italienische Tavolata", "title": "Italienische Tavolata",
"location": "Luzern", "location": "Luzern",
"address": "Pilatusstrasse 18, 6003 Luzern", "address": "Pilatusstrasse 18, 6003 Luzern",
"date": "11. APR. 2026", "date": "22. APR. 2026",
"time": "15:30 UHR", "time": "15:30 UHR",
"category": "Dinner", "category": "Dinner",
"diet": "Vegetarisch", "diet": "Vegetarisch",
"spots": 6, "spots": 8,
"host": { "host": {
"name": "Ferdinando", "name": "Ferdinando",
"initial": "F" "initial": "F"
@@ -45,7 +45,7 @@
"title": "Noche Peruana", "title": "Noche Peruana",
"location": "Chur", "location": "Chur",
"address": "Obere Gasse 41, 7000 Chur", "address": "Obere Gasse 41, 7000 Chur",
"date": "16. Juni 2026", "date": "12. April 2026",
"time": "19:00 UHR", "time": "19:00 UHR",
"category": "Dinner", "category": "Dinner",
"diet": "Omnivore", "diet": "Omnivore",
@@ -90,7 +90,7 @@
"date": "02. MAI. 2026", "date": "02. MAI. 2026",
"time": "12:30 UHR", "time": "12:30 UHR",
"category": "Lunch", "category": "Lunch",
"diet": "Pescetarisch", "diet": "Fisch",
"spots": 8, "spots": 8,
"host": { "host": {
"name": "Akiko", "name": "Akiko",
+22 -16
View File
@@ -22,7 +22,7 @@
<main class="main-content" style="padding: 40px 20px; max-width: 800px; margin: 0 auto;"> <main class="main-content" style="padding: 40px 20px; max-width: 800px; margin: 0 auto;">
<h1>Datenschutzerklärung</h1> <h1>Datenschutzerklärung</h1>
<h2>1. Verantwortliche Stelle</h2> <h3>1. Verantwortliche Stelle</h3>
<p> <p>
Invité GmbH<br> Invité GmbH<br>
Musterstrasse 12<br> Musterstrasse 12<br>
@@ -31,7 +31,7 @@
E-Mail: datenschutz@invite-cooking.ch E-Mail: datenschutz@invite-cooking.ch
</p> </p>
<h2>2. Erhebung und Verarbeitung personenbezogener Daten</h2> <h3>2. Erhebung und Verarbeitung personenbezogener Daten</h3>
<p> <p>
Beim Besuch unserer Website werden automatisch Informationen allgemeiner Natur erfasst. Beim Besuch unserer Website werden automatisch Informationen allgemeiner Natur erfasst.
Diese Informationen (Server-Logfiles) beinhalten die Art des Webbrowsers, das verwendete Diese Informationen (Server-Logfiles) beinhalten die Art des Webbrowsers, das verwendete
@@ -40,14 +40,14 @@
unserer Website verwendet. unserer Website verwendet.
</p> </p>
<h2>3. Registrierung und Nutzerkonto</h2> <h3>3. Registrierung und Nutzerkonto</h3>
<p> <p>
Bei der Erstellung eines Nutzerkontos erheben wir folgende Daten: Name, E-Mail-Adresse Bei der Erstellung eines Nutzerkontos erheben wir folgende Daten: Name, E-Mail-Adresse
und Passwort. Diese Daten werden ausschliesslich zur Bereitstellung unserer Dienste und Passwort. Diese Daten werden ausschliesslich zur Bereitstellung unserer Dienste
verwendet und nicht an Dritte weitergegeben. verwendet und nicht an Dritte weitergegeben.
</p> </p>
<h2>4. Cookies</h2> <h3>4. Cookies</h3>
<p> <p>
Unsere Website verwendet Cookies, um die Nutzererfahrung zu verbessern. Cookies sind Unsere Website verwendet Cookies, um die Nutzererfahrung zu verbessern. Cookies sind
kleine Textdateien, die auf Ihrem Endgerät gespeichert werden. Sie können die Verwendung kleine Textdateien, die auf Ihrem Endgerät gespeichert werden. Sie können die Verwendung
@@ -55,14 +55,14 @@
die Funktionalität der Website eingeschränkt sein kann. die Funktionalität der Website eingeschränkt sein kann.
</p> </p>
<h2>5. Datenweitergabe an Dritte</h2> <h3>5. Datenweitergabe an Dritte</h3>
<p> <p>
Eine Übermittlung Ihrer persönlichen Daten an Dritte findet nicht statt, es sei denn, Eine Übermittlung Ihrer persönlichen Daten an Dritte findet nicht statt, es sei denn,
wir sind gesetzlich dazu verpflichtet oder Sie haben Ihre ausdrückliche Einwilligung wir sind gesetzlich dazu verpflichtet oder Sie haben Ihre ausdrückliche Einwilligung
erteilt. erteilt.
</p> </p>
<h2>6. Datensicherheit</h2> <h3>6. Datensicherheit</h3>
<p> <p>
Wir setzen technische und organisatorische Sicherheitsmassnahmen ein, um Ihre Daten Wir setzen technische und organisatorische Sicherheitsmassnahmen ein, um Ihre Daten
gegen zufällige oder vorsätzliche Manipulation, Verlust, Zerstörung oder den Zugriff gegen zufällige oder vorsätzliche Manipulation, Verlust, Zerstörung oder den Zugriff
@@ -70,7 +70,7 @@
der technologischen Entwicklung fortlaufend verbessert. der technologischen Entwicklung fortlaufend verbessert.
</p> </p>
<h2>7. Ihre Rechte</h2> <h3>7. Ihre Rechte</h3>
<p> <p>
Sie haben jederzeit das Recht auf Auskunft über die bei uns gespeicherten Sie haben jederzeit das Recht auf Auskunft über die bei uns gespeicherten
personenbezogenen Daten. Ebenso haben Sie das Recht auf Berichtigung, Löschung personenbezogenen Daten. Ebenso haben Sie das Recht auf Berichtigung, Löschung
@@ -78,7 +78,7 @@
datenschutz@invite-cooking.ch datenschutz@invite-cooking.ch
</p> </p>
<h2>8. Änderungen dieser Datenschutzerklärung</h2> <h3>8. Änderungen dieser Datenschutzerklärung</h3>
<p> <p>
Wir behalten uns vor, diese Datenschutzerklärung gelegentlich anzupassen, damit sie Wir behalten uns vor, diese Datenschutzerklärung gelegentlich anzupassen, damit sie
stets den aktuellen rechtlichen Anforderungen entspricht oder um Änderungen unserer stets den aktuellen rechtlichen Anforderungen entspricht oder um Änderungen unserer
@@ -86,16 +86,22 @@
</p> </p>
</main> </main>
<div class="instagram-invite"> <div class="footer">
<div class="footer-left">
<p class="p-small inline">© <img src="assets/logo_invite.svg" alt="Invité Logo" class="footer-invite_logo" /></p>
</div>
<div class="footer-center">
<a href="https://www.instagram.com" target="_blank" rel="noopener noreferrer" class="instagram-invite__link"> <a href="https://www.instagram.com" target="_blank" rel="noopener noreferrer" class="instagram-invite__link">
<img src="assets/Icon_instagram.png" alt="Instagram" class="instagram-invite__icon" /> <img src="assets/Icon_instagram.png" alt="Instagram" class="instagram-invite_icon" />
<img src="assets/logo_invite.svg" alt="Invité Logo" class="instagram-invite__logo" />
</a> </a>
</div> </div>
<footer class="footer">
<p class="p-small">© Invité</p> <div class="footer-right footer-links">
<a href="impressum.html" class="link-text-footer" >Impressum</a> <a href="impressum.html" class="link-text-footer">Impressum</a>
<a href="datenschutz.html" class="link-text-footer" >Datenschutz</a> <a href="datenschutz.html" class="link-text-footer">Datenschutz</a>
</footer> </div>
</div>
</body> </body>
</html> </html>
+24 -14
View File
@@ -149,20 +149,24 @@
<fieldset class="form-field"> <fieldset class="form-field">
<legend>Ernährungsform</legend> <legend>Ernährungsform</legend>
<div class="option-grid option-grid--3"> <div class="option-grid option-grid--4">
<label class="option-card"> <label class="option-card">
<input type="radio" name="dietType" value="Omnivor" required /> <input type="checkbox" name="dietType" value="Fleisch" />
<span>Omnivor</span> <span>Fleisch</span>
<small>Fleisch und/oder Fisch</small>
</label> </label>
<label class="option-card"> <label class="option-card">
<input type="radio" name="dietType" value="Vegetarisch" /> <input type="checkbox" name="dietType" value="Fisch" />
<span>Fisch</span>
</label>
<label class="option-card">
<input type="checkbox" name="dietType" value="Vegetarisch" />
<span>Vegetarisch</span> <span>Vegetarisch</span>
</label> </label>
<label class="option-card"> <label class="option-card">
<input type="radio" name="dietType" value="Vegan" /> <input type="checkbox" name="dietType" value="Vegan" />
<span>Vegan</span> <span>Vegan</span>
</label> </label>
</div> </div>
@@ -293,7 +297,7 @@
<label>Fotos hinzufügen <span class="field-hint-inline">(optional)</span></label> <label>Fotos hinzufügen <span class="field-hint-inline">(optional)</span></label>
<div class="gallery-upload"> <div class="gallery-upload">
<div class="gallery-preview" id="galleryPreview"></div> <div class="gallery-preview" id="galleryPreview"></div>
<button type="button" class="gallery-add-btn" id="galleryAddBtn" aria-label="Foto hinzufügen">+</button> <button type="button" class="button-primary" id="galleryAddBtn" aria-label="Foto hinzufügen">Foto hinzufügen</button>
<input type="file" id="galleryFileInput" accept="image/*" multiple hidden /> <input type="file" id="galleryFileInput" accept="image/*" multiple hidden />
</div> </div>
</div> </div>
@@ -430,16 +434,22 @@
</form> </form>
</main> </main>
<div class="instagram-invite"> <div class="footer">
<div class="footer-left">
<p class="p-small inline">© <img src="assets/logo_invite.svg" alt="Invité Logo" class="footer-invite_logo" /></p>
</div>
<div class="footer-center">
<a href="https://www.instagram.com" target="_blank" rel="noopener noreferrer" class="instagram-invite__link"> <a href="https://www.instagram.com" target="_blank" rel="noopener noreferrer" class="instagram-invite__link">
<img src="assets/Icon_instagram.png" alt="Instagram" class="instagram-invite__icon" /> <img src="assets/Icon_instagram.png" alt="Instagram" class="instagram-invite_icon" />
<img src="assets/logo_invite.svg" alt="Invité Logo" class="instagram-invite__logo" />
</a> </a>
</div> </div>
<footer class="footer">
<a href="impressum.html" class="footer-link">Impressum</a> <div class="footer-right footer-links">
<a href="datenschutz.html" class="footer-link">Datenschutz</a> <a href="impressum.html" class="link-text-footer">Impressum</a>
</footer> <a href="datenschutz.html" class="link-text-footer">Datenschutz</a>
</div>
</div>
<script src="js/event_create.js"></script> <script src="js/event_create.js"></script>
</body> </body>
+19 -12
View File
@@ -3,13 +3,15 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Event-Detail</title> <title>Invité | Event-Detail</title>
<!-- Globales Stylesheet -->
<link rel="stylesheet" href="css/stylesheet_global.css">
<!-- Stylesheet für diese Seite--> <!-- Stylesheet für diese Seite-->
<link rel="stylesheet" href="css/event_overview.css"> <link rel="stylesheet" href="css/event_overview.css">
<script src="js/navigation.js" defer></script> <script src="js/navigation.js" defer></script>
<!-- Globales Stylesheet -->
<link rel="stylesheet" href="css/stylesheet_global.css">
</head> </head>
<body> <body>
@@ -26,7 +28,7 @@
</header> </header>
<!-- Main content: detail page gets fully injected by JavaScript --> <!-- Main content: detail page gets fully injected by JavaScript -->
<main class="container"> <main class="container page-content-safe detail-page">
<!-- Render target: loading, error state or full detail layout --> <!-- Render target: loading, error state or full detail layout -->
<div id="detail-view"> <div id="detail-view">
<p>Lädt Event-Details...</p> <p>Lädt Event-Details...</p>
@@ -39,17 +41,22 @@
<!-- Snackbar: Feedback bei An-/Abmeldung --> <!-- Snackbar: Feedback bei An-/Abmeldung -->
<div class="snackbar" id="snackbar"></div> <div class="snackbar" id="snackbar"></div>
<!-- Instagram Einladung --> <div class="footer">
<div class="instagram-invite"> <div class="footer-left">
<p class="p-small inline">© <img src="assets/logo_invite.svg" alt="Invité Logo" class="footer-invite_logo" /></p>
</div>
<div class="footer-center">
<a href="https://www.instagram.com" target="_blank" rel="noopener noreferrer" class="instagram-invite__link"> <a href="https://www.instagram.com" target="_blank" rel="noopener noreferrer" class="instagram-invite__link">
<img src="assets/Icon_instagram.png" alt="Instagram" class="instagram-invite__icon" /> <img src="assets/Icon_instagram.png" alt="Instagram" class="instagram-invite_icon" />
<img src="assets/logo_invite.svg" alt="Invité Logo" class="instagram-invite__logo" />
</a> </a>
</div>
<div class="footer-right footer-links">
<a href="impressum.html" class="link-text-footer">Impressum</a>
<a href="datenschutz.html" class="link-text-footer">Datenschutz</a>
</div>
</div> </div>
<footer class="footer">
<a href="impressum.html" class="footer-link">Impressum</a>
<a href="datenschutz.html" class="footer-link">Datenschutz</a>
</footer>
</body> </body>
</html> </html>
+61 -16
View File
@@ -3,7 +3,7 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Event-Overview</title> <title>Invité | Event-Übersicht</title>
<!-- Stylesheet für diese Seite--> <!-- Stylesheet für diese Seite-->
<link rel="stylesheet" href="css/event_overview.css"> <link rel="stylesheet" href="css/event_overview.css">
@@ -28,9 +28,12 @@
</header> </header>
<!-- Main content: page headline, filter controls and dynamic event list --> <!-- Main content: page headline, filter controls and dynamic event list -->
<main class="container"> <main class="container page-content-safe">
<!-- Page headline --> <!-- Page headline with info button -->
<h1>Events</h1> <div style="display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem;">
<h1 style="margin-bottom: 0;">Events</h1>
<button type="button" class="btn-info" id="info-button" aria-label="Information über kostenlose Events">?</button>
</div>
<!-- Filter section: category chips + location/date filters --> <!-- Filter section: category chips + location/date filters -->
<section class="filter-section"> <section class="filter-section">
@@ -39,10 +42,10 @@
<!-- Primary category filter buttons --> <!-- Primary category filter buttons -->
<div class="category-group"> <div class="category-group">
<button class="category-item active" type="button" data-cat="ALLE">Alle</button> <button class="category-item active" type="button" data-cat="ALLE">Alle</button>
<button class="category-item" type="button" data-cat="BRUNCH">Brunch</button> <button class="category-item" type="button" data-cat="Brunch">Brunch</button>
<button class="category-item" type="button" data-cat="LUNCH">Lunch</button> <button class="category-item" type="button" data-cat="Lunch">Lunch</button>
<button class="category-item" type="button" data-cat="COFFEE">Kaffee + Kuchen</button> <button class="category-item" type="button" data-cat="Kaffee + Kuchen">Kaffee + Kuchen</button>
<button class="category-item" type="button" data-cat="DINNER">Dinner</button> <button class="category-item" type="button" data-cat="Dinner">Dinner</button>
</div> </div>
<!-- Secondary filters populated/handled by JavaScript --> <!-- Secondary filters populated/handled by JavaScript -->
@@ -56,10 +59,33 @@
<label class="meta-filter" for="date-filter"> <label class="meta-filter" for="date-filter">
<span>Datum</span> <span>Datum</span>
<div class="date-input-wrapper">
<input id="date-filter" type="date"> <input id="date-filter" type="date">
</div>
</label> </label>
</div> </div>
</div> </div>
<div class="filter-row">
<!-- Diet filter buttons -->
<div class="category-group">
<button class="category-item" type="button" data-diet="Fleisch">Fleisch</button>
<button class="category-item" type="button" data-diet="Fisch">Fisch</button>
<button class="category-item" type="button" data-diet="Vegetarisch">Vegetarisch</button>
<button class="category-item" type="button" data-diet="Vegan">Vegan</button>
</div>
</div>
<div class="filter-row">
<!-- Allergen filter buttons -->
<div class="category-group">
<button class="category-item" type="button" data-allergie="glutenfrei">glutenfrei</button>
<button class="category-item" type="button" data-allergie="laktosefrei">laktosefrei</button>
<button class="category-item" type="button" data-allergie="ohne Nüsse">ohne Nüsse</button>
</div>
</div>
</section> </section>
<!-- Render target: event cards or empty state --> <!-- Render target: event cards or empty state -->
@@ -69,19 +95,38 @@
<!-- Seitenlogik: Daten laden, filtern und Event-Karten rendern --> <!-- Seitenlogik: Daten laden, filtern und Event-Karten rendern -->
<script src="js/event_overview.js"></script> <script src="js/event_overview.js"></script>
<!-- Info Modal: Kostenlose Events Info -->
<div id="info-modal" class="modal">
<div class="modal-content">
<div class="modal-header">
<h2>Warum Invité kostenlos ist</h2>
<button type="button" class="modal-close" aria-label="Popup schließen">&times;</button>
</div>
<div class="modal-body">
<p>Alle Events bei uns sind komplett kostenlos. Invité basiert rein auf Freiwilligkeit und der Freude am Teilen. Kein Geldfluss, keine versteckten Kosten – nur die pure Absicht, die Community zu stärken und den sozialen Zusammenhalt in unserer Nachbarschaft zu fördern. Egal ob du den Kochlöffel schwingst oder dich als Gast dazu gesellst: Bei uns zählt nur die menschliche Begegnung.</p>
</div>
</div>
</div>
<!-- Snackbar: Feedback bei An-/Abmeldung --> <!-- Snackbar: Feedback bei An-/Abmeldung -->
<div class="snackbar" id="snackbar"></div> <div class="snackbar" id="snackbar"></div>
<!-- Instagram Einladung --> <div class="footer">
<div class="instagram-invite"> <div class="footer-left">
<p class="p-small inline">© <img src="assets/logo_invite.svg" alt="Invité Logo" class="footer-invite_logo" /></p>
</div>
<div class="footer-center">
<a href="https://www.instagram.com" target="_blank" rel="noopener noreferrer" class="instagram-invite__link"> <a href="https://www.instagram.com" target="_blank" rel="noopener noreferrer" class="instagram-invite__link">
<img src="assets/Icon_instagram.png" alt="Instagram" class="instagram-invite__icon" /> <img src="assets/Icon_instagram.png" alt="Instagram" class="instagram-invite_icon" />
<img src="assets/logo_invite.svg" alt="Invité Logo" class="instagram-invite__logo" />
</a> </a>
</div>
<div class="footer-right footer-links">
<a href="impressum.html" class="link-text-footer">Impressum</a>
<a href="datenschutz.html" class="link-text-footer">Datenschutz</a>
</div>
</div> </div>
<footer class="footer">
<a href="impressum.html" class="footer-link">Impressum</a>
<a href="datenschutz.html" class="footer-link">Datenschutz</a>
</footer>
</body> </body>
</html> </html>
+19 -13
View File
@@ -22,7 +22,7 @@
<main class="main-content" style="padding: 40px 20px; max-width: 800px; margin: 0 auto;"> <main class="main-content" style="padding: 40px 20px; max-width: 800px; margin: 0 auto;">
<h1>Impressum</h1> <h1>Impressum</h1>
<h2>Angaben gemäss § 5 TMG</h2> <h3>Angaben gemäss § 5 TMG</h3>
<p> <p>
Invité GmbH<br> Invité GmbH<br>
Musterstrasse 12<br> Musterstrasse 12<br>
@@ -30,28 +30,28 @@
Schweiz Schweiz
</p> </p>
<h2>Kontakt</h2> <h3>Kontakt</h3>
<p> <p>
Telefon: +41 81 123 45 67<br> Telefon: +41 81 123 45 67<br>
E-Mail: info@invite-cooking.ch E-Mail: info@invite-cooking.ch
</p> </p>
<h2>Vertretungsberechtigte Person</h2> <h3>Vertretungsberechtigte Person</h3>
<p>Max Mustermann, Geschäftsführer</p> <p>Max Mustermann, Geschäftsführer</p>
<h2>Handelsregistereintrag</h2> <h3>Handelsregistereintrag</h3>
<p> <p>
Eingetragen im Handelsregister des Kantons Graubünden<br> Eingetragen im Handelsregister des Kantons Graubünden<br>
Firmennummer: CHE-123.456.789 Firmennummer: CHE-123.456.789
</p> </p>
<h2>Haftungsausschluss</h2> <h3>Haftungsausschluss</h3>
<p> <p>
Die Inhalte dieser Website wurden mit grösster Sorgfalt erstellt. Für die Richtigkeit, Die Inhalte dieser Website wurden mit grösster Sorgfalt erstellt. Für die Richtigkeit,
Vollständigkeit und Aktualität der Inhalte können wir jedoch keine Gewähr übernehmen. Vollständigkeit und Aktualität der Inhalte können wir jedoch keine Gewähr übernehmen.
</p> </p>
<h2>Urheberrecht</h2> <h3>Urheberrecht</h3>
<p> <p>
Die durch die Seitenbetreiber erstellten Inhalte und Werke auf diesen Seiten unterliegen Die durch die Seitenbetreiber erstellten Inhalte und Werke auf diesen Seiten unterliegen
dem schweizerischen Urheberrecht. Die Vervielfältigung, Bearbeitung, Verbreitung und jede dem schweizerischen Urheberrecht. Die Vervielfältigung, Bearbeitung, Verbreitung und jede
@@ -60,15 +60,21 @@
</p> </p>
</main> </main>
<div class="instagram-invite"> <div class="footer">
<div class="footer-left">
<p class="p-small inline">© <img src="assets/logo_invite.svg" alt="Invité Logo" class="footer-invite_logo" /></p>
</div>
<div class="footer-center">
<a href="https://www.instagram.com" target="_blank" rel="noopener noreferrer" class="instagram-invite__link"> <a href="https://www.instagram.com" target="_blank" rel="noopener noreferrer" class="instagram-invite__link">
<img src="assets/Icon_instagram.png" alt="Instagram" class="instagram-invite__icon" /> <img src="assets/Icon_instagram.png" alt="Instagram" class="instagram-invite_icon" />
<img src="assets/logo_invite.svg" alt="Invité Logo" class="instagram-invite__logo" />
</a> </a>
</div> </div>
<footer class="footer">
<a href="impressum.html" class="footer-link">Impressum</a> <div class="footer-right footer-links">
<a href="datenschutz.html" class="footer-link">Datenschutz</a> <a href="impressum.html" class="link-text-footer">Impressum</a>
</footer> <a href="datenschutz.html" class="link-text-footer">Datenschutz</a>
</div>
</div>
</body> </body>
</html> </html>
+141 -44
View File
@@ -33,10 +33,10 @@
<!-- Hero: uses .hero, .btn, .image-card, and .hero-image for a polished first impression --> <!-- Hero: uses .hero, .btn, .image-card, and .hero-image for a polished first impression -->
<section class="hero"> <section class="hero">
<div class="hero__left"> <div class="hero__left">
<span class="badge">einfach. lecker. gemeinsam.</span> <span class="badge margin-bottom-40">einfach. lecker. gemeinsam.</span>
<h1>Teile deine Leidenschaft, geniesse gemeinsam.</h1> <h1>Teile deine Leidenschaft, geniesse gemeinsam.</h1>
<p>Ob du als leidenschaftlicher Hobbykoch Gastgeber sein möchtest oder als Feinschmecker einen Platz an einem lokalen Tisch suchst Invité verbindet Menschen durch die Kraft einer gemeinsamen Mahlzeit.</p> <p>Ob du als leidenschaftlicher Hobbykoch Gastgeber sein möchtest oder als Feinschmecker einen Platz an einem lokalen Tisch suchst Invité verbindet Menschen durch die Kraft einer gemeinsamen Mahlzeit.</p>
<a class="button-primary" href="signup.html">Anmelden</a> <a class="button-primary" href="signup.html">Registrieren</a>
</div> </div>
<div class="hero__right"> <div class="hero__right">
@@ -47,41 +47,34 @@
</section> </section>
<section class="how-it-works"> <section class="how-it-works">
<div class="how-it-works__header">
<h2>So funktioniert's</h2> <h2>So funktioniert's</h2>
</div>
<div class="how-it-works__steps"> <div class="how-it-works__steps">
<article class="how-step how-step--numbered"> <article class="how-step how-step-number-numbered">
<span class="how-step__corner-number how-step__corner-number--brown">1</span> <span class="how-step_corner-number">1</span>
<i class="fa-solid fa-id-card how-step__icon"></i> <i class="fa-solid fa-id-card how-step_icon"></i>
<p class="how-step__label how-step__label--brown how-step__label--big">Anmelden & Dabeisein</p> <h3 class="how-step_text">Anmelden und Dabeisein</h3>
<p class="how-step__label">Erstelle kurz dein Profil und zeig uns deinen Geschmack. Bei uns zählt der Mensch am Tisch, nicht der Lebenslauf.</p> <p class="how-step_text text-left">Erstelle kurz dein Profil und zeig uns deinen Geschmack. Bei uns zählt der Mensch am Tisch, nicht der Lebenslauf.</p>
<div class="card-footer"> <div class="badge margin-bottom-24">
<div class="how-step__footer-banner"> <span>Quick Setup in 2 Min</span>
<span>QUICK SETUP · 2 MIN</span>
</div>
</div> </div>
</article> </article>
<article class="how-step how-step--numbered"> <article class="how-step how-step-number-numbered">
<span class="how-step__corner-number how-step__corner-number--brown">2</span> <span class="how-step_corner-number">2</span>
<i class="fa-solid fa-magnifying-glass-location how-step__icon"></i> <i class="fa-solid fa-magnifying-glass-location how-step_icon"></i>
<p class="how-step__label how-step__label--brown how-step__label--big">Tisch finden oder decken</p> <h3 class="how-step_text">Tisch finden oder decken</h3>
<p class="how-step__label">Entdecke spontane Events in deiner Nähe oder öffne deine eigene Küche. Du entscheidest, ob du Gast oder Gastgeber bist</p> <p class="how-step_text text-left">Entdecke spontane Events in deiner Nähe oder öffne deine eigene Küche. Du entscheidest, ob du Gast oder Gastgeber:in bist.</p>
<div class="card-footer"> <div class="badge margin-bottom-24">
<div class="how-step__footer-banner"> <span>Gast – Gastgeber:in</span>
<span>GASTGEBER · GAST</span>
</div>
</div> </div>
</article> </article>
<article class="how-step how-step--numbered"> <article class="how-step how-step-number-numbered">
<span class="how-step__corner-number how-step__corner-number--brown">3</span> <span class="how-step_corner-number">3</span>
<i class="fa-solid fa-utensils how-step__icon"></i>
<p class="how-step__label how-step__label--brown how-step__label--big">Teile den Tisch</p> <i class="fa-solid fa-utensils how-step_icon"></i>
<p class="how-step__label">Triff neue Leute in entspannter Atmosphäre. Geniesse gutes Essen in Gesellschaft und mach aus einer Mahlzeit eine echte Begegnung.</p> <h3 class="how-step_text">Teile den Tisch</h3>
<div class="card-footer"> <p class="how-step_text text-left">Triff neue Leute in entspannter Atmosphäre. Geniesse gutes Essen in Gesellschaft und mach aus einer Mahlzeit eine echte Begegnung.</p>
<div class="how-step__footer-banner"> <div class="badge margin-bottom-24">
<span>GEMEINSAM GENIESSEN</span> <span>Gemeinsam geniessen</span>
</div>
</div> </div>
</article> </article>
</div> </div>
@@ -89,6 +82,9 @@
<!-- 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">
<h2>Einblick in Cooking-Erlebnisse</h2>
<p>#gemeinsam_invité auf Instagram</p>
</div>
<div class="gallery__carousel"> <div class="gallery__carousel">
<button type="button" class="gallery__arrow gallery__arrow--prev" aria-label="Vorheriges Bild"> <button type="button" class="gallery__arrow gallery__arrow--prev" aria-label="Vorheriges Bild">
<i class="fas fa-chevron-left"></i> <i class="fas fa-chevron-left"></i>
@@ -138,15 +134,7 @@
</button> </button>
</div> </div>
<div class="gallery__dots" role="tablist" aria-label="Seite auswählen"></div> <div class="gallery_dots" role="tablist" aria-label="Seite auswählen"></div>
<div class="instagram-invite">
<a href="https://www.instagram.com" target="_blank" rel="noopener noreferrer" class="instagram-invite__link">
<img src="assets/Icon_instagram.png" alt="Instagram" class="instagram-invite__icon" />
<img src="assets/logo_invite.svg" alt="Invité Logo" class="instagram-invite__logo" />
</a>
</div>
</section> </section>
</main> </main>
@@ -160,9 +148,118 @@
</div> </div>
<script src="js/index-carousel.js"></script> <script src="js/index-carousel.js"></script>
<footer class="footer">
<a href="impressum.html" class="footer-link">Impressum</a> <!-- FAQ Section: Akkordion mit häufig gestellten Fragen -->
<a href="datenschutz.html" class="footer-link">Datenschutz</a> <section class="faq-section">
</footer> <div class="container">
<h2>Häufig gestellte Fragen</h2>
<div class="faq-accordion">
<div class="faq-item">
<button type="button" class="faq-trigger" aria-expanded="false">
<span class="faq-title">Wie kann ich bei Invité anfangen?</span>
<span class="faq-icon">+</span>
</button>
<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>
<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>
<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>
<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>
</div>
</div>
<div class="faq-item">
<button type="button" class="faq-trigger" aria-expanded="false">
<span class="faq-title">Fallen bei Invité Kosten an?</span>
<span class="faq-icon">+</span>
</button>
<div class="faq-content">
<p>Nein, Invité ist komplett kostenlos. Alle Events basieren auf Freiwilligkeit und der Freude am Teilen. Es gibt keine versteckten Kosten – nur die pure Absicht, die Community zu stärken.</p>
</div>
</div>
<div class="faq-item">
<button type="button" class="faq-trigger" aria-expanded="false">
<span class="faq-title">Kann ich ein eigenes Event erstellen?</span>
<span class="faq-icon">+</span>
</button>
<div class="faq-content">
<p>Ja, absolut! Du kannst dein eigenes Kochevent erstellen und Gäste einladen. Beschreibe dein Menü, die Teilnehmerzahl und weitere Details. Es ist deine Küche, dein Event, deine Regeln.</p>
</div>
</div>
<div class="faq-item">
<button type="button" class="faq-trigger" aria-expanded="false">
<span class="faq-title">Wie funktioniert die An-/Abmeldung?</span>
<span class="faq-icon">+</span>
</button>
<div class="faq-content">
<p>Bei jedem Event sehen dich die verfügbaren Plätze. Du kannst dich mit einem Klick anmelden. Eine Abmeldung ist bis 24 Stunden vor dem Event möglich – so respektieren wir den Aufwand des Gastgebers.</p>
</div>
</div>
<div class="faq-item">
<button type="button" class="faq-trigger" aria-expanded="false">
<span class="faq-title">Was ist mit Allergien und Diäten?</span>
<span class="faq-icon">+</span>
</button>
<div class="faq-content">
<p>Ich kann Informationen zu Allergien und Ernährungseinstellungen in der Event-Beschreibung hinzufügen oder beim Anmelden angeben. So können Gastgeber und Gäste besser zusammenkommen und Überraschungen vermeiden.</p>
</div>
</div>
<div class="faq-item">
<button type="button" class="faq-trigger" aria-expanded="false">
<span class="faq-title">Ist Invité sicher und vertrauenswürdig?</span>
<span class="faq-icon">+</span>
</button>
<div class="faq-content">
<p>Ja, dein Profil hilft anderen, dich besser kennenzulernen. Wir ermutigen zu Offenheit und gegenseitigem Vertrauen. Allerdings bleibt es deine Entscheidung, wem du deine Adresse mitteilst – die erfolgt nur 12 Stunden vor dem Event.</p>
</div>
</div>
</div>
</div>
</section>
<div class="footer">
<div class="footer-left">
<p class="p-small inline">© <img src="assets/logo_invite.svg" alt="Invité Logo" class="footer-invite_logo" /></p>
</div>
<div class="footer-center">
<a href="https://www.instagram.com" target="_blank" rel="noopener noreferrer" class="instagram-invite__link">
<img src="assets/Icon_instagram.png" alt="Instagram" class="instagram-invite_icon" />
</a>
</div>
<div class="footer-right footer-links">
<a href="impressum.html" class="link-text-footer">Impressum</a>
<a href="datenschutz.html" class="link-text-footer">Datenschutz</a>
</div>
</div>
<!-- FAQ Akkordion Toggle Script -->
<script>
document.addEventListener('DOMContentLoaded', function() {
const faqTriggers = document.querySelectorAll('.faq-trigger');
faqTriggers.forEach((trigger) => {
trigger.addEventListener('click', function(e) {
e.preventDefault();
const isExpanded = this.getAttribute('aria-expanded') === 'true';
// Close all other items (optional: comment out to allow multiple open)
faqTriggers.forEach((otherTrigger) => {
if (otherTrigger !== trigger) {
otherTrigger.setAttribute('aria-expanded', 'false');
}
});
// Toggle current item
this.setAttribute('aria-expanded', !isExpanded);
});
});
});
</script>
</body> </body>
</html> </html>
+31 -6
View File
@@ -304,7 +304,7 @@ function getReviewValues() {
menuDescription: getFieldValue("menuDescription"), menuDescription: getFieldValue("menuDescription"),
eventDescription: getFieldValue("eventDescription"), eventDescription: getFieldValue("eventDescription"),
maxGuests: getFieldValue("maxGuests"), maxGuests: getFieldValue("maxGuests"),
dietType: getFieldValue("dietType"), dietType: getCheckboxValues("dietType"),
allergies: buildAllergiesReviewValue(), allergies: buildAllergiesReviewValue(),
eventDate: formatDate(getFieldValue("eventDate")), eventDate: formatDate(getFieldValue("eventDate")),
eventTime: getFieldValue("eventTime"), eventTime: getFieldValue("eventTime"),
@@ -386,10 +386,10 @@ function buildMenuItems(value) {
*/ */
function mapEventTypeToCategory(value) { function mapEventTypeToCategory(value) {
const categoryMap = { const categoryMap = {
Brunch: "BRUNCH", Brunch: "Brunch",
Lunch: "LUNCH", Lunch: "Lunch",
Dinner: "DINNER", Dinner: "Dinner",
"Kaffee + Kuchen": "COFFEE" "Kaffee + Kuchen": "Kaffee + Kuchen"
}; };
return categoryMap[value] || value.toUpperCase(); return categoryMap[value] || value.toUpperCase();
@@ -400,7 +400,7 @@ function mapEventTypeToCategory(value) {
*/ */
function buildStoredEvent() { function buildStoredEvent() {
const eventType = getFieldValue("eventType"); const eventType = getFieldValue("eventType");
const dietType = getFieldValue("dietType"); const dietType = getCheckboxValues("dietType");
const menuDescription = form.elements.menuDescription.value.trim(); const menuDescription = form.elements.menuDescription.value.trim();
const eventDescription = form.elements.eventDescription.value.trim(); const eventDescription = form.elements.eventDescription.value.trim();
const eventDate = form.elements.eventDate.value; const eventDate = form.elements.eventDate.value;
@@ -472,6 +472,15 @@ function validateCurrentStep() {
return false; return false;
} }
// Speziell für Schritt 2: Ernährungsform prüfen
if (currentStep === 2) {
const dietCheck = validateDietType();
if (!dietCheck.isValid) {
setErrorMessage(dietCheck.message);
return false;
}
}
// Danach normale Pflichtfelder prüfen // Danach normale Pflichtfelder prüfen
const requiredCheck = validateRequiredFields(fields); const requiredCheck = validateRequiredFields(fields);
if (!requiredCheck.isValid) { if (!requiredCheck.isValid) {
@@ -509,6 +518,22 @@ function validateRadioGroups(fields) {
return { isValid: true }; return { isValid: true };
} }
/**
* Prüft die Ernährungsform-Checkboxen (mindestens eine muss ausgewählt sein).
*/
function validateDietType() {
const checked = form.querySelectorAll('input[name="dietType"]:checked');
if (checked.length === 0) {
// Mark all as invalid
form.querySelectorAll('input[name="dietType"]').forEach(input => {
const card = input.closest('.option-card');
if (card) card.classList.add('option-card--invalid');
});
return { isValid: false, message: "Bitte wähle mindestens eine Ernährungsform aus." };
}
return { isValid: true };
}
/** /**
* Prüft alle Pflichtfelder ausser Radios und Checkboxen. * Prüft alle Pflichtfelder ausser Radios und Checkboxen.
* Rückgabe: * Rückgabe:
+119 -39
View File
@@ -1,6 +1,7 @@
document.addEventListener('DOMContentLoaded', async () => { document.addEventListener('DOMContentLoaded', async () => {
const EVENTS_STORAGE_KEY = 'socialCookingEvents'; const EVENTS_STORAGE_KEY = 'socialCookingEvents';
const CURRENT_USER_KEY = 'socialCookingCurrentUser'; const CURRENT_USER_KEY = 'socialCookingCurrentUser';
const USERS_STORAGE_KEY = 'socialCookingUsers';
const REGISTRATION_STORAGE_KEY = 'socialCookingRegistrations'; const REGISTRATION_STORAGE_KEY = 'socialCookingRegistrations';
// ------------------------------------------------------------- // -------------------------------------------------------------
// DOM entry point and shared asset path. // DOM entry point and shared asset path.
@@ -8,6 +9,7 @@
const detailContainer = document.getElementById('detail-view'); const detailContainer = document.getElementById('detail-view');
const locationIconPath = 'assets/icon_location.svg'; const locationIconPath = 'assets/icon_location.svg';
const calendarIconPath = 'assets/icon_calendar.svg'; const calendarIconPath = 'assets/icon_calendar.svg';
const gastIconPath = 'assets/icon_gast.svg';
const currentUser = getCurrentUser(); const currentUser = getCurrentUser();
// Read event id from query string (detail page deep-link support). // Read event id from query string (detail page deep-link support).
@@ -49,6 +51,57 @@
} }
} }
function getStoredUsers() {
try {
const stored = localStorage.getItem(USERS_STORAGE_KEY);
return stored ? JSON.parse(stored) : [];
} catch (error) {
console.error('Benutzerdaten konnten nicht gelesen werden.', error);
return [];
}
}
function getUserDisplayName(user) {
if (!user) {
return '';
}
const firstName = String(user.vorname || '').trim();
const lastName = String(user.nachname || '').trim();
return (firstName || `${firstName} ${lastName}`.trim() || String(user.email || '').trim()).trim();
}
function getResolvedParticipants(event, registrationMap) {
const baseParticipants = Array.isArray(event.participants)
? event.participants.map(name => String(name || '').trim()).filter(Boolean)
: [];
const usersByEmail = new Map(
getStoredUsers().map(user => [String(user.email || '').trim().toLowerCase(), user])
);
const participantLookup = new Set(baseParticipants.map(name => name.toLowerCase()));
Object.entries(registrationMap || {}).forEach(([email, ids]) => {
const isRegisteredForEvent = Array.isArray(ids)
&& ids.map(id => Number(id)).includes(Number(event.id));
if (!isRegisteredForEvent) {
return;
}
const user = usersByEmail.get(String(email || '').trim().toLowerCase());
const displayName = getUserDisplayName(user) || String(email || '').trim();
const normalizedName = displayName.toLowerCase();
if (displayName && !participantLookup.has(normalizedName)) {
baseParticipants.push(displayName);
participantLookup.add(normalizedName);
}
});
return baseParticipants;
}
function setRegistrationMap(registrationMap) { function setRegistrationMap(registrationMap) {
localStorage.setItem(REGISTRATION_STORAGE_KEY, JSON.stringify(registrationMap)); localStorage.setItem(REGISTRATION_STORAGE_KEY, JSON.stringify(registrationMap));
} }
@@ -113,9 +166,9 @@
} }
const msUntilStart = eventDateTime.getTime() - Date.now(); const msUntilStart = eventDateTime.getTime() - Date.now();
const twelveHoursInMs = 12 * 60 * 60 * 1000; const twentyfourHoursInMs = 24 * 60 * 60 * 1000;
return msUntilStart <= twelveHoursInMs; return msUntilStart <= twentyfourHoursInMs;
} }
// Abmeldefrist: 1 Tag (24 h) vor Eventstart. // Abmeldefrist: 1 Tag (24 h) vor Eventstart.
@@ -137,7 +190,7 @@
return { daysLeft, isClosed: false }; return { daysLeft, isClosed: false };
} }
// Adresse ist nur im 12h-Fenster VOR Eventstart sichtbar. // Adresse ist nur im 24h-Fenster VOR Eventstart sichtbar.
function isAddressVisibleWindow(event) { function isAddressVisibleWindow(event) {
const eventDateTime = parseEventDateTime(event); const eventDateTime = parseEventDateTime(event);
if (!eventDateTime || Number.isNaN(eventDateTime.getTime())) { if (!eventDateTime || Number.isNaN(eventDateTime.getTime())) {
@@ -145,9 +198,9 @@
} }
const msUntilStart = eventDateTime.getTime() - Date.now(); const msUntilStart = eventDateTime.getTime() - Date.now();
const twelveHoursInMs = 12 * 60 * 60 * 1000; const twentyfourHoursInMs = 24 * 60 * 60 * 1000;
return msUntilStart >= 0 && msUntilStart <= twelveHoursInMs; return msUntilStart >= 0 && msUntilStart <= twentyfourHoursInMs;
} }
function countRegistrationsForEvent(registrationMap, eventId) { function countRegistrationsForEvent(registrationMap, eventId) {
@@ -255,10 +308,10 @@
// Map diet keys to readable labels while keeping unknown values untouched. // Map diet keys to readable labels while keeping unknown values untouched.
function getDietLabel(diet) { function getDietLabel(diet) {
const labels = { const labels = {
VEGGIE: 'Vegetarisch',
VEGAN: 'Vegan',
FLEISCH: 'Fleisch', FLEISCH: 'Fleisch',
FISCH: 'Fisch' FISCH: 'Fisch',
VEGGIE: 'Vegetarisch',
VEGAN: 'Vegan'
}; };
return labels[diet] || diet; return labels[diet] || diet;
@@ -282,16 +335,26 @@
const specifications = Array.isArray(event.specifications) && event.specifications.length > 0 const specifications = Array.isArray(event.specifications) && event.specifications.length > 0
? event.specifications ? event.specifications
: []; : [];
const participants = Array.isArray(event.participants) ? event.participants : [];
const galleryImages = Array.isArray(event.gallery) && event.gallery.length > 0
? event.gallery
: [event.image, event.image, event.image];
const visibleParticipants = participants.slice(0, 6);
const registrationMap = getRegistrationMap(); const registrationMap = getRegistrationMap();
const extraRegistrations = countRegistrationsForEvent(registrationMap, event.id); const participants = getResolvedParticipants(event, registrationMap);
const remainingParticipants = Math.max(0, participants.length + extraRegistrations - visibleParticipants.length); const galleryImages = Array.isArray(event.gallery)
? event.gallery.filter(Boolean)
: [];
const galleryMarkup = galleryImages.length > 0
? `
<div class="detail-gallery detail-gallery-large">
${galleryImages.slice(0, 9).map((img, index) => `
<button class="detail-gallery-item" type="button" aria-label="Bild ${index + 1} gross anzeigen" data-fullsrc="${img}">
<img src="${img}" alt="${event.title} Bild ${index + 1}" class="detail-gallery-image">
</button>
`).join('')}
</div>
`
: '';
const visibleParticipants = participants.slice(0, 6);
const remainingParticipants = Math.max(0, participants.length - visibleParticipants.length);
const totalGuests = Number.isFinite(event.spots) ? event.spots : 0; const totalGuests = Number.isFinite(event.spots) ? event.spots : 0;
const confirmedGuests = participants.length + extraRegistrations; const confirmedGuests = participants.length;
const freePlaces = Math.max(0, totalGuests - confirmedGuests); const freePlaces = Math.max(0, totalGuests - confirmedGuests);
const isFull = freePlaces === 0; const isFull = freePlaces === 0;
const isRegistrationClosed = isRegistrationClosedForEvent(event); const isRegistrationClosed = isRegistrationClosedForEvent(event);
@@ -316,12 +379,12 @@
|| (!isRegistered && (isFull || isRegistrationClosed)) || (!isRegistered && (isFull || isRegistrationClosed))
|| (isRegistered && deregInfo.isClosed); || (isRegistered && deregInfo.isClosed);
const actionButtonVariantClass = isOwnEvent const actionButtonVariantClass = isOwnEvent
? ' detail-primary-btn-own' ? ' button-primary'
: isRegistered : isRegistered
? ' detail-primary-btn-danger' ? ' button-primary-abmelden '
: isRegistrationClosed : isRegistrationClosed
? ' detail-primary-btn-danger' ? ' button-primary-abmelden '
: ' detail-primary-btn-register'; : ' button-primary ';
const shouldRevealAddress = Boolean(event.address) && isAddressVisibleWindow(event) && hasAddressAccess; const shouldRevealAddress = Boolean(event.address) && isAddressVisibleWindow(event) && hasAddressAccess;
const addressPanelMarkup = shouldRevealAddress const addressPanelMarkup = shouldRevealAddress
? ` ? `
@@ -330,30 +393,36 @@
<p>${event.address}</p> <p>${event.address}</p>
</article> </article>
` `
: ''; : `
<article class="detail-panel">
<h2 class="detail-section-title">Adresse</h2>
<p>Vielen Dank für die Anmeldung! Die Adresse für diesen Event wird 24 Stunden vorher genau hier sichtbar sein.</p>
</article>
`;
const detailChips = [ const detailChips = [
`<span class="event-tag">${eventCategory}</span>`, `<span class="event-tag">${eventCategory}</span>`,
`<span class="event-tag">${dietLabel}</span>`, ...event.diet.split(', ').filter(d => d.trim() && d !== 'Keine Angabe').map(d => `<span class="event-tag">${getDietLabel(d.trim())}</span>`),
...specifications.map(item => `<span class="event-tag">${item}</span>`) ...specifications.map(item => `<span class="event-tag">${item}</span>`)
].join(''); ].join('');
// Render complete detail page layout including: // Render complete detail page layout including:
// hero metadata, host card, menu, participants, gallery and sticky action bar. // hero metadata, host card, menu, participants, gallery and sticky action bar.
detailContainer.innerHTML = ` detailContainer.innerHTML = `
<div class="detail-page"> <button type="button" class="btn-back-to-overview" data-navigate-back>Zurück</button>
<a class="detail-back" href="event_overview.html">
<span aria-hidden="true">&lsaquo;</span>
Alle Events
</a>
<section class="detail-hero"> <section class="detail-hero">
<div class="detail-top-row"> <div class="detail-top-row">
<span class="event-location"> <span class="event-location">
<img src="${locationIconPath}" class="icon" alt=""> <img src="${locationIconPath}" class="icon" alt="">${event.location}
${event.location} </span>
<span class="event-date-time">
<img src="${calendarIconPath}" class="icon" alt=""> ${displayDate} | ${displayTime}
</span>
<span class="event-date-time">
<img src="${gastIconPath}" class="icon" alt="">${confirmedGuests}/${totalGuests}
</span> </span>
<span class="event-date-time"> <img src="${calendarIconPath}" class="icon" alt=""> ${displayDate} | ${displayTime} |
${confirmedGuests}/${totalGuests} Gäste <span class="event-location">
</div> </div>
<h1 class="detail-title">${event.title}</h1> <h1 class="detail-title">${event.title}</h1>
<div class="event-meta-row detail-chip-row"> <div class="event-meta-row detail-chip-row">
@@ -399,13 +468,7 @@
${addressPanelMarkup} ${addressPanelMarkup}
</div> </div>
<div class="detail-gallery detail-gallery-large"> ${galleryMarkup}
${galleryImages.slice(0, 9).map((img, index) => `
<button class="detail-gallery-item" type="button" aria-label="Bild ${index + 1} gross anzeigen" data-fullsrc="${img}">
<img src="${img}" alt="${event.title} Bild ${index + 1}" class="detail-gallery-image">
</button>
`).join('')}
</div>
</section> </section>
<section class="detail-action-bar"> <section class="detail-action-bar">
@@ -415,7 +478,16 @@
<img src="${locationIconPath}" alt=""> <img src="${locationIconPath}" alt="">
${event.location} ${event.location}
</span> </span>
<span class="detail-action-meta-text">| ${displayDate} | ${displayTime} | ${confirmedGuests}/${totalGuests} Gäste</span>
<span class="event-date-time detail-action-location">
<img src="${calendarIconPath}" alt=""> ${displayDate} | ${displayTime}
</span>
<span class="event-gast detail-action-location">
<img src="${gastIconPath}" alt="">
${confirmedGuests}/${totalGuests}
</span>
</small> </small>
<strong>${event.title}</strong> <strong>${event.title}</strong>
</div> </div>
@@ -455,6 +527,7 @@
// Lightbox behavior for gallery images: // Lightbox behavior for gallery images:
// open on image click, close via backdrop, close button or ESC. // open on image click, close via backdrop, close button or ESC.
// --------------------------------------------------------- // ---------------------------------------------------------
const backButton = detailContainer.querySelector('[data-navigate-back]');
const lightbox = detailContainer.querySelector('.detail-lightbox'); const lightbox = detailContainer.querySelector('.detail-lightbox');
const lightboxImage = detailContainer.querySelector('.detail-lightbox-image'); const lightboxImage = detailContainer.querySelector('.detail-lightbox-image');
const lightboxClose = detailContainer.querySelector('.detail-lightbox-close'); const lightboxClose = detailContainer.querySelector('.detail-lightbox-close');
@@ -576,5 +649,12 @@
} }
}); });
} }
// Back button navigation: returns to event overview page.
if (backButton) {
backButton.addEventListener('click', () => {
window.location.href = 'event_overview.html';
});
}
} }
}); });
+180 -18
View File
@@ -1,7 +1,9 @@
document.addEventListener('DOMContentLoaded', () => { document.addEventListener('DOMContentLoaded', () => {
const EVENTS_STORAGE_KEY = 'socialCookingEvents'; const EVENTS_STORAGE_KEY = 'socialCookingEvents';
const CURRENT_USER_KEY = 'socialCookingCurrentUser'; const CURRENT_USER_KEY = 'socialCookingCurrentUser';
const USERS_STORAGE_KEY = 'socialCookingUsers';
const REGISTRATION_STORAGE_KEY = 'socialCookingRegistrations'; const REGISTRATION_STORAGE_KEY = 'socialCookingRegistrations';
const INFO_MODAL_SHOWN_KEY = 'infoModalShownOnFirstLogin';
// ------------------------------------------------------------- // -------------------------------------------------------------
// DOM references used throughout the page lifecycle. // DOM references used throughout the page lifecycle.
// ------------------------------------------------------------- // -------------------------------------------------------------
@@ -11,12 +13,17 @@
const dateFilter = document.getElementById('date-filter'); const dateFilter = document.getElementById('date-filter');
const locationIconPath = 'assets/icon_location.svg'; const locationIconPath = 'assets/icon_location.svg';
const calendarIconPath = 'assets/icon_calendar.svg'; const calendarIconPath = 'assets/icon_calendar.svg';
const gastIconPath = 'assets/icon_gast.svg';
// ------------------------------------------------------------- // -------------------------------------------------------------
// In-memory state for fetched events and currently active category. // In-memory state for fetched events and currently active filters.
// Separate state for category, diet, and allergie selections.
// ------------------------------------------------------------- // -------------------------------------------------------------
let allEvents = []; let allEvents = [];
let activeCategory = 'ALLE'; let activeCategory = 'ALLE';
let activeDiets = new Set();
let activeAllergies = new Set();
const currentUser = getCurrentUser(); const currentUser = getCurrentUser();
function getCurrentUser() { function getCurrentUser() {
@@ -67,6 +74,57 @@
} }
} }
function getStoredUsers() {
try {
const stored = localStorage.getItem(USERS_STORAGE_KEY);
return stored ? JSON.parse(stored) : [];
} catch (error) {
console.error('Benutzerdaten konnten nicht gelesen werden.', error);
return [];
}
}
function getUserDisplayName(user) {
if (!user) {
return '';
}
const firstName = String(user.vorname || '').trim();
const lastName = String(user.nachname || '').trim();
return (firstName || `${firstName} ${lastName}`.trim() || String(user.email || '').trim()).trim();
}
function getResolvedParticipants(event, registrationMap) {
const baseParticipants = Array.isArray(event.participants)
? event.participants.map(name => String(name || '').trim()).filter(Boolean)
: [];
const usersByEmail = new Map(
getStoredUsers().map(user => [String(user.email || '').trim().toLowerCase(), user])
);
const participantLookup = new Set(baseParticipants.map(name => name.toLowerCase()));
Object.entries(registrationMap || {}).forEach(([email, ids]) => {
const isRegisteredForEvent = Array.isArray(ids)
&& ids.map(id => Number(id)).includes(Number(event.id));
if (!isRegisteredForEvent) {
return;
}
const user = usersByEmail.get(String(email || '').trim().toLowerCase());
const displayName = getUserDisplayName(user) || String(email || '').trim();
const normalizedName = displayName.toLowerCase();
if (displayName && !participantLookup.has(normalizedName)) {
baseParticipants.push(displayName);
participantLookup.add(normalizedName);
}
});
return baseParticipants;
}
function setRegistrationMap(registrationMap) { function setRegistrationMap(registrationMap) {
localStorage.setItem(REGISTRATION_STORAGE_KEY, JSON.stringify(registrationMap)); localStorage.setItem(REGISTRATION_STORAGE_KEY, JSON.stringify(registrationMap));
} }
@@ -89,8 +147,13 @@
const savedCategory = sessionStorage.getItem('activeFilter') || 'ALLE'; const savedCategory = sessionStorage.getItem('activeFilter') || 'ALLE';
const savedLocation = sessionStorage.getItem('activeLocation') || 'ALLE_ORTE'; const savedLocation = sessionStorage.getItem('activeLocation') || 'ALLE_ORTE';
const savedDate = sessionStorage.getItem('activeDate') || ''; const savedDate = sessionStorage.getItem('activeDate') || '';
const savedDiets = sessionStorage.getItem('activeDiets') || '';
const savedAllergies = sessionStorage.getItem('activeAllergies') || '';
activeCategory = savedCategory; activeCategory = savedCategory;
activeDiets = new Set(savedDiets ? savedDiets.split(',') : []);
activeAllergies = new Set(savedAllergies ? savedAllergies.split(',') : []);
if (locationFilter) { if (locationFilter) {
locationFilter.value = hasOption(locationFilter, savedLocation) ? savedLocation : 'ALLE_ORTE'; locationFilter.value = hasOption(locationFilter, savedLocation) ? savedLocation : 'ALLE_ORTE';
} }
@@ -263,7 +326,7 @@
}, 0); }, 0);
} }
// Schliesst neue Anmeldungen ab 12h vor Start (inkl. bereits gestarteter Events). // Schliesst neue Anmeldungen ab 24h vor Start (inkl. bereits gestarteter Events).
function isRegistrationClosedForEvent(event) { function isRegistrationClosedForEvent(event) {
const eventDateTime = parseEventDateTime(event); const eventDateTime = parseEventDateTime(event);
if (!eventDateTime || Number.isNaN(eventDateTime.getTime())) { if (!eventDateTime || Number.isNaN(eventDateTime.getTime())) {
@@ -271,9 +334,9 @@
} }
const msUntilStart = eventDateTime.getTime() - Date.now(); const msUntilStart = eventDateTime.getTime() - Date.now();
const twelveHoursInMs = 12 * 60 * 60 * 1000; const twentyfourHoursInMs = 24 * 60 * 60 * 1000;
return msUntilStart <= twelveHoursInMs; return msUntilStart <= twentyfourHoursInMs;
} }
// Safely verify whether a value exists in the given select element. // Safely verify whether a value exists in the given select element.
@@ -281,26 +344,54 @@
return Array.from(selectElement.options).some(option => option.value === value); return Array.from(selectElement.options).some(option => option.value === value);
} }
// Apply all filters together (category, location, date), update button state, render and persist. // Apply all filters together (category, diet, allergie, location, date), update button state, render and persist.
function applyFilters() { function applyFilters() {
const selectedLocation = locationFilter ? locationFilter.value : 'ALLE_ORTE'; const selectedLocation = locationFilter ? locationFilter.value : 'ALLE_ORTE';
const selectedDate = dateFilter ? dateFilter.value : ''; const selectedDate = dateFilter ? dateFilter.value : '';
// Update active states for all filter types
filterButtons.forEach(btn => { filterButtons.forEach(btn => {
const isCategoryButton = btn.getAttribute('data-cat') !== null;
const isDietButton = btn.getAttribute('data-diet') !== null;
const isAllergieButton = btn.getAttribute('data-allergie') !== null;
if (isCategoryButton) {
if (btn.getAttribute('data-cat') === activeCategory) { if (btn.getAttribute('data-cat') === activeCategory) {
btn.classList.add('active'); btn.classList.add('active');
} else { } else {
btn.classList.remove('active'); btn.classList.remove('active');
} }
} else if (isDietButton) {
if (activeDiets.has(btn.getAttribute('data-diet'))) {
btn.classList.add('active');
} else {
btn.classList.remove('active');
}
} else if (isAllergieButton) {
if (activeAllergies.has(btn.getAttribute('data-allergie'))) {
btn.classList.add('active');
} else {
btn.classList.remove('active');
}
}
}); });
const filtered = allEvents.filter(event => { const filtered = allEvents.filter(event => {
const categoryMatch = activeCategory === 'ALLE' || event.category === activeCategory; const categoryMatch = activeCategory === 'ALLE' || event.category === activeCategory;
// Diet filter: if no diets selected, show all. Otherwise, event MUST have at least one selected diet.
const dietMatch = activeDiets.size === 0 ||
(event.diet && event.diet.split(', ').some(d => activeDiets.has(d.trim())));
// Allergie filter: if no allergies selected, show all. Otherwise, event MUST have at least one selected allergie.
const allergieMatch = activeAllergies.size === 0 ||
(event.specifications && event.specifications.some(spec => activeAllergies.has(spec)));
const locationMatch = selectedLocation === 'ALLE_ORTE' || event.location === selectedLocation; const locationMatch = selectedLocation === 'ALLE_ORTE' || event.location === selectedLocation;
const eventDateIso = parseEventDateToIso(event.date); const eventDateIso = parseEventDateToIso(event.date);
const dateMatch = !selectedDate || eventDateIso === selectedDate; const dateMatch = !selectedDate || eventDateIso === selectedDate;
return categoryMatch && locationMatch && dateMatch; return categoryMatch && dietMatch && allergieMatch && locationMatch && dateMatch;
}); });
renderEvents(filtered); renderEvents(filtered);
@@ -308,6 +399,8 @@
sessionStorage.setItem('activeFilter', activeCategory); sessionStorage.setItem('activeFilter', activeCategory);
sessionStorage.setItem('activeLocation', selectedLocation); sessionStorage.setItem('activeLocation', selectedLocation);
sessionStorage.setItem('activeDate', selectedDate); sessionStorage.setItem('activeDate', selectedDate);
sessionStorage.setItem('activeDiets', Array.from(activeDiets).join(','));
sessionStorage.setItem('activeAllergies', Array.from(activeAllergies).join(','));
} }
// Render either: // Render either:
@@ -327,7 +420,7 @@
<h3>Schade, aktuell gibt es hier keine Events.</h3> <h3>Schade, aktuell gibt es hier keine Events.</h3>
<p>Starte dein eigenes Event und bringe die Community an deinen Tisch.</p> <p>Starte dein eigenes Event und bringe die Community an deinen Tisch.</p>
<a class="empty-state-link" href="event_create.html"> <a class="empty-state-link" href="event_create.html">
<button class="empty-state-btn" type="button">Event erstellen</button> <button class="button-primary" type="button">Event erstellen</button>
</a> </a>
</div> </div>
`; `;
@@ -351,10 +444,9 @@
const displayTime = formatEventTime(event.time); const displayTime = formatEventTime(event.time);
// Capacity logic: // Capacity logic:
// spots = total capacity, participants.length = booked seats. // spots = total capacity, resolved participants = booked seats.
const baseParticipants = Array.isArray(event.participants) ? event.participants.length : 0; const resolvedParticipants = getResolvedParticipants(event, registrationMap);
const extraRegistrations = countRegistrationsForEvent(registrationMap, event.id); const bookedSeats = resolvedParticipants.length;
const bookedSeats = baseParticipants + extraRegistrations;
const totalCapacity = event.spots; const totalCapacity = event.spots;
const freePlaces = Math.max(0, totalCapacity - bookedSeats); const freePlaces = Math.max(0, totalCapacity - bookedSeats);
const isFull = freePlaces === 0; const isFull = freePlaces === 0;
@@ -367,12 +459,17 @@
? event.specifications.map(spec => `<span class="event-tag">${spec}</span>`).join('') ? event.specifications.map(spec => `<span class="event-tag">${spec}</span>`).join('')
: ''; : '';
// Build diet tags: split by comma and create individual tags
const dietTags = event.diet && event.diet !== 'Keine Angabe' && event.diet !== '–'
? event.diet.split(', ').map(d => `<span class="event-tag">${d.trim()}</span>`).join('')
: '';
const actionMarkup = isOwnEvent const actionMarkup = isOwnEvent
? '<button class="button-primary" type="button" data-registration-action="own" disabled>Dein Event!</button>' ? '<button class="button-primary-eigener-event" type="button" data-registration-action="own" disabled>Dein Event!</button>'
: isRegistered : isRegistered
? '<button class="button-primary button-primary-abmelden" type="button" data-registration-action="unregister">Abmelden</button>' ? '<button class="button-primary button-primary-abmelden" type="button" data-registration-action="unregister">Abmelden</button>'
: isRegistrationClosed : isRegistrationClosed
? '<button class="button-primary" button-primary-abmelden" type="button" data-registration-action="closed" disabled>Anmeldung geschlossen</button>' ? '<button class="button-primary" button-plaetze" type="button" data-registration-action="closed" disabled>Anmeldung geschlossen</button>'
: isFull : isFull
? '' ? ''
: !currentUser : !currentUser
@@ -388,17 +485,17 @@
</span> </span>
<span class="event-date-time"> <img src="${calendarIconPath}" class="icon" alt=""> ${displayDate} | ${displayTime} <span class="event-date-time"> <img src="${calendarIconPath}" class="icon" alt=""> ${displayDate} | ${displayTime}
</span> </span>
<span class="event-date-time"> ${bookedSeats}/${totalCapacity} Gäste</span> <span class="event-gast"> <img src="${gastIconPath}" class="icon" alt="Gaeste Icon">${bookedSeats}/${totalCapacity} </span>
</div> </div>
<h2>${event.title}</h2> <h2>${event.title}</h2>
<div class="event-meta-row"> <div class="event-meta-row">
<span class="event-tag">${event.category}</span> <span class="event-tag">${event.category}</span>
<span class="event-tag">${event.diet}</span> ${dietTags}
${specsChips} ${specsChips}
</div> </div>
</div> </div>
<div class="event-side${isFull ? ' event-side-full' : ''}"> <div class="event-side${isFull ? ' event-side-full' : ''}">
<span class="button-secondary${isFull ? ' event-spots-full' : ''}">${isFull ? 'Ausgebucht' : `${freePlaces} Plätze frei`}</span> ${isRegistrationClosed ? '' : `<span class="button-plaetze${isFull ? ' event-spots-full' : ''}">${isFull ? 'Ausgebucht' : `${freePlaces} Plätze frei`}</span>`}
${actionMarkup} ${actionMarkup}
</div> </div>
`; `;
@@ -468,10 +565,32 @@
}); });
} }
// Category filter interactions. // Category filter interactions: mutually exclusive (radio button behavior).
filterButtons.forEach(button => { filterButtons.forEach(button => {
button.addEventListener('click', () => { button.addEventListener('click', () => {
activeCategory = button.getAttribute('data-cat'); const categoryValue = button.getAttribute('data-cat');
const dietValue = button.getAttribute('data-diet');
const allergieValue = button.getAttribute('data-allergie');
if (categoryValue !== null) {
// Category filter: exclusive selection
activeCategory = categoryValue;
} else if (dietValue !== null) {
// Diet filter: toggle selection
if (activeDiets.has(dietValue)) {
activeDiets.delete(dietValue);
} else {
activeDiets.add(dietValue);
}
} else if (allergieValue !== null) {
// Allergie filter: toggle selection
if (activeAllergies.has(allergieValue)) {
activeAllergies.delete(allergieValue);
} else {
activeAllergies.add(allergieValue);
}
}
applyFilters(); applyFilters();
}); });
}); });
@@ -483,6 +602,49 @@
if (dateFilter) { if (dateFilter) {
dateFilter.addEventListener('change', applyFilters); dateFilter.addEventListener('change', applyFilters);
// Make calendar icon clickable to focus the date input
const calendarIcon = document.querySelector('.calendar-icon');
if (calendarIcon) {
calendarIcon.addEventListener('click', () => {
dateFilter.focus();
dateFilter.click();
});
}
}
// Info button modal behavior
const infoButton = document.getElementById('info-button');
const infoModal = document.getElementById('info-modal');
const modalClose = infoModal?.querySelector('.modal-close');
if (infoButton && infoModal) {
infoButton.addEventListener('click', () => {
infoModal.classList.add('show');
});
}
if (modalClose && infoModal) {
modalClose.addEventListener('click', () => {
infoModal.classList.remove('show');
});
}
if (infoModal) {
infoModal.addEventListener('click', (event) => {
if (event.target === infoModal) {
infoModal.classList.remove('show');
}
});
}
// Auto-open info modal on first login
if (currentUser && infoModal) {
const hasShownInfoModal = localStorage.getItem(INFO_MODAL_SHOWN_KEY);
if (!hasShownInfoModal) {
infoModal.classList.add('show');
localStorage.setItem(INFO_MODAL_SHOWN_KEY, 'true');
}
} }
// Kick off initial load/render cycle. // Kick off initial load/render cycle.
+3 -3
View File
@@ -7,7 +7,7 @@
const carouselTrack = document.querySelector('.gallery__track'); const carouselTrack = document.querySelector('.gallery__track');
const prevArrow = document.querySelector('.gallery__arrow--prev'); const prevArrow = document.querySelector('.gallery__arrow--prev');
const nextArrow = document.querySelector('.gallery__arrow--next'); const nextArrow = document.querySelector('.gallery__arrow--next');
const dotsContainer = document.querySelector('.gallery__dots'); const dotsContainer = document.querySelector('.gallery_dots');
// Nur ausführen, wenn die Galerie auf der Seite vorhanden ist. // Nur ausführen, wenn die Galerie auf der Seite vorhanden ist.
if (carouselTrack) { if (carouselTrack) {
@@ -28,7 +28,7 @@ if (carouselTrack) {
for (var i = 0; i < pageCount; i++) { for (var i = 0; i < pageCount; i++) {
var dot = document.createElement('button'); var dot = document.createElement('button');
dot.type = 'button'; dot.type = 'button';
dot.className = 'gallery__dot' + (i === activePage ? ' gallery__dot--active' : ''); dot.className = 'gallery_dot' + (i === activePage ? ' gallery_dot--active' : '');
dot.setAttribute('role', 'tab'); dot.setAttribute('role', 'tab');
dot.setAttribute('aria-selected', i === activePage ? 'true' : 'false'); dot.setAttribute('aria-selected', i === activePage ? 'true' : 'false');
dot.setAttribute('aria-label', 'Seite ' + (i + 1) + ' von ' + pageCount); dot.setAttribute('aria-label', 'Seite ' + (i + 1) + ' von ' + pageCount);
@@ -43,7 +43,7 @@ if (carouselTrack) {
function updateDots() { function updateDots() {
dots.forEach(function(dot, i) { dots.forEach(function(dot, i) {
dot.classList.toggle('gallery__dot--active', i === activePage); dot.classList.toggle('gallery_dot--active', i === activePage);
dot.setAttribute('aria-selected', i === activePage ? 'true' : 'false'); dot.setAttribute('aria-selected', i === activePage ? 'true' : 'false');
}); });
} }
+42 -13
View File
@@ -7,10 +7,10 @@
// Zentrale DOM-Referenzen für klare, testbare Funktionen. // Zentrale DOM-Referenzen für klare, testbare Funktionen.
const loggedOutState = document.getElementById('logged-out-state'); const loggedOutState = document.getElementById('logged-out-state');
const loggedInContent = document.getElementById('logged-in-content'); const loggedInContent = document.getElementById('logged-in-content');
const profileHeadline = document.getElementById('profile-headline'); const profileHeadline = document.getElementById('headline');
const profileSubline = document.getElementById('profile-subline'); const profileSubline = document.getElementById('profile-subline');
const logoutButton = document.getElementById('logout-button'); const logoutButton = document.getElementById('logout-button');
const profileTabButtons = Array.from(document.querySelectorAll('[data-profile-tab]')); const profileTabButtons = Array.from(document.querySelectorAll('[data-category-item]'));
const profileTabPanels = Array.from(document.querySelectorAll('[data-profile-panel]')); const profileTabPanels = Array.from(document.querySelectorAll('[data-profile-panel]'));
const myEventsCount = document.getElementById('my-events-count'); const myEventsCount = document.getElementById('my-events-count');
@@ -131,7 +131,7 @@
profileTabButtons.forEach(button => { profileTabButtons.forEach(button => {
button.addEventListener('click', () => { button.addEventListener('click', () => {
const tabName = button.getAttribute('data-profile-tab'); const tabName = button.getAttribute('data-category-item');
if (!tabName) { if (!tabName) {
return; return;
} }
@@ -202,7 +202,7 @@
// Schaltet den sichtbaren Profilbereich per Tabname um. // Schaltet den sichtbaren Profilbereich per Tabname um.
function activateProfileTab(tabName) { function activateProfileTab(tabName) {
profileTabButtons.forEach(button => { profileTabButtons.forEach(button => {
const isActive = button.getAttribute('data-profile-tab') === tabName; const isActive = button.getAttribute('data-category-item') === tabName;
button.classList.toggle('is-active', isActive); button.classList.toggle('is-active', isActive);
button.setAttribute('aria-selected', isActive ? 'true' : 'false'); button.setAttribute('aria-selected', isActive ? 'true' : 'false');
}); });
@@ -515,13 +515,13 @@
const actionMarkup = mode === 'registrations' const actionMarkup = mode === 'registrations'
? ` ? `
<div class="profile-event-actions"> <div class="event-side">
<button class="profile-unregister-btn" type="button" data-unregister-id="${event.id}">Abmelden</button> <button class="button-primary-abmelden" type="button" data-unregister-id="${event.id}">Abmelden</button>
</div> </div>
` `
: ` : `
<div class="profile-event-actions"> <div class="event-side">
<button class="profile-cancel-btn" type="button" data-cancel-event-id="${event.id}">Event absagen</button> <button class="button-primary-eigener-event" type="button" data-cancel-event-id="${event.id}">Event absagen</button>
</div> </div>
`; `;
@@ -538,7 +538,7 @@
}); });
} }
// Gibt true zurück, wenn ein Event innerhalb der nächsten 12 Stunden startet. // Gibt true zurück, wenn ein Event innerhalb der nächsten 24 Stunden startet.
function isAddressVisibleWindow(event) { function isAddressVisibleWindow(event) {
const eventDateTime = parseEventDateTime(event); const eventDateTime = parseEventDateTime(event);
if (!eventDateTime || Number.isNaN(eventDateTime.getTime())) { if (!eventDateTime || Number.isNaN(eventDateTime.getTime())) {
@@ -546,9 +546,9 @@
} }
const msUntilStart = eventDateTime.getTime() - Date.now(); const msUntilStart = eventDateTime.getTime() - Date.now();
const twelveHoursInMs = 12 * 60 * 60 * 1000; const twentyfourHoursInMs = 24 * 60 * 60 * 1000;
return msUntilStart >= 0 && msUntilStart <= twelveHoursInMs; return msUntilStart >= 0 && msUntilStart <= twentyfourHoursInMs;
} }
// Parse für ISO- und lokalisierte Datumsformate aus den Eventdaten. // Parse für ISO- und lokalisierte Datumsformate aus den Eventdaten.
@@ -611,15 +611,44 @@
return 'Kein Datum'; return 'Kein Datum';
} }
// ISO Format: 2026-02-12
if (/^\d{4}-\d{2}-\d{2}$/.test(dateString)) { if (/^\d{4}-\d{2}-\d{2}$/.test(dateString)) {
const [year, month, day] = dateString.split('-'); const [year, month, day] = dateString.split('-');
const monthLabel = ['Januar', 'Februar', 'Maerz', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'][Number(month) - 1];
const monthLabel = ['Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'][Number(month) - 1];
return `${Number(day)}. ${monthLabel} ${year}`; return `${Number(day)}. ${monthLabel} ${year}`;
} }
return dateString; // Format: 12. FEB. 2026
const match = dateString.match(/^(\d{1,2})\.\s*([A-ZÄÖÜ]{3})\.\s*(\d{4})$/);
if (match) {
const day = match[1];
const month = match[2];
const shortMonthMap = {
JAN: 'Januar',
FEB: 'Februar',
MÄR: 'März',
MRZ: 'März',
APR: 'April',
MAI: 'Mai',
JUN: 'Juni',
JUL: 'Juli',
AUG: 'August',
SEP: 'September',
OKT: 'Oktober',
NOV: 'November',
DEZ: 'Dezember'
};
return `${day}. ${shortMonthMap[month] || month} ${match[3]}`;
} }
return dateString;
}
// Vereinheitlicht die Zeitanzeige für die Profilseite. // Vereinheitlicht die Zeitanzeige für die Profilseite.
function formatEventTime(timeString) { function formatEventTime(timeString) {
if (!timeString) { if (!timeString) {
+20 -7
View File
@@ -25,6 +25,12 @@ document.addEventListener('DOMContentLoaded', () => {
} }
} }
// Logout-Funktion
window.logout = function() {
localStorage.removeItem(CURRENT_USER_KEY);
window.location.href = 'index.html';
};
// Baut die Navigation für ausgeloggte Besucher. // Baut die Navigation für ausgeloggte Besucher.
function buildLoggedOutNavigation() { function buildLoggedOutNavigation() {
const loginIsActive = currentPage === 'login.html'; const loginIsActive = currentPage === 'login.html';
@@ -71,13 +77,6 @@ document.addEventListener('DOMContentLoaded', () => {
const isEventCreate = currentPage === 'event_create.html'; const isEventCreate = currentPage === 'event_create.html';
return ` return `
<a
class="nav-tab${isEventOverview ? ' nav-tab--active' : ''}"
href="event_overview.html"
${isEventOverview ? 'aria-current="page"' : ''}
>
Event finden
</a>
<a <a
class="nav-tab${isEventCreate ? ' nav-tab--active' : ''}" class="nav-tab${isEventCreate ? ' nav-tab--active' : ''}"
href="event_create.html" href="event_create.html"
@@ -85,6 +84,20 @@ document.addEventListener('DOMContentLoaded', () => {
> >
Event erstellen Event erstellen
</a> </a>
<a
class="nav-tab${isEventOverview ? ' nav-tab--active' : ''}"
href="event_overview.html"
${isEventOverview ? 'aria-current="page"' : ''}
>
Event finden
</a>
<button
class="button-small logout-button"
onclick="logout()"
aria-label="Logout"
>
Logout
</button>
<a <a
class="profile-pill" class="profile-pill"
href="my_profil.html" href="my_profil.html"
+13 -7
View File
@@ -59,15 +59,21 @@
</div> <!-- Schliesst main-content --> </div> <!-- Schliesst main-content -->
<div class="snackbar" id="snackbar">Willkommen zurück! Du wirst weitergeleitet...</div> <div class="snackbar" id="snackbar">Willkommen zurück! Du wirst weitergeleitet...</div>
<script src="js/login.js"></script> <script src="js/login.js"></script>
<div class="instagram-invite"> <div class="footer">
<div class="footer-left">
<p class="p-small inline">© <img src="assets/logo_invite.svg" alt="Invité Logo" class="footer-invite_logo" /></p>
</div>
<div class="footer-center">
<a href="https://www.instagram.com" target="_blank" rel="noopener noreferrer" class="instagram-invite__link"> <a href="https://www.instagram.com" target="_blank" rel="noopener noreferrer" class="instagram-invite__link">
<img src="assets/Icon_instagram.png" alt="Instagram" class="instagram-invite__icon" /> <img src="assets/Icon_instagram.png" alt="Instagram" class="instagram-invite_icon" />
<img src="assets/logo_invite.svg" alt="Invité Logo" class="instagram-invite__logo" />
</a> </a>
</div> </div>
<footer class="footer">
<a href="impressum.html" class="footer-link">Impressum</a> <div class="footer-right footer-links">
<a href="datenschutz.html" class="footer-link">Datenschutz</a> <a href="impressum.html" class="link-text-footer">Impressum</a>
</footer> <a href="datenschutz.html" class="link-text-footer">Datenschutz</a>
</div>
</div>
</body> </body>
</html> </html>
+33 -25
View File
@@ -19,7 +19,12 @@
<img src="assets/logo_invite.svg" alt="Invite Logo"> <img src="assets/logo_invite.svg" alt="Invite Logo">
</a> </a>
<nav class="nav-tab-links" aria-label="Hauptnavigation"> <nav class="nav-tab-links" aria-label="Hauptnavigation">
<a class="button-small" href="login.html" aria-label="Login">Login</a> <button id="logout-button" class="button-small profile-logout" type="button">
Logout
</button>
<a class="button-small" href="login.html" aria-label="Login">
Login
</a>
</nav> </nav>
</div> </div>
</header> </header>
@@ -27,11 +32,10 @@
<main class="container profile-page"> <main class="container profile-page">
<section class="profile-hero" aria-label="Profilübersicht"> <section class="profile-hero" aria-label="Profilübersicht">
<div> <div>
<p class="profile-kicker">Mein Bereich</p> <p class="badge">Mein Bereich</p>
<h1 id="profile-headline">Mein Profil</h1> <h1 id="headline">Mein Profil</h1>
<p id="profile-subline" class="profile-subline">Hier findest du deine Events, deine Anmeldungen und kannst deine Profildaten verwalten.</p> <p id="profile-subline" class="profile-subline">Hier findest du deine Events, deine Anmeldungen und kannst deine Profildaten verwalten.</p>
</div> </div>
<button id="logout-button" class="button-small profile-logout" type="button">Logout</button>
</section> </section>
<section id="logged-out-state" class="profile-panel hidden" aria-live="polite"> <section id="logged-out-state" class="profile-panel hidden" aria-live="polite">
@@ -44,23 +48,21 @@
</section> </section>
<section id="logged-in-content" class="profile-grid"> <section id="logged-in-content" class="profile-grid">
<nav class="profile-tabs" aria-label="Profilbereiche"> <nav class="category-items" aria-label="Profilbereiche">
<button type="button" class="profile-tab is-active" data-profile-tab="hosting">Hosting</button> <button type="button" class="category-item is-active category-item-profile" data-category-item="hosting">Meine Events</button>
<button type="button" class="profile-tab" data-profile-tab="teilnehmen">Teilnehmen</button> <button type="button" class="category-item category-item-profile" data-category-item="teilnehmen">Meine Anmeldungen</button>
<button type="button" class="profile-tab" data-profile-tab="einstellungen">Einstellungen</button> <button type="button" class="category-item category-item-profile" data-category-item="einstellungen">Profil-Einstellungen</button>
</nav> </nav>
<article class="profile-panel" data-profile-panel="hosting"> <article data-profile-panel="hosting">
<div class="panel-head"> <div class="panel-head">
<h2 class="panel-title">Meine Events</h2>
<span id="my-events-count" class="panel-count">0</span> <span id="my-events-count" class="panel-count">0</span>
</div> </div>
<div id="my-events-list" class="profile-card-list"></div> <div id="my-events-list" class="profile-card-list"></div>
</article> </article>
<article class="profile-panel hidden" data-profile-panel="teilnehmen"> <article data-profile-panel="teilnehmen">
<div class="panel-head"> <div class="panel-head">
<h2 class="panel-title">Meine Anmeldungen</h2>
<span id="my-registrations-count" class="panel-count">0</span> <span id="my-registrations-count" class="panel-count">0</span>
</div> </div>
<div id="my-registrations-list" class="profile-card-list"></div> <div id="my-registrations-list" class="profile-card-list"></div>
@@ -110,9 +112,9 @@
<button class="close-btn" onclick="closeLogoutModal()">&times;</button> <button class="close-btn" onclick="closeLogoutModal()">&times;</button>
<h2>Abmelden?</h2> <h2>Abmelden?</h2>
</div> </div>
<div class="modal-body"> <p class="modal-body">
Bist du sicher, dass du dich abmelden möchtest? Bist du sicher, dass du dich abmelden möchtest?
</div> </p>
<div class="modal-footer"> <div class="modal-footer">
<button class="button-primary button--outline" type="button" onclick="closeLogoutModal()">Abbrechen</button> <button class="button-primary button--outline" type="button" onclick="closeLogoutModal()">Abbrechen</button>
<button class="button-primary" type="button" onclick="confirmLogout()">Abmelden</button> <button class="button-primary" type="button" onclick="confirmLogout()">Abmelden</button>
@@ -130,26 +132,32 @@
<button class="close-btn" onclick="closeCancelEventModal()">&times;</button> <button class="close-btn" onclick="closeCancelEventModal()">&times;</button>
<h2>Event absagen?</h2> <h2>Event absagen?</h2>
</div> </div>
<div class="modal-body"> <p class="modal-body">
Bist du sicher, dass du dieses Event absagen möchtest? Diese Aktion kann nicht rückgängig gemacht werden. Bist du sicher, dass du dieses Event absagen möchtest? Diese Aktion kann nicht rückgängig gemacht werden.
</div> </p>
<div class="modal-footer"> <div class="modal-footer">
<button class="button-primary button--outline" type="button" onclick="closeCancelEventModal()">Abbrechen</button> <button class="button-secondary" type="button" onclick="closeCancelEventModal()">Abbrechen</button>
<button class="button-primary" type="button" id="confirmCancelEventBtn" style="background-color: var(--tomato); border-color: var(--tomato);">Event absagen</button> <button class="button-primary-abmelden" type="button" id="confirmCancelEventBtn";>Event absagen</button>
</div> </div>
</div> </div>
</div> </div>
<div class="instagram-invite"> <div class="footer">
<div class="footer-left">
<p class="p-small inline">© <img src="assets/logo_invite.svg" alt="Invité Logo" class="footer-invite_logo" /></p>
</div>
<div class="footer-center">
<a href="https://www.instagram.com" target="_blank" rel="noopener noreferrer" class="instagram-invite__link"> <a href="https://www.instagram.com" target="_blank" rel="noopener noreferrer" class="instagram-invite__link">
<img src="assets/Icon_instagram.png" alt="Instagram" class="instagram-invite__icon" /> <img src="assets/Icon_instagram.png" alt="Instagram" class="instagram-invite_icon" />
<img src="assets/logo_invite.svg" alt="Invité Logo" class="instagram-invite__logo" />
</a> </a>
</div>
<div class="footer-right footer-links">
<a href="impressum.html" class="link-text-footer">Impressum</a>
<a href="datenschutz.html" class="link-text-footer">Datenschutz</a>
</div>
</div> </div>
<footer class="footer">
<a href="impressum.html" class="footer-link">Impressum</a>
<a href="datenschutz.html" class="footer-link">Datenschutz</a>
</footer>
<script src="js/my_profil.js"></script> <script src="js/my_profil.js"></script>
</body> </body>
+13 -7
View File
@@ -91,15 +91,21 @@
</div> </div>
</div> </div>
<script src="js/signup.js"></script> <script src="js/signup.js"></script>
<div class="instagram-invite"> <div class="footer">
<div class="footer-left">
<p class="p-small inline">© <img src="assets/logo_invite.svg" alt="Invité Logo" class="footer-invite_logo" /></p>
</div>
<div class="footer-center">
<a href="https://www.instagram.com" target="_blank" rel="noopener noreferrer" class="instagram-invite__link"> <a href="https://www.instagram.com" target="_blank" rel="noopener noreferrer" class="instagram-invite__link">
<img src="assets/Icon_instagram.png" alt="Instagram" class="instagram-invite__icon" /> <img src="assets/Icon_instagram.png" alt="Instagram" class="instagram-invite_icon" />
<img src="assets/logo_invite.svg" alt="Invité Logo" class="instagram-invite__logo" />
</a> </a>
</div> </div>
<footer class="footer">
<a href="impressum.html" class="footer-link">Impressum</a> <div class="footer-right footer-links">
<a href="datenschutz.html" class="footer-link">Datenschutz</a> <a href="impressum.html" class="link-text-footer">Impressum</a>
</footer> <a href="datenschutz.html" class="link-text-footer">Datenschutz</a>
</div>
</div>
</body> </body>
</html> </html>