/* Zahnarztpraxis Dr. Fabian Hammer & Kollegen — Version 6 nach Figma-Design (1920er Raster) */

:root {
  --navy: #0C3956;
  --navy-deep: #083956;
  --teal: #5FB7B5;
  --coral: #FF6F4E;
  --coral-dark: #EE5A39;
  --gray: #576C73;
  --bg-gray: #F2F2F2;
  --tint: rgba(12, 57, 86, .05);
  --white: #fff;
  --font: "Google Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 121px;
  --header-h-s: 76px;           /* Höhe nach dem Scrollen */
  --wrap: 1200px;
  --gutter: 24px;
  --r: 26px;
  --r-img: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---- Basis ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h-s); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 20px; line-height: 32px; color: var(--gray); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2 { font-weight: 500; color: var(--navy); }
h2 { font-size: clamp(34px, 1.6rem + 1.8vw, 52px); line-height: 1.077; letter-spacing: -.5px; }
h3 { font-size: 24px; line-height: 32px; font-weight: 400; color: var(--navy); }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
.nowrap { white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-wide { --wrap: 1280px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 99px; font-size: 14px; }
.skip:focus { top: 12px; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 55.6px; padding: 14px 26px 15px; border: 1px solid transparent; border-radius: 99px; font-size: 14px; line-height: 19px; font-weight: 700; text-align: center; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.btn img { width: 24px; height: 24px; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: #4DA4A2; }
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: var(--coral-dark); }
.btn-outline { border-color: var(--coral); color: var(--coral); }
.btn-outline:hover { background: var(--coral); color: #fff; }

/* ---- Header ---- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: #fff; transition: box-shadow .35s ease; }
body { padding-top: var(--header-h); }   /* Platz für den fixierten Header */
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(12, 57, 86, .08); }
.header-inner { display: flex; align-items: center; height: var(--header-h); transition: height .35s var(--ease); }
.site-header.is-scrolled .header-inner { height: var(--header-h-s); }
.brand img { width: 177px; height: auto; transition: width .35s var(--ease); }
.site-header.is-scrolled .brand img { width: 118px; }
.main-nav { display: flex; gap: 27px; margin-left: auto; }
.main-nav a { position: relative; font-size: 14px; line-height: 19px; font-weight: 700; color: var(--navy); transition: color .2s ease; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--teal); }
.header-phone { display: flex; flex-direction: column; margin: 0 -54px 0 88px; }
.header-phone .label { font-size: 12px; line-height: 20px; font-weight: 700; letter-spacing: .36px; text-transform: uppercase; color: var(--teal); }
.header-phone .number { font-size: 20px; line-height: 32px; color: var(--navy); transition: color .2s ease; }
.header-phone:hover .number { color: var(--teal); }
.header-call, .menu-toggle { display: none; }
.mobile-menu { display: none; }

/* ---- Hero ---- */
.hero { position: relative; min-height: 639px; display: flex; color: #fff; overflow: hidden; background: var(--navy-deep); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--navy-deep), rgba(12, 57, 86, 0)); }
.hero-inner { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; padding: 122px 0 80px; }
.hero h1 { color: #fff; font-size: clamp(40px, 1rem + 4vw, 80px); line-height: 1.075; letter-spacing: -.01em; }
.hero-sub { margin-top: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 21px; margin-top: 44px; }
.hero-blob { position: relative; flex: none; width: 393px; height: 201px; margin: -73px -148px 0 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: url('/assets/img/icons/blob.svg') center / 100% 100% no-repeat; text-align: center; color: #fff; }
.hero-blob span { font-size: 20px; line-height: 32px; }
.hero-blob span:first-child { margin-right: 110px; }
.hero-blob strong, .hero-blob span:last-child { margin-left: 16px; }
.hero-blob strong { font-size: 52px; line-height: 56px; font-weight: 500; letter-spacing: -.5px; margin-top: -9px; }
.hero-blob span:last-child { margin-top: 0; }

/* ---- Leistungsspektrum ---- */
.services { padding: 102px 0 100px; }
.services-grid { display: grid; grid-template-columns: minmax(0, 547px) minmax(0, 555px); justify-content: space-between; align-items: start; gap: 48px; }
.services-media { position: relative; margin-top: 87px; padding-bottom: 51px; }
.media-main { width: calc(477 / 547 * 100%); aspect-ratio: 477 / 597; object-fit: cover; border-radius: var(--r-img); }
.media-sub { position: absolute; right: 0; bottom: 0; width: calc(250 / 547 * 100%); aspect-ratio: 1; object-fit: cover; border: 10px solid #fff; border-radius: 28px; box-sizing: border-box; }
.services-text .lead { margin-top: 22px; }
.accordion { margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.accordion details { margin: 0 -8px; border-radius: 15px; transition: background .3s ease; }
.accordion details[open] { background: var(--tint); }
.accordion summary { display: flex; align-items: center; gap: 12px; padding: 0 8px; font-size: 20px; line-height: 32px; font-weight: 500; color: var(--gray); cursor: pointer; list-style: none; transition: padding .3s var(--ease), color .2s ease; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--navy); }
.accordion details[open] summary { padding-top: 12px; }
.acc-icon { position: relative; flex: none; width: 24px; height: 24px; border-radius: 12px; background: var(--tint); transition: transform .35s var(--ease), background .3s ease; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 6px; top: 11.5px; width: 12px; height: 1px; background: var(--teal); border-radius: 1px; }
.acc-icon::after { transform: rotate(90deg); }
.accordion details[open] .acc-icon { transform: rotate(45deg); background: transparent; }
.accordion .ans { padding: 14px 52px 22px 44px; }
.accordion .ans p { font-size: 16px; line-height: 26px; }

/* ---- Karriere ---- */
.career { background: linear-gradient(to bottom, var(--navy) 27.964%, #60B7B5 140.54%); color: #fff; }
.career-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 195.5px 0 204.5px; text-align: center; }
.career h2 { color: #fff; }
.career-kicker { margin-top: 48px; font-size: 24px; line-height: 32px; color: var(--teal); }
.career-jobs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin-top: 24px; border-bottom: .5px solid rgba(255, 255, 255, .8); }
.career-jobs li { position: relative; padding: 24px; font-size: 24px; line-height: 32px; }
.career-jobs li + li::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 1px; background: rgba(255, 255, 255, .45); }
.career .btn { margin-top: 48px; min-width: 175px; }

/* ---- Kontakt ---- */
.contact { padding: 103px 0 103px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; margin-top: 60px; }
.contact-info { padding: 43px 44px 44px 0; }
.contact-list { display: flex; flex-direction: column; gap: 24px; margin-top: 24px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.ci-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--tint); }
.contact-list small { display: block; margin-top: -1px; font-size: 12px; line-height: 20px; font-weight: 700; letter-spacing: .36px; text-transform: uppercase; color: var(--teal); }
.contact-list a:hover { color: var(--navy); }
.hours-title { margin-top: 51px; }
.hours { margin-top: 24px; font-size: 24px; line-height: 32px; }
.hours div { display: grid; grid-template-columns: 96px auto; }
.hours dt, .hours dd { white-space: nowrap; }
.hours i { font-style: normal; color: var(--teal); padding: 0 4px; }
.hours .is-today { color: var(--navy); }
.map-box { position: relative; min-height: 460px; height: 636px; border-radius: var(--r); overflow: hidden; background: #fff; }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Dr. Fabian Hammer ---- */
.doctor-quote { background: var(--bg-gray); padding: 110px 0; }
.doctor { background: var(--bg-gray); padding: 0 0 102px; }   /* schließt direkt an die Zitat-Sektion an */
.outro-section { background: var(--bg-gray); padding: 94px 0 102px; }
.doctor-intro { display: grid; grid-template-columns: minmax(0, 581px) minmax(0, 1fr); align-items: center; gap: 48px 95px; }
.quote blockquote p { white-space: nowrap; }
.portrait { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: linear-gradient(to bottom, var(--navy), var(--teal)); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.quote blockquote p { font-size: clamp(24px, .9rem + 1.1vw, 34px); line-height: 1.5; letter-spacing: -.5px; color: var(--gray); }
.quote figcaption { margin-top: 32px; font-size: 24px; line-height: 32px; color: var(--navy); }
.quote figcaption span { display: block; color: var(--teal); }
.doctor h2 { margin-top: 0; }
.doctor .cv + h2 { margin-top: 94px; }
.cv { margin-top: 28px; display: flex; flex-direction: column; gap: 28px; font-size: 24px; line-height: 32px; }
.cv div { display: grid; grid-template-columns: 164px minmax(0, 1fr); gap: 0 20px; }
.cv dd { max-width: 1060px; }
.outro { text-align: center; }
.outro h2 { margin-top: 0; }
.outro p { margin-top: 32px; font-size: 24px; line-height: 32px; color: var(--navy); }

/* ---- Rechtliches ---- */
.page-hero { padding: 56px 0 0; }
.page-hero h1 { font-size: clamp(40px, 1.6rem + 2.4vw, 64px); line-height: 1.1; letter-spacing: -.5px; }
.legal-section { padding: 0 0 57px; }
.legal { max-width: 820px; margin-left: max(var(--gutter), (100% - var(--wrap)) / 2); }
.legal h2 { font-size: 24px; line-height: 32px; font-weight: 500; letter-spacing: 0; margin-top: 48px; }
.legal > h2:first-child { margin-top: 42px; }   /* Abstand unter der Seitenüberschrift */
.legal p { margin-top: 12px; font-size: 16px; line-height: 26px; }
.legal ul { margin-top: 12px; padding-left: 20px; list-style: disc; font-size: 16px; line-height: 26px; }
.legal a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal a:hover { color: var(--teal); }
.legal .todo { color: #D62828; font-weight: 500; }   /* fehlende Angaben, bis der Kunde sie liefert */
.credits { margin-top: 72px; padding-top: 8px; border-top: 1px solid rgba(12, 57, 86, .12); }

/* ---- Footer ---- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .7); font-size: 15px; line-height: 24px; padding-top: 90px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer-brand img { width: 197px; height: auto; margin: -24px 0 0 -2px; }
.footer-brand p { max-width: 331px; margin-top: 19px; }
.footer-title { font-size: 15.2px; line-height: 17px; font-weight: 500; letter-spacing: -.15px; color: #fff; margin-bottom: 15px; }
.site-footer ul.spaced { display: flex; flex-direction: column; gap: 8px; }
.site-footer a { transition: color .2s ease; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .9); font-size: 13.6px; line-height: 22px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---- Responsiv ---- */
@media (max-width: 1500px) {
  .hero-blob { margin-right: 0; }
  .header-phone { margin-right: 0; }
}
@media (max-width: 1200px) {
  .header-phone { margin-left: 56px; }
  .quote blockquote p { white-space: normal; }
  .br-d { display: none; }
  .hero-inner { flex-direction: column-reverse; padding-top: 48px; }
  .hero-blob { width: 300px; height: 154px; margin: 0 0 32px -12px; }
  .hero-blob strong { font-size: 40px; line-height: 44px; margin-top: -6px; }
  .hero-blob span { font-size: 17px; line-height: 26px; }
  .hero-blob span:first-child { margin-right: 84px; }
  .doctor-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 1024px) {
  :root { --header-h: 84px; --header-h-s: 64px; }
  .brand img { width: 136px; }
  .site-header.is-scrolled .brand img { width: 100px; }
  .main-nav, .header-phone { display: none; }
  .header-call { display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; border-radius: 50%; background: var(--tint); }
  .header-call svg { fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .menu-toggle { display: grid; align-content: center; gap: 6px; width: 44px; height: 44px; margin-left: 8px; padding: 0 11px; border: 0; border-radius: 50%; background: var(--navy); cursor: pointer; }
  .menu-toggle span { display: block; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s var(--ease); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .mobile-menu { display: block; position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: 0 16px 32px rgba(12, 57, 86, .12); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s; }
  .mobile-menu.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s ease, transform .25s ease; }
  .mobile-menu nav { display: flex; flex-direction: column; padding: 8px 0 28px; }
  .mobile-menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--tint); font-size: 18px; font-weight: 500; color: var(--navy); }
  .mobile-menu .btn { margin-top: 24px; }
  body.menu-open { overflow: hidden; }

  .services { padding: 96px 0 72px; }
  .services-grid { grid-template-columns: 1fr; gap: 56px; }
  .services-media { order: 2; margin-top: 0; max-width: 547px; }
  .contact { padding: 120px 0 88px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { padding: 0; }
  .map-box { height: 460px; }
  .doctor-quote { padding: 88px 0; }
  .doctor { padding: 0 0 120px; }
  .outro-section { padding: 94px 0 120px; }
  .doctor-intro { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .portrait { width: min(420px, 100%); }
  .cv div { grid-template-columns: 132px minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  :root { --gutter: 20px; }
  body { font-size: 18px; line-height: 29px; }
  .hero { min-height: 0; }
  .hero-inner { padding: 32px 0 56px; }
  .hero .nowrap { white-space: normal; }
  .hero-sub { margin-top: 16px; }
  .hero-actions { margin-top: 32px; gap: 12px; }
  .hero-blob { width: 240px; height: 123px; margin-bottom: 28px; }
  .hero-blob strong { font-size: 32px; line-height: 36px; margin-top: -4px; }
  .hero-blob span { font-size: 14px; line-height: 21px; }
  .hero-blob span:first-child { margin-right: 66px; }
  .hero-blob strong, .hero-blob span:last-child { margin-left: 10px; }
  .services { padding: 41px 0 47px; }
  .services-grid { gap: 48px; }
  .accordion summary { font-size: 18px; line-height: 28px; }
  .accordion .ans { padding: 12px 16px 20px 44px; }
  .career-inner { min-height: 0; padding: 50px 0 56px; }
  .contact { padding: 50px 0 56px; }
  .contact-grid { margin-top: 41px; }
  .career-kicker { margin-top: 32px; font-size: 20px; }
  .career-jobs { grid-template-columns: 1fr; }
  .career-jobs li { padding: 18px 0; font-size: 20px; line-height: 29px; }
  .career-jobs li + li::before { left: 20%; right: 20%; top: 0; bottom: auto; width: auto; height: 1px; }
  .contact-list { gap: 20px; }
  .hours, .cv { font-size: 18px; line-height: 28px; }
  .hours div { grid-template-columns: 80px auto; }
  .hours-title { margin-top: 40px; }
  .map-box { height: 420px; min-height: 0; }
  .doctor-quote { padding: 56px 0; }
  .doctor { padding: 0 0 45px; }
  .outro-section { padding: 43px 0 45px; }
  .doctor .cv + h2 { margin-top: 44px; }
  .cv { margin-top: 32px; gap: 20px; }
  .cv div { grid-template-columns: 1fr; }
  .cv dt { color: var(--navy); font-weight: 500; }
  .quote figcaption { font-size: 20px; line-height: 29px; }
  .site-header { box-shadow: 0 6px 24px rgba(12, 57, 86, .08); }   /* mobil: gleicher Schatten wie gescrollt, auch ungescrollt */
  .page-hero { padding-top: 48px; }
  .legal h2 { margin-top: 40px; }
  .outro p { font-size: 20px; margin-top: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
}
