This commit is contained in:
2026-05-03 14:59:47 +02:00
parent 41d017b70f
commit 8bcd9e63df
18 changed files with 772 additions and 1084 deletions
+57 -466
View File
@@ -1,6 +1,5 @@
---
import BaseLayout from '../layouts/BaseLayout.astro';
import LanguageSwitcher from '../components/LanguageSwitcher.astro';
import AnchorNav from '../components/AnchorNav.astro';
import TheaterSection from '../components/TheaterSection.astro';
import PhotoGallery from '../components/PhotoGallery.astro';
@@ -40,34 +39,29 @@ function renderRichText(richText: any, lang: 'de' | 'en'): string {
---
<BaseLayout title={content.title || 'Freilichttheater Ziefen 2028'}>
<!-- Anchor Navigation -->
<AnchorNav />
<!-- Hero Section -->
<div class="hero">
<div class="container">
<div class="hero-wrapper">
<div class="hero-language">
<LanguageSwitcher currentLang="de" />
</div>
<img src="/logo.svg" alt="Theater Ziefen Logo" class="hero-logo" />
<div class="hero-content">
<h1 class="hero-title">
<div class="bg-[#2b2b56] text-white py-12 pb-24 md:py-8 md:pb-16 relative overflow-hidden min-h-[500px] md:min-h-[400px]">
<div class="max-w-[--max-width-container] mx-auto px-[--spacing-md] md:px-[--spacing-sm]">
<div class="relative min-96 md:min-h-80">
<img src="/logo.svg" alt="Theater Ziefen Logo" class="absolute h-full right-2 md:right-10 opacity-95 z-[5] md:opacity-70" />
<div class="relative z-8 pt-16 pl-12 md:pt-24 md:pl-16 text-left md:max-w-full">
<h1 class="text-8xl md:text-5xl font-normal mb-6 md:mb-4 leading-[1.3] [text-shadow:2px_2px_4px_rgba(0,0,0,0.3)]">
<span class="title-de" data-lang="de">{content.hero?.title_de || 'Freilichttheater in Ziefen'}</span>
<span class="title-en" data-lang="en">{content.hero?.title_en || 'Open-Air Theater in Ziefen'}</span>
</h1>
<p class="hero-subtitle">
<p class="text-xl md:text-lg leading-relaxed mb-8 md:mb-6 opacity-95 max-w-2xl">
<span class="subtitle-de" data-lang="de">{content.hero?.subtitle_de || ''}</span>
<span class="subtitle-en" data-lang="en">{content.hero?.subtitle_en || ''}</span>
</p>
<div class="hero-year">2028</div>
<div class="font-heading text-8xl md:text-6xl font-normal text-accent [text-shadow:3px_3px_6px_rgba(0,0,0,0.4)] mt-4">2028</div>
</div>
</div>
</div>
</div>
<!-- Anchor Navigation -->
<AnchorNav />
<!-- Section 1: Das Projekt -->
<TheaterSection
id="projekt"
@@ -90,14 +84,36 @@ function renderRichText(richText: any, lang: 'de' | 'en'): string {
<div class="content-en" data-lang="en" set:html={renderRichText(content.team?.content_en, 'en')} />
{content.team?.organizations && content.team.organizations.length > 0 && (
<div class="organizations">
{content.team.organizations.map((org: any) => (
<div class="org-card">
<h3>{org.name}</h3>
<p class="org-role-de" data-lang="de">{org.role_de}</p>
<p class="org-role-en" data-lang="en">{org.role_en}</p>
</div>
))}
<div class="grid grid-cols-1 md:grid-cols-[repeat(auto-fit,minmax(250px,1fr))] gap-12 mt-16">
{content.team.organizations.map((org: any) => {
const CardContent = () => (
<>
{org.logo && (
<div class="mb-4 flex justify-center">
<img src={org.logo} alt={`${org.name} logo`} class="h-20 w-auto object-contain" />
</div>
)}
<h3 class="text-3xl mb-2 text-white">{org.name}</h3>
<p class="org-role-de m-0 opacity-90" data-lang="de">{org.role_de}</p>
<p class="org-role-en m-0 opacity-90" data-lang="en">{org.role_en}</p>
</>
);
return org.url ? (
<a
href={org.url}
target="_blank"
rel="noopener noreferrer"
class="block bg-white/10 p-12 rounded-lg text-center transition-all duration-300 hover:-translate-y-1 hover:bg-white/15 no-underline text-white hover:shadow-lg"
>
<CardContent />
</a>
) : (
<div class="bg-white/10 p-12 rounded-lg text-center transition-all duration-300 hover:-translate-y-1 hover:bg-white/15">
<CardContent />
</div>
);
})}
</div>
)}
</TheaterSection>
@@ -124,8 +140,8 @@ function renderRichText(richText: any, lang: 'de' | 'en'): string {
<div class="content-en" data-lang="en" set:html={renderRichText(content.mitwirkung?.content_en, 'en')} />
{content.mitwirkung?.director_name && (
<div class="director-contact">
<h3>
<div class="mt-16 p-12 bg-white/10 rounded-lg text-center">
<h3 class="text-3xl text-white mb-4">
<span data-lang="de">Kontakt Regisseur:</span>
<span data-lang="en">Contact Director:</span>
</h3>
@@ -135,7 +151,7 @@ function renderRichText(richText: any, lang: 'de' | 'en'): string {
<span data-lang="de">E-Mail:</span>
<span data-lang="en">Email:</span>
{' '}
<a href={`mailto:${content.mitwirkung.director_email}`}>{content.mitwirkung.director_email}</a>
<a href={`mailto:${content.mitwirkung.director_email}`} class="text-accent no-underline hover:underline">{content.mitwirkung.director_email}</a>
</p>
)}
{content.mitwirkung.director_phone && (
@@ -143,7 +159,7 @@ function renderRichText(richText: any, lang: 'de' | 'en'): string {
<span data-lang="de">Telefon:</span>
<span data-lang="en">Phone:</span>
{' '}
<a href={`tel:${content.mitwirkung.director_phone}`}>{content.mitwirkung.director_phone}</a>
<a href={`tel:${content.mitwirkung.director_phone}`} class="text-accent no-underline hover:underline">{content.mitwirkung.director_phone}</a>
</p>
)}
</div>
@@ -157,13 +173,9 @@ function renderRichText(richText: any, lang: 'de' | 'en'): string {
titleEn={content.termine?.title_en || 'Schedule'}
variant="light"
>
<div class="map-subtitle">
<span data-lang="de">Weite Wege mit Breitenstein</span>
<span data-lang="en">Long Paths with Breitenstein</span>
</div>
{content.termine?.events && content.termine.events.length > 0 && (
<div class="journey-map">
<svg class="journey-path" viewBox="0 0 1000 1000" preserveAspectRatio="xMidYMid meet">
<div class="relative min-h-auto flex flex-col gap-16">
<svg class="hidden md:flex absolute top-0 left-0 w-full h-full z-1 pointer-events-none" viewBox="0 0 1000 1000" preserveAspectRatio="xMidYMid meet">
<path
d="M 50,30 C 150,80 350,150 550,200 S 350,290 100,380 S 300,470 600,560 S 350,670 150,740 S 350,850 550,920"
fill="none"
@@ -174,18 +186,18 @@ function renderRichText(richText: any, lang: 'de' | 'en'): string {
/>
</svg>
{content.termine.events.map((event: any, index: number) => (
<div class="journey-stop" style={`--stop-index: ${index}`} data-stop={index + 1}>
<div class="journey-marker">
<div class="marker-pin"></div>
<div class="marker-label">{event.date}</div>
<div class={`relative z-2 flex items-center gap-12 text-left ${(index + 1) % 2 === 0 ? 'flex-row-reverse text-right right-0' : 'left-0'}`}>
<div class="flex flex-col items-center min-w-30 max-w-60 md:min-w-auto md:self-start">
<div class="relative w-8 h-8 bg-accent rounded-full border-4 border-white shadow-[0_4px_10px_rgba(0,0,0,0.3)] after:content-[''] after:absolute after:-bottom-4 after:left-1/2 after:-translate-x-1/2 after:w-0 after:h-0 after:border-l-[10px] after:border-l-transparent after:border-r-[10px] after:border-r-transparent after:border-t-[15px] after:border-t-[--color-accent]"></div>
<div class="mt-6 text-lg font-bold text-accent text-center whitespace-nowrap md:text-base">{event.date}</div>
</div>
<div class="journey-card">
<h3 class="event-title">
<div class="flex-1 bg-white/10 p-12 rounded-xl backdrop-blur-[10px] border-2 border-white/20 transition-all duration-300 hover:-translate-y-1 hover:bg-white/15 hover:shadow-[0_8px_20px_rgba(0,0,0,0.3)] max-w-full md:max-w-2xl">
<h3 class="text-3xl mb-2 text-white md:text-2xl">
<span class="event-title-de" data-lang="de">{event.title_de}</span>
<span class="event-title-en" data-lang="en">{event.title_en}</span>
</h3>
<p class="event-desc-de" data-lang="de">{event.description_de}</p>
<p class="event-desc-en" data-lang="en">{event.description_en}</p>
<p class="event-desc-de m-0 text-white/90 leading-relaxed" data-lang="de">{event.description_de}</p>
<p class="event-desc-en m-0 text-white/90 leading-relaxed" data-lang="en">{event.description_en}</p>
</div>
</div>
))}
@@ -225,8 +237,8 @@ function renderRichText(richText: any, lang: 'de' | 'en'): string {
<div class="content-en" data-lang="en" set:html={renderRichText(content.tickets?.content_en, 'en')} />
{content.tickets?.ticket_url && (
<div class="ticket-cta">
<a href={content.tickets.ticket_url} class="btn btn-primary" target="_blank" rel="noopener noreferrer">
<div class="mt-[--spacing-lg] text-center">
<a href={content.tickets.ticket_url} class="inline-block py-4 px-10 bg-accent text-secondary no-underline font-bold text-xl rounded-lg transition-all duration-300 shadow-[0_4px_10px_rgba(0,0,0,0.2)] hover:-translate-y-1 hover:shadow-[0_6px_15px_rgba(0,0,0,0.3)] hover:bg-[#fbfa9a]" target="_blank" rel="noopener noreferrer">
<span data-lang="de">Tickets kaufen</span>
<span data-lang="en">Buy Tickets</span>
</a>
@@ -234,424 +246,3 @@ function renderRichText(richText: any, lang: 'de' | 'en'): string {
)}
</TheaterSection>
</BaseLayout>
<style>
/* Hero Section */
.hero {
background: #2b2b56;
color: white;
padding: 3rem 0 6rem;
position: relative;
overflow: hidden;
min-height: 500px;
}
.hero-wrapper {
position: relative;
min-height: 400px;
}
.hero-language {
position: absolute;
top: 0;
left: 0;
z-index: 10;
}
.hero-logo {
position: absolute;
top: -40px;
right: -60px;
height: 500px;
width: auto;
opacity: 0.95;
z-index: 5;
}
.hero-content {
position: relative;
z-index: 8;
max-width: 850px;
padding-top: 4rem;
padding-left: 3rem;
text-align: left;
}
.hero-title {
font-size: 4.5rem;
font-weight: 400;
margin-bottom: 1.5rem;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
line-height: 1.3;
}
.hero-subtitle {
font-size: 1.3rem;
line-height: 1.6;
margin-bottom: 2rem;
opacity: 0.95;
}
.hero-year {
font-family: 'Great Vibes', cursive;
font-size: 6rem;
font-weight: 400;
color: var(--color-accent);
text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
margin-top: 1rem;
}
/* Language-specific content */
:global([data-language="de"]) .title-en,
:global([data-language="de"]) .subtitle-en,
:global([data-language="de"]) .content-en,
:global([data-language="de"]) .org-role-en,
:global([data-language="de"]) .event-title-en,
:global([data-language="de"]) .event-desc-en,
:global([data-language="de"]) [data-lang="en"] {
display: none !important;
}
:global([data-language="en"]) .title-de,
:global([data-language="en"]) .subtitle-de,
:global([data-language="en"]) .content-de,
:global([data-language="en"]) .org-role-de,
:global([data-language="en"]) .event-title-de,
:global([data-language="en"]) .event-desc-de,
:global([data-language="en"]) [data-lang="de"] {
display: none !important;
}
/* Organizations Grid */
.organizations {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: var(--spacing-md);
margin-top: var(--spacing-lg);
}
.org-card {
background: rgba(255, 255, 255, 0.1);
padding: var(--spacing-md);
border-radius: 8px;
text-align: center;
transition: transform 0.3s ease, background 0.3s ease;
}
.org-card:hover {
transform: translateY(-5px);
background: rgba(255, 255, 255, 0.15);
}
.org-card h3 {
font-family: 'Great Vibes', cursive;
font-size: 2rem;
margin-bottom: 0.5rem;
color: white;
font-weight: 400;
}
.org-card p {
margin: 0;
opacity: 0.9;
}
/* Director Contact */
.director-contact {
margin-top: var(--spacing-lg);
padding: var(--spacing-md);
background: rgba(255, 255, 255, 0.1);
border-radius: 8px;
text-align: center;
}
.director-contact h3 {
font-family: 'Great Vibes', cursive;
font-size: 2rem;
color: white;
margin-bottom: 1rem;
font-weight: 400;
}
.director-contact a {
color: var(--color-accent);
text-decoration: none;
}
.director-contact a:hover {
text-decoration: underline;
}
/* Journey Map */
.map-subtitle {
font-family: 'Great Vibes', cursive;
font-size: 2.5rem;
text-align: center;
color: var(--color-accent);
margin-bottom: var(--spacing-lg);
font-weight: 400;
}
.journey-map {
position: relative;
margin-top: var(--spacing-xl);
padding: 2rem 0;
min-height: 1400px;
}
.journey-path {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
pointer-events: none;
}
.journey-stop {
position: absolute;
z-index: 2;
display: flex;
align-items: flex-start;
gap: 3rem;
text-align: left;
}
.journey-stop[data-stop="2"],
.journey-stop[data-stop="3"],
.journey-stop[data-stop="5"],
.journey-stop[data-stop="6"] {
text-align: right;
}
/* Position stops in structured layout - path will follow these */
.journey-stop[data-stop="1"] {
top: 3%;
left: 5%;
}
.journey-stop[data-stop="2"] {
top: 20%;
left: 55%;
flex-direction: row-reverse;
}
.journey-stop[data-stop="3"] {
top: 38%;
left: 10%;
}
.journey-stop[data-stop="4"] {
top: 56%;
left: 60%;
flex-direction: row-reverse;
}
.journey-stop[data-stop="5"] {
top: 74%;
left: 15%;
}
.journey-stop[data-stop="6"] {
top: 92%;
left: 55%;
flex-direction: row-reverse;
}
.journey-marker {
display: flex;
flex-direction: column;
align-items: center;
min-width: 120px;
}
.marker-pin {
width: 30px;
height: 30px;
background: var(--color-accent);
border-radius: 50%;
border: 4px solid white;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
position: relative;
}
.marker-pin::after {
content: '';
position: absolute;
bottom: -15px;
left: 50%;
transform: translateX(-50%);
width: 0;
height: 0;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
border-top: 15px solid var(--color-accent);
}
.marker-label {
margin-top: 1.5rem;
font-size: 1.1rem;
font-weight: 700;
color: var(--color-accent);
text-align: center;
white-space: nowrap;
}
.journey-card {
flex: 1;
background: rgba(255, 255, 255, 0.1);
padding: var(--spacing-md);
border-radius: 12px;
backdrop-filter: blur(10px);
border: 2px solid rgba(255, 255, 255, 0.2);
transition: all 0.3s ease;
max-width: 500px;
}
.journey-card:hover {
transform: translateY(-5px);
background: rgba(255, 255, 255, 0.15);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.journey-card h3 {
font-family: 'Great Vibes', cursive;
font-size: 2rem;
margin-bottom: 0.5rem;
color: white;
font-weight: 400;
}
.journey-card p {
margin: 0;
color: rgba(255, 255, 255, 0.9);
line-height: 1.6;
}
/* Ticket CTA */
.ticket-cta {
margin-top: var(--spacing-lg);
text-align: center;
}
.btn {
display: inline-block;
padding: 1rem 2.5rem;
background: var(--color-accent);
color: var(--color-secondary);
text-decoration: none;
font-weight: 700;
font-size: 1.2rem;
border-radius: 8px;
transition: all 0.3s ease;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.btn:hover {
transform: translateY(-3px);
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
background: #fbfa9a;
}
/* Content Styling */
:global(.section-content p) {
margin-bottom: 1rem;
}
:global(.section-content h3) {
font-size: 1.8rem;
margin: 1.5rem 0 1rem;
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
.hero {
padding: 2rem 0 4rem;
min-height: 400px;
}
.hero-wrapper {
min-height: 350px;
}
.hero-language {
position: static;
margin-bottom: 1rem;
}
.hero-logo {
position: absolute;
top: 0;
right: -30px;
height: 200px;
opacity: 0.7;
}
.hero-content {
padding-top: 3rem;
padding-left: 1rem;
max-width: 100%;
text-align: left;
}
.hero-title {
font-size: 2.8rem;
margin-bottom: 1rem;
}
.hero-subtitle {
font-size: 1.1rem;
margin-bottom: 1.5rem;
}
.hero-year {
font-size: 4rem;
}
.organizations {
grid-template-columns: 1fr;
}
/* Journey Map Mobile */
.map-subtitle {
font-size: 2rem;
}
.journey-map {
min-height: auto;
display: flex;
flex-direction: column;
gap: var(--spacing-lg);
}
.journey-path {
display: none;
}
.journey-stop {
position: relative !important;
top: auto !important;
left: auto !important;
flex-direction: column !important;
text-align: left !important;
}
.journey-marker {
min-width: auto;
align-self: flex-start;
}
.marker-label {
font-size: 0.95rem;
}
.journey-card {
max-width: 100%;
}
.journey-card h3 {
font-size: 1.6rem;
}
}
</style>