/* ==========================================================================
   Privatpraxis Dr. Schubert & Dr. Hutter – statische Website
   ========================================================================== */

/* Schrift: Roboto lokal (Dateien siehe fonts/LIESMICH.txt) */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/roboto-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/roboto-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/roboto-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/roboto-latin-700-normal.woff2") format("woff2");
}

:root {
  --green: #c3cab1;
  --light: #f6f7f6;
  --ink: #575a4f;
  --menu-bg: rgba(78, 80, 72, 0.95);
  --frame: clamp(0px, 2.5vw, 40px);
  --header-h: 119px;
  --font: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-gutter: stable;
  scroll-padding-top: var(--header-h);
}

/* Weiches Scrollen für Anker-Links, wenn das Script (js/script.js) nicht läuft */
@media (prefers-reduced-motion: no-preference) {
  html:not(.js-smooth) {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  padding: 0 var(--frame);
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

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

p {
  margin: 0 0 1.6em;
}

ul {
  margin: 0 0 1.6em;
  padding-left: 1.3em;
}

li {
  margin: 0 0 0.35em;
}

a {
  color: inherit;
}

strong,
b {
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0 0 0.6em;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

h1 {
  font-size: clamp(25px, 3.1vw, 40px);
}

h2 {
  font-size: clamp(20px, 1.9vw, 24px);
  margin-bottom: 0.9em;
}

h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 10px 16px;
  background: #fff;
  color: var(--ink);
}
.skip:focus {
  left: 8px;
  top: 8px;
}

/* --------------------------------------------------------------------------
   Kopfbereich
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding: 0 40px;
}

.logo {
  display: block;
  line-height: 0;
}

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

.menu-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s ease;
}
.menu-toggle span:nth-child(1) {
  top: 14px;
}
.menu-toggle span:nth-child(2) {
  top: 22px;
}
.menu-toggle span:nth-child(3) {
  top: 30px;
}
.menu-toggle:hover span:nth-child(2) {
  transform: scaleX(0.7);
}

/* --------------------------------------------------------------------------
   Vollbild-Menü
   -------------------------------------------------------------------------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  overflow-y: auto;
  background: var(--menu-bg);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.menu.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease;
}

.menu nav {
  margin: auto;
  padding: 90px 24px 60px;
  text-align: center;
}

.menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu li {
  margin: 0;
}

.menu a {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: break-word;
  -webkit-hyphens: manual;
  hyphens: manual;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.menu a:hover {
  opacity: 0.7;
}

.menu a[aria-current="page"] {
  opacity: 0.6;
}

.menu .m1 {
  padding: 6px 0;
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.menu .sub {
  margin: 4px 0 22px;
}

.menu .m2 {
  padding: 5px 0;
  font-size: clamp(14px, 1.4vw, 17.5px);
  font-weight: 500;
  line-height: 1.3;
}

.menu-close {
  position: absolute;
  top: 28px;
  right: 40px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
}

.menu-close svg {
  display: block;
  margin: auto;
  width: 28px;
  height: 28px;
}

.menu :focus-visible {
  outline-color: #fff;
}

/* --------------------------------------------------------------------------
   Abschnitte
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: 1188px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--green {
  background: var(--green);
}
.section--light {
  background: var(--light);
}
.section--white {
  background: #fff;
}

.section > .wrap > :last-child,
.col > :last-child {
  margin-bottom: 0;
}

.lead {
  margin-bottom: 50px;
}

.lead p {
  margin: 0;
}

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px 40px;
}

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

.person img,
.cols img {
  width: 100%;
}

.person h2 {
  margin-top: 26px;
  margin-bottom: 0.5em;
}

.back,
.legal-links a,
.more {
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Rollover: keine Unterstreichung (das Hauptmenü hat ein eigenes Rollover) */
a:hover {
  text-decoration: none;
}

/* Telefonnummern und E-Mail-Adressen nie unterstrichen
   (auch nicht, wenn iOS/Safari Nummern automatisch zu Links macht) */
a[href^="tel:"],
a[href^="mailto:"] {
  text-decoration: none;
}

a[x-apple-data-detectors] {
  color: inherit !important;
  font: inherit !important;
  text-decoration: none !important;
}

.legal-links span {
  display: inline-block;
  margin: 0 10px;
}

/* Startseite: Titelbereich (verschmilzt mit dem Kopfbereich) */
.hero {
  padding: 50px 0 70px;
  background: var(--green);
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 4.6vw, 72px);
  line-height: 1.2;
}

.hero-text p:last-of-type {
  margin-bottom: 0;
}

.hero-text .names {
  margin-bottom: 0;
}

.hours-label {
  display: inline-block;
  min-width: 3.4em;
}

.hours strong {
  display: inline-block;
  min-width: 3.1em;
}

.service h3 {
  margin-bottom: 0.7em;
}

.team p {
  margin-bottom: 0;
}

.seo h3 {
  margin-top: 1.6em;
}
.seo h3:first-child {
  margin-top: 0;
}

.vita-img {
  max-width: 100%;
}

/* Rechtstexte */
.legal h1 {
  font-weight: 700;
  margin-bottom: 0.8em;
}
.legal h2 {
  font-weight: 700;
  margin-top: 1.4em;
}
.legal h3 {
  font-weight: 700;
  font-size: 18px;
  text-transform: none;
  margin-top: 1.9em;
}
.legal a {
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Responsiv
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .cols {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .vita-img {
    max-width: 480px;
  }
  .cols3 {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .cols3.contact-cols {
    gap: 0;
  }
}

@media (max-width: 700px) {
  :root {
    --header-h: 84px;
  }
  .header-inner {
    padding: 0 20px;
  }
  .logo img {
    height: 56px;
  }
  .menu-close {
    top: 20px;
    right: 14px;
  }
  .section {
    padding: 56px 0;
  }
  .wrap {
    padding: 0 20px;
  }
  .lead {
    margin-bottom: 32px;
  }
  .hero {
    padding: 28px 0 44px;
  }
  .grid-auto {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  body {
    font-size: 14.5px;
  }
  h3 {
    font-size: 17px;
  }
}

/* Kontakt-Fußbereich: Text linksbündig mit dem Logo im Kopfbereich
   (gleicher Seitenabstand wie .header-inner) */
.section--green[aria-label="Kontakt"] > .wrap {
  max-width: none;
  padding-left: 40px;
  padding-right: 40px;
}

@media (max-width: 700px) {
  .section--green[aria-label="Kontakt"] > .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media print {
  .site-header,
  .menu,
  .skip {
    display: none;
  }
  .section {
    padding: 24px 0;
  }
}
