/* Ordination Dr. Helene Wartlinger — Demo-Website */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/Newsreader-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f4ef;
  --bg-soft: #efeae2;
  --ink: #1e2a36;
  --ink-muted: #5a6570;
  --mineral: #2c4a6e;
  --mineral-deep: #1f3652;
  --brass: #b08d57;
  --brass-soft: #c9a97a;
  --taupe: #8a7a6a;
  --taupe-soft: #a89888;
  --white: #ffffff;
  --border: #ddd5c8;
  --focus: #2c4a6e;
  --radius: 4px;
  --max: 960px;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

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

a {
  color: var(--mineral);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--mineral-deep);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--mineral);
  color: var(--white);
  padding: 0.5rem 0.9rem;
  z-index: 1000;
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-meta {
  background: var(--mineral);
  color: #e8eef5;
  font-size: 0.875rem;
  padding: 0.45rem 0;
}

.header-meta .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.header-meta a {
  color: #e8eef5;
  text-decoration: none;
}

.header-meta a:hover {
  text-decoration: underline;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  text-decoration: none;
  color: var(--mineral);
  line-height: 1.25;
}

.brand:hover {
  color: var(--mineral-deep);
}

.brand-name {
  display: block;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
}

.brand-role {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--ink-muted);
  font-weight: 400;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--mineral);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.25rem;
}

.site-nav a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  font-weight: 400;
}

.site-nav a:hover {
  background: var(--bg-soft);
  color: var(--mineral);
}

.site-nav a[aria-current="page"] {
  color: var(--mineral);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--brass);
  border-radius: 0;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

main {
  padding: 2rem 0 3.5rem;
}

.page-intro {
  margin-bottom: 2rem;
  max-width: 42rem;
}

.page-intro p {
  color: var(--ink-muted);
  margin-top: 0.75rem;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--mineral-deep);
}

h1 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin: 0 0 0.5rem;
}

h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.rule {
  width: 3.5rem;
  height: 2px;
  background: var(--brass);
  border: 0;
  margin: 0.85rem 0 1.25rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--ink-muted);
  max-width: 40rem;
}

.hero {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.hero-copy {
  max-width: 36rem;
}

.hero-copy .lead {
  margin: 0 0 1.25rem;
}

.btn {
  display: inline-block;
  background: var(--mineral);
  color: var(--white);
  text-decoration: none;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  border: 1px solid var(--mineral);
  font-family: var(--font-sans);
  font-size: 1rem;
  cursor: pointer;
}

.btn:hover {
  background: var(--mineral-deep);
  color: var(--white);
  border-color: var(--mineral-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--mineral);
  margin-left: 0.5rem;
}

.btn-ghost:hover {
  background: var(--bg-soft);
  color: var(--mineral-deep);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.img-ph {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: #f2efe9;
  text-align: center;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
}

.img-ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%),
    linear-gradient(45deg, rgba(0, 0, 0, 0.04) 25%, transparent 25%),
    linear-gradient(315deg, rgba(0, 0, 0, 0.04) 25%, transparent 25%);
  background-size: 18px 18px;
  background-position: 0 0, 9px 0, 9px -9px, 0 9px;
  opacity: 0.9;
  pointer-events: none;
}

.img-ph-label {
  position: relative;
  z-index: 1;
  padding: 0.85rem 1rem;
  background: rgba(30, 42, 54, 0.35);
  width: 100%;
  margin: 0;
  font-size: 0.875rem;
}

.img-ph-hero {
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, var(--mineral) 0%, #3d5f85 45%, var(--taupe) 100%);
}

.img-ph-portrait {
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, #6d7f92 0%, var(--taupe-soft) 55%, #b6a898 100%);
}

.img-ph-room {
  aspect-ratio: 16 / 9;
  background: linear-gradient(160deg, #7a6d60 0%, var(--taupe) 40%, #c4b5a4 100%);
}

.fig-caption {
  margin: 0.55rem 0 0;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.section {
  margin: 2.5rem 0;
}

.section-alt {
  background: var(--bg-soft);
  padding: 2rem 0;
  margin: 2.5rem 0;
  border-block: 1px solid var(--border);
}

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.service-card,
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--brass);
  padding: 1.25rem 1.35rem 1.4rem;
  border-radius: var(--radius);
}

.service-card p,
.info-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9875rem;
}

.team-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.team-card .body {
  padding: 1.1rem 1.2rem 1.35rem;
}

.team-card .role {
  color: var(--brass);
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 0.55rem;
}

.team-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.975rem;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.price-table th {
  background: var(--mineral);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9375rem;
}

.price-table tr:last-child td {
  border-bottom: 0;
}

.price-table td:last-child {
  white-space: nowrap;
  font-weight: 600;
  color: var(--mineral);
}

.note {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  max-width: 42rem;
}

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

@media (min-width: 760px) {
  .contact-grid {
    grid-template-columns: 1fr 1.15fr;
  }
}

.contact-details dt {
  font-weight: 600;
  color: var(--mineral-deep);
  margin-top: 0.9rem;
}

.contact-details dt:first-child {
  margin-top: 0;
}

.contact-details dd {
  margin: 0.2rem 0 0;
  color: var(--ink-muted);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.5rem;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--mineral-deep);
}

.form-row input,
.form-row textarea {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
}

.form-row textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-hint {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin: 0 0 1rem;
}

.form-success {
  display: none;
  background: #e8f0e9;
  border: 1px solid #b7c9ba;
  color: #2a4a32;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.form-success.is-visible {
  display: block;
}

.legal {
  max-width: 44rem;
}

.legal h2 {
  margin-top: 2rem;
}

.legal p,
.legal li {
  color: var(--ink-muted);
}

.legal ul {
  padding-left: 1.2rem;
}

.demo-banner {
  background: #efe6d6;
  border: 1px solid var(--brass-soft);
  color: var(--ink);
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.site-footer {
  background: var(--mineral-deep);
  color: #d7e0ea;
  padding: 2rem 0 1.5rem;
  margin-top: auto;
}

.site-footer a {
  color: #f0f4f8;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 1.75rem;
}

.site-footer h2 {
  color: var(--white);
  font-size: 1.05rem;
  margin: 0 0 0.55rem;
}

.site-footer p,
.site-footer li {
  margin: 0.2rem 0;
  font-size: 0.9375rem;
  color: #c5d0db;
}

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

.footer-bottom {
  border-top: 1px solid rgba(176, 141, 87, 0.45);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #b8c4d0;
}

.johnny-credit {
  color: var(--brass-soft);
  font-weight: 600;
}

@media (max-width: 759px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    width: 100%;
    padding-bottom: 0.85rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .header-bar {
    flex-wrap: wrap;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.15rem;
  }

  .site-nav a {
    padding: 0.65rem 0.75rem;
  }

  .btn-ghost {
    margin-left: 0;
  }

  .price-table {
    display: block;
    overflow-x: auto;
  }
}

@media (min-width: 760px) {
  .hero {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
  }
}

/* Generated demo photos */
.content-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  object-fit: cover;
}
.content-img.portrait {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.content-img.hero-img,
.content-img.tall {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  max-height: 28rem;
}
figure:has(.content-img) {
  margin: 0;
}
