616 lines
11 KiB
CSS
616 lines
11 KiB
CSS
:root {
|
|
--max-width: 1120px;
|
|
--content-width: 760px;
|
|
--header-height: 4.5rem;
|
|
|
|
--control-min-height: 3rem;
|
|
--input-min-height: 3.5rem;
|
|
--card-min-height: 6rem;
|
|
}
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.event-flow-header {
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.event-form {
|
|
min-height: calc(100vh - var(--header-height) - 9rem);
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.step {
|
|
display: none;
|
|
}
|
|
|
|
/*
|
|
.submission-success {
|
|
padding: var(--space-24) 0 var(--space-7);
|
|
}*/
|
|
|
|
.submission-success-title-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-32);
|
|
width: 100%;
|
|
}
|
|
|
|
.submission-success-title-row h2 {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.submission-success-icon {
|
|
width: 2.5rem;
|
|
height: 2.5rem;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--brown);
|
|
font-size: 3rem;
|
|
line-height: 1;
|
|
transform: translateY(0.4rem);
|
|
}
|
|
|
|
.submission-success-image {
|
|
object-position: 42% center;
|
|
}
|
|
|
|
.submission-success .intro-card--image {
|
|
width: min(100%, 40rem);
|
|
aspect-ratio: 4 / 5;
|
|
align-self: flex-start;
|
|
justify-self: center;
|
|
}
|
|
|
|
.step--active {
|
|
display: block;
|
|
}
|
|
|
|
.step-layout {
|
|
gap: 80px;
|
|
}
|
|
|
|
.startseite {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 80px;
|
|
}
|
|
|
|
.step-layout--intro {
|
|
min-height: 60vh;
|
|
align-content: center;
|
|
grid-template-columns: 1fr;
|
|
gap: var(--space-7);
|
|
}
|
|
|
|
.step-copy,
|
|
.step-fields,
|
|
.form-field,
|
|
fieldset {
|
|
display: grid;
|
|
}
|
|
|
|
.step-copy {
|
|
gap: var(--space-24);
|
|
align-content: start;
|
|
}
|
|
|
|
.step-fields {
|
|
gap: var(--space-32);
|
|
}
|
|
|
|
.form-field,
|
|
fieldset {
|
|
margin: 0;
|
|
padding: 0;
|
|
border: 0;
|
|
}
|
|
|
|
|
|
.step-text {
|
|
/* definiert Breite des Beschriebtexts der einzelnen Schritte*/
|
|
max-width: 100%;
|
|
}
|
|
|
|
.intro-card,
|
|
.review-card {
|
|
border: 1px solid var(--color-border);
|
|
background: var(--color-surface);
|
|
box-shadow: var(--shadow-interaction);
|
|
}
|
|
|
|
.intro-card {
|
|
padding: var(--space-40);
|
|
border-radius: 1.75rem;
|
|
background: linear-gradient(135deg, var(--color-surface), var(--color-surface-soft));
|
|
}
|
|
|
|
.intro-image {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: block;
|
|
object-fit: cover;
|
|
border-radius: var(--radius-lg);
|
|
}
|
|
|
|
.field-hint {
|
|
color: var(--olive);
|
|
font-size: 1rem;
|
|
margin-bottom: var(--space-8);
|
|
}
|
|
|
|
input[type="text"],
|
|
input[type="date"],
|
|
input[type="time"],
|
|
input[type="number"],
|
|
textarea {
|
|
font-family: var(--font-main);
|
|
font-weight: 400;
|
|
font-size: 1.125rem;
|
|
padding: var(--space-16) var(--space-20);
|
|
border: 1.5px solid var(--olive-light);
|
|
border-radius: var(--radius-md);
|
|
background: var(--butter-light);
|
|
transition: border-color 0.2s ease;
|
|
|
|
}
|
|
|
|
/* Blendet die Standard-Buttons für number inputs aus */
|
|
input[type="number"]::-webkit-outer-spin-button,
|
|
input[type="number"]::-webkit-inner-spin-button {
|
|
-webkit-appearance: none;
|
|
margin: 0;
|
|
}
|
|
|
|
/* Firefox */
|
|
input[type="number"] {
|
|
-moz-appearance: textfield;
|
|
}
|
|
|
|
textarea {
|
|
min-height: 9rem;
|
|
resize: vertical;
|
|
}
|
|
|
|
input[type="text"]:hover,
|
|
input[type="date"]:hover,
|
|
input[type="time"]:hover,
|
|
input[type="number"]:hover,
|
|
textarea:hover {
|
|
border: 2px solid var(--olive);
|
|
}
|
|
|
|
input[type="text"]:focus,
|
|
input[type="date"]:focus,
|
|
input[type="time"]:focus,
|
|
input[type="number"]:focus,
|
|
textarea:focus {
|
|
border: 2px solid var(--olive);
|
|
}
|
|
|
|
.field-invalid {
|
|
border-color: var(--error) !important;
|
|
box-shadow: var(--shadow-error);
|
|
}
|
|
|
|
.field-row {
|
|
display: grid;
|
|
gap: var(--space-24);
|
|
}
|
|
|
|
.option-grid {
|
|
display: grid;
|
|
gap: var(--space-16);
|
|
}
|
|
|
|
.option-card {
|
|
position: relative;
|
|
display: grid;
|
|
padding: var(--space-20);
|
|
border: 1.5px solid var(--olive-light);
|
|
border-radius: var(--radius-md);
|
|
background: var(--butter-light);
|
|
transition: box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
|
|
}
|
|
|
|
.option-card--with-icon {
|
|
justify-items: center;
|
|
align-content: center;
|
|
gap: var(--space-12);
|
|
color: var(--black);
|
|
}
|
|
|
|
.option-card__icon {
|
|
color: var(--black);
|
|
font-size: 1.25rem;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.option-card--with-icon span {
|
|
pointer-events: none;
|
|
}
|
|
|
|
|
|
.option-card:hover {
|
|
background: var(--olive-light);
|
|
box-shadow: var(--shadow-interaction);
|
|
transform: translateY(-3px);
|
|
}
|
|
|
|
.option-grid--tomato-choices .option-card:hover,
|
|
.option-grid--tomato-choices .option-card:has(input:focus-visible),
|
|
.option-grid--tomato-choices .option-card:has(input:checked) {
|
|
background: var(--olive-light);
|
|
}
|
|
|
|
.option-grid--icon-choices .option-card--with-icon:has(input:disabled) {
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.option-grid--icon-choices .option-card--with-icon:has(input:disabled):hover {
|
|
border-color: var(--olive-light);
|
|
background: var(--butter-light);
|
|
color: var(--black);
|
|
box-shadow: none;
|
|
transform: none;
|
|
}
|
|
|
|
.option-grid--icon-choices .option-card--with-icon:has(input:disabled):hover .option-card__icon {
|
|
color: var(--blaxk);
|
|
}
|
|
|
|
.option-card input {
|
|
position: absolute;
|
|
inset: 0;
|
|
opacity: 0;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.option-card:has(input:checked) {
|
|
border: 1.5px solid var(--olive-light);
|
|
background: var(--olive-light);
|
|
}
|
|
|
|
.option-card--invalid {
|
|
border-color: var(--error) !important;
|
|
box-shadow: var(--shadow-error);
|
|
}
|
|
|
|
.guest-count-icon {
|
|
display: block;
|
|
text-align: center;
|
|
width: 100%;
|
|
color: var(--black);
|
|
font-size: 1.5rem;
|
|
line-height: 1;
|
|
}
|
|
|
|
.counter {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-16);
|
|
}
|
|
|
|
.counter-value-group {
|
|
display: grid;
|
|
justify-items: center;
|
|
row-gap: var(--space-8);
|
|
width: 6rem;
|
|
}
|
|
|
|
.counter input {
|
|
width: 100%;
|
|
height: 3rem;
|
|
padding-block: 0.75rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.review-card {
|
|
display: grid;
|
|
gap: var(--space-24);
|
|
padding: 0;
|
|
border: 0;
|
|
border-radius: 0;
|
|
background: transparent;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.review-card--success {
|
|
display: grid;
|
|
gap: var(--space-32);
|
|
padding: var(--space-16) 0 0;
|
|
border: 0;
|
|
border-radius: 0;
|
|
background: transparent;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.review-list {
|
|
display: grid;
|
|
gap: var(--space-12);
|
|
margin: 0;
|
|
}
|
|
|
|
.review-item {
|
|
display: grid;
|
|
padding: 1rem 1.1rem;
|
|
border: 1.5px solid var(--olive-light);
|
|
border-radius: 1.125rem;
|
|
background: var(--butter-light);
|
|
cursor: pointer;
|
|
transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
|
|
}
|
|
|
|
.review-item:hover,
|
|
.review-item:focus-visible {
|
|
border: 2px solid var(--olive);
|
|
box-shadow: var(--shadow-interaction);
|
|
transform: translateY(-3px);
|
|
}
|
|
|
|
.review-item dt {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.review-item dd {
|
|
margin: 0;
|
|
}
|
|
|
|
.review-gallery {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--space-8);
|
|
}
|
|
|
|
.review-gallery__thumb {
|
|
width: 4.5rem;
|
|
height: 4.5rem;
|
|
border-radius: var(--radius-sm);
|
|
object-fit: cover;
|
|
box-shadow: var(--shadow-interaction);
|
|
}
|
|
|
|
.submission-success-actions {
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
width: 100%;
|
|
}
|
|
|
|
.flow-footer {
|
|
padding-top: var(--space-80);
|
|
backdrop-filter: none;
|
|
padding-bottom: env(safe-area-inset-bottom);
|
|
}
|
|
|
|
.flow-actions {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.progress-wrap {
|
|
flex: 1;
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
align-self: center;
|
|
min-height: 2.75rem;
|
|
}
|
|
|
|
.progress-label {
|
|
position: absolute;
|
|
top: -1.1rem;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
font-size: 1rem;
|
|
font-weight: 400;
|
|
color: var(--black);
|
|
white-space: nowrap;
|
|
text-align: center;
|
|
}
|
|
|
|
.progress {
|
|
flex: 1;
|
|
width: 100%;
|
|
height: 0.45rem;
|
|
background: var(--olive-light);
|
|
border-radius: var(--radius-sm);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.progress-bar {
|
|
display: block;
|
|
width: 0;
|
|
height: 100%;
|
|
background: var(--olive);
|
|
border-radius: 999px;
|
|
transition: width 0.25s ease;
|
|
}
|
|
|
|
.flow-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-24);
|
|
width: 100%;
|
|
}
|
|
|
|
.flow-actions-right {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.error-message--callout {
|
|
position: absolute;
|
|
right: 0;
|
|
bottom: calc(100% + 1.25rem);
|
|
}
|
|
|
|
.button--ghost:hover {
|
|
background: rgba(0, 0, 0, 0.03);
|
|
}
|
|
|
|
|
|
.button--intro {
|
|
justify-self: start;
|
|
margin-top: var(--space-12);
|
|
}
|
|
|
|
.gallery-preview {
|
|
display: contents;
|
|
}
|
|
|
|
.gallery-add-button {
|
|
display: grid;
|
|
place-items: center;
|
|
align-content: center;
|
|
gap: var(--space-8);
|
|
padding: var(--space-20);
|
|
border: 1.5px solid var(--olive-light);
|
|
border-radius: var(--radius-md);
|
|
background: var(--butter-light);
|
|
font-family: var(--font-main);
|
|
cursor: pointer;
|
|
transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
|
|
}
|
|
|
|
.gallery-add-button__icon {
|
|
color: var(--black);
|
|
font-size: 1.5rem;
|
|
line-height: 1;
|
|
}
|
|
|
|
.gallery-add-button__text {
|
|
color: var(--black);
|
|
font-size: 0.95rem;
|
|
line-height: 1.15;
|
|
text-align: center;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.gallery-add-button:hover {
|
|
background: var(--olive-light);
|
|
box-shadow: var(--shadow-interaction);
|
|
transform: translateY(-3px);
|
|
}
|
|
|
|
.gallery-thumb {
|
|
position: relative;
|
|
width: 7rem;
|
|
height: 7rem;
|
|
border-radius: var(--radius-sm, 0.5rem);
|
|
overflow: hidden;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.gallery-thumb img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
display: block;
|
|
}
|
|
|
|
.gallery-thumb-remove {
|
|
position: absolute;
|
|
top: 0.2rem;
|
|
right: 0.2rem;
|
|
width: 1.4rem;
|
|
height: 1.4rem;
|
|
border: 0;
|
|
border-radius: 50%;
|
|
background: rgba(0, 0, 0, 0.6);
|
|
color: #fff;
|
|
font-size: 0.85rem;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
|
|
.site-footer {
|
|
width: min(100% - 2rem, var(--max-width));
|
|
margin: 0 auto;
|
|
padding: var(--space-32) 0 var(--space-40);
|
|
color: var(--color-muted);
|
|
text-align: center;
|
|
}
|
|
|
|
a:focus-visible,
|
|
button:focus-visible,
|
|
input:focus-visible,
|
|
textarea:focus-visible {
|
|
outline: 3px solid var(--color-focus);
|
|
outline-offset: 3px;
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
.site-nav {
|
|
flex-wrap: wrap;
|
|
padding: var(--space-16) 0;
|
|
}
|
|
|
|
.site-nav-links {
|
|
gap: var(--space-16);
|
|
}
|
|
|
|
.flow-actions,
|
|
.flow-actions-right {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.error-message--callout {
|
|
position: static;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
margin-bottom: var(--space-12);
|
|
}
|
|
|
|
.progress-wrap {
|
|
min-height: auto;
|
|
}
|
|
|
|
.progress-label {
|
|
position: static;
|
|
transform: none;
|
|
}
|
|
|
|
.error-message--callout::after {
|
|
display: none;
|
|
}
|
|
|
|
.event-flow-header {
|
|
justify-content: flex-start;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.step-layout--intro {
|
|
grid-template-columns: 1fr 1fr;
|
|
align-items: stretch;
|
|
gap: var(--space-8);
|
|
}
|
|
|
|
.field-row {
|
|
grid-template-columns: 1fr 1fr;
|
|
}
|
|
|
|
.option-grid--3 {
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
}
|
|
|
|
.option-grid--4 {
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
}
|
|
}
|