/* Zahnarztpraxis Thomas Rosenberg – shared stylesheet
   Recreates the look of the former WordPress site (theme "Twenty Twenty-Two")
   without any WordPress dependencies. */

@font-face {
  font-family: "Source Serif Pro";
  src: url("fonts/SourceSerif4Variable-Roman.ttf.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif Pro";
  src: url("fonts/SourceSerif4Variable-Italic.ttf.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --color-fg: #000;
  --color-bg: #fff;
  --color-accent: #fcb900;          /* header (luminous vivid amber) */
  --color-on-accent: #fff;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --font-serif: "Source Serif Pro", serif;

  --fs-medium: 1.125rem;
  --fs-large: 1.75rem;
  --fs-x-large: clamp(1.75rem, 3vw, 2.25rem);
  --fs-huge: clamp(2.25rem, 4vw, 2.75rem);
  --fs-gigantic: clamp(2.75rem, 6vw, 3.25rem);
  --fs-colossal: clamp(3.25rem, 8vw, 6.25rem);

  --space-small: max(1.25rem, 5vw);
  --space-large: clamp(4rem, 10vw, 8rem);
  --gap: 1.5rem;

  --content-width: 650px;
  --wide-width: 1000px;
}

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-sans);
  font-size: var(--fs-medium);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover, a:focus { text-decoration-style: dashed; }
a:active { text-decoration: none; }

/* Layout --------------------------------------------------------------- */
.wide {
  max-width: var(--wide-width);
  margin-inline: auto;
}
.site-header, .content, .site-footer { padding-inline: var(--space-small); }

.content > * {
  max-width: var(--content-width);
  margin-inline: auto;
  margin-block: var(--gap) 0;
}

/* Skip link ------------------------------------------------------------ */
.skip-link {
  position: absolute; left: -9999px; top: 0;
}
.skip-link:focus {
  left: 6px; top: 7px; z-index: 100;
  padding: 15px 23px 14px;
  background: #f1f1f1; color: #21759b;
  font-size: 14px; font-weight: 600; text-decoration: none;
  box-shadow: 0 0 2px 2px rgba(0,0,0,.6);
}

/* Header --------------------------------------------------------------- */
.site-header {
  background: var(--color-accent);
  color: var(--color-on-accent);
  padding-top: var(--space-small);
  padding-bottom: calc(var(--space-large) * 2);
  margin-bottom: 66px;
}
.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
}
.site-title {
  margin: 0;
  font-family: var(--font-sans);
  font-style: italic;
  font-weight: normal;
  line-height: 1.6;
  font-size: var(--fs-medium);
}
.site-header .site-title { font-size: var(--fs-large); }
.site-title a { text-decoration: none; }
.site-title a:hover, .site-title a:focus { text-decoration: underline dashed; }

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .5em 2em;
  margin: 0;
  padding: 0;
  list-style: none;
}
nav a { text-decoration: none; }
nav a:hover, nav a:focus, nav a[aria-current="page"] { text-decoration: underline; }

/* Typography ----------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.15;
}
.page-title { font-size: var(--fs-gigantic); line-height: 1.15; word-break: break-word; margin-top: 0; }
h3 { font-size: var(--fs-huge); }
h4 { font-size: var(--fs-x-large); }
h5, h6 {
  font-family: var(--font-sans);
  font-size: var(--fs-medium);
  line-height: 1.6;
  text-transform: uppercase;
}
h5 { font-weight: 700; }
h6 { font-weight: 400; }

p, ul { margin-bottom: 0; }
ul { padding-left: 1.5em; }
ul.plain { list-style: none; }

hr {
  border: none;
  border-bottom: 2px solid;
  opacity: .4;
}

/* Image */
.photo { margin-block: var(--gap) 1em; }
.content > .photo { max-width: var(--content-width); }
.photo img { display: block; width: 100%; height: auto; }

/* Footer --------------------------------------------------------------- */
.site-footer { padding-top: var(--space-large); }
.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding-block: 4rem;
}
.footer-bar p { margin: 0; }

@media (max-width: 600px) {
  .header-bar, .footer-bar { flex-direction: column; align-items: flex-start; }
}
