Layoutänderung
This commit is contained in:
@@ -1,66 +1,19 @@
|
|||||||
<section class="popup-day day01">
|
<section class="popup-day popup-3part day01">
|
||||||
|
<!-- === Titelzeile === -->
|
||||||
|
<header class="popup-header">
|
||||||
|
<h2>🎁 1. Dezember – Der Anfang vom Zauber</h2>
|
||||||
|
</header>
|
||||||
|
|
||||||
<h3>🎁 Türchen 01</h3>
|
<!-- === Hauptbereich mit zwei Spalten === -->
|
||||||
|
<div class="popup-body">
|
||||||
<!-- === Basisbild (Platzhalter oder Hauptmotiv) ===
|
<!-- Linke Spalte: Story (dein bisheriger Text 1:1 übernommen) -->
|
||||||
<div class="image-wrapper">
|
<div class="story">
|
||||||
<picture>
|
|
||||||
<!-- AVIF
|
|
||||||
<source
|
|
||||||
type="image/avif"
|
|
||||||
srcset="
|
|
||||||
/2025/assets/images/480/avif/Basisbild.avif 480w,
|
|
||||||
/2025/assets/images/720/avif/Basisbild.avif 720w,
|
|
||||||
/2025/assets/images/1024/avif/Basisbild.avif 1024w,
|
|
||||||
/2025/assets/images/1366/avif/Basisbild.avif 1366w,
|
|
||||||
/2025/assets/images/1600/avif/Basisbild.avif 1600w,
|
|
||||||
/2025/assets/images/1920/avif/Basisbild.avif 1920w,
|
|
||||||
/2025/assets/images/2560/avif/Basisbild.avif 2560w,
|
|
||||||
/2025/assets/images/3840/avif/Basisbild.avif 3840w"
|
|
||||||
sizes="100vw">
|
|
||||||
|
|
||||||
<!-- WebP
|
|
||||||
<source
|
|
||||||
type="image/webp"
|
|
||||||
srcset="
|
|
||||||
/2025/assets/images/480/webp/Basisbild.webp 480w,
|
|
||||||
/2025/assets/images/720/webp/Basisbild.webp 720w,
|
|
||||||
/2025/assets/images/1024/webp/Basisbild.webp 1024w,
|
|
||||||
/2025/assets/images/1366/webp/Basisbild.webp 1366w,
|
|
||||||
/2025/assets/images/1600/webp/Basisbild.webp 1600w,
|
|
||||||
/2025/assets/images/1920/webp/Basisbild.webp 1920w,
|
|
||||||
/2025/assets/images/2560/webp/Basisbild.webp 2560w,
|
|
||||||
/2025/assets/images/3840/webp/Basisbild.webp 3840w"
|
|
||||||
sizes="100vw">
|
|
||||||
|
|
||||||
<!-- JPEG-Fallback
|
|
||||||
<img
|
|
||||||
src="/2025/assets/images/1366/jpeg/Basisbild.jpeg"
|
|
||||||
srcset="
|
|
||||||
/2025/assets/images/480/jpeg/Basisbild.jpeg 480w,
|
|
||||||
/2025/assets/images/720/jpeg/Basisbild.jpeg 720w,
|
|
||||||
/2025/assets/images/1024/jpeg/Basisbild.jpeg 1024w,
|
|
||||||
/2025/assets/images/1366/jpeg/Basisbild.jpeg 1366w,
|
|
||||||
/2025/assets/images/1600/jpeg/Basisbild.jpeg 1600w,
|
|
||||||
/2025/assets/images/1920/jpeg/Basisbild.jpeg 1920w,
|
|
||||||
/2025/assets/images/2560/jpeg/Basisbild.jpeg 2560w,
|
|
||||||
/2025/assets/images/3840/jpeg/Basisbild.jpeg 3840w"
|
|
||||||
sizes="100vw"
|
|
||||||
alt="Bratonien Adventskalender – Tag 01"
|
|
||||||
decoding="async">
|
|
||||||
</picture>
|
|
||||||
</div>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!-- === Textbereich über Video === -->
|
|
||||||
<div class="text-video-grid">
|
|
||||||
<div class="text-column">
|
|
||||||
<p>Draußen riecht die Luft nach kaltem Holz und ersten Plätzchen.<br>
|
<p>Draußen riecht die Luft nach kaltem Holz und ersten Plätzchen.<br>
|
||||||
Über den Dächern von Bratonien hängt ein dünner Dunst aus Zucker und Geheimnissen,<br>
|
Über den Dächern von Bratonien hängt ein dünner Dunst aus Zucker und Geheimnissen,<br>
|
||||||
und im Schloss knistert das Kaminfeuer wie eine Erinnerung daran,<br>
|
und im Schloss knistert das Kaminfeuer wie eine Erinnerung daran,<br>
|
||||||
dass jeder Anfang ein kleines bisschen Mut braucht.</p>
|
dass jeder Anfang ein kleines bisschen Mut braucht.</p>
|
||||||
|
|
||||||
<p>Erna steht am Fenster, eine Tasse Kakao in der Hand,<br>
|
<p>Erna steht am Fenster, eine Tasse Kaffee in der Hand,<br>
|
||||||
und beobachtet, wie Barney im Hof versucht, die Lichterkette zu entwirren.<br>
|
und beobachtet, wie Barney im Hof versucht, die Lichterkette zu entwirren.<br>
|
||||||
„Das Jahr geht nie leise zu Ende“, murmelt sie –<br>
|
„Das Jahr geht nie leise zu Ende“, murmelt sie –<br>
|
||||||
und er antwortet, ohne aufzusehen: „Dann fangen wir besser laut an.“</p>
|
und er antwortet, ohne aufzusehen: „Dann fangen wir besser laut an.“</p>
|
||||||
@@ -71,46 +24,42 @@
|
|||||||
<strong>die Adventszeit.</strong></p>
|
<strong>die Adventszeit.</strong></p>
|
||||||
|
|
||||||
<p class="note">
|
<p class="note">
|
||||||
Und wer genau hinsieht, entdeckt: das kleine Daumenkino unten im Bild verändert sich.<br>
|
Und wer genau hinsieht, entdeckt: das kleine Daumenkino verändert sich.<br>
|
||||||
Mit jedem neuen Tag kommt ein Stück Geschichte hinzu – bis am Ende alles zusammenfindet.<br>
|
Mit jedem neuen Tag kommt ein Stück bratonische Weihnacht hinzu – bis am Ende alles zusammenfindet.<br>
|
||||||
Also lohnt es sich, wiederzukommen … jeden Tag.
|
Also lohnt es sich, wiederzukommen … jeden Tag.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="video-column">
|
<!-- Rechte Spalte: dein Daumenkino-Video -->
|
||||||
<!-- === Daumenkino-Video === -->
|
<div class="addon">
|
||||||
<div class="video-wrapper thumbkino">
|
<video
|
||||||
<video
|
class="thumbkino-video"
|
||||||
class="video thumbkino-video"
|
autoplay
|
||||||
autoplay
|
loop
|
||||||
loop
|
muted
|
||||||
muted
|
playsinline
|
||||||
playsinline
|
preload="auto"
|
||||||
preload="auto"
|
poster="/2025/assets/images/1366/jpeg/Basisbild.jpeg">
|
||||||
poster="/2025/assets/images/1366/jpeg/Basisbild.jpeg">
|
<!-- WEBM-Varianten -->
|
||||||
|
<source src="/2025/assets/videos/nHD/webm/01.webm" type="video/webm" media="(max-width: 640px)">
|
||||||
<!-- WEBM-Varianten -->
|
<source src="/2025/assets/videos/FWVGA/webm/01.webm" type="video/webm" media="(max-width: 854px)">
|
||||||
<source src="/2025/assets/videos/nHD/webm/01.webm" type="video/webm" media="(max-width: 640px)">
|
<source src="/2025/assets/videos/qHD/webm/01.webm" type="video/webm" media="(max-width: 960px)">
|
||||||
<source src="/2025/assets/videos/FWVGA/webm/01.webm" type="video/webm" media="(max-width: 854px)">
|
<source src="/2025/assets/videos/HD/webm/01.webm" type="video/webm" media="(max-width: 1280px)">
|
||||||
<source src="/2025/assets/videos/qHD/webm/01.webm" type="video/webm" media="(max-width: 960px)">
|
<source src="/2025/assets/videos/HDplus/webm/01.webm" type="video/webm" media="(max-width: 1600px)">
|
||||||
<source src="/2025/assets/videos/HD/webm/01.webm" type="video/webm" media="(max-width: 1280px)">
|
<source src="/2025/assets/videos/FullHD/webm/01.webm" type="video/webm" media="(max-width: 1920px)">
|
||||||
<source src="/2025/assets/videos/HDplus/webm/01.webm" type="video/webm" media="(max-width: 1600px)">
|
<source src="/2025/assets/videos/1440p/webm/01.webm" type="video/webm" media="(max-width: 2560px)">
|
||||||
<source src="/2025/assets/videos/FullHD/webm/01.webm" type="video/webm" media="(max-width: 1920px)">
|
<source src="/2025/assets/videos/4K/webm/01.webm" type="video/webm" media="(min-width: 2561px)">
|
||||||
<source src="/2025/assets/videos/1440p/webm/01.webm" type="video/webm" media="(max-width: 2560px)">
|
<!-- MP4-Fallbacks -->
|
||||||
<source src="/2025/assets/videos/4K/webm/01.webm" type="video/webm" media="(min-width: 2561px)">
|
<source src="/2025/assets/videos/nHD/mp4/01.mp4" type="video/mp4" media="(max-width: 640px)">
|
||||||
|
<source src="/2025/assets/videos/FWVGA/mp4/01.mp4" type="video/mp4" media="(max-width: 854px)">
|
||||||
<!-- MP4-Fallbacks -->
|
<source src="/2025/assets/videos/qHD/mp4/01.mp4" type="video/mp4" media="(max-width: 960px)">
|
||||||
<source src="/2025/assets/videos/nHD/mp4/01.mp4" type="video/mp4" media="(max-width: 640px)">
|
<source src="/2025/assets/videos/HD/mp4/01.mp4" type="video/mp4" media="(max-width: 1280px)">
|
||||||
<source src="/2025/assets/videos/FWVGA/mp4/01.mp4" type="video/mp4" media="(max-width: 854px)">
|
<source src="/2025/assets/videos/HDplus/mp4/01.mp4" type="video/mp4" media="(max-width: 1600px)">
|
||||||
<source src="/2025/assets/videos/qHD/mp4/01.mp4" type="video/mp4" media="(max-width: 960px)">
|
<source src="/2025/assets/videos/FullHD/mp4/01.mp4" type="video/mp4" media="(max-width: 1920px)">
|
||||||
<source src="/2025/assets/videos/HD/mp4/01.mp4" type="video/mp4" media="(max-width: 1280px)">
|
<source src="/2025/assets/videos/1440p/mp4/01.mp4" type="video/mp4" media="(max-width: 2560px)">
|
||||||
<source src="/2025/assets/videos/HDplus/mp4/01.mp4" type="video/mp4" media="(max-width: 1600px)">
|
<source src="/2025/assets/videos/4K/mp4/01.mp4" type="video/mp4" media="(min-width: 2561px)">
|
||||||
<source src="/2025/assets/videos/FullHD/mp4/01.mp4" type="video/mp4" media="(max-width: 1920px)">
|
Dein Browser unterstützt dieses Videoformat nicht.
|
||||||
<source src="/2025/assets/videos/1440p/mp4/01.mp4" type="video/mp4" media="(max-width: 2560px)">
|
</video>
|
||||||
<source src="/2025/assets/videos/4K/mp4/01.mp4" type="video/mp4" media="(min-width: 2561px)">
|
|
||||||
Dein Browser unterstützt dieses Videoformat nicht.
|
|
||||||
</video>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -118,5 +67,4 @@
|
|||||||
<audio id="bgmusic" loop preload="auto">
|
<audio id="bgmusic" loop preload="auto">
|
||||||
<source src="/2025/assets/sounds/FallingSnow.mp3" type="audio/mpeg">
|
<source src="/2025/assets/sounds/FallingSnow.mp3" type="audio/mpeg">
|
||||||
</audio>
|
</audio>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
@@ -1,4 +1,8 @@
|
|||||||
/* Bratonien Adventskalender 2025 – Popup Design (bandbreitenoptimiert, hell & festlich) */
|
/* ============================================================
|
||||||
|
Bratonien Adventskalender 2025 – Popup Design
|
||||||
|
Bandbreitenoptimiert, hell & festlich
|
||||||
|
Enthält Layouts: Standard, 3-Part (Story), Recipe
|
||||||
|
============================================================ */
|
||||||
|
|
||||||
/* === Overlay === */
|
/* === Overlay === */
|
||||||
#popup-overlay {
|
#popup-overlay {
|
||||||
@@ -31,7 +35,6 @@
|
|||||||
0 0 25px color-mix(in srgb, var(--ci-gold) 40%, transparent),
|
0 0 25px color-mix(in srgb, var(--ci-gold) 40%, transparent),
|
||||||
inset 0 0 10px rgba(255, 255, 255, 0.4);
|
inset 0 0 10px rgba(255, 255, 255, 0.4);
|
||||||
|
|
||||||
/* Dynamisch skalierendes Layout */
|
|
||||||
width: min(90vw, 1800px);
|
width: min(90vw, 1800px);
|
||||||
max-height: 90vh;
|
max-height: 90vh;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
@@ -46,31 +49,146 @@
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* === Inhalt === */
|
/* === Grundlayout für Inhalte === */
|
||||||
#popup-content {
|
#popup-content {
|
||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
font-family: "Bratonien2025", cursive;
|
font-family: "Bratonien2025", cursive;
|
||||||
font-size: clamp(1rem, 1.2vw, 1.5rem);
|
font-size: clamp(1rem, 1.2vw, 1.5rem);
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
display: grid;
|
display: flex;
|
||||||
grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-items: center;
|
gap: clamp(1rem, 2vw, 2.5rem);
|
||||||
gap: clamp(1rem, 2vw, 3rem);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* === Medien (Video, Bild etc.) === */
|
/* ============================================================
|
||||||
#popup-content video,
|
DREITEILIGES POPUP-LAYOUT (Titel / Story / Inhalt)
|
||||||
#popup-content img {
|
============================================================ */
|
||||||
|
|
||||||
|
.popup-day.popup-3part {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: clamp(1rem, 2vw, 2.5rem);
|
||||||
|
width: 100%;
|
||||||
|
max-width: 1200px;
|
||||||
|
margin: 0 auto;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- Titelzeile --- */
|
||||||
|
.popup-header {
|
||||||
|
text-align: center;
|
||||||
|
border-bottom: 2px solid var(--ci-gold);
|
||||||
|
padding-bottom: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popup-header h2 {
|
||||||
|
font-size: clamp(1.5rem, 2vw, 2.5rem);
|
||||||
|
color: var(--ci-darkgreen);
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- Hauptbereich mit zwei Spalten --- */
|
||||||
|
.popup-body {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr 1fr;
|
||||||
|
gap: clamp(1rem, 2vw, 2rem);
|
||||||
|
align-items: start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popup-body .story {
|
||||||
|
max-width: 70ch;
|
||||||
|
line-height: 1.6;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popup-body .addon {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popup-body .addon video,
|
||||||
|
.popup-body .addon img,
|
||||||
|
.popup-body .addon audio {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
display: block;
|
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
background: #000;
|
background: #000;
|
||||||
object-fit: contain;
|
box-shadow: 0 0 10px rgba(0,0,0,0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* === Titel & Text === */
|
/* --- Mobile Ansicht: einspaltig --- */
|
||||||
|
@media (max-width: 900px) {
|
||||||
|
.popup-body {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
|
.popup-day.popup-3part {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.popup-body .addon {
|
||||||
|
margin-top: 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ============================================================
|
||||||
|
REZEPT-LAYOUT (Text umfließt Bild)
|
||||||
|
============================================================ */
|
||||||
|
|
||||||
|
.popup-recipe .popup-body {
|
||||||
|
display: block;
|
||||||
|
column-count: 2;
|
||||||
|
column-gap: clamp(1.5rem, 3vw, 3rem);
|
||||||
|
text-align: justify;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popup-recipe .popup-body img.recipe-image {
|
||||||
|
float: left;
|
||||||
|
width: clamp(240px, 30%, 380px);
|
||||||
|
margin: 0 1.5rem 1rem 0;
|
||||||
|
border-radius: 10px;
|
||||||
|
box-shadow: 0 0 8px rgba(0,0,0,0.15);
|
||||||
|
shape-outside: inset(0 round 10px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.popup-recipe .popup-body h3 {
|
||||||
|
column-span: all;
|
||||||
|
font-size: clamp(1.2rem, 1.6vw, 1.8rem);
|
||||||
|
color: var(--ci-darkgreen);
|
||||||
|
margin: 1rem 0 0.5rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popup-recipe .popup-body ul,
|
||||||
|
.popup-recipe .popup-body ol {
|
||||||
|
margin: 0 0 1rem 1.5rem;
|
||||||
|
padding: 0;
|
||||||
|
line-height: 1.6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popup-recipe .popup-body li {
|
||||||
|
break-inside: avoid;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- Mobile Ansicht: Rezept einspaltig --- */
|
||||||
|
@media (max-width: 900px) {
|
||||||
|
.popup-recipe .popup-body {
|
||||||
|
column-count: 1;
|
||||||
|
}
|
||||||
|
.popup-recipe .popup-body img.recipe-image {
|
||||||
|
float: none;
|
||||||
|
display: block;
|
||||||
|
margin: 0 auto 1rem auto;
|
||||||
|
width: 100%;
|
||||||
|
max-width: 500px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ============================================================
|
||||||
|
Allgemeine Gestaltung & Animationen
|
||||||
|
============================================================ */
|
||||||
|
|
||||||
|
/* Titel & Text */
|
||||||
#popup-content h2 {
|
#popup-content h2 {
|
||||||
font-size: clamp(1.4rem, 2vw, 2.6rem);
|
font-size: clamp(1.4rem, 2vw, 2.6rem);
|
||||||
color: var(--ci-darkgreen);
|
color: var(--ci-darkgreen);
|
||||||
@@ -84,7 +202,18 @@
|
|||||||
max-width: 65ch;
|
max-width: 65ch;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* === Close-Button === */
|
/* Medien allgemein */
|
||||||
|
#popup-content video,
|
||||||
|
#popup-content img {
|
||||||
|
max-width: 100%;
|
||||||
|
height: auto;
|
||||||
|
display: block;
|
||||||
|
border-radius: 8px;
|
||||||
|
background: #000;
|
||||||
|
object-fit: contain;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Close-Button */
|
||||||
#popup-close {
|
#popup-close {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 12px;
|
top: 12px;
|
||||||
@@ -103,7 +232,7 @@
|
|||||||
color: color-mix(in srgb, var(--ci-blue) 35%, var(--ci-gold));
|
color: color-mix(in srgb, var(--ci-blue) 35%, var(--ci-gold));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* === Animationen === */
|
/* Animationen */
|
||||||
@keyframes fadeIn {
|
@keyframes fadeIn {
|
||||||
from { opacity: 0; }
|
from { opacity: 0; }
|
||||||
to { opacity: 1; }
|
to { opacity: 1; }
|
||||||
@@ -114,7 +243,7 @@
|
|||||||
100% { transform: scale(1); opacity: 1; }
|
100% { transform: scale(1); opacity: 1; }
|
||||||
}
|
}
|
||||||
|
|
||||||
/* === Geräteübergreifende Anpassung === */
|
/* Geräteübergreifende Anpassung */
|
||||||
@media (max-height: 600px) {
|
@media (max-height: 600px) {
|
||||||
#popup-box {
|
#popup-box {
|
||||||
max-height: 85vh;
|
max-height: 85vh;
|
||||||
|
|||||||
@@ -27,8 +27,6 @@
|
|||||||
<?php include __DIR__ . '/../includes/header.html'; ?>
|
<?php include __DIR__ . '/../includes/header.html'; ?>
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
<h1>Bratonien Adventskalender 2025</h1>
|
|
||||||
|
|
||||||
<div class="kalenderbild">
|
<div class="kalenderbild">
|
||||||
<picture>
|
<picture>
|
||||||
<!-- AVIF -->
|
<!-- AVIF -->
|
||||||
|
|||||||
Reference in New Issue
Block a user