Compare commits
4 Commits
e43891ff3f
...
b41b3cbc3e
| Author | SHA1 | Date |
|---|---|---|
|
|
b41b3cbc3e | |
|
|
8233ed5dcb | |
|
|
d6fe2f9288 | |
|
|
8ead245453 |
Binary file not shown.
|
After Width: | Height: | Size: 131 KiB |
|
|
@ -0,0 +1,95 @@
|
|||
/* =========================================================
|
||||
base.css – gemeinsame Basis für alle Features
|
||||
Änderungen hier nur über eigenen Branch (betrifft alle!)
|
||||
========================================================= */
|
||||
|
||||
/* ---------- Design-Tokens laut tri-hub Design-DNA ---------- */
|
||||
:root {
|
||||
/* Hintergrund: tiefes Dunkelblau / Schwarz */
|
||||
--th-bg: #0d0d1a;
|
||||
--th-bg-elevated: #1a1a2e;
|
||||
|
||||
/* Akzent: Teal / Emerald Green – CTAs, Icons, Highlights */
|
||||
--th-accent: #10b981;
|
||||
|
||||
/* Text: Weiß / Hellgrau */
|
||||
--th-text: #ffffff;
|
||||
--th-text-soft: #f8fafc;
|
||||
--th-text-muted: #94a3b8;
|
||||
|
||||
/* Typografie: Serif Display + Sans-Serif Body */
|
||||
--th-font-display: "Playfair Display", Georgia, serif;
|
||||
--th-font-body: "Inter", system-ui, sans-serif;
|
||||
|
||||
/* Lesbarkeit Zielgruppe 50+ (Definition of Done) */
|
||||
--th-font-size-body: 1.125rem; /* 18px */
|
||||
--th-line-height: 1.65;
|
||||
|
||||
/* Abstände / Radien für alle Sektionen */
|
||||
--th-section-space: 5rem;
|
||||
--th-radius: 1.4rem;
|
||||
}
|
||||
|
||||
/* ---------- Grundlayout ---------- */
|
||||
body {
|
||||
background: var(--th-bg);
|
||||
color: var(--th-text-soft);
|
||||
font-family: var(--th-font-body);
|
||||
font-size: var(--th-font-size-body);
|
||||
line-height: var(--th-line-height);
|
||||
}
|
||||
|
||||
h1, h2, h3 {
|
||||
font-family: var(--th-font-display);
|
||||
color: var(--th-text);
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
main > section {
|
||||
padding-block: var(--th-section-space);
|
||||
}
|
||||
|
||||
/* Anker nicht unter dem Header verstecken */
|
||||
section[id] {
|
||||
scroll-margin-top: 5rem;
|
||||
}
|
||||
|
||||
/* ---------- Header ---------- */
|
||||
.site-header {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 40;
|
||||
background: rgb(13 13 26 / 0.85);
|
||||
backdrop-filter: blur(12px);
|
||||
border-bottom: 1px solid rgb(255 255 255 / 0.08);
|
||||
}
|
||||
|
||||
.site-header .container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding-block: 1rem;
|
||||
}
|
||||
|
||||
.site-logo {
|
||||
font-family: var(--th-font-display);
|
||||
font-size: 1.5rem;
|
||||
font-weight: 700;
|
||||
color: var(--th-text);
|
||||
}
|
||||
|
||||
/* ---------- Barrierefreiheit ---------- */
|
||||
a:focus-visible,
|
||||
button:focus-visible {
|
||||
outline: 3px solid var(--th-accent);
|
||||
outline-offset: 4px;
|
||||
border-radius: 0.5rem;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
html { scroll-behavior: auto; }
|
||||
*, *::before, *::after {
|
||||
transition-duration: 0.01ms !important;
|
||||
animation-duration: 0.01ms !important;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
/* =========================================================
|
||||
US01-03: Ablauf sehen (+ Kontaktangaben)
|
||||
Branch: feature/US01-03-ablauf
|
||||
Nur Selektoren unter #ablauf verwenden.
|
||||
Farben/Schriften über var(--th-...) aus base.css.
|
||||
========================================================= */
|
||||
|
||||
#ablauf {
|
||||
}
|
||||
|
|
@ -0,0 +1,264 @@
|
|||
/* =========================================================
|
||||
US01-01: Angebot und Zielgruppe sofort sehen (Hero)
|
||||
Branch: feature_US01-01
|
||||
Nur Selektoren unter #hero verwenden.
|
||||
Farben/Schriften über var(--th-...) aus base.css.
|
||||
Vorlage: Prototyp (Hero-Bereich)
|
||||
========================================================= */
|
||||
|
||||
#hero {
|
||||
--hero-mint: #56d9b1; /* helle Akzentvariante aus dem Prototyp */
|
||||
--hero-line: rgb(255 255 255 / 0.11);
|
||||
padding-block: clamp(1.5rem, 4svh, 3.5rem); /* überschreibt Sektionsabstand aus base.css */
|
||||
min-height: calc(100svh - 4.5rem); /* ohne Scrollen sichtbar (minus Header) */
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
#hero .hero-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1.08fr 1fr;
|
||||
gap: 4rem;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* ---------- Text ---------- */
|
||||
#hero h1 {
|
||||
margin: 0;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
#hero .hero-kicker {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
font-family: var(--th-font-body);
|
||||
font-size: 1rem;
|
||||
font-weight: 650;
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
color: var(--hero-mint);
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
#hero .hero-line {
|
||||
flex: 0 0 1.5rem;
|
||||
height: 1px;
|
||||
background: var(--th-accent);
|
||||
}
|
||||
|
||||
#hero .hero-headline {
|
||||
display: block;
|
||||
margin-top: 1.5rem;
|
||||
font-family: var(--th-font-display);
|
||||
font-size: clamp(2.6rem, 4.8vw, 4.5rem);
|
||||
line-height: 1.1;
|
||||
letter-spacing: -0.03em;
|
||||
color: var(--th-text);
|
||||
}
|
||||
|
||||
#hero .hero-headline em {
|
||||
color: var(--hero-mint);
|
||||
}
|
||||
|
||||
#hero .hero-intro {
|
||||
margin-top: 1.5rem;
|
||||
max-width: 32rem;
|
||||
font-size: 1.1875rem;
|
||||
line-height: 1.75;
|
||||
color: var(--th-text-muted);
|
||||
}
|
||||
|
||||
/* ---------- Aktionen ---------- */
|
||||
#hero .hero-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 1.75rem;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
#hero .hero-button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 1.25rem;
|
||||
min-height: 3.25rem; /* große Klickfläche */
|
||||
padding: 0.9rem 1.6rem;
|
||||
border-radius: 7px;
|
||||
background: var(--th-accent);
|
||||
color: #071b16;
|
||||
font-size: 1.125rem;
|
||||
font-weight: 650;
|
||||
transition: background 0.2s, transform 0.2s;
|
||||
}
|
||||
|
||||
#hero .hero-button:hover {
|
||||
background: #37c99b;
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
#hero .hero-link {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
min-height: 2.75rem;
|
||||
font-size: 1.125rem;
|
||||
font-weight: 600;
|
||||
color: var(--th-text-soft);
|
||||
}
|
||||
|
||||
#hero .hero-link:hover {
|
||||
color: var(--hero-mint);
|
||||
}
|
||||
|
||||
/* ---------- Bild ---------- */
|
||||
#hero .hero-visual {
|
||||
position: relative;
|
||||
margin: 0;
|
||||
height: clamp(320px, 52svh, 540px);
|
||||
border-radius: 15px;
|
||||
overflow: hidden;
|
||||
background: var(--th-bg-elevated);
|
||||
}
|
||||
|
||||
#hero .hero-visual img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
#hero .hero-visual::after { /* Verlauf für lesbare Bildunterschrift */
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 35% 0 0;
|
||||
background: linear-gradient(transparent, rgb(5 15 18 / 0.94));
|
||||
}
|
||||
|
||||
#hero figcaption {
|
||||
position: absolute;
|
||||
left: 2rem;
|
||||
bottom: 2rem;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
#hero .hero-caption-label {
|
||||
display: block;
|
||||
font-size: 0.8rem;
|
||||
letter-spacing: 0.14em;
|
||||
text-transform: uppercase;
|
||||
color: #b5efda;
|
||||
}
|
||||
|
||||
#hero .hero-caption-text {
|
||||
display: block;
|
||||
margin-top: 0.6rem;
|
||||
font-family: var(--th-font-display);
|
||||
font-size: 1.75rem;
|
||||
line-height: 1.3;
|
||||
color: var(--th-text);
|
||||
}
|
||||
|
||||
#hero .hero-tag {
|
||||
position: absolute;
|
||||
top: 1.25rem;
|
||||
right: 1.25rem;
|
||||
padding: 0.75rem 1rem;
|
||||
border: 1px solid rgb(255 255 255 / 0.19);
|
||||
border-radius: 8px;
|
||||
background: rgb(13 13 26 / 0.8);
|
||||
backdrop-filter: blur(12px);
|
||||
font-size: 0.7rem;
|
||||
letter-spacing: 0.1em;
|
||||
text-transform: uppercase;
|
||||
text-align: center;
|
||||
color: var(--th-text-soft);
|
||||
}
|
||||
|
||||
#hero .hero-tag b {
|
||||
display: block;
|
||||
margin-top: 0.25rem;
|
||||
font-family: var(--th-font-display);
|
||||
font-size: 2rem;
|
||||
line-height: 1.1;
|
||||
letter-spacing: 0;
|
||||
color: var(--hero-mint);
|
||||
}
|
||||
|
||||
/* ---------- 3 Vorteile unter dem Hero ---------- */
|
||||
#hero .hero-benefits {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 2rem;
|
||||
margin: 2.5rem 0 0;
|
||||
padding: 1.5rem 0 0;
|
||||
list-style: none;
|
||||
border-top: 1px solid var(--hero-line);
|
||||
}
|
||||
|
||||
#hero .hero-benefits li {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
#hero .hero-benefit-icon {
|
||||
flex: 0 0 2.5rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 2.5rem;
|
||||
border-radius: 10px;
|
||||
background: rgb(16 185 129 / 0.1);
|
||||
color: var(--hero-mint);
|
||||
font-size: 1.3rem;
|
||||
}
|
||||
|
||||
#hero .hero-benefits h2 {
|
||||
margin: 0;
|
||||
font-family: var(--th-font-body);
|
||||
font-size: 1.125rem;
|
||||
font-weight: 600;
|
||||
line-height: 1.35;
|
||||
letter-spacing: -0.01em;
|
||||
color: var(--th-text);
|
||||
}
|
||||
|
||||
#hero .hero-benefits p {
|
||||
margin: 0.3rem 0 0;
|
||||
font-size: 1rem;
|
||||
line-height: 1.55;
|
||||
color: var(--th-text-muted);
|
||||
}
|
||||
|
||||
/* ---------- Tablet ---------- */
|
||||
@media (max-width: 1100px) {
|
||||
#hero .hero-grid { gap: 2rem; }
|
||||
#hero .hero-benefits { gap: 1.25rem; }
|
||||
}
|
||||
|
||||
/* ---------- Mobil: Text zuerst, Bild darunter ---------- */
|
||||
@media (max-width: 760px) {
|
||||
#hero {
|
||||
min-height: 0;
|
||||
padding-block: 2rem 3rem;
|
||||
}
|
||||
|
||||
#hero .hero-grid {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 2rem;
|
||||
}
|
||||
|
||||
#hero .hero-kicker { font-size: 0.875rem; }
|
||||
#hero .hero-headline { margin-top: 1rem; font-size: clamp(2.3rem, 10vw, 3.2rem); }
|
||||
#hero .hero-intro { margin-top: 1rem; font-size: 1.125rem; }
|
||||
#hero .hero-actions { margin-top: 1.5rem; gap: 1.25rem; }
|
||||
#hero .hero-visual { height: 340px; }
|
||||
#hero figcaption { left: 1.25rem; bottom: 1.25rem; }
|
||||
#hero .hero-caption-text { font-size: 1.4rem; }
|
||||
#hero .hero-benefits { grid-template-columns: 1fr; gap: 1.25rem; margin-top: 2rem; }
|
||||
}
|
||||
|
||||
@media (max-width: 390px) {
|
||||
#hero .hero-button { width: 100%; justify-content: space-between; }
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
/* =========================================================
|
||||
US01-02: Vorteile auf einen Blick
|
||||
Branch: feature/US01-02-vorteile
|
||||
Nur Selektoren unter #vorteile verwenden.
|
||||
Farben/Schriften über var(--th-...) aus base.css.
|
||||
========================================================= */
|
||||
|
||||
#vorteile {
|
||||
}
|
||||
|
|
@ -0,0 +1,124 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Ernährungsberatung für Triathleten 50+ | tri-hub</title>
|
||||
<meta name="description" content="Ernährungsberatung für Triathletinnen und Triathleten ab 50.">
|
||||
|
||||
<!-- Kunden-CSS (Tailwind-Build von tri-hub.de) – NICHT verändern -->
|
||||
<link rel="stylesheet" href="css/assets.css">
|
||||
|
||||
<!-- Schriften laut Design-DNA: Playfair Display (Überschriften) + Inter (Text) -->
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap">
|
||||
|
||||
<!-- Projektweite Basis (Design-Tokens, Lesbarkeit) -->
|
||||
<link rel="stylesheet" href="css/base.css">
|
||||
|
||||
<!-- Ein Stylesheet pro User Story – jede Datei gehört genau einem Feature-Branch -->
|
||||
<link rel="stylesheet" href="css/sections/hero.css"> <!-- US01-01 -->
|
||||
<link rel="stylesheet" href="css/sections/vorteile.css"> <!-- US01-02 -->
|
||||
<link rel="stylesheet" href="css/sections/ablauf.css"> <!-- US01-03 -->
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<header class="site-header">
|
||||
<div class="container">
|
||||
<a href="/" class="site-logo">tri-hub</a>
|
||||
<!-- US01-05 Navigation: späterer Sprint -->
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
|
||||
<!-- ========== US01-01: Angebot und Zielgruppe (Hero) ==========
|
||||
Branch: feature/US01-01-hero · Styles: css/sections/hero.css
|
||||
Nur innerhalb dieser <section> arbeiten. -->
|
||||
<section id="hero" aria-labelledby="hero-title">
|
||||
<div class="container">
|
||||
<div class="hero-grid">
|
||||
|
||||
<div class="hero-copy">
|
||||
<h1 id="hero-title">
|
||||
<span class="hero-kicker"><span class="hero-line" aria-hidden="true"></span>Ernährungsberatung für Triathlon ab 50</span>
|
||||
<span class="hero-headline">Gut versorgt.<br>Für alles, was<br><em>noch vor dir liegt.</em></span>
|
||||
</h1>
|
||||
|
||||
<p class="hero-intro">
|
||||
Dein nächstes Ziel beginnt auch auf dem Teller. Finde eine Ernährung,
|
||||
die zu deinem Training, deinem Körper und deinem Leben passt.
|
||||
</p>
|
||||
|
||||
<div class="hero-actions">
|
||||
<a class="hero-button" href="#vorteile">Mehr erfahren <span aria-hidden="true">↓</span></a>
|
||||
<a class="hero-link" href="#ablauf">So funktioniert’s <span aria-hidden="true">→</span></a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<figure class="hero-visual">
|
||||
<img src="assets/images/hero/hero.webp" width="1200" height="800"
|
||||
alt="Zwei sportlich aktive Menschen ab 50 besprechen einen Plan neben einem Fahrrad am See"
|
||||
fetchpriority="high">
|
||||
<figcaption>
|
||||
<span class="hero-caption-label">Dein Tempo. Deine Ziele.</span>
|
||||
<span class="hero-caption-text">Mehr Freude am Sport.<br>Mehr Energie fürs Leben.</span>
|
||||
</figcaption>
|
||||
<div class="hero-tag" aria-hidden="true">Triathlon <b>50+</b></div>
|
||||
</figure>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- 3 Vorteile mit Überschrift (Checkliste US01-01) -->
|
||||
<ul class="hero-benefits" aria-label="Deine Vorteile auf einen Blick">
|
||||
<li>
|
||||
<span class="hero-benefit-icon" aria-hidden="true">↗</span>
|
||||
<div>
|
||||
<h2>Energie gezielt einplanen</h2>
|
||||
<p>Mahlzeiten passend zu Ruhetagen, harten Einheiten und langen Ausfahrten.</p>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<span class="hero-benefit-icon" aria-hidden="true">↻</span>
|
||||
<div>
|
||||
<h2>Regeneration mitdenken</h2>
|
||||
<p>Ernährung, die deinen Körper nach dem Training gezielt unterstützt.</p>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<span class="hero-benefit-icon" aria-hidden="true">✓</span>
|
||||
<div>
|
||||
<h2>Im Alltag dranbleiben</h2>
|
||||
<p>Routinen, die zu Arbeit, Familie und deinen Vorlieben passen.</p>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
<!-- ========== /US01-01 ========== -->
|
||||
|
||||
|
||||
<!-- ========== US01-02: Vorteile auf einen Blick ==========
|
||||
Branch: feature/US01-02-vorteile · Styles: css/sections/vorteile.css
|
||||
Nur innerhalb dieser <section> arbeiten. -->
|
||||
<section id="vorteile" aria-labelledby="vorteile-title">
|
||||
<!-- US01-02: Inhalt hier einfügen -->
|
||||
</section>
|
||||
<!-- ========== /US01-02 ========== -->
|
||||
|
||||
|
||||
<!-- ========== US01-03: Ablauf sehen (+ Kontaktangaben) ==========
|
||||
Branch: feature/US01-03-ablauf · Styles: css/sections/ablauf.css
|
||||
Nur innerhalb dieser <section> arbeiten. -->
|
||||
<section id="ablauf" aria-labelledby="ablauf-title">
|
||||
<!-- US01-03: Inhalt hier einfügen -->
|
||||
</section>
|
||||
<!-- ========== /US01-03 ========== -->
|
||||
|
||||
</main>
|
||||
|
||||
<script src="js/main.js" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
// Einstiegspunkt für Skripte.
|
||||
// Feature-Code in eigene Dateien auslagern (z. B. js/scroll.js für US01-01)
|
||||
// und hier bzw. in index.html einbinden.
|
||||
Loading…
Reference in New Issue