/* ============================================
   Badhütte-Liebe – Stylesheet V2 (Dark Theme)
   Design: Elegant dark photography portfolio
   ============================================ */

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

:root {
  --clr-primary: #2ea3f2;
  --clr-primary-soft: #5ab8f5;
  --clr-bg: #1a1a1a;
  --clr-bg-card: #242424;
  --clr-bg-elevated: #2a2a2a;
  --clr-bg-section: #1f1f1f;
  --clr-text: #e0e0e0;
  --clr-text-muted: #999;
  --clr-text-heading: #f0f0f0;
  --clr-accent: #4a7a9b;
  --clr-accent-warm: #c5935a;
  --clr-border: rgba(255,255,255,.08);
  --clr-white: #fff;
  --font-heading: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1200px;
  --header-height: 92px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--clr-text);
  background: var(--clr-bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--clr-primary-soft); text-decoration: none; transition: color .25s; }
a:hover { color: var(--clr-accent-warm); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--clr-white);
  border-bottom: 1px solid #e0e0e0;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
}

.logo img { height: 68px; width: auto; }

.main-nav { display: flex; gap: 36px; list-style: none; }

.main-nav a {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #555;
  padding: 4px 0;
  position: relative;
  transition: color .3s;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-primary);
  transition: width .3s ease;
}

.main-nav a:hover { color: var(--clr-bg); }
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--clr-primary); }

/* Mobile menu toggle (hamburger / X) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  position: absolute;
  width: 32px;
  height: 2.5px;
  background: #333;
  border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease;
}

.menu-toggle span {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: '';
  left: 0;
}

.menu-toggle span::before { top: -9px; }
.menu-toggle span::after  { top: 9px; }

/* X state */
.menu-toggle.active span { background: transparent; }
.menu-toggle.active span::before {
  top: 0;
  transform: rotate(45deg);
}
.menu-toggle.active span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ---------- Hero Section ---------- */
.hero {
  padding: 60px 0 32px;
  text-align: center;
}

.hero--blue {
  background: linear-gradient(135deg, #1a3a50, #2c5f7c);
  padding: 40px 0 32px;
}

.hero--compact {
  padding: 40px 0 8px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--clr-text-heading);
  line-height: 1.15;
}

.hero--blue h1 { color: var(--clr-white); }

.hero p {
  max-width: 1100px;
  margin: 16px auto 0;
  color: var(--clr-text-muted);
  font-size: 15px;
}

.hero--blue p { color: rgba(255,255,255,.8); }

/* ---------- Photo Gallery (Start page) ---------- */
.gallery {
  padding: 40px 0 32px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  background: var(--clr-bg-card);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .5s ease, filter .5s ease;
  opacity: .92;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(1.12);
  opacity: 1;
}

.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: var(--clr-white);
  font-family: var(--font-heading);
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s, transform .4s;
}

.gallery-item:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Section Helpers ---------- */
.section { padding: 56px 0; }
.section--darker { background: var(--clr-bg-section); }
.section--accent { background: linear-gradient(135deg, var(--clr-accent), #2c5f7c); color: var(--clr-white); }
.section--card { background: var(--clr-bg-card); }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 12px;
  color: var(--clr-text-heading);
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 32px;
  color: var(--clr-text-muted);
  font-size: 15px;
  line-height: 1.8;
}

.section--accent .section-subtitle { color: rgba(255,255,255,.8); }

/* ---------- Angebote: Hero ---------- */
.angebote-hero {
  background: linear-gradient(135deg, #1a3a50, #2c5f7c);
  color: var(--clr-white);
  padding: 64px 0 56px;
  text-align: center;
}

.angebote-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 20px;
}

.angebote-hero p {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.9;
  opacity: .9;
}

/* ---------- Image Row ---------- */
.image-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.image-row img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 6px;
}

.image-row-figure {
  margin: 0;
}

.image-row-figure figcaption {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
  color: var(--clr-text-muted);
  font-style: italic;
  letter-spacing: 0.02em;
}

/* ---------- Features Grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.feature-card {
  text-align: center;
  padding: 16px 20px;
  border-radius: 8px;
  background: var(--clr-bg-elevated);
  border: 1px solid var(--clr-border);
  transition: transform .3s, border-color .3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(46,163,242,.3);
}

.feature-card .icon {
  font-size: 36px;
  margin-bottom: 16px;
  color: var(--clr-primary-soft);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  color: var(--clr-text-heading);
}

.feature-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--clr-text-muted);
}

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.testimonial-card {
  background: var(--clr-bg-elevated);
  color: var(--clr-text);
  padding: 32px;
  border-radius: 8px;
  border: 1px solid var(--clr-border);
  font-style: italic;
  font-size: 15px;
  line-height: 1.8;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 64px;
  color: var(--clr-primary);
  position: absolute;
  top: 8px;
  left: 20px;
  opacity: .25;
}

/* ---------- Price Table ---------- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
}

.price-table th,
.price-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--clr-border);
  font-size: 15px;
}

.price-table th {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.05em;
  background: var(--clr-bg-card);
  text-transform: uppercase;
  font-size: 17px;
  color: var(--clr-text-muted);
}

.price-table td:last-child {
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
  color: var(--clr-accent-warm);
}

.price-table tr:hover td { background: rgba(255,255,255,.03); }

.price-table .item-desc {
  display: block;
  font-size: 13px;
  color: var(--clr-text-muted);
  font-weight: 400;
  margin-top: 4px;
}

/* ---------- CTA Button ---------- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border: 2px solid var(--clr-primary);
  color: var(--clr-primary-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all .3s;
}

.btn:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
}

.btn--white { border-color: var(--clr-white); color: var(--clr-white); }
.btn--white:hover { background: var(--clr-white); color: var(--clr-bg); }

/* ---------- Contact Form ---------- */
.contact-section {
  padding: 56px 0;
  background: var(--clr-bg-section);
}

.contact-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 40px;
  color: var(--clr-text-heading);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  max-width: 726px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form { display: flex; flex-direction: column; gap: 16px; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--clr-border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--clr-bg-card);
  color: var(--clr-text);
  transition: border-color .3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--clr-text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--clr-primary);
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-form button {
  align-self: flex-start;
  padding: 14px 40px;
  background: var(--clr-primary);
  color: var(--clr-white);
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .3s;
}

.contact-form button:hover { background: var(--clr-accent); }

/* Honeypot – unsichtbar für Menschen */
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* Captcha-Zeile */
.captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.captcha-row label {
  font-size: 14px;
  color: var(--clr-text-muted);
  white-space: nowrap;
}

.captcha-row input {
  width: 100px;
  text-align: center;
}

/* Formular-Statusmeldung */
.form-status {
  font-size: 14px;
  line-height: 1.6;
  min-height: 0;
}

.form-status--error {
  color: #e74c3c;
}

.form-status--success {
  color: #2ecc71;
}

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  margin-bottom: 24px;
  color: var(--clr-text-heading);
}

.contact-info p {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--clr-text-muted);
}

.contact-info a { color: var(--clr-primary-soft); }

.social-links { margin-top: 24px; display: flex; gap: 16px; }

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--clr-bg-elevated);
  color: var(--clr-text-muted);
  font-size: 18px;
  border: 1px solid var(--clr-border);
  transition: background .3s, color .3s, border-color .3s;
}

.social-links a:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
  border-color: var(--clr-primary);
}

.hero--about {
  padding-bottom: 28px;
}
.hero--about .about-portrait {
  margin-top: 20px;
}

/* ---------- About Page ---------- */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 16px;
}

.about-content p {
  margin-bottom: 20px;
  color: var(--clr-text-muted);
  font-size: 15px;
  line-height: 1.9;
}

.about-portrait {
  max-width: 560px;
  height: 320px;
  margin: 8px auto 20px;
  border-radius: 6px;
  overflow: hidden;
  border: 4px solid rgba(255,255,255,.12);
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

/* ---------- Blog Page ---------- */
.blog-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}

.blog-card {
  padding: 32px 0;
  border-bottom: 1px solid var(--clr-border);
}

.blog-card h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.blog-card h2 a { color: var(--clr-text-heading); }
.blog-card h2 a:hover { color: var(--clr-primary-soft); }

.blog-card .meta {
  font-size: 13px;
  color: var(--clr-text-muted);
  margin-bottom: 12px;
}

.blog-card p {
  color: var(--clr-text-muted);
  font-size: 15px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #222;
  color: rgba(255,255,255,.5);
  padding: 40px 0 20px;
  border-top: 1px solid var(--clr-border);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.footer-logo img { height: 70px; opacity: .75; }

.footer-social { display: flex; gap: 20px; align-items: center; }

.footer-social a {
  color: rgba(255,255,255,.4);
  font-size: 28px;
  transition: color .3s;
}

.footer-social a:hover { color: var(--clr-primary-soft); }

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  font-size: 13px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  background: rgba(0,0,0,.95);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  transition: opacity 0.25s ease;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 36px;
  color: var(--clr-white);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  color: rgba(255,255,255,.7);
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px;
  transition: color .3s;
  line-height: 1;
}

.lightbox-nav:hover { color: var(--clr-white); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-info {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  background: transparent;
  transition: opacity 0.25s ease;
  -webkit-transform: translateX(-50%) translateZ(0);
  will-change: opacity;
}

.lightbox-title,
.lightbox-counter {
  background: transparent;
  -webkit-transform: translateZ(0);
}

.lightbox-title {
  font-family: var(--font-heading);
  font-size: 24px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-white);
  margin-bottom: 6px;
}

.lightbox-counter {
  color: rgba(255,255,255,.45);
  font-size: 15px;
  letter-spacing: 0.1em;
}

.lightbox-info--dark .lightbox-title { color: #222; }

/* ---------- Intro / About Section (Start page) ---------- */
.intro-section {
  padding: 48px 0 56px;
  background: linear-gradient(135deg, #1a3a50, #2c5f7c);
  color: var(--clr-white);
}

.intro-content {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.intro-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--clr-white);
  margin-bottom: 20px;
}

.intro-content p {
  color: rgba(255,255,255,.85);
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 16px;
}

.intro-content p:last-child { margin-bottom: 0; }

.intro-content .btn {
  margin-top: 32px;
  border-color: var(--clr-white);
  color: var(--clr-white);
}

.intro-content .btn:hover {
  background: var(--clr-white);
  color: #1a3a50;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .site-header nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 99;
  }
  .main-nav {
    display: none;
    flex-direction: column;
    background: var(--clr-white);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
  }
  .main-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .gallery-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; gap: 24px; text-align: center; }
  .image-row { grid-template-columns: 1fr; }
  .about-portrait { max-width: 240px; }
  .main-nav a { color: #555; }
  .menu-toggle { color: var(--clr-bg); }
}
