/* tectum GmbH, Gestaltung nach DESIGN.md */

@font-face {
  font-family: "Libre Caslon Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/LibreCaslonText-VF.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Caslon Text";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/LibreCaslonText-Italic-VF.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/SourceSans3-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/SourceSans3-It.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/SourceSans3-Semibold.woff2") format("woff2");
}

:root {
  --gruen:     #2F4B3E;
  --tiefgruen: #1E3129;
  --salbei:    #8A9A8C;
  --messing:   #A08A5E;
  --messing-text: #7A6740;              /* dunkleres Messing nur für kurze Texte, Kontrast auf Pergament 4,7:1 */
  --messing-hell: #C4AE7E;              /* helleres Messing nur für kurze Texte auf Tiefgrün, Kontrast 6,3:1 */
  --leinen:    #E6E1D5;
  --pergament: #F3F0E8;

  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;

  --text: 1.0625rem;                      /* 17 px Smartphone */
  --measure: 60ch;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --section: clamp(4rem, 8vw, 7rem);     /* 64 bis 112 px, einheitlich für alle Abschnitte */
  --kopf-abstand: clamp(3rem, 7vw, 6.5rem); /* Kopfzeile bis Kleinzeile, 48 bis 104 px */
  --wechsel: color 0.2s, background-color 0.2s, border-color 0.2s;
}
@media (min-width: 48rem) {
  :root { --text: 1.1875rem; }            /* 19 px Desktop */
}

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

html { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--pergament);
  color: var(--tiefgruen);
  font-family: var(--serif);
  font-size: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-variant-ligatures: common-ligatures;
  font-feature-settings: "dlig" 0, "hlig" 0;
}
/* Die kursive Caslon führt die st-Ligatur (langes s) auch im Feature liga; kursive Texte deshalb ganz ohne Ligaturen. */
.einstieg h1 + p, .arbeitsweise .name, .arbeitsweise .deutung { font-variant-ligatures: no-common-ligatures; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--tiefgruen);
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.75rem, 6.5vw, 5.5rem); line-height: 1.05; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 2.5rem; }
h3 { font-size: 1.375rem; }

p { margin: 0 0 1.25rem; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--gruen); text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: var(--wechsel); }
a:hover { color: var(--tiefgruen); }
:focus-visible { outline: 2px solid var(--gruen); outline-offset: 3px; }

.wrap {
  width: min(100% - 2 * var(--gutter), 70rem);
  margin-inline: auto;
}

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--gruen); color: var(--pergament);
  font-family: var(--sans);
  padding: 0.5rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; z-index: 10; }

/* Kleinzeile: Versalien in Source Sans */
.kicker {
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--messing-text);
  margin: 0 0 1.75rem;
}

/* Kopfzeile */
.kopf .wrap {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 1rem 2rem; padding-block: clamp(1.5rem, 3vw, 2.5rem);
}
.marke {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--gruen);
  text-decoration: none;
}
.marke:hover { color: var(--tiefgruen); }
.kopf nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 2.25rem;
}
.kopf nav a {
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.kopf nav a:hover { text-decoration: underline; }
.kopf .rechts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 2.25rem; }

/* Sprachumschalter: nur die jeweils andere Sprache, abgesetzt durch eine feine senkrechte Messinglinie */
.sprache {
  font-family: var(--sans); font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--messing-text); text-decoration: none; margin-right: -0.14em;
}
.sprache::before {
  content: ""; display: inline-block; width: 1px; height: 0.7em;
  background: var(--messing); margin-right: 1.25rem; vertical-align: baseline;
}
.sprache:hover { color: var(--gruen); }
.kopf nav a:last-child, footer ul a:last-child { margin-right: 0; }
@media (max-width: 47.99rem) {
  /* Smartphone: Wortmarke und Umschalter in einer Zeile, Navigation darunter, keine Trennlinie */
  .kopf .rechts { display: contents; }
  .kopf nav { flex-basis: 100%; order: 2; }
  .kopf .sprache::before { display: none; }
}

/* E-Mail-Adresse als Vektorpfad (kein Text im Quelltext) */
.mail { display: inline-block; max-width: 100%; }

/* Abschnitte */
section { padding-block: var(--section); }
section.leinen { background: var(--leinen); }

/* Einstieg: eigener Abstand oben, unten endet er mit der Messinglinie */
.einstieg { padding-block: var(--kopf-abstand) 0; }
.einstieg h1 { margin-bottom: 1.75rem; }
.einstieg h1 + p {
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.5;
  max-width: 34ch;
}
.linie {
  display: block;
  width: 4rem; height: 1px;
  background: var(--messing);
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

/* Leistungen */
.felder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 3.5rem clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.felder article { border-top: 1px solid var(--messing); padding-top: 1.75rem; }
.felder .ziffer {
  font-family: var(--serif);
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  color: var(--messing-text);
  margin: 0 0 1rem;
}
.felder h3 { margin-bottom: 1rem; }

/* Arbeitsweise */
.arbeitsweise .spalten {
  display: grid;
  gap: 2.5rem clamp(3rem, 6vw, 6rem);
}
.arbeitsweise .name {
  font-style: italic;
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  line-height: 1;
  color: var(--gruen);
  margin: 0;
}
.arbeitsweise .deutung {
  font-style: italic;
  font-size: 1.125rem;
  color: var(--gruen);
  margin: 0.75rem 0 0;
}
@media (min-width: 60rem) {
  .arbeitsweise .spalten { grid-template-columns: 2fr 3fr; }
}

/* Kontakt (invertiert) */
.kontakt { background: var(--gruen); color: var(--pergament); }
.kontakt h2, .kontakt h3 { color: var(--pergament); }
.kontakt a { color: var(--pergament); }
.kontakt a:hover { color: var(--leinen); }
.kontakt :focus-visible { outline-color: var(--pergament); }

form { max-width: 36rem; margin-top: 2.5rem; }
.feld { margin-bottom: 2rem; }
label {
  display: block; margin-bottom: 0.5rem;
  font-family: var(--sans); font-weight: 600;
  font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase;
}
input, textarea {
  width: 100%;
  font: inherit;
  color: var(--pergament);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--salbei);
  border-radius: 0;
  padding: 0.6rem 0;
  transition: var(--wechsel);
}
input:focus, textarea:focus {
  outline: none;
  border-bottom: 2px solid var(--pergament);
  padding-bottom: calc(0.6rem - 1px);
}
textarea { min-height: 9rem; resize: vertical; }
.zustimmung { display: flex; gap: 0.75rem; align-items: flex-start; }
.zustimmung input { width: 1.25rem; height: 1.25rem; margin: 0.3rem 0 0; flex: none; accent-color: var(--pergament); border: 0; }
.zustimmung label { font-family: var(--serif); font-weight: 400; font-size: 1rem; letter-spacing: 0; text-transform: none; margin: 0; }
button {
  font-family: var(--sans); font-size: 0.875rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--pergament); background: transparent;
  border: 1px solid var(--pergament); border-radius: 0;
  padding: 0.9rem 2.25rem; cursor: pointer;
  transition: var(--wechsel);
}
button:hover { background: var(--pergament); color: var(--gruen); }
button:disabled { opacity: 0.6; cursor: default; }
.status { margin-top: 1.25rem; min-height: 1.65em; }
.adresse {
  font-family: var(--sans); font-size: 0.9375rem; letter-spacing: 0.02em;
  margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--messing); max-width: none;
}

/* Fußzeile */
footer {
  background: var(--tiefgruen);
  color: var(--pergament);
  font-family: var(--sans);
  font-size: 0.9375rem;
}
footer .wrap {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1.25rem 2rem;
  padding-block: 3rem;
}
footer .marke { color: var(--pergament); }
footer .marke:hover { color: var(--leinen); }
footer p { opacity: 0.75; margin: 0; max-width: none; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
footer a { color: var(--pergament); opacity: 0.75; text-decoration: none; letter-spacing: 0.04em; }
footer a:hover { opacity: 1; color: var(--pergament); text-decoration: underline; }
footer .rechts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 2.25rem; }
footer .sprache { color: var(--messing-hell); opacity: 1; }
footer .sprache:hover { color: var(--pergament); }
footer .fuss-text { flex-basis: 100%; }

/* Unterseiten */
.text { padding-block: var(--section); }
.text .wrap { max-width: 42rem; margin-inline: auto; }
.text h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); overflow-wrap: anywhere; margin-bottom: 3rem; }
.text h2 { font-size: 1.5rem; margin: 3rem 0 1rem; padding-top: 1.25rem; border-top: 1px solid var(--messing); }
.text p { max-width: none; }
.text .block { margin-bottom: 1.5rem; }
