/* Fonts are self-hosted: no request leaves for Google, which matters for
   visitors in Austria and Germany. Atkinson Hyperlegible was designed for
   readers with low vision; Lora is the warm serif for headings. */
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 400; font-display: swap; src: url('fonts/atkinson-400.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 700; font-display: swap; src: url('fonts/atkinson-700.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-weight: 600; font-display: swap; src: url('fonts/lora-600.woff2') format('woff2'); }

:root {
  --green: #1f5b3f;
  --green-dark: #174630;
  --green-tint: #eef5f0;
  --green-soft: #dcebe0;
  --green-pale: #b9d3c2;
  --ink: #1e2b23;
  --ink-soft: #3c4a41;
  --paper: #ffffff;
  --sans: 'Atkinson Hyperlegible', 'Trebuchet MS', system-ui, sans-serif;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.1875rem; /* 19px */
  line-height: 1.55;
  text-wrap: pretty;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; line-height: 1.2; text-wrap: balance; }
h2 { font-size: clamp(1.875rem, 1.3rem + 1.8vw, 2.625rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.375rem, 1.15rem + 0.6vw, 1.625rem); }
p { margin: 0; }

a { color: var(--green); }
a:hover { color: var(--green-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.top a:focus-visible, .top button:focus-visible, .contact a:focus-visible { outline-color: #ffffff; }

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

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 1.25rem; }
@media (min-width: 720px) { .wrap { padding-inline: 2.5rem; } }

/* Language switch: everything with [lang] is shown only when it matches.
   Buttons carry lang too, so both stay visible; they are styled by state. */
[lang="de"]:not(.lang__btn) { display: initial; }
html[data-lang="en"] [lang="de"]:not(.lang__btn),
html[data-lang="de"] [lang="en"]:not(.lang__btn) { display: none; }

/* ---- Header / hero ---- */
.top { background: var(--green); color: #ffffff; }
.top__row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.125rem; }
.top__name { color: #ffffff; text-decoration: none; font-weight: 700; font-size: 1rem; letter-spacing: 0.02em; white-space: nowrap; }
@media (max-width: 479px) { .top__city { display: none; } }
@media (min-width: 720px) { .top__name { font-size: 1.25rem; } .top__row { padding-block: 1.75rem; } }

.lang { display: flex; border: 2px solid #ffffff; border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.lang__btn {
  appearance: none; border: 0; background: transparent; color: #ffffff; cursor: pointer;
  font: inherit; font-size: 0.9375rem; padding: 0.375rem 0.75rem; min-height: 44px; min-width: 44px;
}
.lang__btn[aria-pressed="true"] { background: #ffffff; color: var(--green); font-weight: 700; }
@media (min-width: 720px) { .lang__btn { font-size: 1.125rem; padding: 0.5rem 1.25rem; } }

.hero { display: flex; flex-direction: column; gap: 1.5rem; padding-block: 2rem 3rem; }
.hero h1 { font-size: clamp(2.375rem, 1.5rem + 3.2vw, 3.875rem); line-height: 1.1; color: #ffffff; }
.hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.hero__sub { font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.625rem); line-height: 1.5; color: var(--green-soft); }
.hero__me { display: flex; align-items: center; gap: 1rem; }
.hero__caption { font-size: 1.125rem; color: var(--green-soft); }
.portrait { border-radius: 50%; object-fit: cover; object-position: center top; flex-shrink: 0; }
.portrait--hero { width: 88px; height: 88px; }
@media (min-width: 900px) {
  .hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 4rem; align-items: center; padding-block: 4rem 6rem; }
  .hero__me { flex-direction: column; text-align: center; }
  .portrait--hero { width: 240px; height: 240px; }
  .hero__caption { font-size: 1.25rem; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; justify-content: center; align-items: center;
  padding: 1.125rem 1.5rem; border-radius: 10px; text-decoration: none;
  font-weight: 700; font-size: 1.25rem; min-height: 56px;
  transition: background-color 120ms ease, color 120ms ease;
}
.btn--light { background: #ffffff; color: var(--green); }
.btn--light:hover { background: var(--green-soft); color: var(--green-dark); }
.btn--big { font-size: clamp(1.25rem, 1rem + 0.6vw, 1.5rem); }
@media (max-width: 719px) { .hero .btn, .contact .btn { width: 100%; } }
@media (min-width: 720px) { .btn { padding: 1.125rem 2.125rem; font-size: 1.375rem; } .btn--big { padding: 1.25rem 2.5rem; } }

/* ---- Sections ---- */
.section { padding-block: 3rem; }
.section--tight { padding-top: 0; }
@media (min-width: 720px) { .section { padding-block: 5.5rem; } .section--tight { padding-top: 0; } }

.cards { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.card { background: var(--green-tint); border-radius: 14px; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.card p { color: var(--ink-soft); }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } .card { padding: 2.25rem; border-radius: 16px; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
.step { display: flex; flex-direction: column; gap: 0.5rem; border-top: 4px solid var(--green); padding-top: 1rem; }
.step__num { font-family: var(--serif); font-weight: 600; font-size: 2.5rem; line-height: 1; color: var(--green); }
.step p { color: var(--ink-soft); }
@media (min-width: 600px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } .step { gap: 1rem; padding-top: 1.5rem; } .step__num { font-size: 3rem; } }

/* ---- About ---- */
.about { background: var(--green-tint); }
.about__row { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.25rem; padding-block: 3rem; }
.about__text { display: flex; flex-direction: column; gap: 1.25rem; }
.about__text h2 { margin-bottom: 0; }
.about__text p { color: var(--ink-soft); font-size: clamp(1.1875rem, 1.05rem + 0.4vw, 1.375rem); }
.portrait--about { width: 160px; height: 160px; }
@media (min-width: 900px) {
  .about__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 4rem; align-items: center; text-align: left; padding-block: 5rem; }
  .portrait--about { width: 260px; height: 260px; margin: 0 auto; }
}

/* ---- Contact ---- */
.contact { background: var(--green); color: #ffffff; }
.contact__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.25rem; padding-block: 3.5rem 2.5rem; }
.contact h2 { color: #ffffff; margin-bottom: 0; }
.contact p { color: var(--green-soft); font-size: clamp(1.1875rem, 1.05rem + 0.4vw, 1.375rem); max-width: 40rem; }
.contact__email { font-size: 1.0625rem; color: var(--green-soft); }
.contact__email a { display: block; margin-top: 0.25rem; color: #ffffff; font-weight: 700; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.contact__email a:hover { color: var(--green-soft); }
.contact__link { color: #ffffff; font-weight: 700; font-size: 1.1875rem; }
.contact__link:hover { color: var(--green-soft); }
@media (min-width: 720px) { .contact__inner { padding-block: 6rem 4rem; gap: 1.5rem; } }

/* ---- Footer ---- */
.footer { background: var(--green); color: var(--green-pale); font-size: 0.9375rem; text-align: center; padding-block: 1rem 2.5rem; }
.footer a { color: var(--green-pale); }
.footer a:hover { color: #ffffff; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
