@font-face {
  font-family: "Prometo";
  src: url("../fonts/prometo-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Prometo";
  src: url("../fonts/prometo-extrabold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  --sage: #5f7069;
  --sage-dark: #46544e;
  --sage-light: #e6ebe8;
  --bg: #f6f5f3;
  --text: #2c2f2e;
  --muted: #6b716e;
  --radius: 14px;
  --wrap: 1280px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

h1,
h2,
h3,
.brand {
  font-family: "Prometo", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--sage-dark);
}

a:hover {
  color: var(--sage);
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-icons {
  display: flex;
  gap: .5rem;
}

.header-icons a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--sage);
  color: #fff;
}

.header-icons a:hover,
.header-icons a:focus-visible {
  background: var(--sage-dark);
  color: #fff;
}

.header-icons svg {
  width: 20px;
  height: 20px;
}

.brand {
  font-weight: 800;
  font-size: clamp(1.05rem, 3vw, 1.6rem);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sage-dark);
  text-decoration: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(320px, 50vw, 480px);
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background: var(--sage-dark) url("../img/hero.webp") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(40, 50, 46, .55);
}

.hero .wrap {
  position: relative;
  padding-block: 3rem;
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin: 0 0 1rem;
}

.hero p {
  max-width: 38rem;
  margin: 0 auto;
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.badge {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: .35rem 1rem;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Sections */
section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 2rem;
  color: var(--sage-dark);
}

/* Services */
.services {
  --notch: 18px;
  --card-radius: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  max-width: var(--wrap);
  margin-inline: auto;
}

@media (min-width: 600px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .services {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--card-radius);
  background: var(--bg);
}

.service .card {
  position: absolute;
  inset: 0;
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: var(--card-radius);
}

.service .card:focus-visible {
  outline: 3px solid var(--sage-dark);
  outline-offset: 3px;
}

.service img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--card-radius);
}

/* Titel unten links im Bild */
.service .card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--card-radius);
  background: linear-gradient(to top, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .25) 35%, transparent 60%);
  pointer-events: none;
}

.service h3 {
  position: absolute;
  left: 1.25rem;
  bottom: 1.1rem;
  max-width: calc(100% - 11rem);
  margin: 0;
  color: #fff;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.2;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}

.service h3 small {
  display: block;
  margin-top: .2rem;
  font-size: .8rem;
  font-weight: 700;
  opacity: .9;
}

/* Pfeil-Button unten rechts */
.arrow {
  position: absolute;
  right: -1px;
  bottom: -1px;
  padding: 8px 0 0 8px;
  background: var(--bg);
  border-top-left-radius: var(--notch);
  color: #fff;
  text-decoration: none;
}

.arrow span {
  position: relative;
  display: block;
  overflow: hidden;
  width: 43px;
  height: 32px;
  margin: 0 8px 8px 0;
  background: var(--sage);
  border-radius: 999px;
  white-space: nowrap;
  /* Zurück: Text zuerst weg, dann Button schrumpfen */
  transition: background .2s ease, width .35s ease .1s;
}

.arrow svg {
  position: absolute;
  top: 8px;
  right: 13.5px;
  width: 16px;
  height: 16px;
}

.arrow b {
  position: absolute;
  top: 0;
  left: 16px;
  font-size: .875rem;
  font-weight: 400;
  line-height: 32px;
  opacity: 0;
  transition: opacity .15s ease;
}

.card:focus-visible .arrow span {
  width: 158px;
  background: var(--sage-dark);
  transition: background .2s ease, width .35s ease;
}

.card:focus-visible .arrow b {
  opacity: 1;
  transition: opacity .3s ease .15s;
}

/* Hover-Effekt nur auf Geräten mit echtem Hover (nicht Tablet/Handy) */
@media (hover: hover) and (pointer: fine) {
  .service:hover .arrow span {
    width: 158px;
    background: var(--sage-dark);
    /* Hin: Button wächst zuerst */
    transition: background .2s ease, width .35s ease;
  }

  .service:hover .arrow b {
    opacity: 1;
    /* Text startet kurz vor Ende der Breitenanimation (ohne Pause) */
    transition: opacity .3s ease .15s;
  }
}

.arrow::before,
.arrow::after {
  content: "";
  position: absolute;
  width: var(--notch);
  height: var(--notch);
  pointer-events: none;
  background: radial-gradient(circle at 0 0, transparent calc(var(--notch) - .5px), var(--bg) var(--notch));
}

.arrow::before {
  right: 0;
  bottom: 100%;
}

.arrow::after {
  bottom: 0;
  right: 100%;
}

/* Contact */
.contact {
  background: var(--sage-light);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.4rem;
  background: var(--sage);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  background: var(--sage-dark);
  color: #fff;
}

.contact-links svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.addresses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
  max-width: 720px;
  margin: 0 auto;
}

.addresses address {
  font-style: normal;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.addresses h3 {
  margin: 0 0 .4rem;
  font-size: 1rem;
  color: var(--sage-dark);
}

/* Legal pages */
.legal {
  max-width: 760px;
}

.legal h1 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  color: var(--sage-dark);
}

.legal h2 {
  font-size: 1.2rem;
  margin-top: 2.2rem;
  color: var(--sage-dark);
}

.legal h3 {
  font-size: 1rem;
  margin-top: 1.5rem;
}

.back {
  display: inline-block;
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  padding: 1.5rem 0;
  text-align: center;
  font-size: .9rem;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: .4rem;
}