:root {
  --bg: #f5f3ef;
  --surface: #ffffff;
  --text: #1d1a17;
  --muted: #63584f;
  --accent: #aa1d22;
  --line: #e5d8d1;
  --shadow: 0 20px 40px rgba(29, 20, 16, 0.08);
  --hero-focus-x: 50%;
  --hero-position-y: 0%;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Arial, "Segoe UI", sans-serif;
  background-color: var(--bg);
  background-image: url("background.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
}

h1,
h2,
h3 {
  margin: 0 0 0.6rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 0.9rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.page {
  max-width: 1060px;
  margin: 0 auto;
  padding: 3.5rem 1.6rem 4rem;
  position: relative;
}

.site-header {
  display: none;
}

.page-shell {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 1rem 2.6rem;
}

.hero {
  position: relative;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.9) 5px,
    rgba(255, 255, 255, 0.9) calc(100% - 5px),
    rgba(255, 255, 255, 0) 100%
  );
  border: none;
  border-radius: 0;
  padding: 0 1.4rem 1.4rem;
  text-align: center;
  box-shadow: none;
}

.hero-media {
  position: relative;
  width: calc(100% + 2.8rem);
  margin: 0 -1.4rem 1.1rem;
}

.hero-image {
  width: 100%;
  height: clamp(220px, 32vw, 360px);
  object-fit: cover;
  object-position: var(--hero-focus-x) var(--hero-position-y);
  border-radius: 0;
  display: block;
}

.logo {
  height: 81px;
  width: auto;
  display: block;
}

.logo-link {
  position: absolute;
  top: 33%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  padding: 0.45rem 1.1rem;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.5) 48%,
    rgba(255, 255, 255, 0.25) 65%,
    rgba(255, 255, 255, 0) 88%
  );
  border-radius: 0.8rem;
  z-index: 1;
  pointer-events: none;
}

.logo-link::before {
  content: "";
  position: absolute;
  inset: -1.4rem;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.12) 42%,
    rgba(255, 255, 255, 0) 78%
  );
  border-radius: 1.8rem;
  filter: blur(14px);
  z-index: -1;
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.hero p {
  max-width: 680px;
  margin: 0 auto 1rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
  justify-content: center;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  color: #2e2722;
  font-weight: 600;
  font-size: 0.88rem;
}

.site-nav a:hover,
.site-nav a:focus {
  border-color: var(--line);
  color: var(--accent);
  text-decoration: none;
}

.content-section {
  margin-top: 1.4rem;
  background: var(--surface);
  border: none;
  border-radius: 1.4rem;
  padding: 1.4rem;
  box-shadow: none;
}

#leistungen,
#kontakt {
  border: none;
  border-radius: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.9) 5px,
    rgba(255, 255, 255, 0.9) calc(100% - 5px),
    rgba(255, 255, 255, 0) 100%
  );
}

.content-section h2 {
  margin-bottom: 0.4rem;
}

.content-section > p,
.content-section li {
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-top: 0.8rem;
}

.card-grid article {
  border: none;
  border-radius: 0;
  padding: 0.8rem;
  background: transparent;
}

.parallax-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: clamp(180px, 26vw, 300px);
  margin-bottom: 0.7rem;
  border-radius: 0.8rem;
}

.parallax-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  will-change: transform;
  transform: translate(-50%, calc(-50% + var(--parallax-offset, 0px)));
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.chip-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.34rem 0.75rem;
  font-size: 0.9rem;
}

.contact-block {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0.7rem 0;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.68rem 1.05rem;
  font-weight: 600;
  text-decoration: none;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.btn.ghost {
  background: #fdfaf8;
  color: var(--text);
  border-color: var(--line);
}

.site-footer {
  margin-top: 1.4rem;
  border-top: none;
  padding-top: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
  box-sizing: border-box;
  background: transparent;
}

.site-footer img {
  width: 100%;
  max-width: none;
  height: auto;
  opacity: 0.95;
  display: block;
}

.site-footer div {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    justify-content: center;
  }

  .site-footer {
    justify-content: center;
  }
}

@media (max-width: 620px) {
  .page-shell {
    padding: 0 0.8rem 2rem;
  }

  .hero,
  .content-section {
    border-radius: 1.1rem;
    padding: 1.1rem;
  }

  .hero {
    padding-top: 0;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero-image {
    height: clamp(210px, 55vw, 320px);
    object-position: var(--hero-focus-x) var(--hero-position-y);
  }
}
