/* 09102025 ausgelagert */
/* 
  lochkreis.css
  Ausgelagerte CSS-Datei für die lochkreis-druck-2.html
  Alle Kommentare aus dem Original bleiben erhalten.
  Zusammenfassung
  Stand: 26.10.2025 18:20
*/

/* 09102025 ausgelagert */

/* NEU: Stil für kurze Hinweistexte in den Ergebnis-Tabelle */
.info-hinweis {
  font-size: 0.8rem;
  color: #555;
  margin-left: 0.3rem;
  font-style: italic;
  user-select: none;
  vertical-align: middle;
}

/* NEU 08102025: Markierung für fertige Bohrungen in Ergebnis-Tabelle */
/* Hintergrundfarbe gelb für markierte Zeilen */
#ergebnis-tabelle tbody tr.markiert {
  background-color: #fff9c4; /* helles Gelb */
  cursor: pointer;
}

/* NEU 08102025: Linker Kreis als Markierung vor der Löchernummer */
#ergebnis-tabelle tbody tr.markiert td:first-child {
  position: relative;
  padding-left: 2rem; /* Platz für den Kreis */
}

/* Der runde Kreis */
#ergebnis-tabelle tbody tr.markiert td:first-child::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  background-color: #fbc02d; /* dunkleres Gelb */
  border: 2px solid #f9a825; /* etwas dunklerer Rand */
  border-radius: 50%;
  box-shadow: 0 0 5px #fbc02d88;
}

/* Zeilen haben standardmäßig Pointer-Cursor für Klickbarkeit */
#ergebnis-tabelle tbody tr {
  cursor: pointer;
}

/* Optional: Hover-Effekt für Zeilen */
#ergebnis-tabelle tbody tr:hover {
  background-color: #f0f0f0;
}

/* NEU 08102025: Stil für den Button zum Entfernen aller Markierungen */
#clear-markierungen-button {
  margin-top: 0.5rem;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  background-color: #fbc02d;
  border: 1px solid #f9a825;
  border-radius: 4px;
  cursor: pointer;
  color: #333;
  user-select: none;
  transition: background-color 0.3s ease;
}

#clear-markierungen-button:hover,
#clear-markierungen-button:focus {
  background-color: #f9a825;
  outline: none;
}

/* Versteckt den Button standardmäßig */
#clear-markierungen-container {
  display: none;
}

/* ================= NEU 09102025: Virtuelle 2-Achsen Positionsanzeige Styles ================= */

/* Container für die virtuelle Positionsanzeige und Steuerung */
/* NEU 09102025: Hintergrundfarbe von #f0f8ff auf #91bae3 geändert */
#virtual-position-container {
  margin: 1rem 0 1.5rem 0;
  padding: 1rem;
  border: 2px solid #2980b9;
  border-radius: 4px;
  background-color: #91bae3; /* NEU 09102025: Drumrum blau */
  display: flex;
  flex-direction: column; /* NEU 09102025: vertikale Anordnung */
  align-items: center;
  user-select: none;

  /* NEU 09102025: Standardmäßig unsichtbar und deaktiviert */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* NEU 09102025: Sichtbar wenn aktiv */
#virtual-position-container.active {
  opacity: 1;
  pointer-events: auto;
}

/* Modellbezeichnung und Beschreibung */
#virtual-position-model {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2980b9;
  margin-bottom: 0.5rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* LED Display Container */
/* NEU 09102025: Hintergrundfarbe von #111 auf #030305 geändert */
/* NEU 09102025: Schriftfarbe von #00ff00 auf #fdec63 geändert */
#virtual-position-display {
  position: relative;
  left: -2px;
  background-color: #030305; /* NEU 09102025: Hintergrund Display schwarz */
  color: #fdec63; /* NEU 09102025: Schrift gelb */

  /* NEU 09102025: Schriftart auf Google Font Roboto Mono setzen für einheitliches monospaced Zahlenbild */
  font-family: 'Roboto Mono', monospace;

  font-weight: 700; /* Roboto Mono Bold */
  font-size: 3.5rem; /* 09102025 */
  letter-spacing: 0.15em;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  width: 100%;
  max-width: 480px;
  text-align: right; /* wenn minus */
  
  border: 1px solid #00faa9; /* 26102025 */
  box-shadow: 0 0 4px 1px rgba(253, 236, 99, 0.4);  /* 26102025 */
  
  user-select: text;
  margin-bottom: 0.8rem;
  white-space: nowrap;

  /* NEU 09102025: Grauschleier entfernen, wenn aktiv */
  filter: none;
  opacity: 1;
}
#virtual-position-display span.coord-value {
  transform: translateX(-20px);
}

/* NEU 09102025: X und Y untereinander anordnen */
#virtual-position-display span.coord-label,
#virtual-position-display span.coord-value {
  display: block;
  margin: 0.1rem 0;
}

/* LED Display Text: X and Y labels and values */
#virtual-position-display span.coord-label {
  font-size: 1.2rem;
  vertical-align: middle;
  margin: 0 0 0.1rem 0;
  color: #09f1f5; /* NEU 09102025: Schrift tuerkis */
  user-select: none;
}

#virtual-position-display span.coord-value {
  display: inline-block;
  min-width: 9ch; /* Platz für z.B. "0000.0000" */
  font-variant-numeric: tabular-nums;
  user-select: text;
}

/* NEU 09102025: Styling für den kleinen Winkel-Text unter den Koordinaten */
#virtual-position-winkel {
  font-size: 0.9rem; /* kleiner als Haupttext */
  color: #fdec63cc; /* leicht transparentes Gelb */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin-top: -0.4rem;
  margin-bottom: 0.3rem;
  user-select: none;
}

/* NEU 09102025: Styling für die Bohrungsnummer "Bohrung X von Y" unter dem Winkel */
#virtual-position-bohrung {
  margin-top: 0.1rem;
  font-weight: 700;
  color: #2980b9;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.1rem; /* kleiner als Haupttext, größer als Winkel */
  user-select: none;
}

/* NEU 09102025: Styling für Fortschrittsbalken Container */
#virtual-position-progress {
  width: 100%;
  height: 8px;
  background: #ddd;
  border-radius: 4px;
  margin-top: 0.5rem;
  overflow: hidden;
}

/* NEU 09102025: Styling für Fortschrittsbalken selbst */
#virtual-position-progress-bar {
  height: 100%;
  width: 0%;
  background: #2980b9;
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Steuerungsbuttons Container */
#virtual-position-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  max-width: 480px;
}

/* Buttons für Reset, Weiter, Zurück (ohne ON/OFF) */
#virtual-position-controls button:not(#virtual-position-onoff) {
  background-color: #2980b9;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  min-width: 80px;
  user-select: none;
}

#virtual-position-controls button:not(#virtual-position-onoff):hover,
#virtual-position-controls button:not(#virtual-position-onoff):focus {
  background-color: #1c5d8b;
  outline: none;
}

/* ON/OFF Button spezielle Farben */
/* NEU 09102025: ON/OFF Button außerhalb des Containers, eigene Klasse */
#virtual-position-onoff {
  margin: 1rem 0 1rem 0;
  padding: 0.6rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  width: 420px;
  display: inline-block;
  text-align: center;
}

/* ON Zustand: grün mit dunklem Text */
#virtual-position-onoff.on {
  background-color: #33cc33;
  color: #003300;
}

/* OFF Zustand: rot mit dunklem Text */
#virtual-position-onoff.off {
  background-color: #cc3333;
  color: #ffffff;
}

/* Responsive Anpassung */
@media (max-width: 520px) {
  /* NEU 09102025: Schriftgröße der virtuellen Positionsanzeige auf 80% reduzieren für Smartphones */
  #virtual-position-display {
    font-size: 2rem; /* 80% von 3.5rem ~ 2.8rem, hier etwas kleiner für bessere Passform */
    max-width: 100%;
  }
  #virtual-position-controls button:not(#virtual-position-onoff) {
    min-width: 70px;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
  #virtual-position-onoff {
    width: 100%;
    font-size: 1rem;
  }
}

/* NEU 09102025: Beim Drucken die virtuelle Positionsanzeige und ON/OFF Button ausblenden */
@media print {
  #virtual-position-container,
  #virtual-position-onoff-container {
    display: none !important;
  }
}

/* Schriftart DS-Digital für LED Look einbinden (Google Fonts Alternative nicht verfügbar) */
/* Fallback auf monospace */
@font-face {
  font-family: 'DS-Digital';
  src: local('DS-Digital'), url('https://cdn.jsdelivr.net/gh/khaledhosny/ds-digital@master/ds-digital.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* NEU 09102025: Grauschleier für deaktivierte Anzeige */
#virtual-position-container.inactive #virtual-position-display {
  filter: grayscale(100%) brightness(0.6);
  opacity: 0.5;
}

/* NEU 09102025: Container für den ON/OFF Button außerhalb der Anzeige */
/* Dieser Container sorgt dafür, dass der ON/OFF Button immer sichtbar ist */
/* und optisch vom eigentlichen Display getrennt wird */
#virtual-position-onoff-container {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
  user-select: none;
}

/* NEU 09102025: Styling für Restwanddicke in Tabelle */
.restwanddicke-fehler {
  color: #cc3333;
  font-weight: 700;
}

.restwanddicke-warnung {
  color: #fbc02d;
  font-weight: 700;
}

.restwanddicke-normal {
  color: #2980b9;
  font-weight: 700;
}

/* NEU 09102025: Styling für Fehler und Warnungen in Ergebnisfeldern */
.info-input-field.fehler {
  background-color: #ffcccc;
  color: #cc0000;
  font-weight: 700;
}

.info-input-field.warnung {
  background-color: #fff9c4;
  color: #b38f00;
  font-weight: 700;
}

/* NEU 09102025: Hellrote Hinterlegung für automatisch gesetztes Feld */
.highlight-red {
  background-color: #ffcccc !important;
}

/* NEU 09102025: Styling für Hinweistext neben Eingabefeldern */
.hinweis-text {
  font-size: 0.8rem;
  color: #666;
  margin-left: 0.3rem;
  user-select: none;
}

.hinweis-text-anzahl {
  font-size: 0.8rem;
  color: #666;
  margin-left: 0.3rem;
  font-style: italic;
  user-select: none;
}

/* NEU 09102025: Styling für Toggle Vorzeichen Buttons */
.toggle-sign-button {
  margin-left: 0.3rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}

/* NEU 09102025: Styling für Usereingabe Felder in Tabelle */
.info-input-field.usereingabe {
  background-color: #e9ecef;
  font-weight: 600;
}

/* NEU 09102025: Styling für Tabelle Usereingaben und Berechnungsergebnisse */
#info-ergebnis-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

#info-ergebnis-table th,
#info-ergebnis-table td {
  border: 1px solid #ddd;
  padding: 0.4rem 0.6rem;
  text-align: left;
  vertical-align: middle;
}

#info-ergebnis-table th {
  background-color: #2980b9;
  color: white;
  font-weight: 700;
}

/* NEU 09102025: Styling für Footer Unterstützungstext */
.footer-support {
  font-size: 0.75rem;
  color: #666;
  margin-top: 0.5rem;
  user-select: none;
}

/* NEU 09102025: Styling für Klappbarer Hilfetext Accordion */
#hilfe-accordion button {
  background-color: #2980b9;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

#hilfe-accordion button .arrow {
  font-weight: 900;
  font-size: 1.2rem;
  margin-left: 0.5rem;
  user-select: none;
}

#hilfe-content {
  background-color: #e9ecef;
  padding: 1rem;
  margin-top: 0.3rem;
  border-radius: 4px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

#hilfe-toggle[aria-expanded="true"] + #hilfe-content {
  max-height: 1000px; /* groß genug für Inhalt */
  overflow: auto;
}

/* NEU 09102025: Screenreader only */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  border: 0 !important;
}

/* NEU 09102025: Styling für Fehlernachrichten */
#error-msg {
  color: #cc3333;
  font-weight: 700;
  margin-bottom: 0.5rem;
  min-height: 1.2em;
}

/* NEU 09102025: Styling für das Winkel-Zwischen-Feld */
#winkel-zwischen-feld {
  width: 6.5rem;
  text-align: right;
  font-weight: 600;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.2rem 0.4rem;
  user-select: none;
  background-color: #f9f9f9;
  cursor: default;
}

/* NEU 09102025: Nachricht beim Klick auf Winkel-Zwischen-Feld */
#winkel-zwischen-feld-message {
  color: #2980b9;
  font-weight: 700;
  margin-top: 0.3rem;
  user-select: none;
}

/* NEU 09102025: Styling für Mini-Grafik Container */
#mini-grafik-container {
  margin-top: 1rem;
  margin-bottom: 1rem;
  user-select: none;
}

/* NEU 09102025: Styling für Parametereinstellungen Header */
.parametereinstellungen-header .title {
  font-weight: 700;
  font-size: 1.2rem;
  color: #2980b9;
}

.parametereinstellungen-header .subtitle {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

/* NEU 09102025: Styling für Checkbox Container */
#vorzeichen-umschaltung-container label {
  display: inline-block;
  margin-right: 1.5rem;
  font-size: 0.9rem;
  user-select: none;
  cursor: pointer;
}

/* NEU 09102025: Styling für Footer Link */
footer a {
  color: #2980b9;
  text-decoration: none;
  font-weight: 700;
}

footer a:hover,
footer a:focus {
  text-decoration: underline;
}

/* NEU 09102025: Styling für Logo im Header */
.logo {
  vertical-align: middle;
  height: 48px;
  width: 48px;
  margin-right: 0.5rem;
}

.title-text {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: #2980b9;
  vertical-align: middle;
}

.highlight-o {
  color: #fbc02d;
  font-weight: 900;
}

/* NEU 09102025: Styling für Zusatzinfo Container */
#zusatzinfo-container {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

#zusatzinfo-textarea {
  width: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.9rem;
  padding: 0.4rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  resize: vertical;
  min-height: 2.5rem;
}

/* NEU 09102025: Styling für Checkbox Container Zusatzinfo */
#zusatzinfo-checkbox-container {
  margin-top: 1rem;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  user-select: none;
}

/* NEU 09102025: Styling für Button Container */
#button-container button {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.5rem 0.4rem; /* oben/unten 0.5rem, links/rechts 0.4rem */
  font-weight: 700;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background-color: #2980b9;
  color: white;
  transition: background-color 0.3s ease;
  user-select: none;
}

#button-container button:hover,
#button-container button:focus {
  background-color: #1c5d8b;
  outline: none;
}

/* NEU 09102025: Styling für Fehler in Eingabefeldern */
input:invalid {
  border-color: #cc3333;
}

/* NEU 09102025: Styling für Hinweistext in Ergebnisbereich */
#hinweis-text {
  font-style: italic;
  color: #555;
  margin-top: 0.5rem;
  user-select: none;
}