larpaso-website/src/styles/global.css
Lara 58fc72b283 Less petrol on phones; logo-only share preview
On screens below 700px the offer band turns light (sand) and the process
section uses sand instead of sage, so phones show about half as much
petrol; desktop is unchanged. The share preview now shows only the
larpaso pill, small enough to survive a centred square crop, under a new
file name so link previews refresh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 13:11:05 +02:00

475 lines
12 KiB
CSS

/* ==========================================================================
Design Tokens
Zentrale Stellschrauben fuer Farben, Typografie und Abstaende.
Beim spaeteren Branding reicht es, die Werte hier anzupassen.
========================================================================== */
:root {
/* Farben */
--color-bg: #17130f;
--color-bg-alt: #1c1712;
--color-surface: #211b15;
--color-text: #f2ead9;
--color-text-muted: #a89a85;
--color-border: rgba(201, 168, 118, 0.2);
--color-primary: #c9a876;
--color-primary-dark: #b08f5c;
--color-primary-contrast: #1a1511;
--color-accent: #c9a876;
--color-accent-dark: #b08f5c;
--color-success: #7a9a6b;
--color-danger: #c97b64;
--color-flag: #c97b64;
--color-flag-bg: rgba(201, 123, 100, 0.1);
--color-google-blue: #8fb2e8;
/* Typografie */
--font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
--font-sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
--font-size-sm: 0.875rem;
--font-size-base: 1rem;
--font-size-md: 1.125rem;
--font-size-lg: 1.375rem;
--font-size-xl: 1.75rem;
--font-size-2xl: 2.25rem;
--font-size-3xl: 3rem;
--line-height-tight: 1.2;
--line-height-normal: 1.6;
--font-weight-regular: 400;
--font-weight-medium: 500;
--font-weight-semibold: 600;
--font-weight-bold: 700;
/* Abstaende (4px-Skala) */
--space-1: 0.25rem;
--space-2: 0.5rem;
--space-3: 0.75rem;
--space-4: 1rem;
--space-5: 1.5rem;
--space-6: 2rem;
--space-7: 3rem;
--space-8: 4rem;
--space-9: 6rem;
/* Layout */
--container-width: 72rem;
--container-padding: var(--space-5);
/* Sonstiges */
--radius-sm: 6px;
--radius-md: 12px;
--radius-lg: 20px;
--shadow-sm: 0 1px 2px rgba(20, 20, 30, 0.06);
--shadow-md: 0 8px 24px rgba(20, 20, 30, 0.08);
--transition-fast: 150ms ease;
--transition-base: 250ms ease;
}
/* ==========================================================================
Reset & Basis
========================================================================== */
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
margin: 0;
background: var(--color-bg);
color: var(--color-text);
font-family: var(--font-sans);
font-size: var(--font-size-base);
line-height: var(--line-height-normal);
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
img,
svg {
display: block;
max-width: 100%;
}
h1, h2, h3, h4 {
margin: 0 0 var(--space-4) 0;
line-height: var(--line-height-tight);
font-weight: var(--font-weight-medium);
letter-spacing: -0.015em;
font-family: var(--font-serif);
color: var(--color-text);
}
h1 { font-size: var(--font-size-3xl); }
/* Skala mit Loch: Fließtext bleibt klein, Abschnittstitel werden deutlich größer */
h2 {
font-size: clamp(2.1rem, 4.2vw, 3.5rem);
line-height: 1.08;
letter-spacing: -0.025em;
max-width: 20ch;
}
h3 { font-size: var(--font-size-lg); }
h4 { font-size: var(--font-size-md); }
p {
margin: 0 0 var(--space-4) 0;
color: var(--color-text-muted);
}
a {
color: var(--color-primary);
text-decoration: underline;
text-underline-offset: 0.15em;
}
a:hover {
color: var(--color-primary-dark);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
outline: 2px solid var(--color-primary);
outline-offset: 2px;
border-radius: var(--radius-sm);
}
ul {
margin: 0;
padding: 0;
}
label {
display: block;
font-weight: var(--font-weight-medium);
margin-bottom: var(--space-2);
}
input,
textarea {
font-family: inherit;
font-size: var(--font-size-base);
}
.skip-link {
position: absolute;
top: 0;
left: var(--space-4);
transform: translateY(-150%);
z-index: 100;
background: var(--color-primary);
color: var(--color-primary-contrast);
padding: var(--space-3) var(--space-5);
border-radius: 0 0 var(--radius-sm) var(--radius-sm);
font-weight: var(--font-weight-semibold);
text-decoration: none;
transition: transform var(--transition-fast);
}
.skip-link:focus {
transform: translateY(0);
}
/* ==========================================================================
Layout-Hilfsklassen
========================================================================== */
.container {
width: 100%;
max-width: var(--container-width);
margin-inline: auto;
padding-inline: var(--container-padding);
}
.section {
padding-block: var(--space-9);
}
.section-tight {
padding-block: var(--space-7);
}
/* Dunkles Band in Petrol (Logofarbe): Angebot und Kontakt.
Die Farben werden hier als Variablen neu gesetzt, damit Text, Karten,
Buttons und Formularfelder darin automatisch mitdrehen - keine
Einzelregeln, die gegen Bauteilklassen verlieren koennten.
Kontraste auf #1F3530: Text 11,5 · leise 8,2 · Rosé 7,6 · Rand 3,4.
Oberkante als Welle aus der Logoform: per Maske ausgeschnitten, darüber
scheint der Papiergrund durch. */
.section-dark {
--color-bg: #1f3530;
--color-bg-alt: #2a443d;
--color-surface: #2a443d;
--color-text: #f3f0e8;
--color-text-muted: #c5d0c9;
--color-border: #6c877e;
--color-primary: #d9c0b4;
--color-primary-dark: #ead8cf;
--color-primary-contrast: #1f3530;
--color-accent: #d9c0b4;
--color-accent-dark: #ead8cf;
--color-flag: #f0a08a;
--color-flag-bg: rgba(240, 160, 138, 0.14);
--welle: 56px;
background: var(--color-bg);
color: var(--color-text);
padding-block: calc(var(--space-9) + var(--welle) * 0.5) var(--space-9);
-webkit-mask:
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath d='M0 34 C 240 2 520 52 830 24 C 1070 4 1270 8 1440 30 V56 H0 Z'/%3E%3C/svg%3E") top / 100% var(--welle) no-repeat,
linear-gradient(#000 0 0) 0 calc(var(--welle) - 1px) / 100% 100% no-repeat;
mask:
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath d='M0 34 C 240 2 520 52 830 24 C 1070 4 1270 8 1440 30 V56 H0 Z'/%3E%3C/svg%3E") top / 100% var(--welle) no-repeat,
linear-gradient(#000 0 0) 0 calc(var(--welle) - 1px) / 100% 100% no-repeat;
}
.section-dark h1,
.section-dark h2,
.section-dark h3 {
color: #fbf8f1;
}
.section-dark ::placeholder {
color: #9fb1a8;
opacity: 1;
}
/* Am Handy sieht man immer nur einen Abschnitt, lange Petrol-Flächen füllen
dort ganze Bildschirme. Bänder mit .am-handy-hell werden darum unter 700 px
hell: die Variablen erben einfach wieder die Werte von außen. */
@media (max-width: 700px) {
.section-dark.am-handy-hell {
--color-bg: inherit;
--color-bg-alt: inherit;
--color-surface: inherit;
--color-text: inherit;
--color-text-muted: inherit;
--color-border: inherit;
--color-primary: inherit;
--color-primary-dark: inherit;
--color-primary-contrast: inherit;
--color-accent: inherit;
--color-accent-dark: inherit;
--color-flag: inherit;
--color-flag-bg: inherit;
background: #f1efe3;
padding-block: var(--space-8);
-webkit-mask: none;
mask: none;
}
.section-dark.am-handy-hell h1,
.section-dark.am-handy-hell h2,
.section-dark.am-handy-hell h3 {
color: var(--color-text);
}
.tint-salbei.am-handy-sand {
background: #f1efe3;
}
}
/* Getönte Abschnitte für Rhythmus: Salbei, Sand, Rosé aus dem Logoverlauf */
.tint-salbei { background: #e9efea; }
.tint-sand { background: #f1efe3; }
.tint-rose { background: #f5eae4; }
.eyebrow {
display: inline-block;
color: var(--color-text-muted);
font-weight: var(--font-weight-medium);
font-size: var(--font-size-sm);
letter-spacing: 0.01em;
margin-bottom: var(--space-4);
}
/* Abschnittskennung: Ziffer im Fleck aus dem Logo + Zeile daneben */
.eyebrow-rand {
display: flex;
align-items: center;
gap: var(--space-3);
}
.eyebrow-num {
position: relative;
display: grid;
place-items: center;
flex: none;
width: 2.6em;
height: 2.3em;
font-family: var(--font-serif);
font-style: italic;
font-size: 1.05rem;
font-weight: 500;
color: #2c4a42;
isolation: isolate;
}
.eyebrow-num::before {
content: '';
position: absolute;
inset: 0;
z-index: -1;
background: url('/form/fleck.svg') center / 100% 100% no-repeat;
}
/* Randspalten-Raster: Kennung links in der Marginalie, Inhalt rechts.
Kinder landen standardmäßig in Spalte 2; wer volle Breite braucht,
setzt grid-column: 1 / -1. */
.split {
display: grid;
grid-template-columns: minmax(8rem, 13rem) minmax(0, 1fr);
column-gap: clamp(2rem, 5vw, 5rem);
}
.split > * {
grid-column: 2;
}
.split > .eyebrow-rand {
grid-column: 1;
grid-row: 1 / span 3;
align-self: start;
flex-direction: column;
align-items: flex-start;
gap: var(--space-3);
max-width: 12rem;
}
.split > .eyebrow-rand .eyebrow-num {
font-size: 2.6rem;
}
@media (max-width: 900px) {
.split {
grid-template-columns: minmax(0, 1fr);
}
.split > *,
.split > .eyebrow-rand {
grid-column: 1;
grid-row: auto;
}
.split > .eyebrow-rand {
flex-direction: row;
align-items: center;
max-width: none;
}
.split > .eyebrow-rand .eyebrow-num {
font-size: 1.4rem;
}
.section-dark {
--welle: 32px;
}
}
.text-lead {
font-size: var(--font-size-md);
color: var(--color-text-muted);
max-width: 40rem;
}
.grid {
display: grid;
gap: var(--space-6);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) {
.grid-2,
.grid-3 {
grid-template-columns: 1fr;
}
}
/* ==========================================================================
Komponenten-Basisklassen
========================================================================== */
.card {
background: var(--color-surface);
border: 1px solid var(--color-border);
border-radius: var(--radius-lg);
padding: var(--space-6);
box-shadow: var(--shadow-sm);
}
.btn {
display: inline-flex;
align-items: center;
gap: var(--space-2);
border-radius: 999px;
padding: 0.8rem 1.6rem;
font-weight: var(--font-weight-semibold);
font-size: var(--font-size-base);
border: 1px solid transparent;
cursor: pointer;
transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
text-decoration: none;
}
.btn-primary {
background: var(--color-primary);
color: var(--color-primary-contrast);
}
.btn-primary:hover {
background: var(--color-primary-dark);
text-decoration: none;
}
.btn-secondary {
background: transparent;
color: var(--color-primary);
border: 1.5px solid var(--color-primary);
}
.btn-secondary:hover {
background: var(--color-primary);
color: var(--color-primary-contrast);
text-decoration: none;
}
/* Platzhalter fuer noch fehlende, reale Angaben (Telefonnummer, Preise, Bios etc.) */
.placeholder {
color: var(--color-flag);
border-bottom: 1px dashed var(--color-flag);
font-style: normal;
}
/* ==========================================================================
Bewegungsreduktion
Respektiert die Systemeinstellung fuer Nutzer:innen mit vestibulaeren
Beeintraechtigungen (WCAG 2.3.3).
========================================================================== */
@media (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}