/*
 * GrabGlanz: warm, colourful — deep moss green, ochre/brass, sand beige.
 * Values mirror the former Tailwind build so the page looks unchanged.
 */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/fraunces-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("fonts/outfit-latin.woff2") format("woff2");
}

:root {
  --background: oklch(0.962 0.024 92);
  --foreground: oklch(0.24 0.035 150);
  --card: oklch(0.985 0.016 92);
  --primary: oklch(0.42 0.085 152);
  --primary-foreground: oklch(0.97 0.02 92);
  --secondary: oklch(0.915 0.04 92);
  --secondary-foreground: oklch(0.3 0.05 150);
  --muted-foreground: oklch(0.47 0.03 145);
  --accent: oklch(0.72 0.13 72);
  --border: oklch(0.86 0.035 92);
  --deep: oklch(0.29 0.055 152);
  --deep-foreground: oklch(0.95 0.03 92);
  --brass: oklch(0.74 0.135 75);
  --brass-foreground: oklch(0.24 0.045 60);
  --sand: oklch(0.9 0.05 85);
  --moss: oklch(0.52 0.1 145);

  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Outfit", system-ui, sans-serif;
  --shadow-soft: 0 24px 60px -30px oklch(0.24 0.06 150 / 0.55);
  --shadow-lift: 0 30px 70px -28px oklch(0.24 0.06 150 / 0.7);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */

*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid var(--border);
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-size: inherit;
  font-weight: 600;
  letter-spacing: -0.015em;
}

a {
  color: inherit;
  text-decoration: inherit;
}

ul {
  list-style: none;
}

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

button,
input,
select {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  background-color: transparent;
  border-radius: 0;
}

button {
  cursor: pointer;
}

::placeholder {
  opacity: 1;
}

[hidden] {
  display: none !important;
}

/* Type scale */

.text-xs {
  font-size: 0.75rem;
  line-height: calc(1 / 0.75);
}
.text-sm {
  font-size: 0.875rem;
  line-height: calc(1.25 / 0.875);
}
.text-base {
  font-size: 1rem;
  line-height: 1.5;
}
.text-xl {
  font-size: 1.25rem;
  line-height: calc(1.75 / 1.25);
}
.text-2xl {
  font-size: 1.5rem;
  line-height: calc(2 / 1.5);
}
.relaxed {
  line-height: 1.625;
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.display {
  font-family: var(--font-display);
}

.brass {
  color: var(--brass);
}
.moss {
  color: var(--moss);
}
.primary {
  color: var(--primary);
}
.muted {
  color: var(--muted-foreground);
}

/* Layout */

.wrap {
  max-width: 64rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.wrap-narrow {
  max-width: 42rem;
}

.section {
  padding-block: 4rem;
}

.section-bottom {
  padding-bottom: 4rem;
}

.deep {
  background-color: var(--deep);
  color: var(--deep-foreground);
}

.h2 {
  margin-top: 0.75rem;
  font-size: 1.875rem;
  line-height: 1.2;
}

.lead {
  margin-top: 1rem;
  max-width: 52ch;
}

.grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.card {
  border-radius: 28px;
  background-color: var(--card);
  box-shadow: var(--shadow-soft);
}

.card-bordered {
  border-width: 1px;
  padding: 1.75rem;
}

.pill {
  border-radius: 9999px;
}

.button {
  display: block;
  border-radius: 9999px;
  text-align: center;
  font-weight: 600;
}

.button-brass {
  background-color: var(--brass);
  color: var(--brass-foreground);
}

.shadow-lift {
  box-shadow: var(--shadow-lift);
}

.grow {
  transition: transform 150ms var(--ease);
}

@media (hover: hover) {
  .grow:hover {
    transform: scale(1.01);
  }
}

/* Header */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* The logo must not shrink next to a long name, or it gets squashed. */
.brand picture {
  flex-shrink: 0;
}

.brand img {
  height: 3rem;
  width: auto;
  border-radius: 20px;
}

.brand-name {
  font-size: 1.25rem;
  line-height: 1;
}

.brand .eyebrow {
  margin-top: 0.25rem;
}

.header-cta {
  padding: 0.5rem 1rem;
}

@media (hover: hover) {
  .grow.header-cta:hover {
    transform: scale(1.03);
  }
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
}

.hero-bild,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bild {
  object-fit: cover;
  opacity: 0.45;
}

.hero-shade {
  background-image: linear-gradient(
    to bottom in oklab,
    color-mix(in oklab, var(--deep) 85%, transparent),
    color-mix(in oklab, var(--deep) 70%, transparent),
    var(--deep)
  );
}

.hero .wrap {
  position: relative;
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

.hero h1 {
  margin-top: 1rem;
  max-width: 16ch;
  font-size: 2.6rem;
  line-height: 1.02;
}

.hero h1 em {
  color: var(--brass);
}

.hero-text {
  margin-top: 1.25rem;
  max-width: 46ch;
  color: color-mix(in oklab, var(--deep-foreground) 85%, transparent);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-actions a {
  padding: 1rem 1.75rem;
}

.button-outline {
  border: 1px solid color-mix(in oklab, var(--deep-foreground) 30%, transparent);
  font-weight: 500;
}

/* Services */

.service-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.service-nr {
  font-size: 2.25rem;
  line-height: calc(2.5 / 2.25);
  /* Large text needs 3:1 against the card; sand only reached 1.3:1. */
  color: oklch(0.64 0.1 75);
}

.price {
  padding: 0.25rem 0.75rem;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  font-weight: 600;
}

.service h3 {
  margin-top: 1rem;
}

.service p {
  margin-top: 0.75rem;
}

.points {
  margin-top: 1.25rem;
}

.points li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.points li + li {
  margin-top: 0.5rem;
}

.points li::before {
  content: "";
  flex-shrink: 0;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background-color: var(--accent);
}

.footnote {
  margin-top: 1.5rem;
}

/* Call to action after each section */

.section-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
}

.section-cta .button {
  padding: 1rem 1.75rem;
}

.cta-link,
.inline-link {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.cta-link {
  text-align: center;
}

/* Before / after */

.before-after {
  gap: 2rem;
  margin-top: 2rem;
}

/* Both photos of a pair were aligned to the same stone outline, so the
   before image can sit exactly on top of the after image and be cut at the
   slider position. */
.vergleich {
  --pos: 50;
  --griff: 2.75rem;
  /* The range thumb travels from half its width to width minus half, so the
     cut follows the same path instead of 0–100 %. */
  --schnitt: calc(var(--griff) / 2 + (100% - var(--griff)) * var(--pos) / 100);
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 4 / 5;
}

.vergleich img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vergleich-vorher {
  clip-path: inset(0 calc(100% - var(--schnitt)) 0 0);
}

.vergleich::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--schnitt);
  width: 3px;
  translate: -50%;
  background: var(--brass);
  pointer-events: none;
}

.vergleich:has(input:focus-visible)::after {
  width: 5px;
  outline: 3px solid var(--deep-foreground);
}

.vergleich-marke {
  position: absolute;
  top: 1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: oklch(0.24 0.035 150 / 0.75);
  color: var(--deep-foreground);
  pointer-events: none;
}

.vergleich-marke-vorher {
  left: 1rem;
}

.vergleich-marke-nachher {
  right: 1rem;
}

.vergleich input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  appearance: none;
  touch-action: pan-y;
}

.vergleich input::-webkit-slider-thumb {
  appearance: none;
  width: var(--griff);
  height: 100vh;
}

.vergleich input::-moz-range-thumb {
  width: var(--griff);
  height: 100vh;
  border: 0;
}

.before-after figcaption {
  margin-top: 0.75rem;
}

.caption-dim {
  color: color-mix(in oklab, var(--deep-foreground) 60%, transparent);
}

.example-note {
  margin-top: 1.5rem;
  max-width: 52ch;
  color: color-mix(in oklab, var(--deep-foreground) 75%, transparent);
}

/* Steps */

.step {
  border-radius: 28px;
  background-color: var(--secondary);
  padding: 1.75rem;
}

.step-nr {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-size: 1.125rem;
  line-height: calc(1.75 / 1.125);
}

.step h3 {
  margin-top: 1rem;
}

.step p {
  margin-top: 0.5rem;
  color: color-mix(in oklab, var(--secondary-foreground) 75%, transparent);
}

/* Area */

.area {
  overflow: hidden;
}

.area img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
}

.area-body {
  padding: 1.75rem;
}

.area-body .h2 {
  font-size: 1.875rem;
  line-height: 1.2;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tags li {
  padding: 0.5rem 1rem;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  font-weight: 500;
}

/* About */

.about {
  background-color: var(--sand);
  color: var(--foreground);
}

.about-grid {
  display: grid;
  gap: 2.5rem;
}

.founder {
  max-width: 20rem;
}

.founder img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.founder figcaption {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
}

.founder-name {
  display: block;
  color: var(--foreground);
}

.about .h2 {
  max-width: 18ch;
}

.about-text {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* FAQ */

.faq {
  margin-top: 2rem;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--moss);
  font-size: 1.25rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  padding-bottom: 1.25rem;
}

/* Inquiry */

.inquiry-intro {
  margin-top: 1rem;
  color: color-mix(in oklab, var(--deep-foreground) 80%, transparent);
}

.form {
  margin-top: 2rem;
}

.form > * + * {
  margin-top: 1rem;
}

.form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: color-mix(in oklab, var(--deep-foreground) 85%, transparent);
}

.form input,
.form select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid color-mix(in oklab, var(--deep-foreground) 20%, transparent);
  border-radius: 20px;
  background-color: color-mix(in oklab, var(--deep-foreground) 10%, transparent);
  color: var(--deep-foreground);
  outline: none;
}

.form input::placeholder {
  color: color-mix(in oklab, var(--deep-foreground) 45%, transparent);
}

.form input:focus,
.form select:focus {
  border-color: var(--brass);
}

.form option {
  color: var(--foreground);
}

.form button,
.review-cta {
  width: 100%;
  padding: 1rem 1.5rem;
}

.sent {
  margin-top: 2rem;
  padding: 2rem;
  border-radius: 28px;
  background-color: var(--brass);
  color: var(--brass-foreground);
}

.sent p {
  margin-top: 0.5rem;
}

.form button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.form-alt {
  display: block;
}

.form-error {
  padding: 1rem 1.25rem;
  border: 1px solid var(--brass);
  border-radius: 20px;
}

.form-error a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Off-screen instead of display: none, because some bots skip fields that
   are not rendered. */
.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Reviews */

.reviews {
  gap: 1.5rem;
}

.review-how {
  margin-top: 0.5rem;
}

.review-cta {
  margin-top: 1.25rem;
}

.reviews-empty-title {
  font-weight: 500;
}

.reviews-empty {
  border: 1px dashed var(--border);
  border-radius: 28px;
  background-color: var(--card);
  padding: 2rem;
}

.reviews-empty p + p {
  margin-top: 0.5rem;
}

.review-summary {
  margin-bottom: 1rem;
  font-weight: 500;
}

.review-list > li {
  padding: 1.5rem;
}

.review-list > li + li {
  margin-top: 1rem;
}

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.stars {
  color: var(--brass);
  letter-spacing: 0.125rem;
}

.star-off {
  color: color-mix(in oklab, var(--border) 60%, transparent);
}

.review-list p {
  margin-top: 0.75rem;
}

.review-author {
  font-weight: 500;
  color: var(--muted-foreground);
}

.review-check {
  margin-top: 1rem;
}

/* Footer */

.site-footer .wrap {
  padding-block: 2.5rem;
  border-top: 1px solid color-mix(in oklab, var(--deep-foreground) 15%, transparent);
}

.site-footer .contact {
  margin-top: 0.5rem;
  color: color-mix(in oklab, var(--deep-foreground) 70%, transparent);
}

.site-footer .contact a {
  text-decoration: underline;
  text-decoration-color: color-mix(in oklab, var(--deep-foreground) 30%, transparent);
}

.site-footer .legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.5rem;
  color: color-mix(in oklab, var(--deep-foreground) 70%, transparent);
}

.site-footer .legal a,
.site-footer .legal button {
  text-decoration: underline;
  text-decoration-color: color-mix(in oklab, var(--deep-foreground) 30%, transparent);
}

/* Consent banner */

.statistik-banner {
  position: fixed;
  inset-inline: 0.75rem;
  bottom: 0.75rem;
  z-index: 10;
  max-width: 40rem;
  margin-inline: auto;
  padding: 1.25rem;
  border-radius: 24px;
  border: 1px solid color-mix(in oklab, var(--deep-foreground) 20%, transparent);
  box-shadow: var(--shadow-lift);
}

.statistik-banner a {
  text-decoration: underline;
}

/* Both choices look the same on purpose: rejecting must be as easy as agreeing. */
.statistik-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.statistik-actions .button {
  padding: 0.75rem 1rem;
}

/* Legal pages */

.legal-page {
  padding-block: 3rem 4rem;
}

.legal-page h1 {
  font-size: 1.875rem;
  line-height: 1.1;
  hyphens: auto;
}

.legal-page h2 {
  margin-top: 2.5rem;
  font-size: 1.375rem;
  line-height: 1.3;
}

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

.legal-page p,
.legal-page ul {
  margin-top: 0.75rem;
  line-height: 1.625;
}

.legal-page ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.legal-page a {
  color: var(--primary);
  text-decoration: underline;
}

.settings-inline {
  display: inline-block;
  padding: 0.625rem 1.25rem;
}

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

/* 404 */

.not-found {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-inline: 1rem;
  text-align: center;
}

.not-found > div {
  max-width: 28rem;
}

.not-found h1 {
  font-size: 4.5rem;
  line-height: 1;
  font-weight: 700;
}

.not-found h2 {
  margin-top: 1rem;
}

.not-found p {
  margin-top: 0.5rem;
}

.not-found .button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
}

/* Breakpoints: 40rem, 48rem, 64rem as before */

@media (min-width: 40rem) {
  .hero-actions {
    flex-direction: row;
  }
}

@media (min-width: 48rem) {
  .before-after {
    max-width: 30rem;
  }

  .section {
    padding-block: 6rem;
  }

  .section-bottom {
    padding-bottom: 6rem;
  }

  .h2 {
    font-size: 2.25rem;
    line-height: calc(2.5 / 2.25);
  }

  .hero .wrap {
    padding-top: 5rem;
    padding-bottom: 6rem;
  }

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

  .hero-text {
    font-size: 1.125rem;
  }

  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .area img {
    height: 18rem;
  }

  .area-body {
    padding: 2.5rem;
  }

  .about-grid {
    grid-template-columns: 20rem minmax(0, 1fr);
    align-items: start;
    gap: 3.5rem;
  }

  .section-cta {
    flex-direction: row;
    align-items: center;
  }

  .legal-page h1 {
    font-size: 2.25rem;
  }
}

@media (min-width: 64rem) {
  .reviews {
    grid-template-columns: 1fr 1.2fr;
  }
}
