Files
LarsandClaude Opus 5.5 4c9e6992f4
Deploy FeWo mit PipelineManager / deploy (push) Successful in 3m45s
Design Stufe 2: Tipp-Karten zum Umdrehen, Sommer/Winter-Vergleich, Galerie mit weichem Vergroessern
- Baustein "Ausflugstipps" (tips): Karten mit Foto vorne, Tipp/Weg/beste Zeit hinten; Seebad als Ansichtskarten
- Baustein "Sommer/Winter-Vergleich" (compare): Trennlinie ziehen, Tastatur ueber Range-Input, einmaliger Hinweis-Schwenk
- Lightbox: Foto waechst aus der Vorschau, Blaettern (Pfeile, Tasten, Wischen), Zaehler, Bildunterschrift; partials/lightbox
- Bewegung reduzieren: Ueberblenden statt Drehen, kein Schwenk, keine Zoom-Animation

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 21:05:16 +01:00

251 lines
6.4 KiB
CSS
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* Reusable styles of "Ostsee-Licht" (fonts, token mapping, base classes) – imported by theme.css and by child themes. */
/* Self-hosted fonts (no request to Google – GDPR). */
@import '@fontsource/cormorant-garamond/500.css';
@import '@fontsource/cormorant-garamond/500-italic.css';
@import '@fontsource/cormorant-garamond/600.css';
@import '@fontsource/figtree/400.css';
@import '@fontsource/figtree/500.css';
@import '@fontsource/figtree/600.css';
/*
* Colour tokens come from theme.json and can be changed per site and per appearance; the layout prints them
* as CSS variables. Tailwind classes such as bg-accent or text-muted refer to these variables.
*/
@theme inline {
--color-ground: var(--ground);
--color-surface: var(--surface);
--color-ink: var(--ink);
--color-muted: var(--muted);
--color-line: var(--line);
--color-accent: var(--accent);
--color-accent-ink: var(--accent-ink);
--color-band: var(--band);
--color-band-ink: var(--band-ink);
--color-band-muted: var(--band-muted);
--color-banner: var(--banner);
--color-banner-ink: var(--banner-ink);
--font-display: 'Cormorant Garamond', Georgia, serif;
--font-sans: 'Figtree', ui-sans-serif, system-ui, sans-serif;
}
/* Brand graphics (public/brand, inlined via partials/brand): navy follows the text colour, so the logo stays
visible in dark appearances; teal, light wave and sun keep the brand colours unless a theme overrides them. */
:root {
--brand-navy: var(--ink);
--brand-teal: #0286a2;
--brand-wave: #6dbfc2;
--brand-sun: #f2c27a;
}
@layer base {
html {
scroll-behavior: smooth;
}
body {
background: var(--ground);
color: var(--ink);
transition: background-color 0.4s, color 0.4s;
}
input:not([type='checkbox']):not([type='radio']),
select,
textarea {
border-width: 1px;
border-color: var(--line);
padding: 0.6rem 0.8rem;
background-color: var(--surface);
color: var(--ink);
}
input[type='checkbox'] {
width: 1rem;
height: 1rem;
accent-color: var(--accent);
}
:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
}
@layer components {
.eyebrow {
@apply mb-3 text-xs font-semibold tracking-[0.24em] text-accent uppercase;
}
.heading-display {
@apply font-display text-4xl leading-[1.08] font-medium sm:text-[2.875rem];
}
.btn-primary {
@apply inline-flex min-h-11 items-center justify-center rounded-full bg-ink px-6 py-3 text-[15px] font-semibold text-ground transition hover:opacity-90;
}
.btn-accent {
@apply inline-flex min-h-11 items-center justify-center rounded-full bg-accent px-6 py-3 text-[15px] font-semibold text-accent-ink transition hover:opacity-90;
}
.prose-theme {
@apply text-muted;
}
.prose-theme p {
@apply mb-4;
}
.prose-theme ul,
.prose-theme ol {
@apply mb-4 ml-5 list-outside;
}
.prose-theme ul {
@apply list-disc;
}
.prose-theme ol {
@apply list-decimal;
}
.prose-theme a {
@apply text-accent underline;
}
.prose-theme h2,
.prose-theme h3 {
@apply mt-6 mb-2 font-display text-2xl text-ink;
}
}
/*
* Cards to turn over (sections/tips). Without JavaScript both faces stand one below the other; theme.js sets
* data-flip="ready", stacks the faces in one grid cell (the card takes the height of the taller face) and toggles
* data-flipped. With "reduce motion" the faces cross-fade instead of turning.
*/
[data-flip='ready'] {
perspective: 1800px;
}
[data-flip='ready'] > [data-flip-inner] {
display: grid;
height: 100%;
transform-style: preserve-3d;
transition: transform 0.8s cubic-bezier(0.3, 0.7, 0.2, 1);
}
[data-flip='ready'] [data-flip-face] {
grid-area: 1 / 1;
backface-visibility: hidden;
-webkit-backface-visibility: hidden;
}
[data-flip='ready'] [data-flip-face='back'] {
transform: rotateY(180deg);
}
[data-flip='ready'][data-flipped] > [data-flip-inner] {
transform: rotateY(180deg);
}
@media (prefers-reduced-motion: reduce) {
[data-flip='ready'] > [data-flip-inner],
[data-flip='ready'][data-flipped] > [data-flip-inner],
[data-flip='ready'] [data-flip-face='back'] {
transform: none;
}
[data-flip='ready'] [data-flip-face] {
transition: opacity 0.3s;
}
[data-flip='ready'] [data-flip-face='back'],
[data-flip='ready'][data-flipped] [data-flip-face='front'] {
opacity: 0;
}
[data-flip='ready'][data-flipped] [data-flip-face='back'] {
opacity: 1;
}
}
/*
* Two photos with a dividing line (sections/compare): --split is the share of the first photo. theme.js moves it by
* dragging or tapping; the visually hidden range input does the same by keyboard and screen reader.
*/
[data-compare] {
--split: 50%;
position: relative;
touch-action: pan-y;
user-select: none;
}
[data-compare] img {
pointer-events: none;
}
[data-compare-first] {
position: absolute;
inset: 0;
clip-path: inset(0 calc(100% - var(--split)) 0 0);
}
[data-compare-handle] {
position: absolute;
top: 0;
bottom: 0;
left: var(--split);
translate: -50% 0;
}
[data-compare]:has(input:focus-visible) [data-compare-handle] {
outline: 3px solid var(--accent);
outline-offset: 3px;
}
/* Lightbox (layout dialog#lightbox): the backdrop fades; the photo's way out of the gallery is animated in theme.js. */
@media (prefers-reduced-motion: no-preference) {
#lightbox[open]::backdrop {
animation: lightbox-fade 0.35s ease-out;
}
@keyframes lightbox-fade {
from {
opacity: 0;
}
}
}
/* Gentle reveal while scrolling – only where supported and only without "reduce motion". */
@media (prefers-reduced-motion: no-preference) {
@supports (animation-timeline: view()) {
.reveal {
animation: reveal linear both;
animation-timeline: view();
animation-range: entry 0% entry 35%;
}
@keyframes reveal {
from {
opacity: 0;
transform: translateY(24px);
}
}
}
}
@media (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
*,
*::before,
*::after {
transition-duration: 0.01ms !important;
animation-duration: 0.01ms !important;
}
}