/* ==========================================================================
   Zahnarztpraxis Veronika Pfliegler — Hinweisseite
   Design-Tokens aus der bisherigen Website übernommen, siehe design-tokens.md
   ========================================================================== */

/* --- Fonts (lokal, keine externen Requests) ------------------------------ */

@font-face {
  font-family: Rajdhani;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/rajdhani-v10-latin-regular.woff2) format("woff2");
}

@font-face {
  font-family: Rajdhani;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/rajdhani-v10-latin-500.woff2) format("woff2");
}

@font-face {
  font-family: Rajdhani;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/rajdhani-v10-latin-600.woff2) format("woff2");
}

@font-face {
  font-family: Rajdhani;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/rajdhani-v10-latin-700.woff2) format("woff2");
}

/* --- Tokens -------------------------------------------------------------- */

:root {
  --petrol: #127b96;
  --petrol-hover: #1387a5;
  --petrol-dark: #0f687f;
  --petrol-pastell: #b8d7df;
  --text: #707070;
  --heading: #333;
  --muted: #6b6b6b;
  --surface: #f5f5f5;
  --white: #fff;
  --font: Rajdhani, sans-serif;
}

/* --- Reset & Basis ------------------------------------------------------- */

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

html {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  background: var(--white);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img,
svg {
  max-width: 100%;
  height: auto;
  border-style: none;
}

a {
  color: inherit;
  font-weight: 600;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--petrol-hover);
}

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

p,
li,
address {
  font-size: 1.05rem;
}

h1,
h2,
h3 {
  font-family: var(--font);
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 1.9rem;
  color: var(--heading);
  margin: 1.6rem 0 2.9rem;
}

h2 {
  font-size: 1.8rem;
  color: var(--text);
  margin: 2.3rem 0 1.5rem;
}

h3 {
  font-size: 1.5rem;
  color: var(--text);
  margin: 0 0 20px;
}

/* --- Container ----------------------------------------------------------- */

.container {
  box-sizing: content-box;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 20px;
  background: var(--white);
  color: var(--petrol);
}

.skip-link:focus {
  left: 0;
}

/* --- Header -------------------------------------------------------------- */
/* Im Original zweizeilig (Topbar + Navigation). Ohne Navigation bleibt eine
   Zeile: Logo links, Telefon rechts. Höhen und Paddings wie im Original. */

.site-header {
  position: relative;
  width: 100%;
  height: 70px;
  background-color: var(--white);
  z-index: 920;
}

/* Logo oben ausgerichtet (die Offsets unten reproduzieren exakt die
   Logo-Position des Originals), Telefonnummer vertikal mittig. */
.site-header .header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  height: 100%;
  padding: 10px 20px;
}

.site-header .logo {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}

.site-header .logo img {
  height: 50px;
  width: auto;
}

.site-header .header-phone {
  align-self: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  transition-property: color;
  transition-duration: 0.5s;
}

.site-header .header-phone:hover {
  color: var(--petrol);
}

/* --- Hero ---------------------------------------------------------------- */
/* Vollbreites Bild wie im Original-Slideshow, aber ohne dessen Overlay-
   Headline („Ihre Zahnärztin in Landshut") — die wäre nach dem Umzug
   irreführend. Das Bild dient nur als Einstieg. */

.hero {
  width: 100%;
  overflow: hidden;
  background-color: #e8eef0;
  line-height: 0;
}

.hero img {
  display: block;
  width: 100%;
  height: clamp(200px, 42vw, 520px);
  object-fit: cover;
  /* Bildausschnitt auf das Gesicht statt auf die Bildmitte */
  object-position: center 32%;
}

/* --- Hinweisblock -------------------------------------------------------- */

.site-main {
  flex: 1 0 auto;
  min-height: 200px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.notice {
  max-width: 700px;
  margin: 0 auto;
}

.notice p {
  margin: 0 0 20px;
}

.notice .salutation {
  margin-bottom: 1.6rem;
}

.notice h2 {
  margin-top: 3rem;
}

/* Neue Adresse dezent in Petrol abgesetzt — greift die Markenfarbe auf,
   ohne die kantige Formensprache der Seite zu brechen (kein Radius). */
.notice .new-address {
  margin: 1.5rem 0 2rem;
  padding: 25px 30px;
  background-color: #eef5f7;
  border-left: 4px solid var(--petrol);
}

.notice .new-address address {
  font-style: normal;
  margin: 0;
}

.notice .closing {
  margin-top: 3rem;
}

.notice .closing .signature {
  display: block;
  margin-top: 1.2rem;
  font-weight: 600;
  color: var(--heading);
}

/* --- Rechtstexte (Impressum / Datenschutz) ------------------------------- */

.legal {
  max-width: 900px;
  margin: 0 auto;
}

.legal h2 {
  font-size: 1.5rem;
}

.legal h3 {
  font-size: 1.3rem;
}

.legal p {
  margin: 0 0 20px;
}

.legal a {
  color: var(--petrol);
}

.legal a:hover {
  color: var(--petrol-dark);
}

.legal ul {
  padding-left: 20px;
}

/* --- Footer -------------------------------------------------------------- */

.site-footer {
  flex: 0 0 auto;
}

.footer-top {
  padding: 20px 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  text-align: center;
}

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

.footer-top .logo img {
  width: 100%;
  max-width: 180px;
  height: auto;
}

.footer-top h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin: 0 0 2px;
}

.footer-top p,
.footer-top address {
  margin: 5px 0 0;
  font-style: normal;
}

.footer-top a {
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-top a:hover {
  color: var(--petrol);
}

.footer-bottom {
  padding: 10px 15px;
  background-color: var(--surface);
}

.footer-bottom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: center;
  text-align: center;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin: 10px 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  display: inline-block;
  padding: 0 15px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: var(--petrol-dark);
}

.copyright {
  font-size: 1.05rem;
  color: var(--muted);
}

/* --- Breakpoints --------------------------------------------------------- */

@media screen and (min-width: 640px) {
  .container {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media screen and (min-width: 960px) {
  html {
    /* Fließtext-Stufe des Originals ab @m */
    font-size: 16px;
  }

  p,
  li,
  address {
    font-size: 1.15rem;
  }

  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2.6rem;
  }

  h3 {
    font-size: 2rem;
  }

  .container {
    padding-left: 40px;
    padding-right: 40px;
  }

  .container-expand {
    padding-left: 0;
    padding-right: 0;
  }

  .site-header {
    height: 130px;
    box-shadow: 0 0 8px rgb(0 0 0 / 30%);
  }

  .site-header .header-inner {
    padding: 15px 40px 20px;
  }

  /* margin-top bildet den Logo-Überstand des Originals nach:
     Original-Logo sitzt bei y=24 (Padding-Top 15 + 9) */
  .site-header .logo img {
    width: 150px;
    height: auto;
    margin-top: 9px;
  }

  .site-header .header-phone {
    margin-right: 10px;
  }

  .site-main {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .legal h2 {
    font-size: 1.8rem;
  }

  .legal h3 {
    font-size: 1.45rem;
  }

  .footer-top {
    padding: 30px;
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: left;
  }

  .footer-top .logo img {
    max-width: 160px;
  }

  .footer-bottom {
    padding: 22px 30px 25px;
  }

  .footer-bottom-grid {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }

  .footer-nav ul {
    justify-content: flex-start;
    margin: 0;
  }

  .footer-nav li:first-child a {
    padding-left: 0;
  }

  .copyright {
    text-align: right;
    font-size: 1.15rem;
  }
}

@media screen and (min-width: 1200px) {
  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.8rem;
  }

  h3 {
    font-size: 2.1rem;
  }

  .site-header {
    height: 160px;
  }

  /* Original-Logo sitzt hier bei y=28 (Padding-Top 15 + 13) */
  .site-header .logo img {
    width: 190px;
    margin-top: 13px;
    margin-left: 30px;
  }

  .site-header .header-phone {
    font-size: 1.25rem;
  }

  .footer-top {
    padding: 30px 35px;
  }

  .footer-top .logo img {
    max-width: 180px;
  }

  .footer-bottom {
    padding: 22px 35px 25px;
  }
}

@media screen and (min-width: 1600px) {
  .site-header .header-phone {
    font-size: 1.3rem;
  }
}

@media print {
  .site-header,
  .site-footer {
    box-shadow: none;
  }
}
