/* kopfhoch.at – Stylesheet
   Ohne externe Schriften oder Skripte (DSGVO-freundlich). */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #24282b;
  --muted: #5d6468;
  --accent: #00776e;
  --accent-hover: #005a53;
  --line: #e4e1da;
  --max: 46rem;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171a1c;
    --surface: #1f2326;
    --text: #e8e6e1;
    --muted: #a7adb1;
    --accent: #4fc3b8;
    --accent-hover: #7ed6ce;
    --line: #33383c;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
}

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

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover, a:focus { color: var(--accent-hover); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--surface); padding: .5rem 1rem; z-index: 10;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Kopfbereich */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.site-header .inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
}
.site-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.site-title a { color: var(--text); text-decoration: none; }
.site-title span { color: var(--muted); font-weight: 400; }

.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .25rem 1.25rem;
}
.main-nav a {
  text-decoration: none; color: var(--text); font-weight: 500;
  padding: .25rem 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a:focus { border-bottom-color: var(--accent); color: var(--text); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* Inhalt */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

h1, h2, h3 { line-height: 1.3; margin: 2.2rem 0 .8rem; }
h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-top: 0; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }

ul { padding-left: 1.25rem; }
li { margin: .3rem 0; }

.hero {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}
.hero img {
  width: 11rem; height: 11rem;
  border-radius: 50%;
  object-fit: cover;
}
.hero h1 { margin: 0 0 .4rem; }
.hero p { margin: 0; color: var(--muted); font-size: 1.15rem; }

@media (max-width: 34rem) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: 1.25rem; }
  .hero img { margin: 0 auto; width: 9rem; height: 9rem; }
}

figure { margin: 0 0 2rem; }
figure img { border-radius: var(--radius); width: 100%; }
figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.card h2 { margin-top: 0; }

.lang-en { font-style: italic; color: var(--muted); }

/* Fußbereich */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}
.site-footer .inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  justify-content: space-between;
}
.site-footer a { color: var(--muted); }
