/* Inter, self-hosted (latin subset) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/inter-latin-700.woff2") format("woff2");
}

:root {
  --green: #1F4E46;
  --green-dark: #163a34;
  --green-tint: #E6EFEC;
  --text: #1B1F1E;
  --muted: #4E5856;
  --grey: #F3F5F4;
  --line: #DCE3E0;
  --white: #FFFFFF;
  --radius: 12px;
  --gutter: 20px;
  --max: 1080px;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 1.625rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1rem;
  hyphens: auto;
  overflow-wrap: break-word;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--green);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--green-dark);
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.nowrap {
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: var(--gutter);
  top: 8px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--line);
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Limits line length but keeps content aligned with the page grid */
.narrow > * {
  max-width: 44rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  transition: transform 250ms ease;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

/* Keep the header visible while keyboard focus is inside it */
.site-header:focus-within {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition: none;
  }
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem;
  white-space: nowrap;
}

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

.brand-region {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.9375rem;
}

.header-link {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.header-link:hover {
  text-decoration: underline;
}

/* Sections */

.section {
  padding: 56px 0;
  scroll-margin-top: 65px; /* header height: 64px + 1px border */
}

.section-grey {
  background: var(--grey);
}

/* Buttons */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 14px 24px;
  border: 2px solid var(--green);
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.btn:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--green);
}

.btn-secondary:hover {
  background: var(--green-tint);
  border-color: var(--green);
  color: var(--green);
}

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 1.75rem;
}

/* Hero */

.hero {
  padding: 48px 0 56px;
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.125rem;
  max-width: 36rem;
}

.hero .btn {
  margin-top: 1.75rem;
}

.mockup {
  margin: 48px 0 0;
}

.mockup-cards {
  display: grid;
  gap: 12px;
}

.mockup-cards svg {
  width: 100%;
  max-width: 420px;
}

.mockup-cards text {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.mockup figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 34rem;
}

/* So funktioniert es */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -3px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 34px;
  text-align: center;
}

.steps h3 {
  margin-bottom: 0.375rem;
}

/* Angebot */

.offers {
  display: grid;
  gap: 16px;
}

.offer {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.offer h3 {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 600;
}

.offer-price {
  margin: 0.5rem 0 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.offer-unit {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.offer-body {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.smallprint {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Sicher und einfach */

.facts {
  display: grid;
  gap: 16px;
}

.fact {
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--white);
}

.fact h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
}

.fact h3 svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* Über mich */

.about {
  display: grid;
  gap: 28px;
}

.about-photo img {
  width: 200px;
  height: 200px;
  border-radius: var(--radius);
  object-fit: cover;
}

/* Kontakt */

.contact-details {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-details li {
  margin-bottom: 0.25rem;
}

.contact-name {
  font-weight: 600;
}

/* Sub-pages */

.legal {
  padding: 40px 0 64px;
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-weight: 500;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.legal h1 {
  margin-bottom: 1.75rem;
}

.legal address {
  font-style: normal;
  margin-bottom: 1rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}

/* Tablet */

@media (min-width: 640px) {
  :root {
    --gutter: 32px;
  }

  .btn {
    display: inline-flex;
    width: auto;
  }

  .btn-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .mockup-cards {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 32px 40px;
  }

  .facts {
    grid-template-columns: 1fr 1fr;
  }

  .about {
    grid-template-columns: 220px 1fr;
    gap: 40px;
    align-items: start;
  }

  .about-photo img {
    width: 220px;
    height: 220px;
  }
}

/* Desktop */

@media (min-width: 960px) {
  body {
    font-size: 1.125rem;
  }

  h1 {
    font-size: 2.875rem;
  }

  h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .section {
    padding: 88px 0;
  }

  .hero {
    padding: 80px 0 88px;
  }

  .hero .container {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 64px;
    align-items: center;
  }

  .hero-lead {
    font-size: 1.1875rem;
  }

  .mockup {
    margin: 0;
  }

  .mockup-cards {
    grid-template-columns: 1fr;
  }

  .mockup-cards svg {
    max-width: 100%;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .offers {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .offer {
    padding: 28px;
  }

  .about {
    grid-template-columns: 280px 1fr;
    gap: 64px;
  }

  .about-photo img {
    width: 280px;
    height: 280px;
  }

  .legal {
    padding: 64px 0 96px;
  }
}
