/* =========================================================
   BASE RESET & TYPOGRAPHY
   ========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  scroll-behavior: smooth;
  font-size: 1.2em;
  color: #333;
  font-family: 'Lora', serif;
}

/* Static pages (Impressum, Datenschutz) */
body.static-page section {
    min-height: auto;      /* remove full-screen height */
    padding: 15px 0;       /* smaller vertical spacing */
    display: block;        /* normal block layout */
    text-align: left;      /* left-aligned text */
    align-items: unset;
    justify-content: unset;
}


p, li, a, input, textarea, select, button {
  font-family: 'Lora', serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Vidaloka', serif;
}

h1 { font-size: 2.5em; margin-bottom: 20px; }
h2 { font-size: 2em; margin-bottom: 15px; }
h3 { font-size: 1.5em; margin-bottom: 10px; }
h4 { font-size: 1.25em; margin-bottom: 8px; font-weight: normal; }
p { max-width: 700px; text-align: center; }

section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 50px;
}

/* =========================================================
   HEADER
   ========================================================= */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
}

.main-header.visible {
  opacity: 1;
  pointer-events: auto;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 20px;
}

.header-logo img {
  height: 92px;
  width: auto;
  display: block;
}

.header-nav {
  display: flex;
  gap: 18px;
}

.header-nav a {
  color: #333;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 180ms, color 180ms;
}

.header-nav a.active {
  background: rgba(255, 64, 129, 0.08);
  color: #ff4081;
}

.header-nav a:hover {
  background: rgba(255, 64, 129, 0.15);
  color: #ff4081;
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  background: url('../img/photobooth.jpg') center/cover no-repeat;
  color: white;
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
  padding-top: 80px; /* match header height */
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-top {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 30px;
}

.business-name {
  font-family: 'Vidaloka', serif;
  font-size: 2.5em;
  color: white;
}

.site-logo img {
  height: 180px;
  width: auto;
  margin-top: 15px;
}

.hero-content {
  position: relative;
  z-index: 2;
  margin-bottom: 100px;
}

.hero-btn-wrapper { margin-top: 32px; }

.btn {
  padding: 10px 20px;
  background: #ff4081;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1em;
  text-decoration: none;
}

/* =========================================================
   SITE LOGO CORNER (sticky)
   ========================================================= */
.site-logo.corner {
  position: fixed;
  top: 24px;
  right: 32px;
  z-index: 9999;
  height: 100px;
  width: 100px;
  transition: all 0.4s cubic-bezier(.4,1.7,.6,.97);
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.site-logo.corner img {
  height: 100px !important;
  width: 100px !important;
  margin: 0 !important;
}

.hero-top .site-logo.corner {
  position: fixed;
}

.hero-top .site-logo:not(.corner) {
  transition: opacity 0.4s;
}

.hero-top.logo-in-corner .site-logo:not(.corner) {
  opacity: 0;
  pointer-events: none;
}

/* =========================================================
   FEATURES / GALLERY / PRICES / ADDONS
   ========================================================= */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.feature {
  padding: 20px;
  background: #f9f9f9;
  border-radius: 10px;
  text-align: left;
}

/* Einblicke gallery - simple and consistent */


.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  cursor: pointer;
}
.gallery {
  display: grid;
  gap: 12px; /* slightly larger gap looks nicer */
  grid-template-columns: repeat(4, 1fr);
}

.gallery img {
  width: 100%;       /* fill the grid cell */
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}
@media (max-width: 700px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Price Cards ---- */
.price-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 50px;
}

.card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 32px 28px;
  text-align: center;
  flex: 1 1 600px;
  min-width: 300px;
  max-width: 600px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

.price-features {
  text-align: left;
  padding-left: 24px;
  margin: 0 auto;
}

.card.featured {
  border: 2px solid #ff4081;
}

.price {
  font-size: 1.5em;
  color: #ff4081;
  font-weight: bold;
  display: block;
  margin-top: 10px;
}

/* ---- Add-ons ---- */
.addons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  justify-items: center;
  margin-top: 10px;
}

.addon-card {
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 24px 18px 18px 18px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 260px;
}

.addon-card img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 16px;
}

.addon-card h3 { margin-bottom: 10px; font-size: 1.2em; }
.addon-card p { font-size: 1em; color: #444; }

.addon-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 6px 24px rgba(255, 64, 129, 0.1);
}
.addon-hover {
  opacity: 0;
  transition: opacity 0.2s;
  margin-top: 14px;
  text-align: center;
}

/* Preis */
.addon-hover-price {
  font-size: 1.2em;
  font-weight: bold;
  color: #ff4081;
}

/* Beschreibung */
.addon-hover-price-ext {
  font-size: 0.8em;
  font-weight: normal;
  color: #ff4081;
  margin-top: 4px;
  line-height: 1.2;
}

/* Hover Effekt */
.addon-card:hover .addon-hover {
  opacity: 1;
}

/* =========================================================
   FORM STYLES
   ========================================================= */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 400px;
}

input, textarea, select {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1em;
  background-color: white;
  color: #333;
  appearance: none;
}

input[type="checkbox"] {
  appearance: auto; /* zeigt das native Häkchen */
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin: 0;
}

button {
  padding: 12px;
  background: #ff4081;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1em;
}

/* Success / Error messages */
.form-success, .form-error {
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 500px;
  text-align: center;
}

.form-success { background: #d4edda; color: #155724; }
.form-error { background: #f8d7da; color: #721c24; }

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-checkbox input[type="checkbox"] {
  appearance: auto; /* native Checkbox */
  cursor: pointer;
  margin: 0;
}

.form-checkbox span {
  cursor: default; /* Text nicht klickbar für Checkbox */
}

.form-checkbox a {
  color: #ff4081;
  text-decoration: underline;
}

.form-checkbox a:hover {
  text-decoration: none;
}
/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: #222;
  color: white;
  padding: 20px;
  text-align: center;
  margin-top: 50px;
}

footer a {
  color: #ff4081;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* =========================================================
   INSTAGRAM LINK
   ========================================================= */
.instagram-link {
  text-align: center;
  margin-top: 25px;
}

.instagram-link a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 1.1em;
}

.instagram-link a svg {
  width: 36px;
  height: 36px;
  transition: transform 0.3s, filter 0.3s;
}

.instagram-link a:hover svg {
  transform: scale(1.2);
  filter: brightness(1.2);
}

.instagram-handle {
  color: #ff4081;
}

/* =========================================================
   MAP
   ========================================================= */
.liefergebiet { align-items: center; }

#mapid {
  flex-shrink: 0;
  width: 100%;
  max-width: 900px;
  height: 400px;
  margin: 20px auto;
  border-radius: 10px;
  min-height: 400px;
  z-index: 1;
}

/* =========================================================
   STATIC PAGES (Impressum / Datenschutz)
   ========================================================= */
header {
  background: #ff4081;
  color: white;
  padding: 20px;
  text-align: center;
}

main {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: left;
}

main h1 { font-size: 2.5em; margin-bottom: 20px; }
main h2 { font-size: 1.5em; margin-top: 30px; margin-bottom: 10px; }
main p, main ul { margin-bottom: 15px; text-align: left; }
main ul { margin-left: 20px; }

/* =========================================================
   RESPONSIVE MEDIA QUERIES (Clean, Device-Optimized)
   ========================================================= */

/* ---- Extra small phones (≤ 430px) ---- */
/* e.g. iPhone SE, older Androids */
@media (max-width: 430px) {
  body {
    font-size: 0.9em;
  }

  .business-name { font-size: 1.8em; }
  h1 { font-size: 1.6em; }
  h2 { font-size: 1.3em; }
  h3 { font-size: 1em; }

  .site-logo.corner img {
    height: 60px !important;
    width: auto !important;
  }

  .header-nav {
    gap: 3px;
  }

  .header-logo img { height: 38px; }

  .header-nav a {
    font-size: 0.65em;
    padding: 2px 4px;
  }

  .addon-card {
    font-size: 0.85em;
    padding: 10px 6px;
  }
}

/* ---- Small / standard phones (431px – 600px) ---- */
/* e.g. Galaxy S8+, iPhone 11–14, Pixel 7, etc. */
@media (min-width: 431px) and (max-width: 600px) {
  body {
    font-size: 1em;
  }

  .business-name { font-size: 2.2em; }
  h1 { font-size: 1.8em; }
  h2 { font-size: 1.4em; }

  .header-logo img { height: 50px; }
  .header-inner { gap: 6px; padding: 0 8px; }

  .header-nav a {
    font-size: 0.75em;
    padding: 4px 6px;
  }

  .addon-card {
    font-size: 0.9em;
    padding: 14px 10px;
  }
}

/* ---- Tablets (601px – 1024px) ---- */
/* e.g. iPad Mini, iPad Pro, Galaxy Tab, Surface Go */
@media (min-width: 601px) and (max-width: 1024px) {
  body {
    font-size: 1.05em;
  }

  .hero {
    min-height: 85vh;
    padding-top: 70px;
    justify-content: center;
  }

  .business-name { font-size: 2.8em; }

  .header-logo img { height: 70px; }

  .header-inner { gap: 12px; }


  .addons-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Laptops / desktops (1025px – 1399px) ---- */
@media (min-width: 1025px) and (max-width: 1399px) {
  body {
    font-size: 1.15em;
  }

  .hero {
    min-height: 90vh;
    padding-top: 80px;
  }

  .business-name { font-size: 3.2em; }

}

/* ---- Large desktop screens (≥ 1400px) ---- */
@media (min-width: 1400px) {
  body {
    font-size: 1.2em;
  }


  .hero {
    min-height: 95vh;
  }
}

@media (max-width: 768px) {
  .hero {
    background: url('../img/photobooth_mobile.jpg') center/cover no-repeat;
  }
}
