austausch index+css

This commit is contained in:
annika koenig 2026-06-03 16:09:00 +02:00
parent f89ea08fcc
commit 119d38417b
2 changed files with 547 additions and 59 deletions

View file

@ -1,44 +1,456 @@
/* ================================
EIS PROJEKT â style.css
================================ */
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root {
--pink: #f9a8c9;
--rose: #e8679a;
--violet: #9b59b6;
--cream: #fff8f3;
--text: #2d1a2e;
--muted: #7a5c7e;
}
body { body {
font-family: Arial, sans-serif; font-family: 'DM Sans', sans-serif;
background: linear-gradient(135deg, pink, violet); background: var(--cream);
color: white; color: var(--text);
text-align: center; min-height: 100vh;
overflow-x: hidden;
} }
header { /* ── NAVIGATION ── */
padding: 20px; nav {
} position: sticky;
nav a {
margin: 0 10px;
color: white;
text-decoration: none;
font-weight: bold;
}
button {
background: hotpink;
border: none;
padding: 10px 20px;
color: white;
cursor: pointer;
border-radius: 20px;
}
img {
width: 200px;
border-radius: 20px;
margin-top: 20px;
}
/* Glitzer Effekt */
body::after {
content: "✨ ✨ ✨";
position: fixed;
top: 0; top: 0;
left: 0; z-index: 100;
width: 100%; background: rgba(255, 248, 243, 0.85);
opacity: 0.2; backdrop-filter: blur(12px);
border-bottom: 1px solid rgba(232, 103, 154, 0.15);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 2.5rem;
height: 64px;
}
.nav-logo {
font-family: 'Playfair Display', serif;
font-size: 1.3rem;
color: var(--rose);
letter-spacing: 0.02em;
}
.nav-links {
display: flex;
gap: 2rem;
list-style: none;
}
.nav-links a {
text-decoration: none;
font-size: 0.9rem;
font-weight: 500;
color: var(--muted);
letter-spacing: 0.04em;
transition: color 0.2s;
}
.nav-links a:hover {
color: var(--rose);
}
/* ── HERO ── */
.hero {
position: relative;
display: grid;
grid-template-columns: 1fr 1fr;
align-items: center;
min-height: 88vh;
padding: 4rem 2.5rem;
gap: 3rem;
overflow: hidden;
}
.hero::before {
content: '';
position: absolute;
inset: 0;
background:
radial-gradient(ellipse 70% 60% at 80% 50%, rgba(249, 168, 201, 0.25) 0%, transparent 70%),
radial-gradient(ellipse 50% 50% at 10% 80%, rgba(155, 89, 182, 0.1) 0%, transparent 60%);
pointer-events: none; pointer-events: none;
} }
.hero-content {
position: relative;
z-index: 1;
}
.hero-tag {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 0.78rem;
font-weight: 500;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--rose);
background: rgba(232, 103, 154, 0.1);
padding: 6px 14px;
border-radius: 100px;
margin-bottom: 1.5rem;
border: 1px solid rgba(232, 103, 154, 0.2);
}
.hero h1 {
font-family: 'Playfair Display', serif;
font-size: clamp(2.8rem, 5vw, 4.2rem);
line-height: 1.1;
margin-bottom: 1.5rem;
color: var(--text);
}
.hero h1 span {
background: linear-gradient(135deg, var(--rose), var(--violet));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.hero p {
font-size: 1.05rem;
line-height: 1.75;
color: var(--muted);
max-width: 420px;
margin-bottom: 2.5rem;
}
.btn-group {
display: flex;
gap: 1rem;
flex-wrap: wrap;
}
.btn-primary {
display: inline-flex;
align-items: center;
gap: 8px;
background: linear-gradient(135deg, var(--rose), var(--violet));
color: white;
padding: 13px 26px;
border-radius: 50px;
font-size: 0.9rem;
font-weight: 500;
text-decoration: none;
transition: transform 0.2s, box-shadow 0.2s;
box-shadow: 0 4px 20px rgba(232, 103, 154, 0.35);
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 6px 28px rgba(232, 103, 154, 0.45);
}
.btn-ghost {
display: inline-flex;
align-items: center;
gap: 8px;
color: var(--rose);
padding: 13px 26px;
border-radius: 50px;
font-size: 0.9rem;
font-weight: 500;
text-decoration: none;
border: 1.5px solid rgba(232, 103, 154, 0.35);
transition: background 0.2s, border-color 0.2s;
}
.btn-ghost:hover {
background: rgba(232, 103, 154, 0.07);
border-color: var(--rose);
}
/* ── HERO IMAGE ── */
.hero-visual {
position: relative;
z-index: 1;
display: flex;
align-items: center;
justify-content: center;
}
.img-frame {
position: relative;
width: 100%;
max-width: 420px;
}
.img-frame::before {
content: '';
position: absolute;
top: -12px;
left: -12px;
right: 12px;
bottom: 12px;
border: 2px solid rgba(232, 103, 154, 0.25);
border-radius: 24px;
z-index: 0;
}
.img-frame img {
position: relative;
z-index: 1;
width: 100%;
height: 360px;
object-fit: cover;
border-radius: 20px;
display: block;
}
.img-badge {
position: absolute;
bottom: -16px;
left: 24px;
background: white;
border-radius: 14px;
padding: 10px 18px;
display: flex;
align-items: center;
gap: 10px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
z-index: 2;
}
.badge-icon {
font-size: 1.5rem;
}
.badge-text {
font-size: 0.8rem;
font-weight: 500;
color: var(--text);
line-height: 1.3;
}
.badge-text span {
display: block;
font-size: 0.7rem;
color: var(--muted);
}
/* ── SECTIONS ── */
section {
padding: 5rem 2.5rem;
max-width: 1100px;
margin: 0 auto;
}
.section-label {
font-size: 0.75rem;
font-weight: 500;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--rose);
margin-bottom: 0.75rem;
}
.section-title {
font-family: 'Playfair Display', serif;
font-size: clamp(1.8rem, 3vw, 2.4rem);
margin-bottom: 1rem;
color: var(--text);
}
.section-sub {
font-size: 1rem;
color: var(--muted);
max-width: 560px;
line-height: 1.7;
margin-bottom: 3rem;
}
/* ── STATS ── */
.stats-row {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1.5rem;
margin-top: 3rem;
}
.stat-card {
text-align: center;
padding: 2rem 1.5rem;
border: 1px solid rgba(232, 103, 154, 0.18);
border-radius: 20px;
background: white;
}
.stat-num {
font-family: 'Playfair Display', serif;
font-size: 2.5rem;
color: var(--rose);
display: block;
margin-bottom: 0.4rem;
}
.stat-label {
font-size: 0.85rem;
color: var(--muted);
}
/* ── GALLERY ── */
.gallery-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1.25rem;
}
.gallery-col {
display: flex;
flex-direction: column;
gap: 1.25rem;
}
.gallery-card {
border-radius: 16px;
overflow: hidden;
position: relative;
background: #f0e8ef;
}
.gallery-card img {
width: 100%;
height: 240px;
object-fit: cover;
display: block;
transition: transform 0.4s ease;
}
.gallery-card.tall img {
height: 360px;
}
.gallery-col .gallery-card img {
height: 160px;
}
.gallery-card:hover img {
transform: scale(1.04);
}
.gallery-overlay {
position: absolute;
inset: 0;
background: linear-gradient(to top, rgba(45, 26, 46, 0.6) 0%, transparent 50%);
opacity: 0;
transition: opacity 0.3s;
display: flex;
align-items: flex-end;
padding: 1.25rem;
}
.gallery-card:hover .gallery-overlay {
opacity: 1;
}
.gallery-overlay-text {
color: white;
font-size: 0.85rem;
font-weight: 500;
}
/* ── CTA STRIP ── */
.cta-section {
padding-top: 0;
}
.info-strip {
background: linear-gradient(135deg, var(--rose), var(--violet));
border-radius: 24px;
padding: 3rem 3.5rem;
display: grid;
grid-template-columns: 1fr auto;
align-items: center;
gap: 2rem;
}
.info-strip h3 {
font-family: 'Playfair Display', serif;
font-size: 1.8rem;
color: white;
margin-bottom: 0.5rem;
}
.info-strip p {
color: rgba(255, 255, 255, 0.8);
font-size: 0.95rem;
line-height: 1.6;
}
.btn-white {
display: inline-flex;
align-items: center;
gap: 8px;
background: white;
color: var(--rose);
padding: 13px 26px;
border-radius: 50px;
font-size: 0.9rem;
font-weight: 600;
text-decoration: none;
white-space: nowrap;
transition: transform 0.2s;
}
.btn-white:hover {
transform: translateY(-2px);
}
/* ── FOOTER ── */
footer {
background: var(--text);
color: rgba(255, 255, 255, 0.65);
text-align: center;
padding: 2rem;
font-size: 0.85rem;
margin-top: 4rem;
}
footer span {
color: var(--pink);
}
/* ── RESPONSIVE ── */
@media (max-width: 768px) {
.hero {
grid-template-columns: 1fr;
}
.hero-visual {
display: none;
}
.gallery-grid {
grid-template-columns: 1fr 1fr;
}
.info-strip {
grid-template-columns: 1fr;
}
.stats-row {
grid-template-columns: 1fr;
}
nav {
padding: 0 1.5rem;
}
.nav-links {
display: none;
}
section {
padding: 3rem 1.5rem;
}
}

View file

@ -1,31 +1,107 @@
<!-- index.html -->
<!DOCTYPE html> <!DOCTYPE html>
<html lang="de"> <html lang="de">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>Home</title> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css"> <title>Eis Projekt</title>
<link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=DM+Sans:wght@300;400;500&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
</head> </head>
<body> <body>
<header>
<h1>✨ My Girly Website ✨</h1>
<nav>
<a href="index.html">Home</a>
<a href="ueberuns.html">Über uns</a>
<a href="eis_project.html">Eis Projekt</a>
<a href="kontakt.html">Kontakt</a>
<a href="impressum.html">Impressum</a>
</nav>
</header>
<main> <nav>
<h2>Herzlich Willkommen 💖</h2> <div class="nav-logo">🍦 Eis Projekt</div>
<p>Das ist ein süßes MVP mit Glitzer-Vibes ✨</p> <ul class="nav-links">
<p> das funktioniert jetzt! </p> <li><a href="#">Start</a></li>
<img src="img/bild1.jpg" alt="Bild 1"> <li><a href="#">Galerie</a></li>
<img src="img/bild2.jpg" alt="Bild 2"> <li><a href="#">Projekt</a></li>
</main> <li><a href="#">Kontakt</a></li>
</ul>
</nav>
<div class="hero">
<div class="hero-content">
<div class="hero-tag">🌸 Schulprojekt 2025</div>
<h1>Das <span>süßeste</span><br>Projekt<br>der Klasse.</h1>
<p>Hier findest du alle Infos, Bilder und Materialien zu unserem Eis-Projekt. Frisch, bunt und selbstgemacht.</p>
<div class="btn-group">
<a href="assets/projektinfo.pdf" target="_blank" class="btn-primary">📄 Projektinfo öffnen</a>
<a href="#galerie" class="btn-ghost">Galerie ansehen →</a>
</div>
</div>
<div class="hero-visual">
<div class="img-frame">
<img src="img/pic2.jpg" alt="Eis Projekt Bild">
<div class="img-badge">
<span class="badge-icon">🍦</span>
<div class="badge-text">
Unser Projekt
<span>Sommer 2025</span>
</div>
</div>
</div>
</div>
</div>
<section>
<div class="section-label">Auf einen Blick</div>
<h2 class="section-title">Was steckt dahinter?</h2>
<p class="section-sub">Unser Projekt verbindet Kreativität, Teamarbeit und natürlich eine große Portion Spaß.</p>
<div class="stats-row">
<div class="stat-card">
<span class="stat-num">12</span>
<span class="stat-label">Teammitglieder</span>
</div>
<div class="stat-card">
<span class="stat-num">8</span>
<span class="stat-label">Eissorten entwickelt</span>
</div>
<div class="stat-card">
<span class="stat-num">3</span>
<span class="stat-label">Wochen Arbeit</span>
</div>
</div>
</section>
<section id="galerie">
<div class="section-label">Galerie</div>
<h2 class="section-title">Eindrücke vom Projekt</h2>
<p class="section-sub">Bilder aus dem Entstehungsprozess von der ersten Idee bis zum fertigen Eis.</p>
<div class="gallery-grid">
<div class="gallery-card tall">
<img src="img/pic1.jpg" alt="Projektvorbereitung">
<div class="gallery-overlay"><span class="gallery-overlay-text">Vorbereitung</span></div>
</div>
<div class="gallery-col">
<div class="gallery-card">
<img src="img/pic2.jpg" alt="Eis herstellen">
<div class="gallery-overlay"><span class="gallery-overlay-text">Herstellung</span></div>
</div>
<div class="gallery-card">
<img src="img/pic3.jpg" alt="Ergebnis">
<div class="gallery-overlay"><span class="gallery-overlay-text">Ergebnis</span></div>
</div>
</div>
<div class="gallery-card tall">
<img src="img/pic4.jpg" alt="Präsentation">
<div class="gallery-overlay"><span class="gallery-overlay-text">Präsentation</span></div>
</div>
</div>
</section>
<section class="cta-section">
<div class="info-strip">
<div>
<h3>Alle Infos zum Projekt</h3>
<p>In unserem Projektinfo-Dokument findest du Hintergrundinfos, Rezepte und unsere Ergebnisse zum Nachlesen.</p>
</div>
<a href="assets/projektinfo.pdf" target="_blank" class="btn-white">📄 PDF öffnen</a>
</div>
</section>
<footer>
Gemacht mit <span></span> &nbsp;·&nbsp; Eis Projekt 2025
</footer>
<script src="script.js"></script>
</body> </body>
</html> </html>