/* lechnermichael.de - eine Datei, keine Abhaengigkeiten, keine externen Schriften */

:root {
  --grund:        #101a10;
  --grund-weich:  #1a2a19;
  --papier:       #ffffff;
  --papier-weich: #f2f7f3;
  --linie:        #dbe6de;
  --text:         #18261e;
  --text-leise:   #5a6b60;
  --akzent:       #278324;
  --akzent-dunkel:#1b5c19;
  --signal:       #5ab34d;
  --breite:       68rem;
  --radius:       6px;
  --schrift: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
             "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--papier);
}

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

a { color: var(--akzent-dunkel); }
a:hover { color: var(--signal); }

.huelle {
  width: 100%;
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ---------- Kopf ---------- */

.kopf {
  background: var(--grund);
  color: #e8edf2;
  border-bottom: 3px solid var(--signal);
}

.kopf .huelle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 0.9rem;
}

.marke {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  line-height: 1.2;
}
.marke b {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.marke span {
  font-size: 0.8rem;
  color: #97a6b5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.navi ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navi a {
  display: block;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius);
  color: #cdd8e2;
  text-decoration: none;
  font-size: 0.97rem;
}
.navi a:hover { background: var(--grund-weich); color: #fff; }
.navi a[aria-current="page"] {
  background: var(--grund-weich);
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--signal);
}

/* ---------- Buehne ---------- */

.buehne {
  background: var(--grund-weich);
  color: #e8edf2;
  padding-block: 4rem;
}
.buehne h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.8rem, 4.5vw, 2.7rem);
  line-height: 1.2;
  font-weight: 600;
  max-width: 22ch;
}
.buehne p {
  margin: 0;
  max-width: 54ch;
  font-size: 1.15rem;
  color: #b9c6d3;
}
.buehne .knopfreihe { margin-top: 1.8rem; }

/* ---------- Inhalt ---------- */

main { display: block; }

.block { padding-block: 3.25rem; }
.block--weich { background: var(--papier-weich); }

h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 1rem;
}
h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.fliess { max-width: 62ch; }
.fliess ul { padding-left: 1.2rem; }
.fliess li { margin-bottom: 0.35rem; }

/* ---------- Karten ---------- */

.raster {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin-top: 1.75rem;
}

.karte {
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}
.karte p { color: var(--text-leise); font-size: 0.99rem; }
.karte h3 { color: var(--grund); }

/* ---------- Knoepfe ---------- */

.knopf {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  background: var(--akzent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--akzent);
}
.knopf:hover { background: var(--akzent-dunkel); border-color: var(--akzent-dunkel); color: #fff; }

.knopf--gross { font-size: 1.1rem; padding: 0.95rem 1.9rem; }

.knopf--leise {
  background: transparent;
  color: #e8edf2;
  border-color: #4a5a6b;
}
.knopf--leise:hover { background: #26313f; border-color: #6b7c8d; color: #fff; }

.knopfreihe { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Kontaktzeile ---------- */

.kontaktzeile {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  margin-top: 1.5rem;
}
.kontaktzeile b { display: block; font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--text-leise); margin-bottom: 0.2rem; }
.kontaktzeile a { font-size: 1.05rem; text-decoration: none; font-weight: 600; }

/* ---------- Tabelle (Impressum, Datenschutz) ---------- */

.angaben {
  border-collapse: collapse;
  width: 100%;
  max-width: 46rem;
  margin-bottom: 1.5rem;
}
.angaben th, .angaben td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.9rem 0.6rem 0;
  border-bottom: 1px solid var(--linie);
}
.angaben th {
  font-weight: 600;
  color: var(--text-leise);
  width: 16rem;
  font-size: 0.95rem;
}

/* Platzhalter, die vor dem Hochladen weg muessen */
.offen {
  background: #fff3cd;
  border-bottom: 2px solid var(--signal);
  padding: 0.05em 0.35em;
  border-radius: 3px;
  font-style: italic;
}

/* ---------- Fuss ---------- */

.fuss {
  background: var(--grund);
  color: #97a6b5;
  padding-block: 2.25rem;
  font-size: 0.95rem;
  margin-top: 0;
}
.fuss .huelle {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.fuss a { color: #cdd8e2; text-decoration: none; }
.fuss a:hover { color: #fff; text-decoration: underline; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ---------- Kleinkram ---------- */

.nur-lesbar {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

@media (max-width: 40rem) {
  .buehne { padding-block: 2.75rem; }
  .angaben th { width: auto; display: block; padding-bottom: 0; border-bottom: 0; }
  .angaben td { display: block; padding-top: 0.15rem; }
}

@media print {
  .kopf, .fuss, .knopfreihe { display: none; }
  body { font-size: 11pt; }
}

/* ---------- Auszeichnungen / Qualifikation ---------- */

.streifen {
  background: var(--papier-weich);
  border-bottom: 1px solid var(--linie);
  padding-block: 1.15rem;
}

.auszeichnungen {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.auszeichnungen li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1.05rem;
  border: 1px solid var(--linie);
  border-radius: 999px;
  background: var(--papier);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--grund);
  line-height: 1.3;
}

.auszeichnungen li::before {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--signal);
}

/* Loxone-Partnerstufe: silbern statt orange */
.auszeichnungen li.silber::before {
  background: linear-gradient(135deg, #c9cfd6 0%, #8d98a5 100%);
}

.auszeichnungen li small {
  font-weight: 400;
  color: var(--text-leise);
}

/* Partnerlogo, sobald die Bilddatei aus dem Loxone-Partnerportal da ist */
.partnerlogo { height: 2.75rem; width: auto; }

/* ---------- Hinweis (z. B. Auslastung) ---------- */

.hinweis {
  border: 1px solid var(--linie);
  border-left: 4px solid var(--signal);
  border-radius: var(--radius);
  background: var(--papier);
  padding: 1.1rem 1.3rem;
  max-width: 62ch;
}
.hinweis p { color: var(--text-leise); }
.hinweis b { color: var(--text); }
