The original prototype broke up the light page with two dark "Nacht" bands (#1E1A14): the offer right after the hero, and the contact at the end. Restored as .section-dark, which redefines the color variables instead of overriding single rules, so cards, buttons, form fields and placeholders all turn with it. Measured in the rendered DOM: 42 text elements, 0 WCAG AA failures; form field borders 3.41:1. Also fixes the missing space in "der Datenschutzerklärung" below the contact form (Astro dropped the line break before the link). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
337 lines
7.8 KiB
CSS
337 lines
7.8 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: 'Playfair Display', Georgia, 'Times New Roman', serif;
|
|
--font-sans: 'Inter', 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-bold);
|
|
letter-spacing: -0.01em;
|
|
font-family: var(--font-serif);
|
|
}
|
|
|
|
h1 { font-size: var(--font-size-3xl); }
|
|
h2 { font-size: var(--font-size-2xl); }
|
|
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 (aus dem Prototyp "Nacht"): 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 #1E1A14: Text 15,0 · leise 9,9 · Gold 9,1 · Rand 3,8. */
|
|
.section-dark {
|
|
--color-bg: #1e1a14;
|
|
--color-bg-alt: #2a241b;
|
|
--color-surface: #2a241b;
|
|
--color-text: #f5eee2;
|
|
--color-text-muted: #cfc2ac;
|
|
--color-border: #82755f;
|
|
--color-primary: #d8b87e;
|
|
--color-primary-dark: #e8d2a6;
|
|
--color-primary-contrast: #241c0b;
|
|
--color-accent: #d8b87e;
|
|
--color-accent-dark: #e8d2a6;
|
|
--color-flag: #e0836a;
|
|
--color-flag-bg: rgba(224, 131, 106, 0.14);
|
|
background: var(--color-bg);
|
|
color: var(--color-text);
|
|
padding-block: var(--space-9);
|
|
}
|
|
|
|
.section-dark h1,
|
|
.section-dark h2,
|
|
.section-dark h3 {
|
|
color: #fffaf2;
|
|
}
|
|
|
|
.section-dark ::placeholder {
|
|
color: #9a8f7b;
|
|
opacity: 1;
|
|
}
|
|
|
|
.eyebrow {
|
|
display: inline-block;
|
|
color: var(--color-primary);
|
|
font-weight: var(--font-weight-semibold);
|
|
font-size: var(--font-size-sm);
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
margin-bottom: var(--space-3);
|
|
}
|
|
|
|
.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-md);
|
|
padding: var(--space-6);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
border-radius: var(--radius-sm);
|
|
padding: var(--space-3) var(--space-5);
|
|
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-text);
|
|
border-color: var(--color-border);
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
border-color: var(--color-primary);
|
|
color: var(--color-primary);
|
|
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;
|
|
}
|
|
}
|