/* Interimsseite Kieswerk Andelsbuch – Werte aus Figma "Interimsseite" (Node 3:116, 1440px Desktop) */

@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: 700;
  font-display: swap;
  src: url("/fonts/inter-latin-700.woff2") format("woff2");
}

:root {
  --green: #029639;
  --black: #000;
  --white: #fff;
  --text: clamp(18px, 1.2rem + 0.5vw, 24px);
  --leading: 1.4;
  --gutter: clamp(24px, 4.5vw, 65px);
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: var(--text);
  line-height: var(--leading);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration-thickness: from-font;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
}

/* Figma: nur die E-Mail ist unterstrichen, die Telefonnummer nicht */
a[href^="tel:"] {
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

h1,
h2,
p {
  margin: 0;
  font-size: inherit;
}

h2 {
  font-weight: 700;
}

.page {
  flex: 1;
  width: 100%;
  max-width: 1440px;
  padding: clamp(48px, 12.4vw, 178px) var(--gutter) 96px;
}

/* Logo: 644 × 77 an Position 65/178 */
.logo {
  display: block;
  width: 100%;
  max-width: 644px;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
}

/* Inhaltsblock beginnt 150px unter dem Logo (Figma: 405 − 255) */
.info {
  margin-top: clamp(56px, 10.4vw, 150px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "hours"
    "cta"
    "contact";
  row-gap: calc(2 * var(--leading) * 1em);
}

.hours {
  grid-area: hours;
}

.contact {
  grid-area: contact;
}

.cta {
  grid-area: cta;
}

/* Button: 310 × 63, 2px Rand, voll gerundet, Text bold grün */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 310px;
  max-width: 100%;
  height: 63px;
  border: 2px solid var(--green);
  border-radius: 31.5px;
  color: var(--green);
  /* Fix 24px bold: Grün #029639 auf Weiß hat 3,9:1 – reicht nur als "large text" (WCAG ≥ 18.66px bold) */
  font-size: 24px;
  font-weight: 700;
  line-height: normal;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.button:hover {
  background: var(--green);
  color: var(--white);
}

/* Desktop: Text links (643px), Button beginnt bei 58,33 % + 3px (x = 843 bei 1440) */
@media (min-width: 960px) {
  .info {
    grid-template-columns: minmax(0, 643px) minmax(32px, 135fr) 310px minmax(0, 222fr);
    grid-template-areas:
      "hours . cta ."
      "contact . . .";
  }

  .cta {
    align-self: start;
  }
}

.footer {
  padding: 0 var(--gutter) 40px;
  font-size: 16px;
}

.footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Unterseiten (Impressum, Datenschutz, 404) */
.text {
  margin-top: clamp(56px, 10.4vw, 150px);
  max-width: 820px;
  font-size: 18px;
  line-height: 1.5;
}

.text h1 {
  font-size: var(--text);
  line-height: var(--leading);
  font-weight: 700;
  margin-bottom: 1.5em;
}

.text h2 {
  margin-top: 2em;
  margin-bottom: 0.4em;
}

.text p,
.text ul {
  margin: 0 0 0.9em;
}

.text ul {
  padding-left: 1.2em;
}
