/* ===========================================================
   Nanotechnik Thüringen - Gestaltung der gesamten Webseite
   Entwurf A "Dunkel & Premium"

   Diese Datei bestimmt das Aussehen ALLER Seiten.
   Eine Änderung hier wirkt sich überall aus.
   =========================================================== */

/* --- Schrift (liegt auf dem eigenen Server, nicht bei Google) --- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('schriften/archivo.woff2') format('woff2');
}

/* --- Farben an einer Stelle gesammelt --- */
:root {
  --grund:      #0D0E0F;  /* Seitenhintergrund, fast schwarz */
  --flaeche:    #16181A;  /* Karten und Kästen */
  --flaeche-2:  #1C2016;  /* hervorgehobene Karte */
  --fuss:       #0A0B0C;
  --text:       #F2F3F2;  /* Haupttext */
  --text-weich: #B6BAB8;  /* Fließtext */
  --text-leise: #9BA09E;  /* Beschriftungen */
  --gruen:      #8DC63F;  /* Akzent, aus dem Logo */
  --gruen-hell: #A9DD5C;
  --linie:      #22262A;
  --linie-hell: #2E3338;
}

/* --- Grundlagen --- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Archivo', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--grund);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gruen-hell); }
a:hover { color: var(--gruen); }

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.08;
  margin: 0 0 16px;
  color: #FFFFFF;
}
h1 { font-size: 58px; letter-spacing: -1.8px; }
h2 { font-size: 42px; letter-spacing: -1.2px; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; }

p { margin: 0 0 14px; }

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

.sprung {
  position: absolute; left: -9999px; top: 0;
  background: var(--gruen); color: #0D0E0F;
  padding: 12px 20px; z-index: 100; font-weight: 700;
}
.sprung:focus { left: 0; color: #0D0E0F; }

/* --- Breitenbegrenzung --- */
.bahn {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* --- Kopfzeile --- */
.kopf {
  border-bottom: 1px solid var(--linie);
  background: var(--grund);
  position: sticky; top: 0; z-index: 50;
}
.kopf-inhalt {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
}
.marke img { height: 54px; width: auto; }

.menue { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; }
.menue a {
  color: var(--text); text-decoration: none;
  font-size: 16px; font-weight: 500;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.menue a:hover { color: var(--gruen); }
.menue a[aria-current="page"] { color: var(--gruen); border-bottom-color: var(--gruen); }
.menue .knopf, .menue .knopf:hover { color: #0D0E0F; border-bottom: none; }

.menue-knopf {
  display: none;
  background: none; border: 1.5px solid var(--linie-hell);
  border-radius: 6px; padding: 10px 14px;
  font-family: inherit; font-size: 15px; font-weight: 600;
  color: var(--text); cursor: pointer;
  align-items: center; gap: 9px;
}
.menue-knopf:hover { border-color: var(--gruen); color: var(--gruen); }
.menue-strich, .menue-strich::before, .menue-strich::after {
  display: block; width: 18px; height: 2px;
  background: currentColor; border-radius: 2px;
}
.menue-strich { position: relative; }
.menue-strich::before, .menue-strich::after { content: ''; position: absolute; left: 0; }
.menue-strich::before { top: -6px; }
.menue-strich::after  { top: 6px; }

/* --- Knöpfe --- */
.knopf {
  display: inline-block;
  background: var(--gruen); color: #0D0E0F;
  text-decoration: none; font-weight: 700; font-size: 16px;
  padding: 16px 32px; border-radius: 4px;
  border: none; cursor: pointer; font-family: inherit;
  text-align: center;
}
.knopf:hover { background: var(--gruen-hell); color: #0D0E0F; }
.knopf-zweit {
  display: inline-block;
  background: transparent; color: #FFFFFF;
  border: 1.5px solid var(--linie-hell);
  text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 16px 28px; border-radius: 4px; text-align: center;
}
.knopf-zweit:hover { border-color: var(--gruen); color: var(--gruen); }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 14px; }

/* --- WhatsApp-Knopf --- */
.knopf-whatsapp {
  display: inline-flex; align-items: center; gap: 9px;
  background: #25D366; color: #0D0E0F;
  text-decoration: none; font-weight: 700; font-size: 16px;
  padding: 13px 22px; border-radius: 4px;
  border: none; cursor: pointer; font-family: inherit;
}
.knopf-whatsapp:hover { background: #1FBE59; color: #0D0E0F; }
.knopf-whatsapp svg { width: 20px; height: 20px; flex: 0 0 auto; }
/* In der Kopfzeile etwas kompakter */
.menue .knopf-whatsapp { padding: 11px 18px; font-size: 15px; border-bottom: none; }
.menue .knopf-whatsapp:hover { color: #0D0E0F; }

/* --- Abstände --- */
.abschnitt { padding-top: 84px; }
.abschnitt-eng { padding-top: 56px; }

.vorzeile {
  font-size: 13px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gruen); font-weight: 700; margin: 0 0 14px;
}
.einleitung {
  font-size: 19px; line-height: 1.7; color: var(--text-weich);
  max-width: 72ch;
}

/* --- Hero mit Bild --- */
.buehne { position: relative; background: #000; }
.buehne > img {
  width: 100%; height: 600px; object-fit: cover; opacity: 0.52;
}
.buehne-text {
  position: absolute; inset: 0; display: flex; align-items: center;
}
.buehne-text .bahn { width: 100%; }

/* --- Spalten --- */
.duo { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.duo > * { flex: 1 1 380px; min-width: 0; }
.duo-oben { align-items: flex-start; }

.raster-2, .raster-3, .raster-4 { display: grid; gap: 20px; }
.raster-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.raster-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.raster-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* --- Karten --- */
.karte {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 8px;
  padding: 30px 28px;
}
.karte h3 { margin-bottom: 10px; }
.karte p { font-size: 15px; line-height: 1.65; color: var(--text-leise); margin: 0; }

.karte-bild {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 8px; overflow: hidden;
}
.karte-bild img { width: 100%; height: 220px; object-fit: cover; }
.karte-bild .inhalt { padding: 24px 26px 28px; }
.karte-bild h3 { margin-bottom: 9px; }
.karte-bild p { font-size: 15px; line-height: 1.65; color: var(--text-leise); margin: 0; }

/* --- Zahlenband --- */
.zahlen { background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.zahlen-inhalt {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px; padding-top: 28px; padding-bottom: 28px;
}
.zahlen .wert { font-size: 26px; font-weight: 800; color: var(--gruen); letter-spacing: -0.5px; }
.zahlen .was { font-size: 14px; color: var(--text-leise); margin-top: 3px; }

/* --- Leistung mit Bild (abwechselnd) --- */
.leistung {
  display: flex; flex-wrap: wrap; gap: 44px; align-items: center;
  padding: 44px 0; border-bottom: 1px solid var(--linie);
}
.leistung > * { flex: 1 1 360px; min-width: 0; }
.leistung:last-child { border-bottom: none; }
.leistung img { width: 100%; height: 320px; object-fit: cover; border-radius: 8px; }
.leistung.gedreht { flex-direction: row-reverse; }

/* --- Preiskarten --- */
.preiskarte {
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: 10px; padding: 34px 30px;
}
.preiskarte.hervor { background: var(--flaeche-2); border: 2px solid var(--gruen); }
.preiskarte .dauer { font-size: 14px; color: var(--gruen); margin-bottom: 20px; font-weight: 600; }
.preiskarte .betrag {
  font-size: 40px; font-weight: 800; color: #FFFFFF; letter-spacing: -1.4px;
}
.marke-schild {
  display: inline-block; background: var(--gruen); color: #0D0E0F;
  font-size: 12px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; padding: 5px 11px; border-radius: 3px;
  margin-bottom: 14px;
}

/* --- Punktliste --- */
.liste-punkte { list-style: none; margin: 24px 0 0; padding: 0; }
.liste-punkte li {
  font-size: 15px; color: var(--text-weich);
  padding-left: 18px; position: relative; margin-bottom: 10px;
}
.liste-punkte li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gruen);
}

/* --- Preisliste (Zeilen) --- */
.preisliste {
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: 10px; overflow: hidden;
}
.preisliste .zeile {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; padding: 20px 28px; border-bottom: 1px solid var(--linie);
}
.preisliste .zeile:last-child { border-bottom: none; }
.preisliste .bezeichnung { font-size: 17px; font-weight: 600; color: #FFFFFF; }
.preisliste .beschreibung { font-size: 14px; color: var(--text-leise); margin-top: 3px; }
.preisliste .betrag {
  font-size: 24px; font-weight: 800; color: var(--gruen); white-space: nowrap;
}

/* --- Specials mit Randlinie --- */
.special { border-left: 3px solid var(--gruen); padding: 6px 0 6px 22px; }
.special h3 { margin-bottom: 8px; }
.special p { font-size: 15px; line-height: 1.65; color: var(--text-leise); margin: 0; }

/* --- News-Beitrag --- */
.beitrag {
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: 8px; padding: 30px 32px; margin-bottom: 20px;
}
.beitrag .datum {
  font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--gruen); font-weight: 700; margin-bottom: 8px;
}
.beitrag h3 { font-size: 24px; margin-bottom: 12px; }
.beitrag p { color: var(--text-weich); font-size: 16px; }
.beitrag img { border-radius: 6px; margin-top: 18px; max-height: 420px; object-fit: cover; width: 100%; }

/* --- Kontaktangaben --- */
.kontakt-block { display: flex; flex-direction: column; gap: 22px; }
.kontakt-block .titel {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gruen); font-weight: 700; margin-bottom: 6px;
}
.kontakt-block .telefon {
  font-size: 28px; font-weight: 800; color: #FFFFFF;
  text-decoration: none; letter-spacing: -0.8px;
}
.kontakt-block .telefon:hover { color: var(--gruen); }
.kontakt-block .wert { font-size: 18px; color: var(--text); line-height: 1.6; }

/* --- Formular --- */
.formular {
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: 10px; padding: 36px;
  display: flex; flex-direction: column; gap: 20px;
}
.feld-reihe { display: flex; flex-wrap: wrap; gap: 18px; }
.feld-reihe > * { flex: 1 1 150px; min-width: 0; }
.formular label {
  display: block; font-size: 14px; font-weight: 600;
  margin-bottom: 8px; color: var(--text);
}
.formular input, .formular textarea, .formular select {
  width: 100%; padding: 14px;
  border: 1px solid var(--linie-hell); border-radius: 6px;
  font-size: 16px; font-family: inherit;
  background: var(--grund); color: var(--text);
}
.formular input:focus, .formular textarea:focus, .formular select:focus {
  outline: 2px solid var(--gruen); outline-offset: 1px; border-color: var(--gruen);
}
.formular textarea { resize: vertical; min-height: 120px; }
.hinweis { font-size: 14px; color: var(--text-leise); margin: 0; }

.zustimmung { display: flex; gap: 12px; align-items: flex-start; }
.zustimmung input[type="checkbox"] {
  width: 20px; height: 20px; margin-top: 3px; flex: 0 0 auto; accent-color: var(--gruen);
}
.zustimmung label { font-size: 14px; font-weight: 400; line-height: 1.55; margin: 0; }

.meldung { border-radius: 8px; padding: 16px 20px; margin-bottom: 20px; font-size: 16px; }
.meldung-gut { background: #1C2816; border: 1px solid #3F6B13; color: #C4E88C; }
.meldung-fehler { background: #2A1716; border: 1px solid #7A3330; color: #F0BDBA; }

/* Spamschutz: sieht niemand, nur Spam-Programme füllen es aus */
.falle {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* --- Infoleiste oben --- */
.infoleiste { background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.infoleiste-inhalt {
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between;
  padding-top: 9px; padding-bottom: 9px;
  font-size: 14px; color: var(--text-leise);
}

/* --- Fußzeile --- */
.fuss { margin-top: 90px; border-top: 1px solid var(--linie); background: var(--fuss); }
.fuss-inhalt {
  display: flex; flex-wrap: wrap; gap: 32px;
  justify-content: space-between; align-items: flex-start;
  padding-top: 40px; padding-bottom: 40px;
}
.fuss-text { font-size: 15px; color: var(--text-leise); line-height: 1.8; }
.fuss-menue { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; }
.fuss-menue a { color: var(--text-weich); text-decoration: none; }
.fuss-menue a:hover { color: var(--gruen); }

/* --- Fließtext-Seiten --- */
.lesetext { max-width: 75ch; }
.lesetext h2 { font-size: 26px; margin-top: 38px; }
.lesetext h3 { font-size: 19px; margin-top: 26px; }
.lesetext p, .lesetext li { color: var(--text-weich); font-size: 16px; }

/* ===========================================================
   Anpassung für kleinere Bildschirme
   =========================================================== */

@media (max-width: 900px) {
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }
  .raster-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .raster-4, .zahlen-inhalt { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .buehne > img { height: 480px; }
  .abschnitt { padding-top: 60px; }
  .duo, .leistung { gap: 32px; }
  .leistung img { height: 260px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  h1 { font-size: 34px; letter-spacing: -1px; }
  h2 { font-size: 27px; letter-spacing: -0.7px; }
  h3 { font-size: 19px; }

  .menue-knopf { display: flex; }
  .menue {
    display: none; flex-direction: column; align-items: stretch;
    gap: 0; width: 100%; order: 3;
    border-top: 1px solid var(--linie);
    margin-top: 14px; padding-top: 8px;
  }
  .menue.offen { display: flex; }
  .menue a { padding: 14px 2px; border-bottom: 1px solid var(--linie); font-size: 17px; }
  .menue a[aria-current="page"] { border-bottom-color: var(--linie); }
  .menue .knopf { margin-top: 14px; }

  .raster-2, .raster-3, .raster-4 { grid-template-columns: 1fr; }
  .zahlen-inhalt { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
  .bahn { padding-left: 16px; padding-right: 16px; }
  .abschnitt { padding-top: 48px; }
  .buehne > img { height: 420px; }
  .leistung { padding: 32px 0; }
  .leistung img { height: 220px; }
  .leistung.gedreht { flex-direction: row; }
  .preiskarte, .karte { padding: 24px 20px; }
  .formular { padding: 24px 18px; }
  .knopf, .knopf-zweit { width: 100%; }

  /* Preiszeile: Bezeichnung über dem Betrag */
  .preisliste .zeile { flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 20px; }

  .infoleiste-inhalt { font-size: 13px; gap: 4px; }
  .fuss { margin-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
