/* =========================================================
   Dr. Karg Zahnheilkunde – Stylesheet
   Color palette:
     Primary:   #1e5fa8  (dark blue)
     Primary2:  #2779c4  (mid blue)
     Accent:    #3b9eed  (light blue)
     Light:     #e8f2fb  (very light blue)
     White:     #ffffff
     Text:      #1a2332
     Muted:     #5a6e85
   ========================================================= */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1a2332;
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

/* ---- UTILITIES ---- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: #1e5fa8;
  color: #fff;
  border-color: #1e5fa8;
}
.btn--primary:hover {
  background: #174d8c;
  border-color: #174d8c;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 95, 168, .28);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.btn--outline:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
}

.btn--full { width: 100%; }

/* ---- SECTION SHARED ---- */
.section { padding: 5rem 0; }
.section--alt { background: #f0f6ff; }

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section__eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #2779c4;
  margin-bottom: .75rem;
}

.section__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  color: #1a2332;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section__title--left { text-align: left; }

.section__subtitle {
  color: #5a6e85;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ================================================================
   HEADER / NAV
   ================================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background .3s ease, box-shadow .3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 2px 20px rgba(30, 50, 80, .1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  transition: color .3s;
}
.header.scrolled .nav__logo { color: #1a2332; }

.nav__logo-icon {
  font-size: 1.3rem;
  color: #3b9eed;
}

.nav__logo-sub {
  font-weight: 400;
  opacity: .75;
  font-size: .9rem;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: color .2s;
}
.nav__link:hover { color: #fff; }
.header.scrolled .nav__link { color: #5a6e85; }
.header.scrolled .nav__link:hover { color: #1e5fa8; }

.nav__cta {
  padding: .55rem 1.4rem;
  border-radius: 50px;
  background: #1e5fa8;
  color: #fff !important;
  font-size: .85rem;
  font-weight: 600;
  transition: background .2s, transform .2s;
}
.nav__cta:hover {
  background: #174d8c;
  transform: translateY(-1px);
}
.header.scrolled .nav__cta { background: #1e5fa8; color: #fff; }

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: background .3s, transform .3s, opacity .3s;
}
.header.scrolled .nav__burger span { background: #1a2332; }
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #0d3b6e 0%, #1e5fa8 45%, #2779c4 75%, #3b9eed 100%);
  z-index: 0;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 85% 50%, rgba(59,158,237,.15) 0%, transparent 65%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,.06)'/%3E%3C/svg%3E");
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 9rem 1.5rem 6rem;
  max-width: 700px;
}

.hero__eyebrow {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 1.2rem;
}

.hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero__title--accent {
  color: #74c3f7;
  font-style: italic;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero__stat { text-align: left; }

.hero__stat-number {
  display: block;
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.hero__stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.65);
  font-weight: 400;
}

.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.25);
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero__scroll-icon {
  display: block;
  width: 28px;
  height: 28px;
  border-right: 2px solid rgba(255,255,255,.5);
  border-bottom: 2px solid rgba(255,255,255,.5);
  transform: rotate(45deg);
  animation: bounce 1.8s infinite;
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

/* ================================================================
   SERVICES
   ================================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background: #fff;
  border: 1px solid #dce8f5;
  border-radius: 16px;
  padding: 2rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(30, 95, 168, .12);
  border-color: #3b9eed;
}

.service-card__icon {
  width: 52px;
  height: 52px;
  background: #e8f2fb;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e5fa8;
  margin-bottom: 1.25rem;
}

.service-card__icon svg { width: 28px; height: 28px; }

.service-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a2332;
  margin-bottom: .6rem;
}

.service-card__text {
  font-size: .92rem;
  color: #5a6e85;
  line-height: 1.65;
}

/* ================================================================
   ABOUT
   ================================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__image-wrap {
  position: relative;
}

.about__image-placeholder {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(30, 95, 168, .15);
}

.about__image-placeholder svg {
  width: 100%;
  height: auto;
  display: block;
}

.about__badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: #1e5fa8;
  color: #fff;
  border-radius: 16px;
  padding: 1.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 24px rgba(30, 95, 168, .3);
  text-align: center;
}

.about__badge-number {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.about__badge-text {
  font-size: .75rem;
  opacity: .85;
  line-height: 1.3;
  margin-top: .3rem;
}

.about__text {
  color: #5a6e85;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.about__list {
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.about__list-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .95rem;
  color: #1a2332;
}

.about__list-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #e8f2fb;
  color: #1e5fa8;
  border-radius: 50%;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ================================================================
   TEAM
   ================================================================ */
.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.team-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(30, 80, 150, .07);
  transition: transform .25s ease, box-shadow .25s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(30, 95, 168, .13);
}

.team-card__photo {
  aspect-ratio: 5/4;
  overflow: hidden;
}

.team-card__photo svg { width: 100%; height: 100%; }

.team-card__info { padding: 1.5rem; }

.team-card__name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a2332;
  margin-bottom: .3rem;
}

.team-card__role {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #2779c4;
  margin-bottom: .9rem;
}

.team-card__bio {
  font-size: .9rem;
  color: #5a6e85;
  line-height: 1.65;
}

/* ================================================================
   TESTIMONIALS
   ================================================================ */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.testimonial-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(30, 80, 150, .06);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform .25s, box-shadow .25s;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(30, 95, 168, .1);
}

.testimonial-card__stars { color: #f59e0b; font-size: 1.1rem; letter-spacing: .1em; }

.testimonial-card__text {
  color: #3d5166;
  font-size: .94rem;
  line-height: 1.7;
  flex: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding-top: .75rem;
  border-top: 1px solid #e8f2fb;
}

.testimonial-card__avatar {
  width: 42px;
  height: 42px;
  background: #1e5fa8;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-card__name { font-weight: 600; font-size: .9rem; color: #1a2332; }
.testimonial-card__date { font-size: .78rem; color: #8fa4b8; }

/* ================================================================
   CONTACT
   ================================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3.5rem;
  align-items: start;
}

.contact__block { margin-bottom: 2rem; }

.contact__block-title {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #2779c4;
  margin-bottom: .75rem;
}

.contact__address {
  color: #3d5166;
  line-height: 1.75;
  font-size: .95rem;
}

.contact__link {
  color: #1e5fa8;
  font-size: .95rem;
  font-weight: 500;
  transition: color .2s;
  display: block;
  margin-bottom: .4rem;
}
.contact__link:hover { color: #2779c4; }

/* Hours table */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.hours-table td {
  padding: .5rem 0;
  border-bottom: 1px solid #e8f2fb;
  color: #3d5166;
}

.hours-table td:first-child { font-weight: 500; padding-right: 1.5rem; white-space: nowrap; }
.hours-table td:last-child { text-align: right; }
.hours-table__closed td { color: #b0c4d8; }

/* Form */
.contact__form-wrap {
  background: #fff;
  border: 1px solid #dce8f5;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(30, 80, 150, .07);
}

.contact-form__title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a2332;
  margin-bottom: 1.75rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form__group { margin-bottom: 1.2rem; }

.form__label {
  display: block;
  font-size: .83rem;
  font-weight: 600;
  color: #3d5166;
  margin-bottom: .4rem;
}

.form__input {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid #d0dff0;
  border-radius: 10px;
  font-size: .92rem;
  font-family: inherit;
  color: #1a2332;
  background: #fafcff;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form__input::placeholder { color: #aac0d4; }
.form__input:focus {
  border-color: #2779c4;
  box-shadow: 0 0 0 3px rgba(39, 121, 196, .12);
  background: #fff;
}

.form__select { cursor: pointer; }
.form__textarea { resize: vertical; min-height: 110px; }

.form__group--checkbox {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}

.form__checkbox {
  margin-top: .15rem;
  width: 16px;
  height: 16px;
  accent-color: #1e5fa8;
  flex-shrink: 0;
}

.form__checkbox-label {
  font-size: .83rem;
  color: #5a6e85;
  line-height: 1.5;
}

.form__success {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: #ecfdf5;
  color: #065f46;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 500;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: #0d2540;
  color: rgba(255,255,255,.75);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 1.5rem 3rem;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
}

.footer__tagline {
  font-size: .85rem;
  font-weight: 400;
  color: rgba(255,255,255,.5);
  margin-top: .3rem;
}

.footer__links-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 1rem;
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.footer__links a,
.footer__contact a {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  transition: color .2s;
}
.footer__links a:hover,
.footer__contact a:hover { color: #fff; }

.footer__contact p {
  font-size: .88rem;
  margin-bottom: .5rem;
  color: rgba(255,255,255,.65);
  line-height: 1.5;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__legal {
  display: flex;
  gap: 1.5rem;
}

.footer__legal a {
  color: rgba(255,255,255,.4);
  transition: color .2s;
}
.footer__legal a:hover { color: rgba(255,255,255,.75); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr; gap: 3rem; }
  .about__image-wrap { max-width: 420px; margin: 0 auto; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    border-top: 1px solid #e8f2fb;
  }

  .nav__menu.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav__link {
    color: #1a2332 !important;
    padding: .85rem 0;
    border-bottom: 1px solid #f0f6ff;
    font-size: 1rem;
  }

  .nav__cta {
    margin-top: 1rem;
    text-align: center;
    display: block;
    padding: .85rem 1rem;
  }

  .nav__burger { display: flex; }

  .hero__content { padding: 8rem 1.5rem 5rem; }
  .hero__stats { gap: 1.2rem; }
  .hero__stat-number { font-size: 1.5rem; }

  .section { padding: 3.5rem 0; }
  .section__header { margin-bottom: 2.5rem; }

  .services__grid,
  .team__grid,
  .testimonials__grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 480px) {
  .hero__title { font-size: 2.2rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; text-align: center; justify-content: center; }
  .about__badge { right: 0; bottom: -1rem; }
  .footer__inner { grid-template-columns: 1fr; }
  .contact__form-wrap { padding: 1.5rem; }
}
