/* ============================================================
   Havelglück Hochzeitsfotografie — styles for the inner pages
   (Tailwind markup). Pastel-coral look of the home page; the
   shared tokens, nav, footer and buttons live in css/site.css.
   ============================================================ */

/* ============================================================
   SCROLL-TRIGGERED ANIMATIONS (main.js adds .is-visible)
   Add .fade-in-up / .fade-in-left / .fade-in-right / .fade-in.
   data-delay="200" staggers the start (ms).
   ============================================================ */

.fade-in-up, .fade-in-left, .fade-in-right, .fade-in {
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.22, 0.8, 0.2, 1), transform 1.1s cubic-bezier(0.22, 0.8, 0.2, 1);
}
.fade-in-up { transform: translateY(26px); }
.fade-in-left { transform: translateX(-26px); }
.fade-in-right { transform: translateX(26px); }
.fade-in-up.is-visible, .fade-in-left.is-visible, .fade-in-right.is-visible, .fade-in.is-visible { opacity: 1; transform: none; }

/* On phones the sideways slide-ins pushed the page wider than the screen: slide up instead. */
@media (max-width: 767px) {
  .fade-in-left:not(.is-visible), .fade-in-right:not(.is-visible) { transform: translateY(26px); }
}
@media (prefers-reduced-motion: reduce) {
  .fade-in-up, .fade-in-left, .fade-in-right, .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   IMAGES — rounded frames; portrait frames become arches
   ============================================================ */

.img-zoom { overflow: hidden; border-radius: 18px; }
.img-zoom img {
  transition: transform 1.1s cubic-bezier(0.22, 0.8, 0.2, 1);
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.img-zoom:hover img { transform: scale(1.04); }
.img-zoom.aspect-\[4\/5\], .img-zoom.aspect-\[3\/4\] { border-radius: 999px 999px 22px 22px; }

/* ============================================================
   CARD HOVER
   ============================================================ */

.card-hover { transition: transform 0.45s cubic-bezier(0.22, 0.8, 0.2, 1), box-shadow 0.45s ease; cursor: pointer; border-radius: 22px; }
.card-hover:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(181, 82, 61, 0.10); }

/* ============================================================
   BUTTONS — same soft rounded rectangles as the home page
   .btn-primary (coral) · .btn-outline (line) · .btn-white (cream, for dark backgrounds)
   ============================================================ */

.btn-primary, .btn-outline, .btn-white {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px;
  border-radius: 14px; border: 1.5px solid transparent;
  font-family: 'Inter', system-ui, sans-serif; font-weight: 500; font-size: 0.92rem; letter-spacing: 0.01em; line-height: 1.2;
  text-transform: none; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: color 0.35s ease, border-color 0.35s ease;
}
.btn-primary::before, .btn-outline::before, .btn-white::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform 0.45s cubic-bezier(0.22, 0.8, 0.2, 1);
}
.btn-primary:hover::before, .btn-outline:hover::before, .btn-white:hover::before,
.btn-primary:focus-visible::before, .btn-outline:focus-visible::before, .btn-white:focus-visible::before { transform: scaleY(1); }
.btn-primary { background: #cdcdc3; border-color: #cdcdc3; color: #201e1e; }
.btn-primary::before { background: #201e1e; }
.btn-outline { background: transparent; border-color: #201e1e; color: #201e1e; }
.btn-outline::before { background: #e9e7dc; }
.btn-white { background: #f5f4eb; border-color: #f5f4eb; color: #201e1e; }
.btn-white::before { background: #ebe9de; }
.btn-primary:focus-visible, .btn-outline:focus-visible, .btn-white:focus-visible { outline: 2px solid #201e1e; outline-offset: 3px; }
button.btn-primary:disabled { opacity: 0.6; cursor: wait; }

/* ============================================================
   FORM ELEMENTS
   ============================================================ */

.form-label {
  display: block; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.02em;
  color: #201e1e; margin-bottom: 8px;
}
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 13px 16px;
  background-color: #FFFFFF; border: 1.5px solid #d6d4c9; border-radius: 12px;
  color: #201e1e; font-size: 0.95rem; font-family: 'Inter', sans-serif;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none; appearance: none; -webkit-appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: #201e1e; box-shadow: 0 0 0 4px rgba(32, 30, 30, 0.28); }
.form-input::placeholder, .form-textarea::placeholder { color: #9a958e; }
.form-textarea { resize: vertical; min-height: 130px; }

/* ============================================================
   SECTION HELPERS
   ============================================================ */

/* Eyebrow above headings — small coral tag with a dot, sentence case */
.eyebrow {
  display: flex; align-items: center; justify-content: inherit; gap: 10px; width: fit-content;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.03em; text-transform: none;
  color: #201e1e; margin-bottom: 16px;
}
.text-center .eyebrow { margin-left: auto; margin-right: auto; }
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #201e1e; flex: none; }

.divider-leaf { width: 74px; height: 16px; margin: 0 auto 26px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 74 16' fill='none' stroke='%23EC8E78' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M2 8c6-6 11-6 17 0s11 6 17 0 11-6 17 0 11 6 17 0'/%3E%3C/svg%3E") center / contain no-repeat !important; }

/* Dark Tailwind sections use the deep rose of the home footer */
.bg-dark-olive { background-color: #201e1e; }
/* Section and card surfaces get the home's soft corners */
.bg-white.p-8, .bg-white.p-10, .bg-white.p-12, [class*="bg-white"][class*="p-8"], [class*="bg-white"][class*="p-10"] { border-radius: 22px; }
.bg-warm-beige\/35, .bg-warm-beige\/40 { background-color: #ebe9de !important; }

/* Filter pills (portfolio, reviews, blog) */
[data-filter], [data-review-filter], button[class*="px-5"][class*="py-2"] { border-radius: 999px; }

/* ============================================================
   PHOTOGRAPHER CARD STYLE (About page)
   ============================================================ */

.photographer-card { position: relative; overflow: hidden; }
.photographer-card .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(32, 30, 30, 0.75) 0%, transparent 50%); opacity: 0; transition: opacity 0.4s ease; }
.photographer-card:hover .overlay { opacity: 1; }

/* ============================================================
   PRICING CARD HIGHLIGHT
   ============================================================ */

.pricing-card-featured { position: relative; border: 2px solid #cdcdc3; border-radius: 22px; }
.pricing-card-featured::before {
  content: 'Beliebtestes Paket';
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background-color: #cdcdc3; color: #201e1e;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.02em;
  padding: 5px 16px; border-radius: 999px; white-space: nowrap;
}

/* ============================================================
   BLOG ARTICLE CARD
   ============================================================ */

.blog-card-category { font-size: 0.8rem; letter-spacing: 0.02em; color: #201e1e; font-weight: 500; }

/* ============================================================
   PROCESS STEP CONNECTOR LINE (desktop)
   ============================================================ */

@media (min-width: 768px) {
  .process-step:not(:last-child)::after {
    content: ''; position: absolute; top: 22px; left: calc(50% + 28px); right: calc(-50% + 28px);
    border-top: 1.5px dashed #cdcdc3;
  }
}
.process-step { position: relative; }

/* ============================================================
   HERO SCROLL INDICATOR
   ============================================================ */

@keyframes scrollBounce { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(8px); opacity: 1; } }
.scroll-indicator { animation: scrollBounce 2s ease-in-out infinite; }

/* ============================================================
   TESTIMONIAL QUOTE
   ============================================================ */

.testimonial-quote { position: relative; padding-top: 24px; }
.testimonial-quote::before { content: '“'; font-family: 'Playfair Display', serif; font-style: italic; font-size: 5rem; color: #201e1e; line-height: 0.6; position: absolute; top: 0; left: 0; }

/* ============================================================
   SCROLLBAR + SELECTION
   ============================================================ */

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f5f4eb; }
::-webkit-scrollbar-thumb { background: #cdcdc3; border-radius: 3px; }
::selection { background-color: #cdcdc3; color: #201e1e; }

/* ============================================================
   PACKAGE CHECK LIST ITEM
   ============================================================ */

.check-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; color: rgba(32, 30, 30, 0.75); padding: 6px 0; }
.check-item svg { flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   RESPONSIVE GALLERY GRID
   ============================================================ */

.gallery-masonry { columns: 3; column-gap: 12px; }
.gallery-masonry img { display: block; width: 100%; margin-bottom: 12px; break-inside: avoid; border-radius: 14px; }
@media (max-width: 768px) { .gallery-masonry { columns: 2; } }
@media (max-width: 480px) { .gallery-masonry { columns: 1; } }

/* ============================================================
   REVIEWS — "Liebe Worte" (main.js adds .is-visible)
   ============================================================ */

.review-mark {
  background-image: linear-gradient(#dcdacf, #dcdacf);
  background-repeat: no-repeat; background-position: 0 85%; background-size: 0% 42%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 1.2s cubic-bezier(0.65, 0, 0.35, 1) 0.6s;
}
.is-visible .review-mark { background-size: 100% 42%; }

.review-stars { display: inline-flex; gap: 3px; }
.review-stars svg {
  width: 14px; height: 14px; color: #a8864f;
  opacity: 0; transform: scale(0.3) rotate(-30deg);
  transition: opacity 0.3s ease, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: calc(var(--i) * 90ms + 150ms);
}
.is-visible .review-stars svg { opacity: 1; transform: none; }

.review-rule { display: inline-block; height: 1.5px; width: 0; background: #201e1e; transition: width 0.9s cubic-bezier(0.65, 0, 0.35, 1) 0.4s; }
.is-visible .review-rule { width: 36px; }

.review-glyph { font-family: 'Playfair Display', Georgia, serif; font-style: italic; line-height: 1; color: #201e1e; opacity: 0; transform: translateY(20px); transition: opacity 1.2s ease, transform 1.2s ease; }
.is-visible .review-glyph { opacity: 0.25; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .review-mark, .review-stars svg, .review-rule, .review-glyph { transition: none; }
  .review-mark { background-size: 100% 42%; }
  .review-stars svg { opacity: 1; transform: none; }
}

/* ============================================================
   LEGAL PAGES (impressum, datenschutz, agb)
   ============================================================ */

.legal { border-radius: 22px; }
.legal h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.35rem; color: #201e1e; margin: 2.5rem 0 0.9rem; line-height: 1.3; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin-bottom: 1rem; }
.legal ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1rem; }
.legal li { margin-bottom: 0.35rem; }
.legal a { color: #201e1e; text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.legal a:hover { color: #201e1e; }

/* ============================================================
   MONOGRAM — stands in for photographer portraits until real ones exist
   ============================================================ */

.monogram {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #e9e7dc 0%, #dcdacf 100%);
  font-family: 'Playfair Display', Georgia, serif; font-style: italic; color: #201e1e;
  font-size: clamp(4rem, 12vw, 9rem); line-height: 1; user-select: none;
}
.monogram-sm { width: 40px; height: 40px; font-size: 1.1rem; display: inline-flex; border-radius: 50%; }

/* ============================================================
   PHOTOGRAPHER PAGES (team-<name>.html) — gallery mix + placeholders
   ============================================================ */

.fg-gallery { columns: 3; column-gap: 14px; }
.fg-item { break-inside: avoid; margin: 0 0 14px; }
.fg-item img { display: block; width: 100%; height: auto; border-radius: 14px; }
.fg-ph {
  display: flex; align-items: center; justify-content: center; border-radius: 14px;
  background: linear-gradient(160deg, #ebe9de 0%, #dcdacf 100%);
  color: #201e1e; font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: 1.05rem;
}
.fg-ph--tall { aspect-ratio: 2 / 3; }
.fg-ph--wide { aspect-ratio: 3 / 2; }
.fg-review-ph { border: 1.5px dashed #cdcdc3; border-radius: 22px; min-height: 260px; }
@media (max-width: 900px) { .fg-gallery { columns: 2; column-gap: 10px; } .fg-item { margin-bottom: 10px; } }

/* Touch targets: filter pills at least 44 px high */
[data-filter], [data-review-filter], button[class*="px-5"][class*="py-2"] { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
/* Long German compound words in legal texts wrap instead of pushing the page wider */
.legal { overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
/* Long German words in headings (e.g. "Geschäftsbedingungen") hyphenate on phones */
main h1, main h2 { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
