/*
Theme Name: GynTeam Langenfeld Draft
Author: Codex
Version: 0.2
*/

:root {
  --text: #747474;
  --heading: #3f3b38;
  --icon: #747474;
  --bg: #f7f7f7;
  --accent: #a8ac9c;
  --accent-soft: rgba(168, 172, 156, 0.16);
  --accent-green: #a8ac9c;
  --accent-green-soft: rgba(168, 172, 156, 0.22);
  --surface: #ffffff;
  --surface-2: #fbf6f2;
  --border: rgba(116, 116, 116, 0.2);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  --max-width: 1180px;
  --font-body: "Niramit", "Segoe UI", sans-serif;
  --font-head: "Cormorant Garamond", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  outline-offset: 2px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: radial-gradient(circle at 15% 20%, #ffffff 0%, var(--bg) 52%, #f1efee 100%);
  line-height: 1.7;
}

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

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

html {
  scroll-behavior: smooth;
}

.container {
  width: min(100% - 48px, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 247, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.skip-link {
  position: absolute;
  left: 0;
  top: -100px;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
  background: var(--heading);
  color: #fff;
  border-radius: 8px;
  z-index: 200;
}

.skip-link:focus {
  position: absolute;
  top: 8px;
  left: 12px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 16px;
  overflow: visible;
  clip: auto;
  clip-path: none;
}

.skip-link:focus-visible {
  outline: 2px solid var(--surface);
  outline-offset: 3px;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
}

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

.main-nav {
  display: flex;
  align-items: center;
  min-width: 0;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  align-items: center;
  white-space: nowrap;
  justify-content: center;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.main-nav li {
  margin: 0;
  display: inline-flex;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-phone {
  font-size: 0.95rem;
  color: #6f6a68;
}

.main-nav a {
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a:focus::after {
  width: 100%;
}

.main-nav a:focus-visible,
.btn:focus-visible,
a:focus-visible {
  outline: 2px solid #5e544f;
  outline-offset: 2px;
  border-radius: 8px;
}

.btn:focus-visible {
  outline-color: #4f4a45;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(168, 172, 156, 0.3);
}

.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(168, 172, 156, 0.35);
}

.btn-outline {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
  box-shadow: 0 10px 24px rgba(168, 172, 156, 0.2);
}

.btn-outline:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(168, 172, 156, 0.28);
}

.hero {
  padding: 72px 0 48px;
}

.hero-title-wrap {
  margin-bottom: 28px;
  text-align: center;
}

.hero-title-wrap h1 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(2rem, 2.6vw, 3rem);
  color: var(--heading);
  line-height: 1.05;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: start;
}

.hero p {
  margin: 0 0 28px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-map {
  margin-top: 18px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--accent-green);
  box-shadow: var(--shadow);
}

.hero-map iframe {
  width: 100%;
  height: 220px;
  border: 0;
}

.hero-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 20px 24px 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  min-height: 520px;
}

.hero-card .highlight {
  margin-top: 0;
}

.hero-card h1 {
  margin-top: 4px;
}


.hero-media {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 360px;
  box-shadow: var(--shadow);
  height: 100%;
  min-height: 520px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: rgba(255, 255, 255, 0.92);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--border);
}

.section {
  padding: 72px 0;
}

.section h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 2.4vw, 2.6rem);
  color: var(--heading);
  margin: 0 0 16px;
}

.section p {
  margin: 0 0 16px;
}

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

.praxis-header {
  text-align: center;
  max-width: 920px;
}

.praxis-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  margin-top: 32px;
  align-items: stretch;
}

.praxis-actions {
  margin-top: auto;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 18px;
}

.praxis-gallery {
  grid-template-columns: repeat(3, 1fr);
}

.services-header {
  text-align: center;
  max-width: 920px;
}

.services-header h2 {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.services-header p {
  margin-left: auto;
  margin-right: auto;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--accent-green);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-card {
  border: 1px solid var(--accent-green);
}

.service-accent {
  background: linear-gradient(140deg, #fff 0%, rgba(168, 172, 156, 0.08) 100%);
}

.service-highlight-grid {
  display: grid;
  gap: 24px;
  margin-top: 18px;
}

.service-highlight {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--accent-green);
  display: grid;
  gap: 6px;
}

.service-highlight p {
  margin: 0;
}

.service-highlight p + p {
  margin-top: 0;
}

.service-highlight h4 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--heading);
}

.service-note {
  margin-top: 18px;
  font-size: 0.92rem;
  color: #6f6a68;
}

.service-list {
  display: grid;
  gap: 12px;
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.service-list li {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(168, 172, 156, 0.5);
}

.service-sub {
  display: block;
  margin-top: 6px;
  font-size: 0.92rem;
  color: #6f6a68;
}

.team-grid {
  display: grid;
  gap: 28px;
}

.team-card {
  display: grid;
  grid-template-columns: minmax(220px, 260px) 1fr;
  gap: 24px;
  align-items: start;
  border: 1px solid var(--accent-green);
  position: relative;
}

.team-photo img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.team-logo-corner {
  position: absolute;
  left: 28px;
  bottom: 22px;
  width: 80px;
  height: auto;
  opacity: 0.35;
  filter: grayscale(10%);
}

.team-staff-card h3 {
  margin-bottom: 18px;
}

.team-staff-card {
  position: relative;
  padding-bottom: 92px;
}

.team-staff-intro {
  margin: 0 0 10px;
}

.team-staff-gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-top: 10px;
}

.gallery.team-staff-gallery img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  object-position: center top;
}

.team-logo-corner-staff {
  left: 24px;
  bottom: 18px;
}

.team-content h3 {
  margin-bottom: 6px;
}

.team-role {
  margin-top: 0;
  font-weight: 600;
  color: #5e5855;
}

.team-block {
  margin-top: 18px;
}

.team-block-compact {
  margin-top: 10px;
}

.team-block h4 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--heading);
}

.card h3 {
  font-family: var(--font-head);
  color: var(--heading);
  margin: 0 0 12px;
  font-size: 1.4rem;
}

.card ul {
  margin: 0;
  padding-left: 20px;
}

.card .service-list {
  padding-left: 0;
}

.soft-panel {
  background: linear-gradient(180deg, #ffffff 0%, rgba(168, 172, 156, 0.08) 100%);
  border-radius: 28px;
  padding: 32px;
  border: 1px solid rgba(168, 172, 156, 0.35);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 34px rgba(63, 59, 56, 0.08);
}

.benefit-line {
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--accent-green);
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.95rem;
  color: #6f6a68;
  text-align: center;
  justify-content: center;
}

.benefit-line-wide {
  margin-top: 18px;
  justify-content: center;
}

.benefit-line span + span::before {
  content: "|";
  margin: 0 10px;
  color: var(--accent-green);
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-panel {
  text-align: center;
  display: grid;
  gap: 16px;
  justify-items: center;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

.flow-card {
  position: relative;
}

.flow-accent {
  background: #ffffff;
  border-color: var(--accent-green);
  display: flex;
  flex-direction: column;
}

.flow-accent .btn {
  margin-top: 12px;
  align-self: center;
}

.flow-card::after {
  content: "";
  position: absolute;
  right: -22px;
  top: 50%;
  width: 24px;
  height: 8px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(168, 172, 156, 0.1) 0%, rgba(168, 172, 156, 0.7) 100%);
  border-radius: 999px;
}

.flow-card::before {
  content: "";
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  border-top: 2px solid rgba(168, 172, 156, 0.7);
  border-right: 2px solid rgba(168, 172, 156, 0.7);
  border-radius: 1px;
}

.flow-card:nth-child(3)::after,
.flow-card:nth-child(3)::before,
.flow-card:nth-child(5)::after,
.flow-card:nth-child(5)::before,
.flow-card:nth-child(6)::after,
.flow-card:nth-child(6)::before {
  display: none;
}

.highlight {
  color: var(--accent);
  font-weight: 600;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-2x2 {
  grid-template-columns: repeat(2, 1fr);
}

.gallery img {
  border-radius: 18px;
  height: 220px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.gallery-2x2 img {
  height: 190px;
}

.praxis-doctor-left {
  object-fit: cover !important;
  object-position: 42% center;
}

@media (min-width: 981px) {
  .praxis-doctor-left {
    object-position: 48% center !important;
  }
}

.timeline {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  padding: 12px 16px;
  border-left: 3px solid var(--accent-green);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-green-soft) 0%, var(--accent-soft) 100%);
  color: #5a544f;
  font-size: 0.85rem;
}

.site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  background: rgba(247, 247, 247, 0.96);
}

.legal-content p,
.legal-content li {
  margin: 0 0 10px;
}

.legal-content ul {
  margin: 0 0 10px;
  padding-left: 18px;
}

.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 250;
  padding: 12px 16px 16px;
  transform: translateY(130%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s ease, opacity 0.32s ease;
}

.consent-banner.is-visible {
  pointer-events: all;
  transform: translateY(0);
  opacity: 1;
}

.consent-banner.is-hidden {
  display: none;
}

.consent-banner__inner {
  width: min(100% - 24px, var(--max-width));
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(251, 246, 242, 0.98));
  border: 1px solid rgba(168, 172, 156, 0.2);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(63, 59, 56, 0.16);
  padding: 12px 14px;
  display: grid;
  gap: 10px;
  backdrop-filter: blur(6px);
}

.consent-banner__inner p {
  margin: 0;
  color: #5f5a57;
  font-size: 0.88rem;
  line-height: 1.5;
}

.consent-banner__services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.consent-service {
  position: relative;
  display: grid;
  grid-template-columns: minmax(170px, 240px) 1fr;
  align-items: start;
  gap: 12px;
  border: 1px solid rgba(168, 172, 156, 0.2);
  border-radius: 14px;
  font-size: 0.78rem;
  overflow: hidden;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  padding: 10px 12px;
}

.consent-service__title {
  margin: 0;
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  font-weight: 600;
  color: var(--heading);
}

.consent-service__detail {
  margin: 0;
  max-width: 100%;
  color: #6b6663;
  line-height: 1.35;
  font-size: 0.76rem;
  white-space: normal;
}

.consent-banner__badge {
  font-size: 0.72rem;
  color: #4b4542;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(168, 172, 156, 0.16);
  border: 1px solid rgba(168, 172, 156, 0.38);
}

.consent-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.consent-banner .btn {
  font-size: 0.85rem;
  padding: 9px 14px;
  min-width: 12ch;
  font-weight: 600;
}

.consent-banner .btn:hover,
.consent-banner .btn:focus-visible {
  transform: none;
  box-shadow: none;
}

.consent-banner .btn-outline {
  color: var(--heading);
  border-color: rgba(63, 59, 56, 0.24);
}

.consent-banner__actions a:hover,
.consent-banner__actions a:focus-visible,
.consent-banner__actions button:hover {
  text-decoration: none;
}

@media (max-width: 680px) {
  .consent-service {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.main-nav a.is-active {
  color: var(--accent);
}

.main-nav a.is-active::after {
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
  gap: 24px;
}

.footer-meta {
  font-size: 0.9rem;
}

.footer-bottom {
  margin-top: 24px;
  font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: auto minmax(220px, 1fr) auto;
    justify-items: start;
    text-align: left;
    gap: 16px;
  }

  .main-nav {
    overflow-x: auto;
    width: 100%;
    flex-shrink: 0;
  }

  .main-nav ul {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 16px;
  }

  .main-nav a {
    white-space: nowrap;
    font-size: 0.9rem;
  }

  .header-cta {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .header-phone {
    font-size: 0.88rem;
  }

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

  .hero-media {
    order: 1;
  }

  .hero-card {
    order: 2;
  }

  .grid-2,
  .grid-3,
  .services-grid,
  .team-grid,
  .flow-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .praxis-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    padding-top: 48px;
  }

  .hero-card,
  .hero-media {
    min-height: auto;
  }

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

  .gallery img {
    height: 240px;
  }

  .gallery.praxis-gallery,
  .praxis-gallery {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .praxis-gallery img {
    height: 180px;
  }

  .team-staff-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px;
  }

  .team-staff-gallery img {
    height: 160px;
  }

  .gallery.team-staff-gallery img {
    height: 160px;
  }

  .team-card {
    grid-template-columns: 1fr;
    padding-bottom: 84px;
  }

  .team-logo-corner {
    left: 20px;
    bottom: 14px;
    width: 66px;
    opacity: 0.28;
  }

  .team-staff-card {
    padding-bottom: 80px;
  }

  .team-logo-corner-staff {
    left: 18px;
    bottom: 12px;
  }

  .flow-card::after,
  .flow-card::before {
    display: none;
  }

  .flow-card {
    position: relative;
  }

  .flow-card:not(:last-child)::after {
    display: block;
    content: "";
    position: absolute;
    left: 50%;
    bottom: -28px;
    top: auto;
    right: auto;
    width: 8px;
    height: 24px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(168, 172, 156, 0.1) 0%, rgba(168, 172, 156, 0.7) 100%);
    border-radius: 999px;
  }

  .flow-card:not(:last-child)::before {
    display: block;
    content: "";
    position: absolute;
    left: 50%;
    bottom: -38px;
    top: auto;
    right: auto;
    transform: translateX(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(168, 172, 156, 0.7);
    border-bottom: 2px solid rgba(168, 172, 156, 0.7);
    border-radius: 1px;
  }
}

@media (max-width: 740px) {
  .team-staff-gallery {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .team-staff-gallery img {
    height: 180px;
  }

  .gallery.team-staff-gallery img {
    height: 180px;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 32px, var(--max-width));
  }

  .hero-card {
    padding: 20px;
  }

  .section {
    padding: 56px 0;
  }

  .consent-banner__inner {
    gap: 8px;
  }

  .consent-banner__actions {
    justify-content: stretch;
  }

  .consent-banner .btn,
  .consent-banner__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .header-inner {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
  }

  .logo img {
    height: 40px;
  }

  .header-cta {
    display: none;
  }

  .main-nav {
    justify-content: flex-end;
  }

  .main-nav ul {
    justify-content: flex-end;
  }
}
