Stabilisiere den Website-Rahmen und veredele die zentralen Widgets.
CI Feature / test (push) Successful in 36s
Deploy Test / test (push) Successful in 32s
Deploy Test / deploy (push) Successful in 32s

Designiteration 1 auf Grundlage des Brand-UI-Kits (vorläufige Werte):
- Kopfzeile mit konstanter Box und zwei Zuständen (großzügig, kompakt
  beim Scrollen) ohne Layoutsprung; Navigation bricht nie um, sondern
  verkürzt erst den Kontozugang und schaltet dann in den Menümodus.
  Scrollbalken-Reserve, gemeinsames Breitenmodell (Lesebereich,
  Standard, Breit, Vollbreite), Wortmarke und Inhalt fluchten.
- Fokusfalle im Mobilmenü schließt auch den Weg von der
  Menü-Schaltfläche in den Inhalt.
- Fußbereich mit Grundzeile für rechtliche Links und grünem Bogen.
- Markenakzente (Unterstreichung, Strahlen, Bogen) als Komponenten.
- Hero: Varianten Markenbühne (randlos) und Editorial, zweite
  Schaltfläche, Bildausschnitt. Bild und Text: Bildformat und
  Ausschnitt. Karten: hervorgehobene erste Karte, ganze Karte klickbar.
  Programmkarten mit Markentafel. Alles additiv, ohne neue Version.

Testanpassungen: Die Website-Wortmarke trägt jetzt brand-lockup, die
erste Hero-Schaltfläche button-brand (beabsichtigte Gestaltung).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Opus 5.5 committed 2026-11-18 06:43:13 +01:00
1 parent 3a5e5290f1
commit 33aaf64024
31 files changed
+1646 -357

No files matched your search

+4
View File
@@ -13,6 +13,10 @@ html {
font-size: 100%;
line-height: var(--leading-body);
-webkit-text-size-adjust: 100%;
/* Platz für den Scrollbalken immer freihalten: kurze und lange Seiten haben dieselbe Breite, nichts springt. */
scrollbar-gutter: stable;
/* Sprungziele und Fokus nicht unter der klebenden Kopfzeile verstecken. */
scroll-padding-top: calc(var(--header-height) + var(--space-4));
}
body {
+11
View File
@@ -41,6 +41,17 @@ .ui-button:hover {
text-decoration: none;
}
/* Markenschaltfläche: Gelb mit dunkelblauer Schrift (11:1), für die wichtigste Handlung im Seiteneinstieg. */
.button-brand {
background: var(--lf-yellow);
color: var(--lf-navy);
}
.button-brand:hover {
background: #ffe05c;
color: var(--lf-navy);
}
.button-secondary,
.ui-button-secondary {
background: transparent;
+289 -111
View File
@@ -31,24 +31,88 @@ .brand-claim {
white-space: nowrap;
}
/* Kopfzeile: kompakt und klebend; nimmt höchstens 4,5 rem ein. */
.site-header {
position: sticky;
top: 0;
z-index: 50;
background: var(--lf-white);
border-bottom: 1px solid var(--color-border);
/* Website-Variante: Name und Zusatz als grünes Schild (Brand-Kit 05_web_preview). Weiß auf Grün dunkel 5,2:1. */
.brand-lockup {
flex: none;
align-items: flex-start;
gap: 0.3rem;
}
.site-header.is-scrolled {
box-shadow: 0 6px 18px rgb(3 37 81 / 8%);
.brand-lockup .brand-name {
font-size: 1.5rem;
color: var(--color-heading);
}
.brand-lockup .brand-claim {
font-family: var(--font-display);
font-size: 0.75rem;
font-weight: 800;
letter-spacing: 0.01em;
color: var(--lf-white);
background: var(--lf-green-deep);
border-radius: var(--radius-pill);
padding: 0.2rem 0.6rem 0.25rem;
}
/*
* Kopfzeile. Die Box hat immer dieselbe Höhe (--header-height-initial) und klebt mit negativem Abstand.
* Die innere Leiste klebt oben: Beim Scrollen wandert sie um den Unterschied nach oben, danach bleibt
* genau die kompakte Leiste stehen. Der Seitenfluss ändert sich nie; ohne JavaScript funktioniert es genauso.
*/
.site-header-sentinel {
position: absolute;
top: 0;
left: 0;
width: 1px;
height: max(1px, var(--header-height-initial) - var(--header-height));
pointer-events: none;
}
.site-header {
position: sticky;
top: calc(var(--header-height) - var(--header-height-initial));
z-index: 50;
height: var(--header-height-initial);
background: var(--lf-white);
box-shadow: 0 1px 0 var(--color-border);
transition: box-shadow 0.2s ease;
}
.site-header.is-compact {
box-shadow: 0 1px 0 var(--color-border), 0 8px 22px rgb(3 37 81 / 8%);
}
/* Außenabstand statt Innenabstand der Kopfzeile: Klebende Elemente bleiben in der Inhaltsbox ihres Elternelements. */
.site-header-bar {
position: sticky;
top: 0;
height: var(--header-height);
margin-top: calc((var(--header-height-initial) - var(--header-height)) / 2);
}
.site-header-inner {
display: flex;
align-items: center;
gap: var(--space-4) var(--space-6);
min-height: var(--header-height);
height: 100%;
}
/* Großzügige Wortmarke im Ausgangszustand, kompakt beim Scrollen. Nur transform: keine Layoutverschiebung. */
@media (min-width: 75rem) {
.site-header .brand-lockup {
transform-origin: left center;
transform: scale(1.16);
transition: transform 0.22s ease;
}
.site-header.is-compact .brand-lockup {
transform: none;
}
/* Platz für die skalierte Wortmarke, damit die Navigation nicht überdeckt wird. */
.site-header .site-nav {
margin-left: var(--space-6);
}
}
.site-header-actions {
@@ -56,6 +120,7 @@ .site-header-actions {
align-items: center;
gap: var(--space-2);
margin-left: auto;
flex: none;
}
.site-icon-link,
@@ -66,21 +131,24 @@ .site-menu-button {
gap: var(--space-2);
min-width: var(--touch-target);
min-height: var(--touch-target);
padding: 0 var(--space-3);
border: 1px solid var(--color-border-strong);
padding: 0 var(--space-4);
border: 2px solid var(--lf-navy);
border-radius: var(--radius-pill);
background: transparent;
color: var(--color-heading);
color: var(--lf-navy);
font: inherit;
font-weight: 600;
font-size: 1rem;
font-weight: 700;
white-space: nowrap;
text-decoration: none;
cursor: pointer;
transition: background-color 0.15s ease, color 0.15s ease;
}
.site-icon-link:hover,
.site-menu-button:hover {
border-color: var(--color-heading);
color: var(--color-heading);
background: var(--lf-navy);
color: var(--lf-white);
}
.site-icon-link svg,
@@ -90,7 +158,7 @@ .site-menu-button svg {
flex: none;
}
/* Hauptnavigation (Desktop) */
/* Hauptnavigation (Desktop): eine Zeile, nie umbrechend. Passt sie nicht, schaltet site-nav.js in den Menümodus. */
.site-nav-list,
.site-subnav {
list-style: none;
@@ -105,36 +173,56 @@ .site-nav {
.site-nav-list {
display: flex;
flex-wrap: wrap;
flex-wrap: nowrap;
align-items: center;
gap: var(--space-1) 0;
gap: 0 var(--space-1);
}
.site-nav-item {
position: relative;
display: flex;
align-items: center;
flex: none;
}
.site-nav a {
position: relative;
display: inline-flex;
align-items: center;
min-height: var(--touch-target);
padding: 0 0.6rem;
padding: 0 0.55rem;
font-size: 1rem;
color: var(--color-heading);
color: var(--lf-navy);
font-weight: 600;
white-space: nowrap;
text-decoration: none;
border-radius: var(--radius-small);
}
.site-nav a:hover {
color: var(--lf-navy);
text-decoration: underline;
text-decoration-thickness: 2px;
text-underline-offset: 0.35em;
}
.site-nav a[aria-current='page'],
.site-nav .is-active-trail > a {
box-shadow: inset 0 -3px 0 var(--color-accent);
/* Aktive Seite: gelbe Markenunterstreichung (Brand-Kit), zusätzlich aria-current für Hilfsmittel. */
.site-nav-list > .site-nav-item > a[aria-current='page']::after,
.site-nav-list > .site-nav-item.is-active-trail > a::after {
content: '';
position: absolute;
left: 0.55rem;
right: 0.55rem;
bottom: 0.2rem;
height: 0.3rem;
border-radius: 0.3rem;
background: var(--lf-yellow);
transform: rotate(-1deg);
}
.site-nav-list > .site-nav-item > a[aria-current='page']:hover,
.site-nav-list > .site-nav-item.is-active-trail > a:hover {
text-decoration: none;
}
.site-nav-toggle {
@@ -143,9 +231,10 @@ .site-nav-toggle {
justify-content: center;
width: 2rem;
min-height: var(--touch-target);
margin-left: -0.4rem;
border: 0;
background: transparent;
color: var(--color-heading);
color: var(--lf-navy);
cursor: pointer;
border-radius: var(--radius-small);
}
@@ -168,37 +257,41 @@ .site-subnav a {
width: 100%;
}
@media (min-width: 75rem) {
.site-subnav {
position: absolute;
top: 100%;
left: 0;
min-width: 15rem;
padding: var(--space-2);
background: var(--lf-white);
border: 1px solid var(--color-border);
border-radius: var(--radius-card);
box-shadow: var(--shadow-raised);
}
.site-header:not(.is-menu-mode) .site-subnav {
position: absolute;
top: calc(100% + 0.25rem);
left: 0;
min-width: 15rem;
padding: var(--space-2);
background: var(--lf-white);
border: 1px solid var(--color-border);
border-radius: var(--radius-card);
box-shadow: var(--shadow-raised);
}
.site-nav-item.is-open > .site-subnav {
display: block;
}
.site-header:not(.is-menu-mode) .site-nav-item.is-open > .site-subnav {
display: block;
}
.site-menu-button {
display: none;
}
/*
* Mobile Navigation (unter 75 rem, nur mit JavaScript): Menü-Schaltfläche in der Kopfzeile öffnet eine
* Fläche unter der Kopfzeile. Ohne JavaScript bleibt die Navigation als umbrechende Liste sichtbar.
*/
@media (max-width: 74.99rem) {
.site-header-inner {
flex-wrap: wrap;
}
/* Kontozugang nur als Symbol: unter 75 rem und wenn die Navigation sonst nicht in eine Zeile passt. */
.site-header.is-account-compact .site-account-label {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
}
.site-header.is-account-compact .site-account-link {
padding: 0;
}
@media (max-width: 74.99rem) {
.site-account-label {
position: absolute;
width: 1px;
@@ -208,65 +301,100 @@ @media (max-width: 74.99rem) {
white-space: nowrap;
}
.site-icon-link {
padding: 0;
}
/* Ohne JavaScript: Navigation als umbrechende Liste unter der Leiste, Kopfzeile wächst mit. */
html:not(.js) .site-header {
height: auto;
}
html:not(.js) .site-header-bar {
position: static;
height: auto;
margin-top: 0;
}
html:not(.js) .site-header-inner {
flex-wrap: wrap;
min-height: var(--header-height);
}
html:not(.js) .site-nav {
order: 3;
flex-basis: 100%;
padding-bottom: var(--space-2);
}
html.js .site-menu-button {
display: inline-flex;
html:not(.js) .site-nav-list {
flex-wrap: wrap;
}
}
html.js .site-nav {
display: none;
position: fixed;
inset: var(--header-height) 0 0;
z-index: 49;
overflow-y: auto;
overscroll-behavior: contain;
background: var(--lf-white);
padding: var(--space-4) var(--gutter) var(--space-8);
border-top: 1px solid var(--color-border);
}
/*
* Menümodus (mit JavaScript): unter 75 rem und immer dann, wenn die Navigation aus dem CMS nicht in eine Zeile passt.
* Die Menü-Schaltfläche öffnet eine Fläche unter der sichtbaren Leiste. Keine Navigation am unteren Bildschirmrand.
*/
.site-header.is-menu-mode .site-menu-button {
display: inline-flex;
}
html.js .site-header.is-menu-open .site-nav {
display: block;
}
.site-header.is-menu-mode .site-nav {
display: none;
position: fixed;
inset: var(--site-menu-top, var(--header-height)) 0 0;
z-index: 49;
overflow-y: auto;
overscroll-behavior: contain;
margin: 0;
background: var(--lf-white);
padding: var(--space-4) var(--gutter) var(--space-8);
border-top: 1px solid var(--color-border);
}
html.js .site-nav-list {
display: block;
}
.site-header.is-menu-mode.is-menu-open .site-nav {
display: block;
}
html.js .site-nav-item {
display: block;
border-bottom: 1px solid var(--color-border);
}
.site-header.is-menu-mode .site-nav-list {
display: block;
}
html.js .site-nav a {
min-height: 3rem;
font-size: 1.125rem;
width: 100%;
}
.site-header.is-menu-mode .site-nav-item {
display: block;
border-bottom: 1px solid var(--color-border);
}
html.js .site-nav-toggle {
display: none;
}
.site-header.is-menu-mode .site-nav a {
min-height: 3rem;
font-size: 1.125rem;
width: 100%;
white-space: normal;
}
html.js .site-subnav {
display: block;
padding: 0 0 var(--space-2) var(--space-4);
}
.site-header.is-menu-mode .site-nav-list > .site-nav-item > a::after {
right: auto;
width: 3rem;
}
html.js .site-subnav a {
font-size: 1rem;
font-weight: 400;
min-height: var(--touch-target);
}
.site-header.is-menu-mode .site-nav-toggle {
display: none;
}
body.has-open-menu {
overflow: hidden;
}
.site-header.is-menu-mode .site-subnav {
display: block;
padding: 0 0 var(--space-2) var(--space-4);
}
.site-header.is-menu-mode .site-subnav a {
font-size: 1rem;
font-weight: 400;
min-height: var(--touch-target);
}
body.has-open-menu {
overflow: hidden;
}
/* Inhaltsfläche */
@@ -344,22 +472,26 @@ .course-actions {
gap: var(--space-2);
}
/* Fußbereich */
/* Fußbereich: dunkle Markenfläche, Wortmarke, Linkgruppen aus dem CMS, grüner Bogen als Abschluss. */
.site-footer {
position: relative;
overflow: hidden;
isolation: isolate;
background: var(--color-surface);
color: var(--color-text);
padding: var(--space-8) 0 var(--space-7);
padding: clamp(3rem, 2rem + 4vw, 5rem) 0 0;
margin-top: 0;
}
.site-footer-inner {
display: grid;
gap: var(--space-6) var(--space-7);
padding-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}
@media (min-width: 48rem) {
.site-footer-inner {
grid-template-columns: minmax(12rem, 1.2fr) repeat(auto-fit, minmax(11rem, 1fr));
grid-template-columns: minmax(13rem, 1.3fr) repeat(auto-fit, minmax(11rem, 1fr));
}
}
@@ -367,21 +499,17 @@ .site-footer .brand {
color: var(--color-heading);
}
.site-footer-brand p {
margin: var(--space-3) 0 0;
color: var(--color-text-muted);
font-size: var(--text-small);
max-width: 22rem;
.site-footer .brand-lockup .brand-name {
font-size: 1.75rem;
}
.site-footer h2 {
font-family: var(--font-reading);
font-size: 0.875rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--color-text-muted);
margin: 0 0 var(--space-3);
font-family: var(--font-display);
font-size: 1.0625rem;
font-weight: 800;
letter-spacing: 0;
color: var(--color-heading);
margin: 0 0 var(--space-2);
}
.site-footer ul {
@@ -394,15 +522,65 @@ .site-footer li a {
display: inline-flex;
align-items: center;
min-height: var(--touch-target);
color: var(--color-link);
color: var(--color-text-muted);
text-decoration: none;
}
.site-footer-meta {
grid-column: 1 / -1;
.site-footer li a:hover,
.site-footer li a[aria-current='page'] {
color: var(--color-link-hover);
text-decoration: underline;
}
/* Grundzeile mit den rechtlichen Links; der Bogen läuft rechts darunter aus. */
.site-footer-base {
position: relative;
z-index: 1;
border-top: 1px solid var(--color-border);
padding-top: var(--space-4);
padding: var(--space-3) 0 clamp(3rem, 2rem + 4vw, 4.5rem);
}
.site-footer-base ul {
display: flex;
flex-wrap: wrap;
gap: 0 var(--space-5);
}
/* Helle Schrift: auf Navy 14:1, auf dem grünen Bogen 4,8:1. */
.site-footer-base li a {
font-size: var(--text-small);
color: var(--color-text-muted);
color: var(--color-text);
}
/* Grün dunkel unter weißer Schrift: 5,2:1, auch wenn der Bogen Links berührt. */
.site-footer-arc {
position: absolute;
right: 0;
bottom: 0;
z-index: -1;
width: min(46rem, 70%);
height: clamp(2.5rem, 1.5rem + 4vw, 5rem);
color: var(--lf-green-deep);
}
.site-footer:not(:has(.site-footer-base)) .site-footer-inner {
padding-bottom: clamp(4rem, 3rem + 4vw, 6rem);
}
/* Markenakzente (Brand-Kit 03_svg_entwuerfe, Entwürfe). Nur dekorativ, Farbe über Tokens. */
.brand-underline {
display: block;
width: 100%;
height: 0.55em;
color: var(--color-accent);
overflow: visible;
}
.brand-rays {
display: block;
width: 3.5rem;
height: auto;
color: var(--lf-yellow);
}
/* Fußbereich schließt auch kurze Seiten am unteren Rand ab (nicht im Mitgliederbereich). */
+27 -6
View File
@@ -101,19 +101,40 @@ :root {
--radius-pill: 999px;
--shadow-raised: 0 10px 28px rgb(3 37 81 / 8%);
/* Layoutmaße */
--gutter: clamp(1rem, 4vw, 2rem);
--grid-gap: clamp(1.25rem, 2.5vw, 2rem);
--container-narrow: 45rem;
--container-standard: 75rem;
--container-wide: 90rem;
/*
* Breitenmodell (Designiteration 1). Vier semantische Stufen; die Abschnittsbreiten des Editors
* (narrow, standard, wide, full) zeigen auf sie. Hintergründe reichen immer über die ganze Fensterbreite,
* nur der Inhalt wird begrenzt.
* - Lesebereich: lange Texte, Formulare
* - Standard: Grundraster der Website; Kopfzeile, Fußbereich und Seiteninhalt fluchten hier
* - Breit: bildstarke Kompositionen auf großen Bildschirmen
* - Vollbreite: Inhalt bis an den Seitenrand (mit Randabstand)
*/
--gutter: clamp(1rem, 4vw, 2.5rem);
--grid-gap: clamp(1.25rem, 2.5vw, 2.25rem);
--width-reading: 44rem;
--width-standard: 82rem;
--width-wide: 96rem;
--container-narrow: var(--width-reading);
--container-standard: var(--width-standard);
--container-wide: var(--width-wide);
/* Linker Rand des Grundrasters innerhalb einer fensterbreiten Fläche (ohne 100vw, daher ohne Scrollbalken-Fehler). */
--frame-inset: max(var(--gutter), (100% - var(--width-standard)) / 2);
/*
* Kopfzeile: zwei Zustände bei unveränderter Box (kein Layoutsprung). Die Kopfzeile ist
* --header-height-initial hoch und klebt mit negativem Abstand, sodass beim Scrollen nur die
* kompakte Leiste (--header-height) sichtbar bleibt. Auf Smartphones sind beide Werte gleich.
*/
--header-height: 4rem;
--header-height-initial: 4rem;
--touch-target: 2.75rem;
}
@media (min-width: 75rem) {
:root {
--header-height: 4.5rem;
--header-height-initial: 6.5rem;
}
}
+596 -92
View File
@@ -1,7 +1,7 @@
/*
* Widget-Ansichten. Jede Regel verwendet Bedeutungswerte und richtet sich nach der Slotbreite
* (Container „slot“), nicht nach dem Fenster. Die visuelle Veredelung einzelner Widgets erfolgt später;
* Struktur und Klassen bleiben dafür stabil.
* Widget-Ansichten (Designiteration 1). Jede Regel verwendet Bedeutungswerte und richtet sich nach der Slotbreite
* (Container „slot“), nicht nach dem Fenster. Markenakzente (Unterstreichung, Strahlen) stammen aus
* resources/views/components/brand und sind dekorativ.
*/
.widget {
@@ -19,54 +19,283 @@ .widget-heading h2 {
max-width: 22ch;
}
/* Einstieg (Hero). Varianten: standard, highlight. Stufen: schmal (Bild unter Text), breit (nebeneinander). */
/* ------------------------------------------------------------------------------------------------
* Einstieg (Hero)
* Varianten: standard (Text | Bild), highlight (Markenfläche), stage (Markenbühne), editorial (textbetont).
* ---------------------------------------------------------------------------------------------- */
.hero {
--hero-focus: 50% 50%;
position: relative;
display: grid;
gap: var(--space-5);
gap: var(--space-6);
align-items: center;
}
.hero h1,
.hero h2 {
font-size: clamp(2rem, 1.1rem + 4.2cqi, 3.5rem);
max-width: 16ch;
.hero-copy > :is(h1, h2) {
font-size: clamp(2.125rem, 1.2rem + 4.4cqi, 4rem);
line-height: 1.05;
letter-spacing: -0.025em;
max-width: 15ch;
margin: 0;
text-wrap: balance;
}
/* Markenstrich unter der Überschrift: kurze gelbe Unterstreichung, kein Hervorheben einzelner Wörter. */
.hero-mark {
width: clamp(5.5rem, 4rem + 6cqi, 9rem);
height: 0.9rem;
margin: var(--space-3) 0 var(--space-5);
}
.hero .lede {
max-width: 52ch;
max-width: 48ch;
margin: 0;
font-size: clamp(1.125rem, 1rem + 0.6cqi, 1.3125rem);
}
.hero .button {
margin-top: var(--space-2);
.hero-actions {
display: flex;
flex-wrap: wrap;
gap: var(--space-3);
margin-top: var(--space-6);
}
.hero-copy {
position: relative;
min-width: 0;
}
.hero-figure {
position: relative;
margin: 0;
}
.hero-image {
width: 100%;
display: block;
border-radius: var(--radius-panel);
aspect-ratio: 4 / 3;
width: 100%;
height: 100%;
object-fit: cover;
object-position: var(--hero-focus);
}
.hero-figure .hero-image {
aspect-ratio: 4 / 3;
border-radius: var(--radius-panel);
}
.hero-rays {
position: absolute;
width: clamp(2.75rem, 2rem + 3cqi, 4.5rem);
pointer-events: none;
}
/* Standard: Bild mit grüner Fläche als Versatz und Signalstrahlen an der Ecke. */
.hero-standard .hero-figure::before {
content: '';
position: absolute;
inset: 1.25rem -1.25rem -1.25rem 1.25rem;
z-index: -1;
border-radius: var(--radius-panel);
background: var(--lf-green-tint);
}
.hero-standard .hero-rays {
top: -2.25rem;
left: -1.75rem;
transform: rotate(-18deg);
}
@container slot (min-width: 48rem) {
.hero-with-image {
grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
gap: var(--space-7);
.hero-standard.hero-with-image {
grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
gap: clamp(2.5rem, 6cqi, 5rem);
}
}
/* Hervorgehoben: dunkle Markenfläche mit gelben Akzenten. */
.hero-highlight {
padding: clamp(1.5rem, 5cqi, 3.5rem);
padding: clamp(1.75rem, 6cqi, 4rem);
border-radius: var(--radius-panel);
background: var(--lf-navy);
--color-text: #f4f6f8;
--color-heading: var(--lf-white);
--color-link: var(--lf-white);
--color-link-hover: var(--lf-yellow);
--color-focus: var(--lf-yellow);
--color-action: var(--lf-yellow);
--color-action-hover: #ffe05c;
--color-action-text: var(--lf-navy);
--color-border-strong: rgb(255 255 255 / 60%);
--color-action-secondary-text: var(--lf-white);
color: var(--color-text);
overflow: hidden;
}
.hero-highlight .hero-rays {
top: clamp(1rem, 3cqi, 2rem);
right: clamp(1rem, 4cqi, 2.5rem);
}
.hero-highlight .hero-figure .hero-image {
aspect-ratio: 16 / 10;
}
@container slot (min-width: 48rem) {
.hero-highlight.hero-with-image {
grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
gap: clamp(2rem, 5cqi, 4rem);
}
}
/* Editorial: großer Text, Beschreibung und Schaltflächen nebeneinander, Bild als breites Band darunter. */
.hero-editorial {
gap: var(--space-7);
}
.hero-editorial .hero-copy > :is(h1, h2) {
font-size: clamp(2.375rem, 1.2rem + 5.6cqi, 5rem);
max-width: 18ch;
}
.hero-editorial .hero-figure .hero-image {
aspect-ratio: 16 / 9;
}
/* Abgesetzter Markenstrich: liest sich als Abschluss der Überschrift, nicht als Hervorhebung eines Wortes. */
.hero-editorial .hero-mark {
margin-top: var(--space-5);
}
@container slot (min-width: 56rem) {
.hero-editorial .hero-copy {
display: grid;
grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
column-gap: clamp(2rem, 6cqi, 5rem);
align-items: end;
}
.hero-editorial .hero-copy > :is(h1, h2),
.hero-editorial .hero-mark {
grid-column: 1 / -1;
}
.hero-editorial .hero-actions {
margin-top: 0;
justify-content: flex-end;
}
.hero-editorial .hero-figure .hero-image {
aspect-ratio: 21 / 9;
}
}
/*
* Markenbühne: Bild über die volle Breite, Text auf einer hellen Tafel (Kontrast unabhängig vom Motiv).
* Schmal: Bild oben im festen Format, Tafel überlappt den unteren Bildrand. Breit (ab 56rem): Bild füllt die Bühne,
* die Tafel steht im Grundraster links oder rechts. Feste Formate verhindern Layoutverschiebungen beim Laden.
*/
.hero-stage {
display: block;
}
.hero-stage .hero-media {
position: relative;
aspect-ratio: 4 / 3;
overflow: hidden;
background: var(--lf-green-tint);
}
.hero-stage .hero-frame {
position: relative;
z-index: 1;
padding-inline: var(--gutter);
}
.hero-stage.hero-with-image .hero-frame {
margin-top: -3.5rem;
}
.hero-stage .hero-copy {
--color-text: var(--lf-ink);
--color-heading: var(--lf-navy);
--color-link: var(--lf-navy);
--color-focus: var(--lf-focus);
--color-border-strong: var(--lf-navy);
--color-action-secondary-text: var(--lf-navy);
color: var(--color-text);
background: var(--lf-cream);
border-radius: var(--radius-panel);
padding: clamp(1.5rem, 1rem + 3cqi, 3rem);
box-shadow: 0 18px 40px rgb(3 37 81 / 12%);
}
.hero-stage .hero-rays {
top: -1.6rem;
right: 1.5rem;
}
/* Ohne Bild: Markenbühne als ruhige Fläche. */
.hero-stage:not(.hero-with-image) .hero-copy {
box-shadow: none;
}
@container slot (min-width: 56rem) {
.hero-stage.hero-with-image {
display: grid;
min-height: clamp(30rem, 72svh, 46rem);
}
.hero-stage .hero-media {
position: absolute;
inset: 0;
aspect-ratio: auto;
}
.hero-stage.hero-with-image .hero-frame {
display: grid;
align-items: center;
justify-items: end;
margin-top: 0;
padding-block: clamp(3rem, 6cqi, 5.5rem);
padding-inline: var(--frame-inset);
}
.hero-stage.hero-text-left .hero-frame {
justify-items: start;
}
.hero-stage .hero-copy {
width: min(36rem, 46%);
}
.hero-stage .hero-rays {
top: -2.25rem;
right: auto;
left: -2rem;
transform: rotate(-18deg);
}
}
/* Randlos (SectionRenderer: section-bleed): keine Begrenzung, Abstand nach unten bleibt für die Tafel. */
.section-bleed {
padding-block: 0;
}
.section-bleed .page-section-inner {
width: 100%;
}
/* Schmal: Abstand unter der Tafel bis zum nächsten Abschnitt. */
@container slot (max-width: 55.99rem) {
.section-bleed .hero-stage .hero-frame {
padding-bottom: clamp(2rem, 8cqi, 3.5rem);
}
}
/* Nicht randlos (Markenbühne in schmaleren Abschnitten oder Rastern): Bild mit runden Ecken. */
.page-section:not(.section-bleed) .hero-stage .hero-media {
border-radius: var(--radius-panel);
}
.page-section:not(.section-bleed) .hero-stage .hero-frame {
padding-inline: clamp(0.75rem, 4cqi, 2.5rem);
}
/* Fließtext */
@@ -74,30 +303,99 @@ .widget-prose .prose p {
margin: 0 0 var(--space-4);
}
/* Bild und Text. Varianten: image_left, image_right. Stufen: schmal (gestapelt), breit (nebeneinander ab 36rem). */
/* ------------------------------------------------------------------------------------------------
* Bild und Text. Varianten: image_left, image_right. Stufen: schmal (gestapelt), ab 36rem nebeneinander,
* ab 56rem Bild betont. Formate über Einstellung: Quer-, Hochformat, Quadrat, Original.
* ---------------------------------------------------------------------------------------------- */
.image-text {
--image-focus: 50% 50%;
--image-ratio: 4 / 3;
display: grid;
gap: var(--space-5);
gap: var(--space-6);
}
.image-text img {
width: 100%;
.image-format-portrait {
--image-ratio: 4 / 5;
}
.image-format-square {
--image-ratio: 1 / 1;
}
.image-text-figure {
position: relative;
margin: 0;
}
/* Versetzte Markenfläche hinter dem Bild, auf der Außenseite des Textes. */
.image-text-figure::before {
content: '';
position: absolute;
inset: 0.6rem -0.6rem -0.6rem 0.6rem;
z-index: -1;
border-radius: var(--radius-panel);
background: var(--lf-yellow-tint);
}
@container slot (min-width: 36rem) {
.image-text-figure::before {
inset: 1rem 1rem -1rem -1rem;
}
.image-text-right .image-text-figure::before {
inset: 1rem -1rem -1rem 1rem;
}
}
.scope-dark .image-text-figure::before,
.scope-accent .image-text-figure::before {
background: rgb(255 255 255 / 12%);
}
.image-text-figure img {
display: block;
border-radius: var(--radius-card);
width: 100%;
aspect-ratio: var(--image-ratio);
object-fit: cover;
object-position: var(--image-focus);
border-radius: var(--radius-panel);
}
.image-format-original .image-text-figure img {
aspect-ratio: auto;
}
.image-text-copy > :first-child {
margin-top: 0;
}
.image-text-copy h1,
.image-text-copy h2 {
font-size: clamp(1.75rem, 1.2rem + 2.4cqi, 2.75rem);
line-height: 1.1;
max-width: 20ch;
margin: 0;
text-wrap: balance;
}
.image-text-mark {
width: 5rem;
height: 0.75rem;
margin: var(--space-3) 0 var(--space-5);
}
.image-text-copy .prose {
font-size: clamp(1.0625rem, 1rem + 0.25cqi, 1.1875rem);
}
@container slot (min-width: 36rem) {
.image-text {
grid-template-columns: minmax(12rem, 0.8fr) minmax(0, 1.2fr);
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
align-items: center;
gap: var(--space-6);
gap: clamp(2rem, 5cqi, 4rem);
}
.image-text-right {
grid-template-columns: minmax(0, 1.2fr) minmax(12rem, 0.8fr);
}
.image-text-right > img {
.image-text-right > .image-text-figure {
order: 2;
}
@@ -106,142 +404,336 @@ @container slot (min-width: 36rem) {
}
}
.image-text-copy > :first-child {
margin-top: 0;
@container slot (min-width: 56rem) {
.image-text-left {
grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.image-text-right {
grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
.image-text-no-image {
grid-template-columns: minmax(0, 1fr);
}
}
/* Redaktionelle Karten. Varianten: Raster (cards-grid), kompakte Liste (cards-compact). */
/* ------------------------------------------------------------------------------------------------
* Redaktionelle Karten. Varianten: Raster (cards-grid), kompakte Liste (cards-compact),
* erste Karte hervorgehoben (cards-featured). Die ganze Karte ist über den Titellink klickbar.
* ---------------------------------------------------------------------------------------------- */
.cards {
--card-surface: var(--lf-cream);
display: grid;
grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr));
gap: var(--space-4);
grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr));
gap: var(--grid-gap);
list-style: none;
padding: 0;
margin: 0;
}
.section-bg-light .cards,
.scope-dark .cards,
.scope-accent .cards,
.section-bg-image .cards {
--card-surface: var(--lf-white);
}
.card {
background: var(--lf-white);
border: 1px solid var(--lf-line);
position: relative;
display: flex;
flex-direction: column;
background: var(--card-surface);
border-radius: var(--radius-card);
padding: var(--space-5);
overflow: hidden;
color: var(--lf-ink);
--color-text: var(--lf-ink);
--color-text-muted: var(--lf-ink-muted);
--color-heading: var(--lf-navy);
--color-link: var(--lf-navy);
--color-focus: var(--lf-focus);
}
.card h3 {
margin: 0 0 var(--space-2);
}
.card p {
margin: 0;
color: var(--lf-ink-muted);
}
.card a {
color: inherit;
text-decoration: none;
display: block;
}
.card a:hover h3 {
text-decoration: underline;
.card-media {
aspect-ratio: 3 / 2;
overflow: hidden;
background: var(--lf-green-tint);
}
.card-image {
display: block;
width: calc(100% + 2 * var(--space-5));
max-width: none;
aspect-ratio: 4 / 3;
width: 100%;
height: 100%;
object-fit: cover;
margin: calc(-1 * var(--space-5)) calc(-1 * var(--space-5)) var(--space-4);
}
.card-body {
display: grid;
gap: var(--space-2);
padding: var(--space-5);
}
.card-title {
font-size: clamp(1.1875rem, 1.1rem + 0.4cqi, 1.375rem);
line-height: 1.2;
margin: 0;
}
.card-title a {
color: inherit;
text-decoration: none;
}
/* Gestreckter Link: die ganze Karte ist klickbar, ein einziger Tabstopp. */
.card-title a::after {
content: '';
position: absolute;
inset: 0;
border-radius: inherit;
}
.card-linked:hover .card-title a {
text-decoration: underline;
text-decoration-thickness: 2px;
text-underline-offset: 0.2em;
}
.card-linked:has(a:focus-visible) {
outline: 3px solid var(--color-focus);
outline-offset: 3px;
}
.card-title a:focus-visible {
outline: none;
}
.card p {
margin: 0;
color: var(--color-text-muted);
}
/* Karte ohne Bild: gelbe Markenkante oben. */
.cards-grid .card:not(.card-with-image),
.cards-featured .card:not(.card-with-image) {
box-shadow: inset 0 5px 0 var(--lf-yellow);
}
/* Hervorgehoben: Die erste Karte nimmt die ganze Zeile ein, ab 44rem Bild neben dem Text. */
.cards-featured .card-lead {
grid-column: 1 / -1;
}
.cards-featured .card-lead .card-title {
font-size: clamp(1.5rem, 1.1rem + 1.8cqi, 2.25rem);
}
.cards-featured .card-lead .card-body {
padding: clamp(1.5rem, 4cqi, 3rem);
align-content: center;
}
@container slot (min-width: 44rem) {
.cards-featured .card-lead.card-with-image {
display: grid;
grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}
.cards-featured .card-lead .card-media {
aspect-ratio: auto;
min-height: 20rem;
}
}
/* Kompakte Liste: redaktionelle Zeilen mit Trennlinie, Bild klein rechts. */
.cards-compact {
grid-template-columns: minmax(0, 1fr);
gap: 0;
}
.cards-compact .card {
border-width: 0 0 1px;
flex-direction: row-reverse;
align-items: center;
gap: var(--space-4);
border-radius: 0;
background: transparent;
padding: var(--space-3) 0;
border-top: 1px solid var(--color-border);
color: var(--color-text);
--color-text: inherit;
--color-heading: inherit;
border-color: var(--color-border);
--color-link: inherit;
--color-text-muted: inherit;
overflow: visible;
}
.cards-compact .card:last-child {
border-bottom: 1px solid var(--color-border);
}
.cards-compact .card-body {
flex: 1;
padding: var(--space-4) 0;
}
.cards-compact .card p {
color: var(--color-text-muted);
opacity: 0.88;
}
.cards-compact .card-image {
display: none;
.cards-compact .card-media {
flex: none;
width: clamp(4.5rem, 18cqi, 6.5rem);
aspect-ratio: 1;
margin-block: var(--space-3);
border-radius: var(--radius-small);
}
/* ------------------------------------------------------------------------------------------------
* Programm- und Modulkarten. Inhalte aus den Fachdaten; die Markentafel trägt die Art (Programm, Modul).
* Stufen: schmal gestapelt; ab 40rem Slotbreite bei einer Karte Tafel neben dem Text; Liste in „compact“.
* ---------------------------------------------------------------------------------------------- */
.catalog-cards > h2 {
max-width: 22ch;
}
/* Programm- und Modulkarten. Inhalte kommen aus den Fachdaten. */
.catalog-list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr));
gap: var(--space-4);
grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr));
gap: var(--grid-gap);
list-style: none;
padding: 0;
margin: var(--space-4) 0 0;
margin: var(--space-5) 0 0;
}
.catalog-cards > :first-child + .catalog-list,
.catalog-cards > .catalog-list:first-child {
margin-top: 0;
}
.catalog-card {
position: relative;
display: flex;
flex-direction: column;
background: var(--lf-white);
border: 1px solid var(--lf-line);
border-radius: var(--radius-card);
overflow: hidden;
display: flex;
flex-direction: column;
color: var(--lf-ink);
--color-text: var(--lf-ink);
--color-text-muted: var(--lf-ink-muted);
--color-heading: var(--lf-navy);
--color-link: var(--lf-navy);
--color-focus: var(--lf-focus);
}
.catalog-card-visual {
background: var(--lf-cream);
border-bottom: 4px solid var(--lf-yellow);
min-height: 6rem;
position: relative;
display: flex;
align-items: flex-end;
padding: var(--space-3) var(--space-4);
min-height: 7rem;
padding: var(--space-4) var(--space-5);
background: var(--lf-navy);
border-bottom: 5px solid var(--lf-yellow);
}
/* Auf dunklen Flächen trägt Grün dunkel die Tafel, damit sie sich vom Abschnitt abhebt. */
.scope-dark .catalog-card-visual {
background: var(--lf-green-deep);
}
.catalog-card-visual span {
font-family: var(--font-display);
font-weight: 800;
font-size: 1.125rem;
color: var(--lf-navy);
font-size: 1.25rem;
color: var(--lf-white);
}
.catalog-card-rays {
position: absolute;
top: var(--space-4);
right: var(--space-5);
width: 2.75rem;
}
.catalog-card-body {
padding: var(--space-4) var(--space-5) var(--space-5);
display: grid;
gap: var(--space-2);
align-content: start;
padding: var(--space-5);
}
.catalog-card-body h3 {
margin: 0 0 var(--space-2);
font-size: clamp(1.25rem, 1.15rem + 0.5cqi, 1.5rem);
line-height: 1.2;
margin: 0;
}
.catalog-card-body h3 a {
color: inherit;
text-decoration: none;
}
.catalog-card-linked h3 a::after {
content: '';
position: absolute;
inset: 0;
}
.catalog-card-linked:hover h3 a {
text-decoration: underline;
text-decoration-thickness: 2px;
text-underline-offset: 0.2em;
}
.catalog-card-linked:has(a:focus-visible) {
outline: 3px solid var(--color-focus);
outline-offset: 3px;
}
.catalog-card-linked h3 a:focus-visible {
outline: none;
}
.catalog-card-body p {
margin: 0 0 var(--space-2);
margin: 0;
color: var(--color-text-muted);
}
/* Die Art steht in der Tafel; für Hilfsmittel bleibt sie im Text erhalten. */
.catalog-cards-standard .catalog-card-kind {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
}
.catalog-card-kind {
font-size: 0.8125rem;
font-size: var(--text-small);
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--lf-ink-muted);
color: var(--lf-green-deep);
margin: 0;
}
.catalog-cards[data-count='1'] .catalog-list {
grid-template-columns: minmax(0, 1fr);
}
@container slot (min-width: 40rem) {
.catalog-cards-standard[data-count='1'] .catalog-card {
display: grid;
grid-template-columns: minmax(12rem, 1fr) minmax(0, 2fr);
}
.catalog-cards-standard[data-count='1'] .catalog-card-visual {
border-bottom: 0;
border-right: 5px solid var(--lf-yellow);
min-height: 11rem;
}
.catalog-cards-standard[data-count='1'] .catalog-card-body {
align-content: center;
padding: var(--space-6);
}
}
.catalog-cards-compact .catalog-list {
@@ -250,18 +742,25 @@ .catalog-cards-compact .catalog-list {
}
.catalog-cards-compact .catalog-card {
border-width: 0 0 1px;
border-width: 1px 0 0;
border-radius: 0;
background: transparent;
color: var(--color-text);
--color-text: inherit;
--color-text-muted: inherit;
--color-heading: inherit;
--color-link: inherit;
border-color: var(--color-border);
overflow: visible;
}
.catalog-cards-compact .catalog-card:last-child {
border-bottom-width: 1px;
}
.catalog-cards-compact .catalog-card-body {
padding: var(--space-3) 0;
padding: var(--space-4) 0;
gap: var(--space-1);
}
.catalog-cards-compact .catalog-card-kind {
@@ -275,9 +774,10 @@ .catalog-card-internal {
/* Handlungsaufruf */
.cta {
position: relative;
background: var(--color-surface-subtle);
border-radius: var(--radius-panel);
padding: clamp(1.25rem, 5cqi, 2.5rem);
padding: clamp(1.5rem, 5cqi, 3rem);
color: var(--lf-ink);
--color-heading: var(--lf-navy);
--color-text: var(--lf-ink);
@@ -288,8 +788,12 @@ .cta {
--color-action-text: var(--lf-white);
}
.section-bg-light .cta {
background: var(--lf-white);
}
.cta h2 {
font-size: clamp(1.5rem, 1.1rem + 2cqi, 2.125rem);
font-size: clamp(1.5rem, 1.1rem + 2cqi, 2.25rem);
}
.cta p {
+105 -19
View File
@@ -1,19 +1,27 @@
/**
* Website-Kopfzeile: mobile Navigation, Untermenüs und Schatten beim Scrollen.
* Website-Kopfzeile: Menümodus, mobile Navigation, Untermenüs und kompakter Zustand beim Scrollen.
*
* Breitenstufen der Kopfzeile (Messung an einer unsichtbaren Kopie, unabhängig vom aktuellen Modus):
* 1. Navigation und Kontozugang mit Beschriftung passen in eine Zeile.
* 2. Sonst: Kontozugang nur als Symbol (is-account-compact).
* 3. Sonst und immer unter 75 rem: Menümodus (is-menu-mode).
* So bricht die Navigation aus dem CMS nie um, und die Höhe der Kopfzeile bleibt auf allen Seiten gleich.
* Ohne JavaScript bleibt die Navigation als umbrechende Liste bedienbar (CSS: html:not(.js)).
*/
const DESKTOP = window.matchMedia('(min-width: 75rem)');
const BASELINE = window.matchMedia('(max-width: 74.99rem)');
function focusableIn(element) {
return [...element.querySelectorAll('a[href], button:not([disabled])')].filter((node) => node.offsetParent !== null);
}
const isMenuMode = (header) => header.classList.contains('is-menu-mode');
function setupMenu(header) {
const button = header.querySelector('[data-site-menu-button]');
const nav = header.querySelector('#site-nav');
if (!button || !nav) {
return;
return () => {};
}
const label = button.querySelector('[data-menu-label]');
@@ -21,6 +29,10 @@ function setupMenu(header) {
const iconClose = button.querySelector('[data-icon-close]');
const setOpen = (open, { restoreFocus = true } = {}) => {
if (open) {
// Die Fläche beginnt unter dem sichtbaren Teil der Kopfzeile, gleich in welchem Zustand.
header.style.setProperty('--site-menu-top', `${Math.max(0, Math.round(header.getBoundingClientRect().bottom))}px`);
}
header.classList.toggle('is-menu-open', open);
document.body.classList.toggle('has-open-menu', open);
button.setAttribute('aria-expanded', String(open));
@@ -51,16 +63,15 @@ function setupMenu(header) {
return;
}
// Fokus bleibt in Menü und Menü-Schaltfläche, solange das Menü offen ist.
// Fokus bleibt in Menü-Schaltfläche und Menü, solange das Menü offen ist. Die Reihenfolge wird vollständig
// selbst gesteuert, weil die Schaltfläche im Quelltext hinter der Navigation steht (sonst springt Tab in den Inhalt).
if (event.key === 'Tab') {
const items = [button, ...focusableIn(nav)];
const index = items.indexOf(document.activeElement);
const next = event.shiftKey ? index - 1 : index + 1;
const next = index === -1 ? 0 : (index + (event.shiftKey ? -1 : 1) + items.length) % items.length;
if (index === -1 || next < 0 || next >= items.length) {
event.preventDefault();
items[event.shiftKey ? items.length - 1 : 0].focus();
}
event.preventDefault();
items[next].focus();
}
});
@@ -70,11 +81,75 @@ function setupMenu(header) {
}
});
DESKTOP.addEventListener('change', (event) => {
if (event.matches && header.classList.contains('is-menu-open')) {
// Rückgabe: schließt das Menü, wenn der Menümodus endet.
return () => {
if (header.classList.contains('is-menu-open')) {
setOpen(false, { restoreFocus: false });
}
});
};
}
function setupMode(header, closeMenu) {
const inner = header.querySelector('.site-header-inner');
const list = header.querySelector('.site-nav-list');
const brand = inner?.querySelector('.brand');
const actions = inner?.querySelector('.site-header-actions');
const account = actions?.querySelector('.site-account-link');
const menuButton = actions?.querySelector('[data-site-menu-button]');
if (!inner || !list || !brand || !actions || !account) {
return;
}
// Unsichtbare Kopie von Navigation und Kontozugang in Desktop-Darstellung: liefert die benötigten Breiten in jedem Modus.
const probe = document.createElement('div');
probe.className = 'site-header site-nav-probe';
probe.setAttribute('aria-hidden', 'true');
probe.style.cssText = 'position:absolute;visibility:hidden;pointer-events:none;left:-10000px;top:0;height:auto;padding:0;width:max-content;';
const nav = document.createElement('nav');
nav.className = 'site-nav';
nav.appendChild(list.cloneNode(true));
const accountProbe = account.cloneNode(true);
probe.append(nav, accountProbe);
probe.querySelectorAll('[id]').forEach((node) => node.removeAttribute('id'));
probe.querySelectorAll('a, button').forEach((node) => node.setAttribute('tabindex', '-1'));
document.body.appendChild(probe);
const width = (element) => element.getBoundingClientRect().width;
const update = () => {
const gap = parseFloat(getComputedStyle(inner).columnGap) || 0;
const actionsGap = parseFloat(getComputedStyle(actions).columnGap) || 0;
const navMargin = parseFloat(getComputedStyle(nav).marginLeft) || 0;
let fixedActions = width(actions) - width(account);
if (menuButton && menuButton.offsetParent !== null) {
fixedActions -= width(menuButton) + actionsGap;
}
// Die Wortmarke ist im Ausgangszustand skaliert; gemessen wird die tatsächlich belegte Breite.
const room = inner.clientWidth - width(brand) - 2 * gap - navMargin - fixedActions;
const needed = nav.scrollWidth;
const accountIcon = parseFloat(getComputedStyle(account).minWidth) || 44;
let state = 'menu';
if (!BASELINE.matches && needed + width(accountProbe) <= room) {
state = 'full';
} else if (!BASELINE.matches && needed + accountIcon <= room) {
state = 'icon';
}
header.classList.toggle('is-account-compact', state !== 'full');
if ((state === 'menu') !== isMenuMode(header)) {
header.classList.toggle('is-menu-mode', state === 'menu');
if (state !== 'menu') {
closeMenu();
}
}
};
update();
new ResizeObserver(update).observe(inner);
BASELINE.addEventListener('change', update);
document.fonts?.ready.then(update);
}
function setupSubmenus(header) {
@@ -113,7 +188,7 @@ function setupSubmenus(header) {
});
item.addEventListener('focusout', (event) => {
if (DESKTOP.matches && !item.contains(event.relatedTarget)) {
if (!isMenuMode(header) && !item.contains(event.relatedTarget)) {
close(item);
}
});
@@ -124,14 +199,25 @@ function setupSubmenus(header) {
});
}
function setupShadow(header) {
const update = () => header.classList.toggle('is-scrolled', window.scrollY > 8);
window.addEventListener('scroll', update, { passive: true });
update();
/**
* Kompakter Zustand: Sobald der Bereich über der kompakten Leiste aus dem Bild gescrollt ist, wird die Wortmarke
* verkleinert und ein Schatten gesetzt. Die Höhe im Seitenfluss ändert sich dabei nicht.
*/
function setupCompact(header) {
const sentinel = document.querySelector('[data-site-header-sentinel]');
if (!sentinel || !('IntersectionObserver' in window)) {
return;
}
new IntersectionObserver(([entry]) => {
header.classList.toggle('is-compact', !entry.isIntersecting);
}).observe(sentinel);
}
document.querySelectorAll('[data-site-header]').forEach((header) => {
setupMenu(header);
const closeMenu = setupMenu(header);
setupMode(header, closeMenu);
setupSubmenus(header);
setupShadow(header);
setupCompact(header);
});
@@ -0,0 +1,2 @@
{{-- Markenakzent „Bogen“: grüne Schwungfläche als Abschluss dunkler Flächen (nach dem Homepage-Entwurf des Brand-Kits). Dekorativ. --}}
<svg {{ $attributes->class(['brand-arc']) }} viewBox="0 0 400 120" preserveAspectRatio="none" aria-hidden="true" focusable="false"><path d="M0 120 C120 112 250 80 400 0 L400 120 Z" fill="currentColor"/></svg>
@@ -0,0 +1,2 @@
{{-- Markenakzent „Signalstrahlen“ (Brand-Kit 03_svg_entwuerfe/yellow-rays.svg, Entwurf). Dekorativ; nie an der Wortmarke. --}}
<svg {{ $attributes->class(['brand-rays']) }} viewBox="0 0 100 85" aria-hidden="true" focusable="false"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="11"><path d="M23 52L6 40"/><path d="M48 29L46 9"/><path d="M74 44L89 23"/></g></svg>
@@ -0,0 +1,2 @@
{{-- Markenakzent „Unterstreichung“ (Brand-Kit 03_svg_entwuerfe/yellow-underline.svg, Entwurf). Dekorativ, Farbe über currentColor. --}}
<svg {{ $attributes->class(['brand-underline']) }} viewBox="0 0 280 28" preserveAspectRatio="none" aria-hidden="true" focusable="false"><path d="M9 18 Q102 1 270 12" fill="none" stroke="currentColor" stroke-width="13" stroke-linecap="round" vector-effect="non-scaling-stroke"/></svg>
@@ -1,10 +1,12 @@
{{--
Wortmarke. VORLÄUFIG: Es liegt keine freigegebene Logodatei vor (docs/Brand-UI-Kit/README.md, Markenleitlinie 5).
Bis dahin steht hier ein schlichter Schriftzug in der vorläufigen Auszeichnungsschrift, ohne Nachbildung der
Filmwortmarke (keine Drehung, kein Unterstrich-Schwung). Eine freigegebene SVG-Datei wird ausschließlich hier eingesetzt.
Bis dahin steht hier ein Schriftzug in der vorläufigen Auszeichnungsschrift. Die Variante „lockup“ (Website)
ergänzt den Zusatz als grünes Schild nach dem Web-Entwurf des Brand-Kits (05_web_preview). Keine Nachbildung der
Filmwortmarke: keine Wolkenform, keine Drehung, kein Unterstrich-Schwung, keine Strahlen.
Eine freigegebene SVG-Datei wird ausschließlich hier eingesetzt.
--}}
@props(['href' => null, 'claim' => 'Stark im Alltag'])
<a {{ $attributes->class(['brand']) }} href="{{ $href ?? route('home') }}" data-brand-status="vorlaeufig">
@props(['href' => null, 'claim' => 'Stark im Alltag', 'variant' => 'plain'])
<a {{ $attributes->class(['brand', 'brand-lockup' => $variant === 'lockup']) }} href="{{ $href ?? route('home') }}" data-brand-status="vorlaeufig">
<span class="brand-name">Lara &amp; Felix</span>
<span class="brand-claim">{{ $claim }}</span>
</a>
@@ -1,16 +1,21 @@
@props(['navigation', 'path' => null])
@php
$groups = \App\Domain\Cms\SiteNavigation::forPath($navigation, $path ?? request()->path())->footerGroups();
$groups = collect(\App\Domain\Cms\SiteNavigation::forPath($navigation, $path ?? request()->path())->footerGroups());
$legal = $groups->firstWhere('key', 'footer_legal');
$columns = $groups->reject(fn (array $group): bool => $group['key'] === 'footer_legal');
$themes = \App\Domain\Catalog\Pillar::query()->published()->get(['id', 'name', 'slug']);
@endphp
{{-- Fußbereich: Links aus der CMS-Navigation (Plätze „Fußbereich: …“) und die veröffentlichten Themenbereiche. Keine erfundenen Kontakt- oder Rechtstexte. --}}
{{--
Fußbereich: Links aus der CMS-Navigation (Plätze „Fußbereich: …“) und die veröffentlichten Themenbereiche.
Keine eigene Inhaltsverwaltung, keine erfundenen Kontakt- oder Rechtstexte. „Rechtliches“ steht in der Grundzeile.
--}}
<footer class="site-footer scope-dark">
<div class="site-footer-inner ui-container">
<div class="site-footer-brand">
<x-site.brand />
<x-site.brand variant="lockup" />
</div>
@if ($themes->isNotEmpty())
<nav aria-labelledby="fuss-themen">
<nav class="site-footer-group site-footer-themes" aria-labelledby="fuss-themen">
<h2 id="fuss-themen">Themenbereiche</h2>
<ul>
@foreach ($themes as $theme)
@@ -19,8 +24,8 @@
</ul>
</nav>
@endif
@foreach ($groups as $group)
<nav aria-labelledby="fuss-{{ $group['key'] }}">
@foreach ($columns as $group)
<nav class="site-footer-group" aria-labelledby="fuss-{{ $group['key'] }}">
<h2 id="fuss-{{ $group['key'] }}">{{ $group['heading'] }}</h2>
<ul>
@foreach ($group['links'] as $link)
@@ -30,4 +35,17 @@
</nav>
@endforeach
</div>
@if ($legal)
<div class="site-footer-base ui-container">
<nav aria-labelledby="fuss-footer_legal">
<h2 id="fuss-footer_legal" class="visually-hidden">{{ $legal['heading'] }}</h2>
<ul>
@foreach ($legal['links'] as $link)
<li><a href="{{ $link['href'] }}" @if ($link['current']) aria-current="page" @endif>{{ $link['label'] }}</a></li>
@endforeach
</ul>
</nav>
</div>
@endif
<x-brand.arc class="site-footer-arc" />
</footer>
@@ -2,45 +2,55 @@
@php
$entries = \App\Domain\Cms\SiteNavigation::forPath($navigation, $path ?? request()->path())->header();
@endphp
{{-- Gleiche Ausgabe für Gäste und Mitglieder (ADR-32): Der Kontozugang führt zum Mitgliederbereich, der bei Bedarf zur Anmeldung leitet. --}}
{{--
Globale Kopfzeile. Gleiche Ausgabe für Gäste und Mitglieder (ADR-32): Der Kontozugang führt zum Mitgliederbereich,
der bei Bedarf zur Anmeldung leitet.
Geometrie: Die Box ist immer --header-height-initial hoch und klebt mit negativem Abstand; die innere Leiste
klebt oben. Beim Scrollen bleibt nur die kompakte Leiste sichtbar, ohne dass sich die Höhe im Seitenfluss ändert.
--}}
<span class="site-header-sentinel" aria-hidden="true" data-site-header-sentinel></span>
<header class="site-header" data-site-header>
<div class="site-header-inner ui-container ui-container-wide">
<x-site.brand />
<nav class="site-nav" id="site-nav" aria-label="Hauptnavigation">
<ul class="site-nav-list">
@foreach ($entries as $entry)
<li @class(['site-nav-item', 'has-children' => $entry['children'] !== [], 'is-active-trail' => $entry['activeTrail']])>
@if ($entry['href'])
<a href="{{ $entry['href'] }}" @if ($entry['current']) aria-current="page" @endif>{{ $entry['label'] }}</a>
@else
<a href="#untermenue-{{ $entry['id'] }}" data-site-subnav-label>{{ $entry['label'] }}</a>
@endif
@if ($entry['children'] !== [])
<button type="button" class="site-nav-toggle" aria-expanded="false" aria-controls="untermenue-{{ $entry['id'] }}" data-site-subnav-toggle>
<x-heroicon-o-chevron-down aria-hidden="true" />
<span class="visually-hidden">Untermenü {{ $entry['label'] }}</span>
</button>
<ul class="site-subnav" id="untermenue-{{ $entry['id'] }}">
@foreach ($entry['children'] as $child)
<li><a href="{{ $child['href'] }}" @if ($child['current']) aria-current="page" @endif>{{ $child['label'] }}</a></li>
@endforeach
</ul>
@endif
</li>
@endforeach
</ul>
</nav>
<div class="site-header-actions">
<a class="site-icon-link" href="{{ route('member.dashboard') }}">
<x-heroicon-o-user-circle aria-hidden="true" />
<span class="site-account-label">Mitgliederbereich</span>
</a>
<x-site.cart-link />
<button type="button" class="site-menu-button" aria-expanded="false" aria-controls="site-nav" data-site-menu-button>
<x-heroicon-o-bars-3 aria-hidden="true" data-icon-open />
<x-heroicon-o-x-mark aria-hidden="true" data-icon-close hidden />
<span data-menu-label>Menü</span>
</button>
<div class="site-header-bar">
<div class="site-header-inner ui-container">
<x-site.brand variant="lockup" />
<nav class="site-nav" id="site-nav" aria-label="Hauptnavigation">
<ul class="site-nav-list">
@foreach ($entries as $entry)
<li @class(['site-nav-item', 'has-children' => $entry['children'] !== [], 'is-active-trail' => $entry['activeTrail']])>
@if ($entry['href'])
<a href="{{ $entry['href'] }}" @if ($entry['current']) aria-current="page" @endif>{{ $entry['label'] }}</a>
@else
<a href="#untermenue-{{ $entry['id'] }}" data-site-subnav-label>{{ $entry['label'] }}</a>
@endif
@if ($entry['children'] !== [])
<button type="button" class="site-nav-toggle" aria-expanded="false" aria-controls="untermenue-{{ $entry['id'] }}" data-site-subnav-toggle>
<x-heroicon-o-chevron-down aria-hidden="true" />
<span class="visually-hidden">Untermenü {{ $entry['label'] }}</span>
</button>
<ul class="site-subnav" id="untermenue-{{ $entry['id'] }}">
@foreach ($entry['children'] as $child)
<li><a href="{{ $child['href'] }}" @if ($child['current']) aria-current="page" @endif>{{ $child['label'] }}</a></li>
@endforeach
</ul>
@endif
</li>
@endforeach
</ul>
</nav>
<div class="site-header-actions">
<a class="site-icon-link site-account-link" href="{{ route('member.dashboard') }}">
<x-heroicon-o-user-circle aria-hidden="true" />
<span class="site-account-label">Mitgliederbereich</span>
</a>
<x-site.cart-link />
<button type="button" class="site-menu-button" aria-expanded="false" aria-controls="site-nav" data-site-menu-button>
<x-heroicon-o-bars-3 aria-hidden="true" data-icon-open />
<x-heroicon-o-x-mark aria-hidden="true" data-icon-close hidden />
<span data-menu-label>Menü</span>
</button>
</div>
</div>
</div>
</header>
{{-- Menümodus vor dem ersten Zeichnen setzen, damit die Navigation auf kleinen Bildschirmen nicht aufblitzt. --}}
<script>(function (h) { if (window.matchMedia('(max-width: 74.99rem)').matches) { h.classList.add('is-menu-mode'); } })(document.querySelector('[data-site-header]'));</script>
+27 -17
View File
@@ -1,26 +1,36 @@
{{--
Redaktionelle Karten. Varianten: standard (Raster), compact (Liste), featured (erste Karte hervorgehoben).
Die ganze Karte ist über den Titellink klickbar (gestreckter Link); Bilder sind dekorativ.
--}}
@php
$variant = in_array($variant, ['standard', 'compact', 'featured'], true) ? $variant : 'standard';
@endphp
@if ($items !== [])
<ul class="cards cards-{{ $variant === 'compact' ? 'compact' : 'grid' }}">
<ul class="cards cards-{{ $variant === 'standard' ? 'grid' : $variant }}">
@foreach ($items as $item)
<li class="card @if ($item['imageUrl']) card-with-image @endif">
@if ($item['url'])
<a href="{{ $item['url'] }}">
@if ($item['imageUrl'])
<img class="card-image" src="{{ $item['imageUrl'] }}" alt="" loading="lazy">
<li @class([
'card',
'card-with-image' => $item['imageUrl'],
'card-linked' => $item['url'],
'card-lead' => $variant === 'featured' && $loop->first,
])>
@if ($item['imageUrl'])
<div class="card-media">
<img class="card-image" src="{{ $item['imageUrl'] }}" alt="" loading="lazy" decoding="async">
</div>
@endif
<div class="card-body">
<h3 class="card-title">
@if ($item['url'])
<a href="{{ $item['url'] }}">{{ $item['title'] }}</a>
@else
{{ $item['title'] }}
@endif
<h3>{{ $item['title'] }}</h3>
@if (filled($item['text']))
<p>{{ $item['text'] }}</p>
@endif
</a>
@else
@if ($item['imageUrl'])
<img class="card-image" src="{{ $item['imageUrl'] }}" alt="" loading="lazy">
@endif
<h3>{{ $item['title'] }}</h3>
</h3>
@if (filled($item['text']))
<p>{{ $item['text'] }}</p>
@endif
@endif
</div>
</li>
@endforeach
</ul>
@@ -1,5 +1,10 @@
{{--
Programm- und Modulkarten. Titel, Kurzbeschreibung, Art und Ziel kommen zur Laufzeit aus den maßgeblichen
Fachdaten (PublicCatalogReader); nichts davon wird im CMS gespeichert. Statt Bildern trägt eine Markentafel die Art.
Darstellung nach Slotbreite: schmal gestapelt, breit mit Tafel neben dem Text (siehe widgets.css).
--}}
@if ($entries !== [] || $context->preview)
<div class="catalog-cards catalog-cards-{{ $variant === 'compact' ? 'compact' : 'standard' }}">
<div class="catalog-cards catalog-cards-{{ $variant === 'compact' ? 'compact' : 'standard' }}" data-count="{{ count($entries) }}">
@if (filled($data['heading'] ?? null))
<h2>{{ $data['heading'] }}</h2>
@endif
@@ -11,9 +16,12 @@
@else
<ul class="catalog-list">
@foreach ($entries as $entry)
<li class="catalog-card @unless ($entry->public) catalog-card-internal @endunless">
<li @class(['catalog-card', 'catalog-card-linked' => $entry->url, 'catalog-card-internal' => ! $entry->public])>
@if ($variant !== 'compact')
<div class="catalog-card-visual" aria-hidden="true"><span>{{ $entry->kindLabel }}</span></div>
<div class="catalog-card-visual" aria-hidden="true">
<span>{{ $entry->kindLabel }}</span>
<x-brand.rays class="catalog-card-rays" />
</div>
@endif
<div class="catalog-card-body">
<p class="catalog-card-kind">{{ $entry->kindLabel }}</p>
+49 -15
View File
@@ -1,18 +1,52 @@
<div class="hero hero-{{ $variant === 'highlight' ? 'highlight' : 'standard' }} @if ($imageUrl) hero-with-image @endif">
<div class="hero-copy">
@if (! empty($first))
<h1>{{ $data['heading'] ?? '' }}</h1>
@else
<h2>{{ $data['heading'] ?? '' }}</h2>
@endif
@if (filled($data['text'] ?? null))
<p class="lede">{{ $data['text'] }}</p>
@endif
@if ($action)
<a class="button" href="{{ $action['url'] }}">{{ $action['label'] }}</a>
@endif
{{--
Einstieg (Hero). Varianten:
- standard: Text neben dem Bild (ältere Instanzen unverändert gültig)
- highlight: dunkle Markenfläche
- stage: Markenbühne, Bild über die volle Breite, Text auf heller Tafel (randlos, wenn allein im Abschnitt)
- editorial: textbetonter Einstieg, Bild optional als breites Band darunter
Das Bild des ersten Widgets wird sofort geladen (größtes Element), alle anderen verzögert.
--}}
@php
$variant = in_array($variant, ['standard', 'highlight', 'stage', 'editorial'], true) ? $variant : 'standard';
$headingTag = ! empty($first) ? 'h1' : 'h2';
$loading = ! empty($first) ? 'loading="eager" fetchpriority="high"' : 'loading="lazy"';
@endphp
<div @class([
'hero',
'hero-'.$variant,
'hero-with-image' => $imageUrl,
'hero-text-left' => $variant === 'stage' && $textSide === 'left',
]) style="--hero-focus: {{ $focus }}">
@if ($imageUrl && $variant === 'stage')
<div class="hero-media">
<img class="hero-image" src="{{ $imageUrl }}" alt="{{ $data['alt'] ?? '' }}" {!! $loading !!} decoding="async">
</div>
@endif
<div class="hero-frame">
<div class="hero-copy">
@if ($variant === 'stage' || $variant === 'highlight')
<x-brand.rays class="hero-rays" />
@endif
<{{ $headingTag }}>{{ $data['heading'] ?? '' }}</{{ $headingTag }}>
<x-brand.underline class="hero-mark" />
@if (filled($data['text'] ?? null))
<p class="lede">{{ $data['text'] }}</p>
@endif
@if ($actions !== [])
<div class="hero-actions">
@foreach ($actions as $index => $item)
<a @class(['button', 'button-brand' => $index === 0, 'button-secondary' => $index > 0]) href="{{ $item['url'] }}">{{ $item['label'] }}</a>
@endforeach
</div>
@endif
</div>
</div>
@if ($imageUrl)
<img class="hero-image" src="{{ $imageUrl }}" alt="{{ $data['alt'] ?? '' }}">
@if ($imageUrl && $variant !== 'stage')
<figure class="hero-figure">
<img class="hero-image" src="{{ $imageUrl }}" alt="{{ $data['alt'] ?? '' }}" {!! $loading !!} decoding="async">
@if ($variant === 'standard')
<x-brand.rays class="hero-rays" />
@endif
</figure>
@endif
</div>
+6 -2
View File
@@ -1,6 +1,9 @@
<div class="image-text image-text-{{ $variant === 'image_right' ? 'right' : 'left' }} @unless ($imageUrl) image-text-no-image @endunless">
{{-- Bild und Text. Varianten: image_left, image_right. Einstellungen: Bildformat und Bildausschnitt. --}}
<div class="image-text image-text-{{ $variant === 'image_right' ? 'right' : 'left' }} @unless ($imageUrl) image-text-no-image @endunless image-format-{{ $format }}" style="--image-focus: {{ $focus }}">
@if ($imageUrl)
<img src="{{ $imageUrl }}" alt="{{ $data['alt'] ?? '' }}" loading="lazy">
<figure class="image-text-figure">
<img src="{{ $imageUrl }}" alt="{{ $data['alt'] ?? '' }}" @if (! empty($first)) loading="eager" fetchpriority="high" @else loading="lazy" @endif decoding="async">
</figure>
@endif
<div class="image-text-copy">
@if (filled($data['title'] ?? null))
@@ -9,6 +12,7 @@
@else
<h2>{{ $data['title'] }}</h2>
@endif
<x-brand.underline class="image-text-mark" />
@endif
<div class="prose">{!! $body !!}</div>
</div>