/* Dr. Jakob Kreuzer — faithful recreation of the Squarespace site */

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/poppins-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-500.woff2') format('woff2');
}

:root {
  --blue: #187cbc;
  --grey: #e0e0db;
  --white: #ffffff;
  --black: #000000;
  --site-max-width: 1500px;
  --site-gutter: 3vw;
  --body-size: 16px;
  --body-lh: 1.8;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--white);
  color: var(--black);
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: var(--body-size);
  line-height: var(--body-lh);
  -webkit-font-smoothing: antialiased;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--black);
  color: var(--white);
  padding: 8px 16px;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: static;
  background: var(--white);
  z-index: 100;
}
.header-inner {
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 48px var(--site-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-brand img {
  height: 88px;
  width: auto;
  display: block;
}
.header-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.header-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  position: relative;
}
.header-burger span::before,
.header-burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--white);
}
.header-burger span::before { top: -7px; }
.header-burger span::after { top: 7px; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--blue);
  display: none;
  flex-direction: column;
  padding: 100px 5vw 40px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 28px;
  color: var(--white);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 5vw;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--white);
  padding: 8px;
}

/* ---------- Sections ---------- */
.page-section { position: relative; width: 100%; }
.section-inner {
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 92.4px var(--site-gutter);
}
.section--blue { background-color: var(--blue); color: var(--white); }
.news-section .section-inner { padding-top: 46.2px; padding-bottom: 46.2px; }
.news-section h2 { margin-bottom: 60px; }
.news-section p { margin-bottom: 28px; line-height: 1.8; }
.section--white { background-color: var(--white); color: var(--black); }
.section--grey { background-color: var(--grey); color: var(--black); }
/* (contact-section bottom padding reduced from 700px — no longer matches Squarespace quirk) */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  aspect-ratio: 2048 / 1298;
  color: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-inner {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 0 var(--site-gutter) 60px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
}
.hero-content {
  max-width: 1000px;
}
.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 56px;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--blue);
  background: var(--white);
  display: inline-block;
  padding: 0.15em 0.4em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero .tagline {
  font-size: 20px;
  font-weight: 300;
  color: var(--blue);
  white-space: nowrap;
  margin: 0;
  background: var(--white);
  display: inline-block;
  padding: 0.15em 0.4em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- Headings / text ---------- */
h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.25;
  margin: 0 0 20px;
}
h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.3;
  margin: 0 0 12px;
}
small {
  font-size: 14px;
}
.section--blue h2 { color: var(--white); }
.section--white h2, .section--grey h2 { color: var(--black); }
p { margin: 0 0 1em; }

/* ---------- Two-column layouts ---------- */
.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.cols-2 .col { min-width: 0; }
.cols-2 img { width: 100%; }
.img-willkommen { aspect-ratio: 1.0; object-fit: cover; }
.img-vertrauen { aspect-ratio: 0.835; object-fit: cover; }
.img-wohlbefinden { aspect-ratio: 1.381; object-fit: cover; }
.img-leistungen { aspect-ratio: 0.681; object-fit: cover; }
.img-kinder { aspect-ratio: 1.0; object-fit: cover; }
.img-zahnhygiene { aspect-ratio: 1.0; object-fit: cover; }

/* Willkommen: text left, image right */
.willkommen { grid-template-columns: 1fr 1fr; align-items: center; }
.willkommen .text { padding-right: 20px; }

/* Vertrauen/Wohlbefinden/Qualität: text left, images right */
.values { grid-template-columns: 1fr 1fr; align-items: center; }
.values .texts { padding-right: 20px; }
.values .texts h2 { margin-top: 0; }
.values .texts .block { margin-bottom: 40px; }
.values .images { display: flex; flex-direction: column; gap: 24px; }

/* Leistungen/Abrechnung: text left, image right */
.services { grid-template-columns: 1fr 1fr; align-items: center; }
.services .text { padding-right: 20px; }

/* Kinder/Zahnhygiene: two columns each image+text */
.kids { grid-template-columns: 1fr 1fr; gap: 40px; }
.kids .col img { margin-bottom: 60px; }
.kids .col h2 { margin-bottom: 30px; }
.kids .col p { margin-bottom: 24px; line-height: 1.8; }

/* ---------- Contact ---------- */
.contact-quote {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  max-width: 50em;
  margin: 0 0 100px;
}
.ordination-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.ordination-card h3 { font-size: 24px; margin-bottom: 16px; }
.ordination-card .city { font-weight: 500; font-size: 16px; margin-bottom: 30px; line-height: 1.5; }
.ordination-card p { margin: 0 0 20px; line-height: 1.6; }
.ordination-card .label { font-weight: 500; margin-top: 30px; }
.ordination-card .hours { white-space: pre-line; line-height: 1.8; }
.ordination-card .btn {
  display: inline-block;
  margin-top: 40px;
  background: var(--blue);
  color: var(--white);
  padding: 12px 24px;
  font-weight: 500;
}
.ordination-card .btn:hover { text-decoration: none; opacity: 0.9; }

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--blue);
  color: var(--white);
  padding: 60px 0;
}
.footer-inner {
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 0 var(--site-gutter);
}
.footer-inner h3 { font-size: 24px; color: var(--white); }
.footer-inner p { max-width: 60em; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero h1 { font-size: 40px; }
  .hero .tagline { font-size: 16px; white-space: normal; }
  h2 { font-size: 26px; }
  .cols-2, .willkommen, .values, .services, .kids, .ordination-cards { grid-template-columns: 1fr; }
  .header-inner { padding: 28px 5vw; }
  .header-burger { display: flex; }
  h3, .ordination-card h3, .footer-inner h3 { font-size: 20px; }
  .section-inner { padding-left: 5vw; padding-right: 5vw; }
  .hero-inner { padding-left: 5vw; padding-right: 5vw; padding-bottom: 30px; }
  .contact-quote { font-size: 20px; }
}
