/* ============================================
   Erni's - ForeverYoung — Global Stylesheet
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@400;600;700;800&family=Open+Sans:wght@400;600&display=swap');

/* CSS Variables */
:root {
  --color1: #66c7f4;
  --font1: 'Dosis', sans-serif;
  --font2: 'Open Sans', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font2);
  color: #333;
  background: #fff;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color1);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ============================================
   HEADER / NAV
   ============================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header-brand img {
  display: none;
}

.header-brand span {
  font-family: var(--font1);
  font-weight: 700;
  font-size: 1.2rem;
  color: #333;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  display: inline-block;
  padding: 8px 18px;
  font-family: var(--font1);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #555;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}

nav ul li a:hover {
  background: var(--color1);
  color: #fff;
}

nav ul li.active a,
nav ul li a.active {
  background: var(--color1);
  color: #fff;
}

/* ============================================
   PAGE BODY OFFSET (fixed header)
   ============================================ */
.page-body {
  padding-top: 64px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  background-color: var(--color1);
  background-size: cover;
  background-position: center 65%;
  padding: 100px 20px 100px;
  text-align: center;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.35);
  z-index: 1;
}

.hero-section h1 {
  font-family: var(--font1);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 1px 2px 8px rgba(0,0,0,0.25);
  margin-bottom: 16px;
}

.hero-section .hero-subtitle {
  font-family: var(--font1);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: #fff;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.2);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: 20px 60px 40px;
  text-align: center;
  background: #fff;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 260px;
}

.cta-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.cta-section p {
  font-family: var(--font2);
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 4px;
  font-family: var(--font1);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--color1);
  color: #fff;
  border: 2px solid var(--color1);
}
.btn-primary:hover {
  background: #3db5e8;
  border-color: #3db5e8;
  color: #fff;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--color1);
  border: 2px solid var(--color1);
}
.btn-outline:hover {
  background: var(--color1);
  color: #fff;
  text-decoration: none;
}

/* ============================================
   CONTENT SECTIONS (Details page)
   ============================================ */
.content-section {
  padding: 40px 0;
  border-bottom: 1px solid #f0f0f0;
}

.content-section:last-of-type {
  border-bottom: none;
}

.content-section h2 {
  font-family: var(--font1);
  font-size: 1.8rem;
  font-weight: 800;
  color: #222;
  margin-bottom: 16px;
}

.content-section h3 {
  font-family: var(--font2);
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  margin: 16px 0 8px;
}

.content-section p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 10px;
}

.content-section ul {
  margin: 8px 0 16px 20px;
  color: #555;
  font-size: 0.95rem;
}

.content-section ul li {
  margin-bottom: 6px;
}

/* ============================================
   DIVIDER HEADING (Anmeldung)
   ============================================ */
.divider-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 80px 20px 40px;
}
.divider-heading::before,
.divider-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ccc;
}
.divider-heading h2 {
  font-family: var(--font1);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #222;
  white-space: nowrap;
}

/* ============================================
   FORM (Anmeldung)
   ============================================ */
.form-section {
  padding: 20px 0 60px;
}

.form-section h3 {
  font-family: var(--font1);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #222;
}

.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.form-row .form-group {
  flex: 1;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: none;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: var(--font2);
  font-size: 0.95rem;
  color: #333;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color1);
}

.form-group textarea {
  min-height: 140px;
}

.form-label-group {
  font-family: var(--font2);
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
  margin-top: 8px;
  display: block;
}

.checkbox-group {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.93rem;
  color: #444;
}

.checkbox-group input[type="checkbox"] {
  accent-color: var(--color1);
  width: 16px;
  height: 16px;
}

.captcha-group {
  text-align: center;
  margin: 16px 0;
}

.captcha-group label {
  display: block;
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 6px;
}

.captcha-group input {
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
  width: 200px;
  text-align: center;
}

.btn-submit {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--color1);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: var(--font1);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 16px;
}
.btn-submit:hover {
  background: #3db5e8;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--color1);
  color: #fff;
  padding: 10px 24px;
  text-align: center;
  position: relative;
  margin-top: auto;
}

footer::before {
  content: '';
  position: absolute;
  top: -28px;
  left: 0;
  width: 100%;
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 30' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C480,20 960,20 1440,0 L1440,30 L0,30 Z' fill='%2366c7f4'/%3E%3C/svg%3E") no-repeat top center / 100% 100%;
  pointer-events: none;
  z-index: 10;
}

.footer-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 12px;
}

.footer-name {
  font-family: var(--font1);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.footer-location {
  font-family: var(--font1);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
}

.footer-copy {
  font-family: var(--font1);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
}

/* ============================================
   PHOTO FRAMES GALLERY
   ============================================ */
.frames-gallery {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.photo-frame {
  position: relative;
  width: 190px;
  height: 230px;
  flex-shrink: 0;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.photo-frame-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.photo-frame-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.frame-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.frame-img.active {
  opacity: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .cta-section { padding: 40px 20px 60px; }
  .photo-frame { width: 140px; height: 170px; }
  .frames-gallery { gap: 16px; }
}

@media (max-width: 600px) {
  .frames-gallery { gap: 12px; }
  .photo-frame { width: 130px; height: 160px; }
}

@media (max-width: 640px) {
  header {
    padding: 0 14px;
  }
  .header-brand span {
    display: none;
  }
  nav ul li a {
    padding: 8px 10px;
    font-size: 0.78rem;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .divider-heading {
    padding: 60px 16px 30px;
  }
  .divider-heading h2 {
    font-size: 1.15rem;
  }
}
