/* ==========================================================================
   aylove studio — Portfolio
   ========================================================================== */

:root {
  --bg: #0a0a0a;
  --bg-soft: #101010;
  --bg-placeholder: #1d1d1d;
  --text: #ece8e0;
  --text-muted: #a39f97;
  --line: #2c2c2c;
  --line-soft: #4b4b4b;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

section { scroll-margin-top: 72px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text);
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  letter-spacing: 0.35em;
  text-align: center;
  text-indent: 0.35em; /* optically re-center letterspaced text */
}

a { color: inherit; text-decoration: none; }

.heading-line {
  width: 56px;
  height: 1px;
  background: var(--line-soft);
  margin: 1.4rem auto 0;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: clamp(1.2rem, 3.5vw, 3.2rem);
  padding: 1.35rem 1rem;
}

.nav-list a {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s;
}

.nav-list a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.15rem 1.4rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  margin: 6px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  border-bottom: 1px solid var(--line);
}

.hero-logo {
  width: clamp(140px, 20vw, 190px);
  height: auto;
  border-radius: 50%;
  margin-bottom: 3rem;
}

.hero-title {
  font-size: clamp(0.85rem, 3.4vw, 2.6rem);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  font-weight: 400;
}

.hero-divider {
  width: 1px;
  height: 44px;
  background: var(--line-soft);
  margin: 2.2rem 0;
}

.hero-tagline {
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-scroll {
  margin-top: 4rem;
  color: var(--text-muted);
  transition: color 0.25s, transform 0.25s;
}

.hero-scroll svg { width: 26px; height: 26px; }

.hero-scroll:hover { color: var(--text); transform: translateY(4px); }

/* ==========================================================================
   Sections (generic)
   ========================================================================== */

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) 1.5rem;
}

.section-narrow { max-width: 760px; }

/* ==========================================================================
   Über mich
   ========================================================================== */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) 1.5rem;
}

.about-text h2 { text-align: left; text-indent: 0; }

.about-text .heading-line { margin-left: 0; }

.about-text p {
  margin-top: 2rem;
  color: var(--text-muted);
  max-width: 42ch;
}

.about-photo .photo { aspect-ratio: 4 / 5; }

.btn-outline {
  display: inline-block;
  margin-top: 2.4rem;
  padding: 0.85em 2.2em;
  background: none;
  border: 1px solid var(--line-soft);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.btn-outline:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ==========================================================================
   Photo placeholders / images
   ========================================================================== */

.photo {
  position: relative;
  background: var(--bg-placeholder);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

/* placeholder icon + label are injected by script.js */
.photo .ph-icon {
  width: 20%;
  max-width: 64px;
  min-width: 36px;
  color: #4d4d4d;
}

.photo .ph-label {
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  text-transform: uppercase;
  color: #5a5a5a;
}

.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.photo.loaded img { opacity: 1; }

.photo.loaded .ph-icon,
.photo.loaded .ph-label { display: none; }

/* ==========================================================================
   Portfolio & Galerie grids
   ========================================================================== */

.grid {
  display: grid;
  gap: 14px;
  margin-top: 3.2rem;
}

.grid-portfolio { grid-template-columns: repeat(4, 1fr); }
.grid-portfolio .photo { aspect-ratio: 4 / 5; }

.grid-galerie { grid-template-columns: repeat(6, 1fr); }
.grid-galerie .photo { aspect-ratio: 1 / 1; }

.link-more {
  display: block;
  width: fit-content;
  margin: 2.6rem auto 0;
  font-size: 0.64rem;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.35em;
  transition: color 0.25s, border-color 0.25s;
}

.link-more:hover { color: var(--text); border-color: var(--line-soft); }

/* ==========================================================================
   Services
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 3.6rem;
}

.service {
  text-align: center;
  padding: 0.5rem 1.4rem;
  border-left: 1px solid var(--line);
}

.service:first-child { border-left: none; }

.service-icon {
  width: 44px;
  height: 44px;
  color: var(--text-muted);
}

.service h3 {
  margin-top: 1.4rem;
  font-size: 0.98rem;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
}

.service p {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.9;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list { margin-top: 3rem; }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-item:first-child { border-top: 1px solid var(--line); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: left;
  padding: 1.35rem 0.4rem;
  cursor: pointer;
}

.faq-icon {
  position: relative;
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--text-muted);
  transition: transform 0.35s ease;
}

.faq-icon::before {
  left: 0; top: 6px;
  width: 13px; height: 1px;
}

.faq-icon::after {
  left: 6px; top: 0;
  width: 1px; height: 13px;
}

.faq-item.open .faq-icon::after { transform: scaleY(0); }

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}

.faq-answer > p {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 0 0.4rem;
  max-width: 60ch;
}

.faq-item.open .faq-answer { grid-template-rows: 1fr; }

.faq-item.open .faq-answer > p { padding-bottom: 1.6rem; }

/* ==========================================================================
   Kontakt
   ========================================================================== */

.contact-intro {
  margin-top: 2.6rem;
  text-align: center;
  color: var(--text-muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
  margin-top: 3rem;
}

.contact-form {
  display: grid;
  gap: 1.4rem;
}

.contact-form label {
  display: grid;
  gap: 0.55rem;
}

.contact-form label span {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  background: #141414;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.85rem;
  padding: 0.8em 1em;
  resize: vertical;
  transition: border-color 0.25s;
}

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

.contact-form .btn-outline {
  margin-top: 0.5rem;
  justify-self: start;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1.7rem;
  padding-top: 1.9rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--text);
  transition: color 0.25s;
}

.contact-link svg { width: 20px; height: 20px; color: var(--text-muted); transition: color 0.25s; }

.contact-link:hover, .contact-link:hover svg { color: #fff; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 2.2rem 4.5rem;
  text-align: center;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-brand { text-transform: none; }

.site-footer a { transition: color 0.25s; }
.site-footer a:hover { color: var(--text); }

.footer-sep { margin: 0 1.1em; opacity: 0.5; }

.to-top {
  position: absolute;
  right: 1.6rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  transition: color 0.25s, transform 0.25s;
}

.to-top svg { width: 22px; height: 22px; }

.to-top:hover { color: var(--text); transform: translateY(calc(-50% - 3px)); }

/* ==========================================================================
   Legal pages (Impressum / Datenschutz)
   ========================================================================== */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 9rem 1.5rem 5rem;
  min-height: 70vh;
}

.legal h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  letter-spacing: 0.35em;
  text-align: center;
  text-indent: 0.35em;
}

.legal .placeholder-note {
  margin-top: 3.5rem;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--serif);
  font-size: 1.1rem;
}

.legal .back-link {
  display: block;
  width: fit-content;
  margin: 4rem auto 0;
  font-size: 0.64rem;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s;
}

.legal .back-link:hover { color: var(--text); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .grid-portfolio { grid-template-columns: repeat(2, 1fr); }
  .grid-galerie { grid-template-columns: repeat(3, 1fr); }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 0;
  }

  .service:nth-child(3) { border-left: none; }
}

@media (max-width: 700px) {
  /* mobile nav */
  .nav-toggle { display: block; }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0 0 1rem;
  }

  .nav-list.open { display: flex; }

  .nav-list a {
    display: block;
    padding: 0.9rem 2rem;
    font-size: 0.72rem;
  }

  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .about { grid-template-columns: 1fr; }

  .about-text h2 { text-align: center; text-indent: 0.35em; }
  .about-text .heading-line { margin-left: auto; }
  .about-text { text-align: center; }
  .about-text p { margin-left: auto; margin-right: auto; }

  .contact-layout { grid-template-columns: 1fr; }
  .contact-links { align-items: center; padding-top: 0.5rem; }
  .contact-form .btn-outline { justify-self: center; }

  .site-footer { padding: 2.2rem 3.5rem; }
  .footer-sep { margin: 0 0.6em; }
}

@media (max-width: 480px) {
  .grid-galerie { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .service { border-left: none; }

  .hero-title { letter-spacing: 0.3em; text-indent: 0.3em; }
  .hero-tagline { letter-spacing: 0.3em; text-indent: 0.3em; }
}
