/* Pendelin Vermögensverwaltungs GmbH: www.pendelin.at
   Static stylesheet: system fonts only, no external resources. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #1d2125;
  --logo: #3c4247;
  --muted: #545b62;
  --rule: #dcdfe2;
  --accent: #e85c0d;       /* decorative only (borders); too light for text */
  --link: #a8420a;
  --notice-bg: #fcf1ea;
  --measure: 42rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181b;
    --text: #e6e8ea;
    --logo: #e6e8ea;
    --muted: #a9b0b6;
    --rule: #2f353a;
    --accent: #f07a36;
    --link: #f5a06a;
    --notice-bg: #2a1e16;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0 auto;
  max-width: calc(var(--measure) + 2rem);
  padding: 0 1rem;
  border-top: 4px solid var(--accent);
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.6 var(--font);
  overflow-wrap: break-word;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
  border-radius: 1px;
}

/* Header */

.masthead {
  padding: 1.75rem 0 1.25rem;
}

/* "Pendelin P" mark; the bar keeps the brand orange in both color schemes */

.logo {
  display: block;
  width: auto;
  height: 2.5rem;
  margin-bottom: 1rem;
}

.logo-p {
  fill: var(--logo);
}

.logo-bar {
  fill: #e85c0d;
}

h1 {
  margin: 0;
  font-size: clamp(1.55rem, 1.1rem + 2.2vw, 2.1rem);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.tagline {
  margin: 0.6rem 0 0;
  font-size: 1.0625rem;
}

.ident {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

/* Notice for visitors looking for the stone saw company */

.notice {
  border-left: 4px solid var(--accent);
  background: var(--notice-bg);
  padding: 0.85rem 1rem;
}

.notice p {
  margin: 0;
}

/* Table of contents */

.toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

/* Sections */

section {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
  font-weight: 650;
  line-height: 1.3;
}

h3 {
  margin: 1.5rem 0 0.25rem;
  font-size: 1rem;
  font-weight: 650;
}

p {
  margin: 0 0 0.75rem;
}

address {
  font-style: normal;
  margin-bottom: 0.75rem;
}

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

.links li + li {
  margin-top: 0.25rem;
}

.photo {
  margin: 1.25rem 0 0;
}

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

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

/* Legal facts: stacked on small screens, two columns from 40em */

.facts {
  margin: 0;
}

.facts div {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule);
}

.facts div:first-child {
  border-top: 1px solid var(--rule);
}

.facts dt {
  color: var(--muted);
  font-size: 0.875rem;
}

.facts dd {
  margin: 0;
}

@media (min-width: 40em) {
  .masthead {
    padding-top: 3.5rem;
  }

  .logo {
    height: 3.25rem;
    margin-bottom: 1.5rem;
  }

  .facts div {
    display: grid;
    grid-template-columns: 15rem 1fr;
    gap: 1rem;
  }

  .facts dt {
    font-size: 0.9375rem;
  }
}

/* Footer */

.site-footer {
  margin-top: 3.5rem;
  padding: 1.25rem 0 2.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0;
}

/* Print */

@media print {
  :root {
    --bg: #fff;
    --text: #000;
    --muted: #333;
    --rule: #999;
    --link: #000;
    --notice-bg: transparent;
  }

  body {
    max-width: none;
    padding: 0;
    border-top: 0;
    font-size: 11pt;
  }

  .masthead {
    padding-top: 0;
  }

  .logo {
    height: 2.5rem;
  }

  .toc {
    display: none;
  }

  a {
    text-decoration: none;
  }

  main a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    overflow-wrap: anywhere;
  }

  .notice,
  address,
  .facts div {
    break-inside: avoid;
  }

  h2,
  h3 {
    break-after: avoid;
  }
}
