/* Aufbau: Himmel oben (Titel), verputzte Wand als Grund (Projektkacheln), Zaun und Bruchsteinsockel als Fußzeile */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --himmel: #CFE0EE;
  --putz: #FFFCF6;
  --schuppe: rgba(120, 104, 80, .07);
  --text: #2B2A27;
  --leise: #6A655C;
  --gelb: #E3B448;
  --gelb-text: #3A2C08;
  --holz: #4A2A1C;
  --gitter: #24402F;
  --stein: #8A7A66;
  --stein-dunkel: #6B5D4D;
  --stein-text: #FFFCF6;
  --karte: #FFFFFF;
  --rand: rgba(43, 42, 39, .12);
  --schrift: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --himmel: #1C2536; --putz: #161C28; --schuppe: rgba(237, 234, 227, .04);
    --text: #EDEAE3; --leise: #A9A397; --karte: #202838; --rand: rgba(237, 234, 227, .12);
    --holz: #C9A27E; --gitter: #5E8A6C; --stein: #3A332B; --stein-dunkel: #2C2721; --stein-text: #EDEAE3;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --himmel: #1C2536; --putz: #161C28; --schuppe: rgba(237, 234, 227, .04);
  --text: #EDEAE3; --leise: #A9A397; --karte: #202838; --rand: rgba(237, 234, 227, .12);
  --holz: #C9A27E; --gitter: #5E8A6C; --stein: #3A332B; --stein-dunkel: #2C2721; --stein-text: #EDEAE3;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--himmel); }
body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  /* weißer Putz mit Schuppenmuster wie an der Fassade */
  background-color: var(--putz);
  background-image:
    radial-gradient(circle at 50% 100%, transparent 10px, var(--schuppe) 10.5px, transparent 12px),
    radial-gradient(circle at 50% 100%, transparent 10px, var(--schuppe) 10.5px, transparent 12px);
  background-size: 26px 14px;
  background-position: 0 0, 13px 7px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.innen {
  width: 100%;
  max-width: 62rem;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Himmel */
.himmel {
  background: var(--himmel);
  padding-top: env(safe-area-inset-top, 0px);
}
.himmel .innen { padding-block: 2.25rem 4.5rem; }
.marke {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .01em;
  color: var(--leise);
  margin: 0 0 2.5rem;
}
.marke b { color: var(--text); font-weight: 800; }
h1 {
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.025em;
  margin: 0 0 .75rem;
  text-wrap: balance;
}
.unterzeile { margin: 0; max-width: 34rem; color: var(--leise); font-size: 1.15rem; text-wrap: pretty; }

/* Projekte */
main { flex: 1; }
main .innen { margin-top: -2.5rem; padding-block: 0 3.5rem; display: grid; gap: 1.25rem; }
.projekt {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 12px 32px -18px rgba(28, 37, 54, .35);
}
@media (min-width: 46rem) { .projekt { grid-template-columns: 1.15fr 1fr; } }
.projekt img { display: block; width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--himmel); }
.projekt-text { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.projekt-art {
  margin: 0;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--holz);
}
.projekt h2 { margin: 0; font-size: 1.9rem; line-height: 1.1; font-weight: 800; letter-spacing: -.015em; }
.projekt p { margin: 0; }
.projekt ul { margin: 0; padding-left: 1.1rem; color: var(--leise); }
.projekt li + li { margin-top: .2rem; }
.knopf {
  align-self: flex-start;
  margin-top: .35rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.25rem;
  border-radius: 999px;
  background: var(--gelb);
  color: var(--gelb-text);
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.knopf:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(58, 44, 8, .6); }
.knopf:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.adresse { font-size: .9rem; color: var(--leise); }
.demnaechst { margin: .25rem 0 0; color: var(--leise); font-size: .98rem; }

/* Zaun und Sockel */
.zaun {
  height: 34px;
  border-top: 3px solid var(--gitter);
  border-bottom: 3px solid var(--gitter);
  background: repeating-linear-gradient(90deg, transparent 0 13px, var(--gitter) 13px 16px);
}
footer {
  background-color: var(--stein);
  background-image:
    linear-gradient(90deg, var(--stein-dunkel) 0 2px, transparent 2px),
    linear-gradient(0deg, var(--stein-dunkel) 0 2px, transparent 2px);
  background-size: 74px 100%, 100% 26px;
  color: var(--stein-text);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
footer .innen {
  padding-block: 1.1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  font-size: .95rem;
}
footer nav { display: flex; gap: 1.25rem; }
footer a { color: inherit; font-weight: 600; text-underline-offset: 3px; }
footer a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
footer .schild { background: var(--stein-dunkel); padding: .1rem .5rem; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) { .knopf { transition: none; } .knopf:hover { transform: none; } }

/* Unterseiten (Impressum, Datenschutz): schmaler Himmel, Fließtext auf Putz */
.himmel.schmal .innen { padding-block: 1.25rem 1.5rem; }
.himmel.schmal .marke { margin: 0; }
.marke a { color: inherit; text-decoration: none; }
.marke a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.marke a:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 2px; }
.text .innen { max-width: 44rem; padding-block: 2.5rem 3.5rem; margin-top: 0; display: block; }
.text h1 { font-size: clamp(2rem, 6vw, 2.75rem); margin-bottom: 1.25rem; }
.text h2 { font-size: 1.25rem; line-height: 1.25; font-weight: 700; margin: 2.25rem 0 .5rem; text-wrap: balance; }
.text h3 { font-size: 1.05rem; font-weight: 700; margin: 1.25rem 0 .35rem; }
.text p, .text ul { margin: 0 0 .8rem; }
.text ul { padding-left: 1.2rem; }
.text li + li { margin-top: .35rem; }
.text a { color: inherit; text-underline-offset: 3px; }
.text .leise { color: var(--leise); font-size: .95rem; }
