motorradig2027/motorradig/public/css/custom.css

987 lines
20 KiB
CSS

/* Put your custom styles here */
body, html {
height: 100%;
}
.bg {
/* The image used */
background-image: url("../img/motorcycle1_unsplash.jpg");
/* Full height */
height: 100%;
/* background: #3df url('../img/motorcycle1_unsplash.jpg') no-repeat fixed center; */
/* Center and scale the image nicely */
background-position: center;
background-repeat: no-repeat;
background-size: cover;
background-attachment: fixed;
}
.color-link { color:black; }
/* Mitgliederliste: kompakt und mobiltauglich */
.member-list .list-group-item {
font-size: 0.95rem;
}
.member-list .badge {
flex-shrink: 0;
white-space: nowrap;
margin-left: 0.5rem;
}
@media (max-width: 575.98px) {
.member-list .list-group-item {
font-size: 0.85rem;
}
}
/* a:visited { color:cyan !important; }
*/
/* Drop File box styling, see also: https://www.smashingmagazine.com/2018/01/drag-drop-file-uploader-vanilla-js/ */
#drop-area {
border: 2px dashed #ccc;
border-radius: 20px;
width: 480px;
font-family: sans-serif;
margin: 100px auto;
padding: 20px;
}
#drop-area.highlight {
border-color: purple;
}
p {
margin-top: 0;
}
.my-form {
margin-bottom: 10px;
}
#gallery {
margin-top: 10px;
}
#gallery img {
width: 150px;
margin-bottom: 10px;
margin-right: 10px;
vertical-align: middle;
}
.button {
display: inline-block;
padding: 10px;
background: #ccc;
cursor: pointer;
border-radius: 5px;
border: 1px solid #ccc;
}
.button:hover {
background: #ddd;
}
#fileElem {
display: none;
}
/*** Tooltip styles
Taken from https://www.w3schools.com/howto/howto_css_tooltip.asp
*/
/* Tooltip container */
.ts_tooltip {
position: relative;
display: inline-block;
/* border-bottom: 1px dotted black;*/ /* If you want dots under the hoverable text */
visibility: visible;
}
/* Tooltip text */
.ts_tooltip .ts_tooltiptext {
visibility: hidden;
width: 120px;
background-color: #555;
color: #fff;
text-align: center;
padding: 5px 0;
border-radius: 6px;
/* Position the tooltip text */
position: absolute;
z-index: 1;
bottom: 125%;
left: 50%;
margin-left: -60px;
/* Fade in tooltip */
opacity: 0;
transition: opacity 0.3s;
}
/* Tooltip arrow */
.ts_tooltip .ts_tooltiptext::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: #555 transparent transparent transparent;
}
/* Show the tooltip text when you mouse over the tooltip container */
.ts_tooltip:hover .ts_tooltiptext {
visibility: visible;
opacity: 1;
}
/*******************
Modal styles
********************/
/* The Modal (background) */
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
/* Modal Content/Box */
.modal-content {
background-color: #fefefe;
margin: 15% auto; /* 15% from the top and centered */
padding: 20px;
border: 1px solid #888;
width: 80%; /* Could be more or less, depending on screen size */
}
/* The Close Button */
.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
}
.close:hover,
.close:focus {
color: black;
text-decoration: none;
cursor: pointer;
}
/* =========================================================
Bildergalerie (Tour-Galerie)
========================================================= */
.gallery-page {
--gallery-accent: #4ea1ff;
--gallery-radius: 16px;
max-width: 1240px;
margin: 1.25rem auto 3rem;
padding: clamp(1.1rem, 3vw, 2.75rem);
color: #e8edf5;
background:
radial-gradient(1200px 500px at 15% -10%, rgba(78, 161, 255, .16), transparent 60%),
linear-gradient(160deg, rgba(13, 17, 23, .94), rgba(13, 17, 23, .84));
border: 1px solid rgba(255, 255, 255, .08);
border-radius: 24px;
box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
-webkit-backdrop-filter: blur(6px);
backdrop-filter: blur(6px);
}
.gallery-bitmap {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.gallery-back {
display: inline-flex;
align-items: center;
gap: .45rem;
margin-bottom: .9rem;
color: #a9c0dd;
font-size: .9rem;
text-decoration: none;
transition: color .2s ease;
}
.gallery-back:hover,
.gallery-back:focus {
color: #fff;
text-decoration: none;
}
.gallery-back svg { flex: 0 0 auto; }
.gallery-head {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
justify-content: space-between;
gap: 1rem;
margin-bottom: 1.75rem;
}
.gallery-eyebrow {
margin: 0 0 .35rem;
color: #8fb7e8;
font-size: .72rem;
font-weight: 700;
letter-spacing: .22em;
text-transform: uppercase;
}
.gallery-eyebrow--danger { color: #ff9d9d; }
.gallery-title {
margin: 0;
color: #fff;
font-size: clamp(1.8rem, 4vw, 2.8rem);
font-weight: 800;
letter-spacing: -.02em;
line-height: 1.1;
}
.gallery-head-meta {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: .6rem;
}
.gallery-count {
display: inline-flex;
align-items: center;
gap: .45rem;
padding: .42rem .9rem;
color: #d7e3f4;
font-size: .85rem;
white-space: nowrap;
background: rgba(255, 255, 255, .08);
border: 1px solid rgba(255, 255, 255, .12);
border-radius: 999px;
}
.gallery-count svg { opacity: .75; }
.gallery-manage-link {
display: inline-flex;
align-items: center;
padding: .42rem .9rem;
color: #ffb4b4;
font-size: .85rem;
text-decoration: none;
background: rgba(229, 72, 77, .12);
border: 1px solid rgba(229, 72, 77, .35);
border-radius: 999px;
transition: background .2s ease, color .2s ease;
}
.gallery-manage-link:hover,
.gallery-manage-link:focus {
color: #fff;
text-decoration: none;
background: rgba(229, 72, 77, .85);
}
.gallery-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
gap: 16px;
}
.gallery-item {
position: relative;
margin: 0;
aspect-ratio: 4 / 3;
overflow: hidden;
background: #0d1117;
border-radius: var(--gallery-radius);
box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
animation: gallery-in .5s both;
animation-delay: calc(var(--i, 0) * 35ms);
}
@keyframes gallery-in {
from { opacity: 0; transform: translateY(12px); }
to { opacity: 1; transform: none; }
}
.gallery-item-link {
position: relative;
display: block;
width: 100%;
height: 100%;
color: inherit;
}
.gallery-item-link:focus {
outline: 2px solid var(--gallery-accent);
outline-offset: -3px;
}
.gallery-item img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
transform: scale(1.001);
transition: transform .6s cubic-bezier(.2, .7, .3, 1), filter .4s ease;
}
.gallery-item:hover img,
.gallery-item:focus-within img {
transform: scale(1.06);
filter: brightness(.82);
}
.gallery-overlay {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
padding: 14px;
background: linear-gradient(to top, rgba(0, 0, 0, .58), rgba(0, 0, 0, .04) 60%);
opacity: 0;
transition: opacity .35s ease;
pointer-events: none;
}
.gallery-item:hover .gallery-overlay,
.gallery-item:focus-within .gallery-overlay {
opacity: 1;
}
.gallery-zoom {
display: grid;
place-items: center;
width: 46px;
height: 46px;
color: #fff;
background: rgba(255, 255, 255, .14);
border: 1px solid rgba(255, 255, 255, .55);
border-radius: 50%;
transform: translateY(8px);
transition: transform .35s ease, background .2s ease;
-webkit-backdrop-filter: blur(2px);
backdrop-filter: blur(2px);
}
.gallery-item:hover .gallery-zoom {
transform: none;
background: rgba(255, 255, 255, .24);
}
.gallery-delete {
position: absolute;
top: 10px;
right: 10px;
z-index: 2;
margin: 0;
}
.gallery-delete button {
display: grid;
place-items: center;
width: 32px;
height: 32px;
padding: 0;
color: #ffb4b4;
font-size: 19px;
line-height: 1;
cursor: pointer;
background: rgba(10, 12, 16, .68);
border: 1px solid rgba(255, 255, 255, .35);
border-radius: 50%;
transition: background .2s ease, color .2s ease, transform .2s ease;
}
.gallery-delete button:hover,
.gallery-delete button:focus {
color: #fff;
background: #e5484d;
transform: scale(1.06);
}
.gallery-badge {
position: absolute;
top: 10px;
left: 10px;
z-index: 2;
padding: .2rem .55rem;
color: #ffd7d7;
font-size: .68rem;
font-weight: 700;
letter-spacing: .08em;
text-transform: uppercase;
background: rgba(229, 72, 77, .82);
border-radius: 6px;
}
.gallery-restore {
position: absolute;
right: 10px;
bottom: 10px;
left: 10px;
z-index: 2;
margin: 0;
}
.gallery-restore button {
width: 100%;
padding: .4rem .6rem;
color: #d8ffe4;
font-size: .82rem;
font-weight: 600;
cursor: pointer;
background: rgba(18, 120, 64, .82);
border: 1px solid rgba(255, 255, 255, .3);
border-radius: 9px;
transition: background .2s ease, color .2s ease;
}
.gallery-restore button:hover,
.gallery-restore button:focus {
color: #fff;
background: #15803d;
}
.gallery-empty {
padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
color: #9fb0c7;
text-align: center;
background: rgba(255, 255, 255, .02);
border: 1px dashed rgba(255, 255, 255, .22);
border-radius: 20px;
}
.gallery-empty svg { margin-bottom: 1rem; opacity: .55; }
.gallery-empty-title {
margin: 0 0 .35rem;
color: #e8edf5;
font-size: 1.1rem;
font-weight: 700;
}
.gallery-empty-text { margin: 0; font-size: .92rem; }
.gallery-upload {
margin-top: 2.5rem;
padding: clamp(1.25rem, 3vw, 2rem);
color: #1f2937;
background: rgba(255, 255, 255, .97);
border-radius: 20px;
box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.gallery-upload h2 {
margin: 0;
color: #111827;
font-size: 1.25rem;
font-weight: 700;
}
.gallery-upload p {
margin: .3rem 0 0;
color: #6b7280;
font-size: .9rem;
}
.gallery-drop {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: .3rem;
margin: 1.25rem 0 0;
padding: 1.9rem 1rem;
color: #475569;
text-align: center;
cursor: pointer;
background: #f8fafc;
border: 2px dashed #cbd5e1;
border-radius: 16px;
transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.gallery-drop:hover,
.gallery-drop:focus-within,
.gallery-drop.is-dragover {
color: #1d4ed8;
background: #eff6ff;
border-color: #3b82f6;
}
.gallery-drop svg { opacity: .8; }
.gallery-drop-title { font-weight: 600; color: #1e293b; }
.gallery-drop-hint { font-size: .85rem; color: #64748b; }
.gallery-file-input {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.gallery-preview { margin-top: 1rem; }
.gallery-preview-count {
margin: 0 0 .55rem;
color: #334155;
font-size: .85rem;
font-weight: 600;
}
.gallery-preview-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
gap: 8px;
}
.gallery-preview-item {
position: relative;
margin: 0;
aspect-ratio: 1 / 1;
overflow: hidden;
background: #e2e8f0;
border-radius: 10px;
}
.gallery-preview-item img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
.gallery-preview-more {
display: grid;
place-items: center;
color: #475569;
font-size: .8rem;
font-weight: 600;
}
.gallery-upload-actions {
display: flex;
justify-content: flex-end;
margin-top: 1.1rem;
}
.gallery-btn {
padding: .55rem 1.4rem;
font-weight: 600;
border-radius: 10px;
}
@media (max-width: 575.98px) {
.gallery-page {
margin: .5rem .35rem 2rem;
padding: 1rem;
border-radius: 18px;
}
.gallery-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}
.gallery-head { margin-bottom: 1.25rem; }
.gallery-head-meta { gap: .4rem; }
.gallery-upload { margin-top: 1.5rem; }
}
@media (hover: none) {
.gallery-overlay {
opacity: .9;
background: linear-gradient(to top, rgba(0, 0, 0, .35), transparent 55%);
}
.gallery-zoom {
width: 36px;
height: 36px;
transform: none;
opacity: .9;
}
}
@media (prefers-reduced-motion: reduce) {
.gallery-item,
.gallery-item img,
.gallery-overlay,
.gallery-zoom {
animation: none !important;
transition: none !important;
}
}
/* Papierkorb-Variante der Galerie */
.gallery-page--deleted {
background:
radial-gradient(1200px 500px at 15% -10%, rgba(229, 72, 77, .16), transparent 60%),
linear-gradient(160deg, rgba(13, 17, 23, .94), rgba(13, 17, 23, .84));
}
.gallery-page--deleted .gallery-item img {
filter: grayscale(.35) brightness(.85);
}
.gallery-page--deleted .gallery-item:hover img,
.gallery-page--deleted .gallery-item:focus-within img {
filter: none;
}
/* Upload-Button in der Galerie */
.gallery-btn,
.gallery-btn:focus {
color: #fff;
background-color: #2f6fdb;
border-color: #2f6fdb;
box-shadow: 0 8px 20px rgba(47, 111, 219, .35);
}
.gallery-btn:hover {
color: #fff;
background-color: #1d5bc4;
border-color: #1d5bc4;
}
/* Alte Touren: Jahres-Pillen und Gruppierung */
.tour-years {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: .5rem;
max-width: 760px;
margin: 1.25rem auto 2rem;
}
.tour-year-pill {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 4.35rem;
padding: .45rem 1.15rem;
border: 1px solid rgba(255, 255, 255, .35);
border-radius: 999px;
background: rgba(13, 17, 23, .55);
color: #fff;
font-weight: 600;
line-height: 1.2;
text-decoration: none;
transition: background-color .18s ease, border-color .18s ease,
color .18s ease, transform .18s ease;
}
.tour-year-pill:hover,
.tour-year-pill:focus {
border-color: #4ea1ff;
background: rgba(78, 161, 255, .18);
color: #fff;
text-decoration: none;
transform: translateY(-1px);
}
.tour-year-pill.is-active {
border-color: #4ea1ff;
background: #4ea1ff;
color: #071a30;
box-shadow: 0 8px 20px rgba(78, 161, 255, .35);
}
.tour-years-empty {
margin-top: 2rem;
}
.tour-year-group {
max-width: 760px;
margin: 0 auto 2rem;
}
.tour-year-heading {
margin: 0 0 .85rem;
color: #fff;
font-size: 1.35rem;
font-weight: 600;
letter-spacing: .02em;
}
.tour-list {
text-align: left;
}
.tour-list-item {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: .65rem 1rem;
background: rgba(13, 17, 23, .72);
border-color: rgba(255, 255, 255, .14);
color: #fff;
}
.tour-list-link {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: .35rem .6rem;
color: #fff;
text-decoration: none;
}
.tour-list-link:hover,
.tour-list-link:focus {
color: #9cc9ff;
text-decoration: none;
}
.tour-list-title {
font-weight: 600;
}
.tour-list-meta {
color: rgba(255, 255, 255, .72);
font-variant-numeric: tabular-nums;
}
.tour-list-actions {
display: inline-flex;
flex-wrap: wrap;
align-items: center;
gap: .7rem;
}
.tour-gallery-link {
color: #9cc9ff;
text-decoration: none;
}
.tour-gallery-link:hover,
.tour-gallery-link:focus {
color: #fff;
text-decoration: underline;
}
.tour-list-actions .badge {
flex-shrink: 0;
}
@media (max-width: 575.98px) {
.tour-year-pill {
min-width: 3.7rem;
padding: .4rem .9rem;
}
.tour-list-item {
align-items: flex-start;
flex-direction: column;
}
}
@media (prefers-reduced-motion: reduce) {
.tour-year-pill {
transition: none;
}
}
/* Tour-Bilder: mehrere Bilder pro Tour */
.tour-media-grid {
--gallery-accent: #4ea1ff;
--gallery-radius: 14px;
margin-top: .5rem;
}
.tour-media-manager {
margin-top: 2rem;
padding-top: 1.5rem;
border-top: 1px solid #e2e8f0;
}
.tour-media-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 1rem;
margin-bottom: 1rem;
}
.tour-media-head h4 {
margin: 0;
color: #111827;
font-size: 1.15rem;
font-weight: 700;
}
.tour-media-hint {
margin: .25rem 0 0;
color: #6b7280;
font-size: .85rem;
}
.tour-media-count {
flex-shrink: 0;
padding: .2rem .6rem;
color: #1d4ed8;
font-size: .78rem;
font-weight: 700;
background: #eff6ff;
border-radius: 999px;
}
.tour-media-empty {
padding: 1.4rem;
color: #6b7280;
text-align: center;
background: #f8fafc;
border: 1px dashed #cbd5e1;
border-radius: 14px;
}
.tour-media-upload {
margin-top: 1.25rem;
}
@media (max-width: 575.98px) {
.tour-media-head {
flex-direction: column;
}
}
/* Datepicker-Popup in Tour-Formularen: klar abgesetzt und gut lesbar */
body .datepicker-dropdown {
z-index: 2050;
padding-top: 8px;
}
body .datepicker-dropdown.datepicker-orient-top {
padding-top: 0;
padding-bottom: 8px;
}
body .datepicker-dropdown .datepicker-picker {
overflow: hidden;
background: #fff;
border: 1px solid rgba(15, 23, 42, .14);
border-radius: 14px;
box-shadow: 0 18px 45px rgba(15, 23, 42, .28), 0 4px 12px rgba(15, 23, 42, .12);
}
body .datepicker-header .datepicker-controls {
padding: 8px 8px 0;
}
body .datepicker-controls .button,
body .datepicker-controls .btn {
color: #1f2937;
font-weight: 600;
background: #f8fafc;
border-color: #e2e8f0;
border-radius: 8px;
}
body .datepicker-controls .button:hover,
body .datepicker-controls .button:focus,
body .datepicker-controls .btn:hover,
body .datepicker-controls .btn:focus {
color: #1d4ed8;
background: #eff6ff;
border-color: #bfdbfe;
}
body .datepicker-view .dow {
color: #64748b;
font-size: .72rem;
font-weight: 700;
letter-spacing: .04em;
text-transform: uppercase;
}
body .datepicker-cell {
color: #334155;
font-weight: 500;
border-radius: 50%;
}
body .datepicker-view .datepicker-cell {
border-radius: 50%;
}
body .datepicker-cell:not(.disabled):hover {
color: #1d4ed8;
background: #eff6ff;
}
body .datepicker-cell.focused:not(.selected) {
background: #dbeafe;
}
body .datepicker-cell.selected,
body .datepicker-cell.selected:hover {
color: #fff;
background: #2f6fdb;
box-shadow: 0 4px 10px rgba(47, 111, 219, .28);
}
body .datepicker-cell.today:not(.selected) {
color: #1d4ed8;
font-weight: 700;
background: #dbeafe;
}
body .datepicker-cell.prev:not(.disabled),
body .datepicker-cell.next:not(.disabled) {
color: #94a3b8;
}
body .datepicker-title {
color: #111827;
background: #f8fafc;
box-shadow: inset 0 -1px 0 #e2e8f0;
}
body .datepicker-footer {
background: #f8fafc;
}
/* Unterschriftenfeld für den Mitgliedsantrag */
.signature-pad {
padding: .6rem;
background: #f8fafc;
border: 1px solid #ced4da;
border-radius: .5rem;
}
.signature-pad canvas {
display: block;
width: 100%;
height: 160px;
background: #fff;
border: 1px dashed #94a3b8;
border-radius: .35rem;
cursor: crosshair;
touch-action: none;
}
.signature-pad-actions {
display: flex;
align-items: center;
justify-content: space-between;
gap: .75rem;
margin-top: .45rem;
}
.signature-pad-hint {
color: #64748b;
font-size: .78rem;
}
/* Unterschriften in der Admin-Antragsansicht */
.signature-image {
display: block;
width: 100%;
max-width: 620px;
height: auto;
padding: .4rem;
background: #fff;
border: 1px solid #dee2e6;
border-radius: .5rem;
}