/* Dermacare Wien — bespoke IG-batch-29
   Palette: clinical teal #2E6E6A · white #F5F8F8 · graphite #2B2F31 · soft mint #BBD6D2
   Fonts: Sora (display) + Inter (body) */

:root {
  --teal: #2E6E6A;
  --teal-deep: #245654;
  --white: #F5F8F8;
  --graphite: #2B2F31;
  --mint: #BBD6D2;
  --mint-soft: #E4EFED;
  --line: #D5E2E0;
  --muted: #5C6B6A;
  --radius: 18px;
  --maxw: 1140px;
  --shadow: 0 18px 50px -28px rgba(36, 86, 84, 0.45);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--graphite);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }

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

h1, h2, h3, .brand-word {
  font-family: "Sora", "Inter", sans-serif;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--graphite);
  font-weight: 600;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 248, 248, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--teal);
  color: var(--white);
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand-word { font-size: 1.18rem; font-weight: 600; letter-spacing: -0.01em; }
.brand-sub { color: var(--teal); margin-left: 0.3em; font-weight: 500; }

.nav { display: flex; align-items: center; }
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.7rem;
}
.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--teal); }
.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--teal-deep); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--graphite);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  margin: 0.4rem 0 1.2rem;
  max-width: 16ch;
}
.lead {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--muted);
  max-width: 46ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.8rem 0 1rem;
}
.hero-note { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.02em; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.96rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
  cursor: pointer;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--teal); border-color: var(--mint); }
.btn-ghost:hover { background: var(--mint-soft); border-color: var(--teal); }
.btn-block { width: 100%; margin-top: 0.6rem; }

.hero-figure {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--mint-soft);
  box-shadow: var(--shadow);
}
.hero-figure img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.hero-figure figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  background: rgba(36, 86, 84, 0.82);
  color: var(--white);
  font-size: 0.84rem;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

/* ---------- Institut ---------- */
.institut { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.institut-figure {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--mint-soft);
}
.institut-figure img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.institut-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 1.1rem; }
.institut-copy p { color: var(--muted); margin-bottom: 1rem; max-width: 52ch; }
.pill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}
.pill-list li {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--teal-deep);
  background: var(--mint-soft);
  border: 1px solid var(--line);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
}

/* ---------- Section heads ---------- */
.section-head { max-width: 56ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 0.8rem; }
.section-sub { color: var(--muted); font-size: 1.02rem; }

/* ---------- Behandlungen ---------- */
.behandlungen {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  background: linear-gradient(180deg, var(--mint-soft) 0%, var(--white) 100%);
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.7rem 1.8rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--mint); }
.card-num {
  font-family: "Sora", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--teal);
}
.card h3 { font-size: 1.22rem; margin: 0.7rem 0 0.7rem; }
.card p { color: var(--muted); font-size: 0.96rem; margin-bottom: 1.1rem; }
.price {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-deep);
  background: var(--mint-soft);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}
.behandlungen-note {
  margin-top: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- Galerie ---------- */
.galerie { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.gallery-item {
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
  background: var(--mint-soft);
  box-shadow: 0 10px 30px -22px rgba(36, 86, 84, 0.5);
  transition: transform 0.2s ease;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* ---------- Kontakt ---------- */
.kontakt {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--mint-soft) 100%);
}
.kontakt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
}
.kontakt-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
}
.kontakt-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; color: var(--teal-deep); }
.kontakt-addr { font-size: 1.45rem; font-family: "Sora", sans-serif; font-weight: 600; color: var(--graphite); }
.kontakt-meta { color: var(--muted); font-size: 0.92rem; margin-top: 0.2rem; }
.kontakt-cta { background: var(--teal); border-color: var(--teal); }
.kontakt-cta h3 { color: var(--white); }
.contact-line {
  display: flex;
  flex-direction: column;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(245, 248, 248, 0.2);
}
.contact-label { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mint); }
.contact-val { font-size: 1.08rem; font-weight: 600; color: var(--white); }
.kontakt-cta .btn-primary { background: var(--white); color: var(--teal-deep); }
.kontakt-cta .btn-primary:hover { background: var(--mint-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--graphite);
  color: var(--white);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.6rem;
  align-items: flex-start;
}
.footer-brand { display: flex; align-items: center; gap: 0.8rem; }
.footer-name { font-family: "Sora", sans-serif; font-weight: 600; font-size: 1.15rem; }
.footer-tag { color: var(--mint); font-size: 0.88rem; }
.footer-meta { text-align: right; font-size: 0.92rem; color: var(--mint); }
.footer-meta a { color: var(--white); }
.footer-meta a:hover { color: var(--mint); }
.footer-copy { margin-top: 0.6rem; color: rgba(187, 214, 210, 0.7); font-size: 0.82rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 36, 35, 0.92);
  padding: 4vw;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: 90vw;
  max-height: 86vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  line-height: 1;
  background: rgba(245, 248, 248, 0.12);
  color: var(--white);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox-close:hover { background: rgba(245, 248, 248, 0.25); }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  text-align: center;
  background: var(--teal);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.95rem 1rem;
  border-radius: 999px;
  box-shadow: 0 14px 34px -12px rgba(36, 86, 84, 0.7);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 460px; }
  .split { grid-template-columns: 1fr; }
  .institut-figure { max-width: 460px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.2rem 1.2rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links li { padding: 0.3rem 0; }
  .nav-links a { display: block; padding: 0.55rem 0; }
  .nav-cta { text-align: center; margin-top: 0.5rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; }
  .footer-meta { text-align: left; }
  .mobile-cta { display: block; }
  body { padding-bottom: 72px; }
}
