/* Nagel Profi — the studio page (index.html). Design: the canvas "Nagel Profi — сайт студії"
   (phone 390 px, computer 1280 px), task: ZADANIE.md. Mobile first: phone up to 767 px,
   computer from 1024 px, in between a calm tablet layout. */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Great Vibes"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/great-vibes-latin-400-normal.woff2") format("woff2"); }

:root {
  --bg: #fdf7f3;
  --peach: #f6e3db;
  --peach-deep: #f3d3c7;
  --card: #ffffff;
  --card-line: #f1ddd4;
  --card-divider: #f4e6df;
  --red: #c8231f;
  --red-dark: #a81d1a;
  --script: #b23d31;
  --kicker: #a8463a;
  --heading: #2a1a17;
  --text: #3a2420;
  --text-soft: #4a3530;
  --muted: #5e463f;
  --small: #7a5a52;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script-font: "Great Vibes", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.5; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, figure, blockquote, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--text); }
a:hover { color: var(--red); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
button { font-family: inherit; }
body.lb-open { overflow: hidden; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 50; padding: 12px 18px; border-radius: 999px; background: var(--card); color: var(--text); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.owner-note { position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; background: var(--heading); color: #fff; font-size: 15px; line-height: 1.4; text-align: center; }

/* ---------- shared pieces ---------- */
.kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--kicker); }
.note { font-size: 12.5px; line-height: 1.5; text-align: center; color: var(--small); }
.card { background: var(--card); border: 1px solid var(--card-line); border-radius: 18px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font-size: 14px; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s; }
.btn-primary { background: var(--red); border: 0; color: #fff; font-size: 15px; letter-spacing: 0.04em; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--red); color: var(--red); }
.btn-outline:hover { background: #fbeae6; color: var(--red-dark); }
.btn-small { min-height: 48px; }

.icon-dot { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; background: var(--peach); color: var(--red); }

/* ---------- first screen ---------- */
.hero { position: relative; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; padding-bottom: 28px; }
.hero-photo img {
  width: 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 86%, rgba(0,0,0,.6) 92%, rgba(0,0,0,.25) 96%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 86%, rgba(0,0,0,.6) 92%, rgba(0,0,0,.25) 96%, transparent 100%);
}
.hero-bar { position: absolute; left: 20px; right: 20px; top: 14px; z-index: 2; display: flex; align-items: center; justify-content: space-between; }
.hero-logo { width: 60px; height: 60px; object-fit: contain; }
.hero-nav { display: none; }
.hero-text { flex: 1 1 auto; display: flex; flex-direction: column; padding: 0 20px; text-align: center; }
.hero-copy { margin: auto 0; display: flex; flex-direction: column; align-items: center; }
.hero-slogan { margin-top: 30px; font-family: var(--script-font); font-size: 34px; line-height: 1.15; font-weight: 400; color: var(--script); }
.hero-lede { margin-top: 18px; max-width: 320px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.hero-actions { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.rating-link { align-self: center; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px; font-size: 13px; color: var(--muted); text-decoration: underline; text-decoration-color: #e2c3b8; text-underline-offset: 4px; }

/* ---------- sections ---------- */
.section { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 48px 20px 40px; }
.section > * { width: 100%; }
#arbeiten { gap: 20px; }
.section-head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.section-head h2 { font-family: var(--serif); font-size: 34px; line-height: 1.1; font-weight: 600; color: var(--heading); }
.rating-line { margin-top: 4px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }

/* Leistungen & Preise */
.services { display: flex; flex-direction: column; gap: 14px; }
.service { display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 8px; }
.service h3 { font-size: 15px; line-height: 1.35; font-weight: 600; color: var(--heading); }
.service-hint { margin-bottom: 6px; font-size: 12.5px; line-height: 1.45; color: var(--small); }
.variant { display: flex; align-items: center; gap: 12px; min-height: 60px; border-top: 1px solid var(--card-divider); }
.variant-name { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.variant-name strong { font-size: 14px; font-weight: 500; }
.variant-name span { font-size: 12px; color: var(--small); }
.variant-price { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--heading); white-space: nowrap; }
.variant .btn { min-height: 44px; padding: 0 18px; font-size: 13px; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: var(--peach); cursor: zoom-in; aspect-ratio: 4 / 5; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.03); }
.gallery-actions { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
.gallery-actions .btn { min-height: 48px; }
.icon-link { align-self: center; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 500; text-underline-offset: 4px; }

/* Über mich */
.about { display: flex; flex-direction: column; align-items: center; }
.about-photo { position: relative; width: 290px; padding: 0 14px 14px 0; margin-top: 4px; }
.about-photo::before { content: ""; position: absolute; left: 14px; top: 14px; right: 0; bottom: 0; border-radius: 22px; background: var(--peach-deep); }
.about-photo img { position: relative; width: 276px; aspect-ratio: 900 / 1160; border: 8px solid #fff; border-radius: 22px; object-fit: cover; }
.about-caption { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 14px 0 30px; }
.about-name { font-family: var(--script-font); font-size: 34px; line-height: 1; color: var(--script); }
.about-role { font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--small); }
.about-text { display: flex; flex-direction: column; gap: 14px; font-size: 15px; line-height: 1.65; color: var(--text-soft); }
.facts { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.facts li { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--text); }

/* Bewertungen */
.reviews { display: flex; flex-direction: column; gap: 14px; }
.review { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.stars { width: 92px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='16' viewBox='0 0 28.5 24'%3E%3Cpath fill='%23c8231f' d='M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4 6.1 20.5l1.2-6.5L2.5 9.4l6.6-.9z'/%3E%3C/svg%3E") left center / 19px 16px repeat-x; }
.review blockquote { margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.6; color: var(--text); }
.review-lead { font-family: var(--serif); font-size: 22px; line-height: 1.2; font-weight: 600; color: var(--heading); }
.review figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid var(--card-divider); }
.review figcaption span { font-size: 13px; font-weight: 600; color: var(--heading); }
.review figcaption a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12.5px; color: var(--small); text-underline-offset: 3px; }

/* Kontakt & Anfahrt */
.contact { display: flex; flex-direction: column; gap: 24px; }
.map-card { display: flex; flex-direction: column; overflow: hidden; }
.map { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 210px; padding: 20px 24px; background: var(--peach); text-align: center; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: #fff; color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; }
.map-button:hover { color: var(--red); }
.map-note { font-size: 11.5px; line-height: 1.45; color: #6b4d45; }
.map-address { display: flex; flex-direction: column; gap: 16px; padding: 20px; }
.map-address address { display: flex; flex-direction: column; gap: 2px; font-style: normal; font-size: 14px; line-height: 1.5; }
.map-address strong { font-size: 16px; font-weight: 600; color: var(--heading); }
.contact-side { display: flex; flex-direction: column; gap: 24px; }
.contact-rows { display: flex; flex-direction: column; gap: 10px; }
.contact-row { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 18px; background: var(--card); border: 1px solid var(--card-line); border-radius: 16px; font-size: 14px; font-weight: 500; text-decoration: none; }
.contact-book { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.contact-book .note { font-size: 12.5px; }

/* ---------- footer ---------- */
.footer { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 40px 20px 32px; background: var(--peach); text-align: center; }
.footer-top { display: flex; flex-direction: column; align-items: center; gap: 22px; width: 100%; }
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; }
/* The wordmark alone, no logo picture (owner, 2026-10-21). */
.footer-logo { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1; color: var(--text); }
.footer-logo .red { color: var(--red); }
/* The letter-spacing also follows the last letter; the negative margin takes it back, so the
   line is centred (phone) and ends where it should under the wordmark. */
.footer-kicker { margin-right: -0.24em; font-size: 10.5px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: #8a4a3f; }
.footer-middle { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.footer-insta { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; background: #fff; color: var(--text); }
.footer-legal { display: flex; justify-content: center; column-gap: 24px; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; text-underline-offset: 3px; }
.footer-ki { display: flex; flex-direction: column; align-items: center; gap: 2px; align-self: stretch; padding-top: 18px; border-top: 1px solid #ecc9bc; }
.footer-ki p { font-size: 15px; line-height: 1.5; color: var(--text); }
.footer-ki a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--script); text-underline-offset: 4px; }
.footer-copy { font-size: 11px; color: var(--small); }

/* ---------- Impressum and Datenschutz (studio-impressum.html, studio-datenschutz.html) ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 24px 20px 56px; }
.legal-back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 8px; font-size: 14px; font-weight: 500; text-decoration: none; }
.legal-card { padding: 28px 20px 32px; }
.legal h1 { margin-top: 10px; font-family: var(--serif); font-size: 34px; line-height: 1.1; font-weight: 600; color: var(--heading); }
.legal-updated { margin-top: 8px; font-size: 13px; color: var(--small); }
.legal h2 { margin: 28px 0 8px; font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--heading); }
.legal p { font-size: 14.5px; line-height: 1.7; color: var(--text-soft); }
.legal p + p { margin-top: 10px; }
.legal-links { margin-top: 32px !important; padding-top: 20px; border-top: 1px solid var(--card-divider); }
.legal p.kicker { font-size: 11px; line-height: 1.5; color: var(--kicker); }
@media (min-width: 1024px) { .legal p.kicker { font-size: 12px; } }
.legal-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--script); }
@media (min-width: 768px) {
  .legal { padding: 48px 40px 88px; }
  .legal-card { padding: 44px 48px 48px; }
  .legal h1 { font-size: 46px; }
}

/* ---------- photo viewer ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 64px 16px; background: rgba(42, 26, 23, 0.94); touch-action: pan-y; }
.lightbox[hidden] { display: none; }
.lb-figure { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; max-height: 100%; }
.lb-figure img { max-width: min(92vw, 900px); max-height: calc(100vh - 160px); max-height: calc(100svh - 160px); width: auto; height: auto; border-radius: 14px; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb-caption { font-size: 13px; line-height: 1.4; color: #f6e3db; text-align: center; }
.lb-count { color: #d9bfb5; white-space: nowrap; }
.lightbox button { position: absolute; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 999px; background: rgba(253, 247, 243, 0.14); color: #fff; cursor: pointer; }
.lightbox button[hidden] { display: none; }
.lightbox button:hover { background: rgba(253, 247, 243, 0.26); }
.lightbox button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 767px) {
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

/* ================= tablet: 768 px and up ================= */
@media (min-width: 768px) {
  .hero { display: block; height: 100vh; height: 100svh; min-height: 620px; padding: 0; }
  .hero-photo {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(700px, 55vw);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 9%, rgba(0,0,0,.75) 18%, #000 28%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 9%, rgba(0,0,0,.75) 18%, #000 28%);
  }
  .hero-photo picture { display: block; height: 100%; }
  .hero-photo img {
    /* Anchored to the bottom (owner, 2026-10-21): when the frame is wider than the photo, the
       wall at the top is cut, not the nail lamp and the dust extractor at the bottom. */
    width: 100%; height: 100%; object-fit: cover; object-position: center bottom;
    -webkit-mask-image: linear-gradient(to bottom, #000 91%, rgba(0,0,0,.55) 96%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 91%, rgba(0,0,0,.55) 96%, transparent 100%);
  }
  .hero-bar { left: 28px; right: 28px; top: 28px; }
  .hero-logo { width: 72px; height: 72px; }
  .hero-text { position: absolute; left: 0; top: 0; bottom: 0; width: calc(100% - min(700px, 55vw) + 40px); justify-content: center; align-items: center; gap: 34px; padding: 0 40px; }
  .hero-copy { margin: 0; }
  .hero-slogan { margin-top: 26px; font-size: clamp(38px, 4.85vw, 62px); line-height: 1.1; }
  .hero-lede { margin-top: 26px; max-width: 460px; font-size: 16px; line-height: 1.7; }
  .hero-actions { align-items: center; gap: 8px; }
  .hero-actions .btn { min-height: 56px; padding: 0 56px; }

  .section { gap: 36px; padding: 72px 40px 64px; }
  #arbeiten { gap: 36px; }
  .section-head { gap: 12px; }
  .section-head h2 { font-size: clamp(38px, calc(2.6vw + 20px), 46px); }
  .services, .reviews, .contact, .about-text { max-width: 560px; }
  .section > .btn { width: auto; padding: 0 40px; }
  .note { font-size: 14px; }

  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 960px; }
  .gallery button { aspect-ratio: 1 / 1; border-radius: 20px; }
  .gallery-actions { flex-direction: row; justify-content: center; align-items: center; gap: 32px; }
  .gallery-actions .btn { min-height: 52px; padding: 0 40px; }
}

/* ================= computer: 1024 px and up ================= */
@media (min-width: 1024px) {
  .hero-bar { left: 40px; right: 40px; top: 40px; }
  .hero-logo { width: 92px; height: 92px; }
  .hero-nav { display: flex; align-items: center; column-gap: 28px; padding: 4px 20px; border-radius: 999px; background: rgba(253, 247, 243, 0.82); }
  .hero-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-decoration: none; }
  .hero-text { padding: 0 56px; }
  .hero .kicker { font-size: 13px; letter-spacing: 0.28em; }

  .section { gap: 44px; padding: 96px 100px 88px; }
  #arbeiten { gap: 44px; }
  .section-head { gap: 14px; }
  .kicker { font-size: 12px; letter-spacing: 0.28em; }

  .services { max-width: 1080px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
  .service { padding: 24px 24px 10px; }
  .service .variant:first-of-type { margin-top: auto; }

  .about { max-width: 1000px; display: grid; grid-template-columns: 420px minmax(0, 1fr); grid-template-areas: "photo text" "caption ."; column-gap: 72px; align-items: start; }
  .about-photo { grid-area: photo; justify-self: center; width: 400px; padding: 0 18px 18px 0; margin: 0; }
  .about-photo::before { left: 18px; top: 18px; }
  .about-photo img { width: 382px; border-width: 10px; }
  .about-caption { grid-area: caption; margin: 30px 0 0; }
  .about-name { font-size: 44px; }
  .about-text { grid-area: text; align-self: center; max-width: none; gap: 18px; font-size: 17px; line-height: 1.75; }
  .facts { gap: 14px; margin-top: 14px; }
  .facts li { font-size: 16px; }
  .facts .icon-dot { width: 44px; height: 44px; }

  .reviews { max-width: 1080px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
  .review { padding: 28px; }
  .review figcaption { margin-top: auto; }
  .rating-line { font-size: 14px; }

  .contact { max-width: 1000px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .map { height: 340px; }
  .contact-side { gap: 28px; }

  .footer { align-items: stretch; gap: 48px; padding: 48px 100px 32px; text-align: left; }
  .footer-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 40px; }
  .footer-brand { align-items: flex-start; }
  .footer-middle { flex-direction: row; gap: 28px; }
  .footer-ki { align-items: flex-end; align-self: auto; padding-top: 0; border-top: 0; text-align: right; }
  .footer-ki p { font-weight: 500; }
  .footer-copy { padding-top: 20px; border-top: 1px solid #ecc9bc; text-align: center; }
}
