:root {
  --ink: #2a2723;
  --muted: #68615a;
  --paper: #fffdf9;
  --sand: #eee4d8;
  --line: rgba(42, 39, 35, 0.14);
  --accent: #a87545;
  --accent-dark: #7b5432;
  --shadow: 0 24px 70px rgba(42, 39, 35, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f7f0e8 0%, var(--paper) 46%, #f6f4ef 100%);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 96px);
  place-items: center;
  overflow: hidden;
  padding: 40px 20px;
}

.hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 253, 249, 0.98) 0%, rgba(255, 253, 249, 0.9) 38%, rgba(255, 253, 249, 0.36) 100%),
    url("assets/haus-flair-aussenansicht.jpg") center right / cover no-repeat;
  content: "";
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0) 0%, var(--paper) 96%);
  content: "";
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1040px);
}

.notice {
  width: min(100%, 620px);
  padding: 44px 0;
}

.logo {
  display: block;
  width: min(100%, 420px);
  height: auto;
  margin: 0 0 38px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 5.4rem);
  font-weight: 400;
  line-height: 0.98;
}

.lead {
  max-width: 620px;
  margin: 28px 0 0;
  color: #3e3832;
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}

.copy {
  max-width: 610px;
  margin: 18px 0 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
}

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  align-items: center;
  justify-content: space-between;
  padding: 24px max(20px, calc((100vw - 1040px) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 253, 249, 0.88);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer-nav a,
.credit a {
  text-decoration-color: rgba(104, 97, 90, 0.45);
}

.legal-main {
  flex: 1;
  width: min(100% - 40px, 860px);
  margin: 0 auto;
  padding: 72px 0;
}

.legal-panel {
  padding: clamp(28px, 6vw, 56px);
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.82);
  box-shadow: var(--shadow);
}

.legal-panel h1 {
  max-width: 100%;
  margin-bottom: 28px;
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.legal-panel h2,
.legal-panel h3,
.legal-panel h4 {
  margin: 34px 0 10px;
  line-height: 1.25;
}

.legal-panel h2 {
  color: var(--accent-dark);
  font-size: 1.55rem;
}

.legal-panel h3 {
  font-size: 1.25rem;
}

.legal-panel h4 {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
}

.legal-content {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
}

.legal-content p,
.legal-content ul {
  margin: 0 0 16px;
}

.legal-content ul {
  padding-left: 1.35rem;
}

.legal-content a {
  color: var(--accent-dark);
}

.legal-logo {
  display: block;
  width: min(100%, 320px);
  height: auto;
  margin: 0 0 42px;
}

.back-link {
  display: inline-block;
  margin-top: 34px;
  color: var(--accent-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
}

.hero .back-link {
  margin-top: 24px;
}

@media (max-width: 720px) {
  .hero {
    min-height: auto;
    padding: 34px 20px 24px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(255, 253, 249, 0.96) 0%, rgba(255, 253, 249, 0.9) 47%, rgba(255, 253, 249, 0.68) 100%),
      url("assets/haus-flair-aussenansicht.jpg") center top / cover no-repeat;
  }

  .notice {
    padding: 12px 0 120px;
  }

  .logo {
    width: min(100%, 300px);
    margin-bottom: 30px;
  }

  h1 {
    max-width: 10ch;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
