/* 08102025 ausgelagert */
/* 
  lochkreis.css
  Ausgelagerte CSS-Datei für die lochkreis-druck-24112025.html
  Alle Kommentare aus dem Original bleiben erhalten.
  Zusammenfassung
  Stand: 30.10.2025 19:11
*/

/* --- Grundlayout --- */
body {
  font-family: Arial, sans-serif;
  background: #393c4a; /* dunkelgrau */
  margin: 0; padding: 1rem;
  color: #333;
  text-align: center;
}
h1 {
  color: #2c3e50;
  margin-top: 0.3rem;
  margin-bottom: 1rem;
}
#container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 1rem 1rem;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
  text-align: left;
}

/* --- Formular --- */
form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
  margin-top: 0rem;
  margin-bottom: 0rem; /* kleinerer Abstand unten */
}  
label {
  font-weight: 700;
  color: #2980b9;
  align-self: center;
  margin-bottom: 0.8rem; /* Abstand nach unten anpassen */
}
input[type="number"] {
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
  color: #333;
}
input[type="number"]::placeholder {
  color: #bbb;
}
input[type="number"]:focus {
  border-color: #2980b9;
  outline: none;
  color: #000;
}
/* --- Für Versatz X/Y Eingabefelder, die jetzt type="text" sind --- */
input[type="text"].numeric-input {
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
  color: #333;
}
input[type="text"].numeric-input::placeholder {
  color: #bbb;
}
input[type="text"].numeric-input:focus {
  border-color: #2980b9;
  outline: none;
  color: #000;
}

/* --- Kleiner Hinweistext neben Eingabefeld --- */
.hinweis-text {
  font-size: 0.8rem;
  color: #666666;
  margin-top: 0.15rem;
}

/* --- Neuer Hinweistext unter Anzahl der Löcher --- */
.hinweis-text-anzahl {
  font-size: 0.8rem;
  color: #666666;
  margin-top: 0.15rem;
}

/* --- Tabelle --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}
thead tr {
  background: #2980b9;
  color: white;
}
thead th {
  padding: 0.6rem 0.8rem;
  text-align: center;
}
tbody td {
  padding: 0.5rem 0.8rem;
  text-align: center;
  border-bottom: 1px solid #ddd;
  font-size: 0.95rem;
}
tbody tr:nth-child(even) {
  background: #f0f4f8;
}

/* --- Responsive --- */
@media (max-width: 480px) {
  form {
    grid-template-columns: 1fr;
  }

  /* --- Rundungs-Container auf kleinen Bildschirmen anpassen --- */
  #rundung-container {
    flex-direction: column; /* Elemente untereinander */
    align-items: flex-start; /* Linksbündig */
    gap: 0.3rem; /* etwas Abstand zwischen Elementen */
  }
  #rundung-button,
  #reset-button,
  #copy-button {
    margin-top: 0.5rem; /* Abstand oberhalb der Buttons */
    width: 100%; /* Button volle Breite für bessere Bedienbarkeit */
    box-sizing: border-box;
  }
}

/* --- Fehlermeldung --- */
#error-msg {
  color: #e74c3c;
  font-weight: 700;
  margin-bottom: 1rem;
  min-height: 1.2rem;
}

/* --- 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;
}

/* --- Winkel-Anzeige Feld --- */
#winkel-zwischen-feld-container {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  text-align: left;
}
#winkel-zwischen-feld-container label {
  font-weight: 700;
  color: #2980b9;
  display: block;
  margin-top: 0.3rem;
  margin-bottom: 0.8rem; /* Abstand nach unten anpassen */
}
#winkel-zwischen-feld {
  width: 97%;
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #e9ecef; /* grauer Hintergrund für readonly */
  color: #999999;
  cursor: default;
}
#winkel-zwischen-feld:focus {
  outline: none;
}

/* --- Druck-Button Styling --- */


#button-container {
  /* Neuer Container für Druck- und Kopier-Button */
  max-width: 600px;
  margin: 0 auto 1.5rem;
  text-align: right; /* Buttons rechtsbündig */
  display: inline-flex;
  gap: 0.5rem; /* Abstand zwischen Buttons */
}

#button-container button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-align: center;
  min-width: 100px;
  line-height: 1.4;
  vertical-align: middle;
  margin-right: 0.5rem; /* Abstand zwischen Buttons */
}

#druck-button,
#qr-code-button {
  background-color: #1c5980;
}

#druck-button:hover,
#druck-button:focus,
#qr-code-button:hover,
#qr-code-button:focus {
  background-color: #15415a;
  outline: none;
}

#copy-button {
  background-color: #e67e22;
}

#copy-button:hover,
#copy-button:focus {
  background-color: #b35e14;
  outline: none;
}


/* --- Mini-Grafik Container --- */
#mini-grafik-container {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  text-align: center;
}
#mini-grafik-container label {
  font-weight: 700;
  color: #2980b9;
  display: block;
  margin-bottom: 0.3rem;
  text-align: left;
}
/* SVG Styling */
#mini-grafik {
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f9fbfd;
  display: block;
  margin: 0 auto;
}

/* --- Footer mit Link --- */
footer {
  max-width: 600px;
  margin: 2rem auto 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
}
footer a {
  color: #2980b9;
  text-decoration: none;
  font-weight: 700;
}
footer a:hover,
footer a:focus {
  text-decoration: underline;
}
/* --- Footer Unterstützungstext sehr klein --- */
.footer-support {
  font-size: 0.7rem;
  color: #999999;
  margin-top: 0.3rem;
}

/* --- Container für Rundungs-Controls --- */
#rundung-container {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
#rundung-container label {
  font-weight: 700;
  color: #2980b9;
  min-width: 180px;
}
#rundung-container select {
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  color: #333;
}
/* Der Button #rundung-button wurde entfernt gemäß Vorgabe */

/* --- Reset-Button Styling --- */
#reset-button {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  background-color: #c0392b; /* Rot für Reset */
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
#reset-button:hover,
#reset-button:focus {
  background-color: #922b21;
  outline: none;
}

/* --- Klappbarer Hilfetext (Accordion) --- */
#hilfe-accordion {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  border: 1px solid #2980b9;
  border-radius: 6px;
  background-color: #f0f8ff;
}
#hilfe-accordion button {
  width: 100%;
  background-color: #2980b9;
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#hilfe-accordion button:hover,
#hilfe-accordion button:focus {
  background-color: #1c5980;
  outline: none;
}
#hilfe-accordion button .arrow {
  transition: transform 0.3s ease;
}
#hilfe-accordion button[aria-expanded="true"] .arrow {
  transform: rotate(90deg);
}
#hilfe-content {
  padding: 1rem;
  display: none;
  color: #2c3e50;
  font-size: 0.85rem; /* 11102025 */
  line-height: 1.4;
}
#hilfe-content[aria-hidden="false"] {
  display: block;
}
/* --- 29092025 --- */
input#versatz-x,
input#versatz-y {
  background-color: #e0e7f7;
}

/* --- Neuer Container für Versatz X mit Button --- */
.versatz-x-container {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* --- Neuer Container für Versatz Y mit Button --- */
.versatz-y-container {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
/* Eingabefeld Versatz X und Versatz Y etwas schmaler machen */
input#versatz-x,
input#versatz-y {
  width: 70%; /* etwas schmaler, damit Button daneben passt */
}
/* Button [+/-] Styling */
button.toggle-sign-button {
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  color: #2980b9;
  background-color: #d6e4ff;
  border: 1px solid #2980b9;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  flex-shrink: 0;
  width: 60px; /* 50% breiter als vorher (40px) */
  height: 36px;
  line-height: 1;
  text-align: center;
}
button.toggle-sign-button:hover,
button.toggle-sign-button:focus {
  background-color: #a9c9ff;
  outline: none;
}

/* --- Nachricht für Winkel-Feld bei Klick auf Smartphone --- */
#winkel-zwischen-feld-message {
  max-width: 600px;
  margin: 0 auto 1rem;
  text-align: left;
  color: #2980b9;
  font-weight: 700;
  font-size: 0.9rem;
  display: none; /* Anfangs versteckt */
}

/* --- Anpassungen für gleich große Eingabefelder und Pfeiltasten --- */
/* Wir machen das Eingabefeld "Winkel 1. Loch (Grad)" gleich groß wie "Durchmesser des Lochkreises (mm)" */
/* Dazu passen wir das input[type="text"] mit id winkel-start an */

/* Gleiche Breite und Schriftgröße wie input[type=number] */
input#winkel-start {
  width: 100%;
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  color: #333;
  transition: border-color 0.3s ease;
}
input#winkel-start::placeholder {
  color: #bbb;
}
input#winkel-start:focus {
  border-color: #2980b9;
  outline: none;
  color: #000;
}

/* Pfeiltasten (Spinner) für input#winkel-start aktivieren und gleich groß machen */
/* Da input type="text" keine native Pfeiltasten hat, wir können Pfeiltasten simulieren oder besser auf number umstellen */
/* Aber laut Vorgabe soll es type="text" bleiben wegen Eingaben wie "45." */
/* Daher Pfeiltasten nicht nativ möglich, wir können aber mit CSS die gleiche Höhe und Schriftgröße sicherstellen */

/* Für bessere UX: Wir können Pfeiltasten mit JS hinzufügen (optional), aber nicht gefordert */

/* --- NEU: Styling für das neue Eingabefeld unterhalb des Hilfefensters --- */
#zusatzinfo-container {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  text-align: left;
}
#zusatzinfo-container label {
  font-weight: 700;
  color: #2980b9;
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.2rem; /* Schrift größer für "Zusätzliche Information eingeben" */
}
/* Kleiner Text in Klammern soll kleiner sein */
#zusatzinfo-checkbox-container label small {
  font-weight: normal;
  font-size: 0.8rem;
  color: #666666;
}
#zusatzinfo-textarea {
  width: 100%;
  box-sizing: border-box;
  font-size: 1rem;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  resize: vertical;
  min-height: 2rem; /* ca. 3 Zeilen hoch (statt 2) */
  font-family: Arial, sans-serif;
  white-space: pre-wrap; /* Damit Zeilenumbrüche sichtbar bleiben */
}
/* Container für Checkbox und Label */
#zusatzinfo-checkbox-container {
  max-width: 600px;
  margin: 0 auto 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: #2980b9;
}
#zusatzinfo-checkbox-container input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* --- NEU: Styling für QR-Code Button und Popup --- */
#qr-code-button {
  color: white;
}
#qr-code-button:hover,
#qr-code-button:focus {
  background-color: #1c5980;
  outline: none;
}
/* Overlay für QR-Code Popup */
#qr-code-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.6);
  display: none; /* Anfangs versteckt */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
/* Container für QR-Code Bild */
#qr-code-popup {
  background: white;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
  position: relative;
}
/* QR-Code Bild */
#qr-code-popup img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
/* Schließen Button */
#qr-code-close {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  font-weight: 700;
  color: #e74c3c;
  cursor: pointer;
  line-height: 1;
}
#qr-code-close:hover,
#qr-code-close:focus {
  color: #c0392b;
  outline: none;
}

/* --- START ÄUSSERER DIV NEU --- */
/* Neuer äußerer Div mit runden Ecken und Hintergrundfarbe #d9e4ef */
#aussere-div-neu {
  background-color: #d9e4ef;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}
/* --- ENDE ÄUSSERER DIV NEU --- */
.durchmesser-zeichen {
  font-size: 1.5em;
  font-weight: bold;
  vertical-align: middle; /* optional, für bessere Ausrichtung */
  position: relative;
  top: -2px; /* 2 Pixel nach oben verschieben */
}
.graue-linie {
  border: none;               /* Standardrahmen entfernen */
  height: 1px;                /* Höhe der Linie */
  background-color: #ccc;     /* helles Grau */
  width: 100%;                /* volle Breite */
  margin: 1rem 0;             /* Abstand oben und unten */
}   

/* --- NEU: Klasse für hellrote Hinterlegung des Eingabefeldes --- */
input.highlight-red {
  background-color: #ffdddd; /* hellrot */
  border-color: #e74c3c;     /* roter Rahmen */
}
/* Mehr Abstand unter dem Label "Anzahl der Löcher:" */
label[for="anzahl-loecher"],
label[for="durchmesser-lochkreis"],
label[for="durchmesser-loch"],
label[for="winkel-start"],
label[for="versatz-x"],
label[for="versatz-y"] {
  display: block;
  margin-bottom: 0.3rem; /* Abstand nach unten anpassen */
}

/* --- NEU: Styling für Hilfe-Button oberhalb des Containers --- */
#hilfe-button,
#bild-drucken-button {
  background-color: #2980b9;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
  min-width: 100px;
  margin: 0 auto 1rem auto;
  display: block;
}
#hilfe-button:hover,
#hilfe-button:focus,
#bild-drucken-button:hover,
#bild-drucken-button:focus {
  background-color: #1c5980;
  outline: none;
}

/* --- NEU: Modal Overlay für Hilfebild --- */
#hilfe-modal {
  display: none; /* Anfangs versteckt */
  position: fixed;
  top: 5%;
  left: 5%;
  width: 90vw;
  height: 90vh;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  z-index: 10000;
  overflow: auto;
  padding: 1rem;
  box-sizing: border-box;
  text-align: center;
}

/* --- NEU: Schließen Button im Modal --- */
#hilfe-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 2rem;
  font-weight: 700;
  color: #e74c3c;
  cursor: pointer;
  line-height: 1;
}
#hilfe-close:hover,
#hilfe-close:focus {
  color: #c0392b;
  outline: none;
}

/* --- NEU: Bild im Modal passt sich automatisch an --- */
#hilfe-modal img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  user-select: none;
}

/* 06102025 ausgelagert */

/* ------------------------------------------------------------ */
/* NEU: Logo und Schrift "MS Lochkreis Rechner" im Header */
/* Flexbox für Logo und Text nebeneinander */
/* Responsive Anpassungen für verschiedene Bildschirmgrößen */
/* ------------------------------------------------------------ */
h1 {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* Abstand zwischen Logo und Text */
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-family: 'Arial Black', Arial, sans-serif; /* fette serifenlose Schrift */
  font-weight: 900; /* sehr fett */
  color: #2980b9; /* Grundfarbe */
  text-transform: uppercase; /* Großbuchstaben */
  letter-spacing: 0.05em; /* leichter Abstand für bessere Lesbarkeit */
  line-height: 1.3; /* erhöhte Zeilenhöhe für mehr Höhe */
}

h1 img.logo {
  display: block;
  width: 48px;  /* Standardgröße Desktop */
  height: auto;
}

h1 span.title-text {
  font-size: 2rem;
  font-weight: 900; /* fetter */
  text-transform: uppercase;
  font-family: inherit; /* erbt von h1 */
  color: inherit; /* erbt von h1 */
  letter-spacing: inherit;
  line-height: 1.3; /* Zeilenhöhe anpassen */
  display: inline-block; /* nötig für transform */
  transform: scaleY(1.1); /* Schrift vertikal um 10% strecken */
}

/* Hervorhebung des "O" in Lochkreis */
h1 span.title-text .highlight-o {
  color: #e74c3c; /* kräftiges Rot als Akzentfarbe */
}

/* Tablet: etwas kleiner */
@media (max-width: 1024px) {
  h1 img.logo {
    width: 40px;
  }
  h1 span.title-text {
    font-size: 1.75rem;
  }
}

/* Smartphone: noch kleiner */
@media (max-width: 600px) {
  h1 img.logo {
    width: 32px;
  }
  h1 span.title-text {
    font-size: 1.3rem;
  }
}

/* Optional: Logo und Text zentrieren auf sehr kleine Bildschirme */
@media (max-width: 360px) {
  h1 {
    justify-content: center;
  }
}

/* ------------------------------------------------------------ */
/* Bestehende Styles bleiben erhalten */
/* ------------------------------------------------------------ */

/* NEU: Styles für den Bereich der maximalen Bohrungsgröße */
#max-bohrung-container {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid #2980b9;
  border-radius: 6px;
  background-color: #f0f8ff;
  font-family: Arial, sans-serif;
  color: #2c3e50;
}

#max-bohrung-container h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #2980b9;
}

#max-bohrung-container p {
  margin: 0.25rem 0;
  font-size: 1rem;
}

/* NEU: Styles für Restwanddicke Anzeige */
#restwanddicke-text {
  margin-top: 0.5rem;
  font-weight: 700;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
  min-width: 120px;
  text-align: center;
}

/* Farbgebung für Restwanddicke */
.restwanddicke-normal {
  background-color: #e0f7e9; /* hellgrün */
  color: #2e7d32;
  border: 1px solid #2e7d32;
}

.restwanddicke-warnung {
  background-color: #fff9c4; /* hellgelb */
  color: #665500;
  border: 1px solid #ffeb3b;
}

.restwanddicke-fehler {
  background-color: #ffcccc; /* hellrot */
  color: #990000;
  border: 1px solid #cc0000;
}

/* ------------------------------------------------------------ */
/* NEU: Tabelle für Usereingaben und Berechnungsergebnisse nebeneinander */
/* ------------------------------------------------------------ */
#info-ergebnis-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-family: Arial, sans-serif;
  font-size: 1rem;
}

#info-ergebnis-table th,
#info-ergebnis-table td {
  border: 1px solid #ccc;
  padding: 0.5rem 0.75rem;
  vertical-align: middle;
  text-align: left;
}

#info-ergebnis-table th {
  background-color: #2980b9;
  color: white;
  font-weight: 700;
  text-transform: uppercase;
}

/* Spaltenbreiten: links und rechts gleichmäßig */
#info-ergebnis-table colgroup col {
  width: 50%;
}

/* Input-ähnliche Felder in Tabelle */
.info-input-field {
  display: inline-block;
  width: 5.5rem;
  padding: 0.25rem 0.4rem;
  border: 1px solid #999;
  border-radius: 3px;
  text-align: center;
  font-weight: 700;
  font-family: monospace, monospace;
  user-select: text;
}

/* Weißer Hintergrund für Usereingaben */
.info-input-field.usereingabe {
  background-color: #e9ecef;
  color: black;
  border-color: #999;
}

/* Gelbe Hintergrundfarbe für Warnungen */
.info-input-field.warnung {
  background-color: #fff9c4; /* hellgelb */
  color: #665500;
  border-color: #ffeb3b;
}

/* Rote Hintergrundfarbe für Fehler */
.info-input-field.fehler {
  background-color: #ffcccc; /* hellrot */
  color: #990000;
  border-color: #cc0000;
}

/* NEU: Farbige Hinterlegung für Restwanddicke in Tabelle */
.info-input-field.restwanddicke-normal {
  background-color: #e0f7e9; /* hellgrün */
  color: #2e7d32;
  border: 1px solid #2e7d32;
}

.info-input-field.restwanddicke-warnung {
  background-color: #fff9c4; /* hellgelb */
  color: #665500;
  border: 1px solid #ffeb3b;
}

.info-input-field.restwanddicke-fehler {
  background-color: #ffcccc; /* hellrot */
  color: #990000;
  border: 1px solid #cc0000;
}

/* Label rechts neben Eingabefeldern */
.info-label {
  margin-left: 0.5rem;
  font-weight: normal;
  color: #333;
  user-select: none;
}

/* NEU: Styles für die Checkboxen zur Vorzeichenumschaltung über der Ergebnis-Tabelle */
#vorzeichen-umschaltung-container {
  margin: 1rem 0 0.5rem 0;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  display: flex;
  gap: 2rem;
  align-items: center;
}

#vorzeichen-umschaltung-container label {
  user-select: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Für bessere Lesbarkeit auf kleinen Bildschirmen */
@media (max-width: 600px) {
  #info-ergebnis-table,
  #info-ergebnis-table th,
  #info-ergebnis-table td {
    font-size: 0.9rem;
  }
  #vorzeichen-umschaltung-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

.parametereinstellungen-header {
  width: 100%;
}

/* Parametereinstellungen 05102025 */
.parametereinstellungen-header .title {
  background-color: #2980b9; /* Blau */
  color: white;              /* Weißer Text */
  font-weight: 700;
  padding: 0.5rem 1rem;
  font-size: 1.5rem;
   display: none !important; /* 07102025 */
}

.parametereinstellungen-header .subtitle {
  background-color: #e9ecef; /* Hellgrauer Hintergrund */
  color: #999999;            /* Grauer Text */
  padding: 0.3rem 1rem;
  font-size: 1rem;
  font-weight: normal;
}

#vorzeichen-umschaltung-container {
  background-color: #f0f4f8; /* heller Grauton */
  border: 1px solid #dddddd; /* feiner grauer Rahmen */
  padding: 0.75rem 1rem;      /* etwas Innenabstand für bessere Optik */
  width: 100%;               /* volle Breite */
  box-sizing: border-box;    /* damit Padding und Border in Breite eingerechnet werden */
  border-radius: 4px;        /* optional: abgerundete Ecken */
  margin-top: 0rem;          /* optional: Abstand nach oben */
  margin-bottom: 1rem;       /* optional: Abstand nach unten */
  display: flex;             /* damit die Checkboxen nebeneinander bleiben */
  gap: 2rem;                 /* Abstand zwischen den Checkboxen */
  align-items: center;       /* vertikale Zentrierung */
}

/* ------------------------------------------------------------ */
/* NEU: Druck-Optimierungen */
/* ------------------------------------------------------------ */
@media print {
  /* Grundlegende Druckoptimierung: Hintergrundfarben und Schatten entfernen */
  body {
    /* background: white !important; */
    color: black !important;
    padding: 0.5rem !important;
    margin: 0 !important;
    text-align: left !important;
    font-size: 12pt !important;
  }

  #container,
  #aussere-div-neu,
  #max-bohrung-container,
  #inuuufo-ergebnis-table,
  #ergebnis-tabelle,
  #rundung-container,
  #vorzeichen-umschaltung-container,
  #hilfe-accordion,
  #mini-grafik-container,
  #winkel-zwischen-feld-container,
  #zusatzinfo-container,
  #zusatzinfo-checkbox-container,
  #button-container,
  footer {
    max-width: 100% !important;
    margin: 0 0 0.5rem 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  
  #info-ergebnis-table {
    margin-top: 0.8rem !important; /* Mehr Abstand oben beim Drucken */
    margin-bottom: 0 !important; /* Mehr Abstand oben beim Drucken */
  }

#winkel-zwischen-feld-container {
  margin: 0 !important;
   display: none !important; /* 07102025 */
}

  /* Entferne alle Box-Shadows */
  * {
    box-shadow: none !important;
  }

  /* Entferne alle Hintergrundfarben */
  * {
    background: transparent !important;
  }

  /* Tabellen kompakter machen */
  table {
    font-size: 10pt !important;
    border: 1px solid black !important;
    border-collapse: collapse !important;
    margin: 0 0 0.5rem 0 !important;
    width: 100% !important;
  }
  thead tr {
    background: #ccc !important;
    color: black !important;
  }
  thead th {
    padding: 0.2rem 0.4rem !important;
    color: white !important;
    background: #2980b9 !important; /* blau */
  }
  tbody td {
    padding: 0.15rem 0.4rem !important;
    border: 1px solid black !important;
    font-size: 10pt !important;
  }
  tbody tr:nth-child(even) {
    background: #f9f9f9 !important;
  }

  /* --- NEU: Druck - Hintergrundfarbe #ffffcc für bestimmte Eingabefelder --- */
  /* Diese Regel sorgt dafür, dass die Eingabefelder für Anzahl der Löcher, Durchmesser Lochkreis, Durchmesser der Löcher, Winkel 1. Loch, Versatz X und Versatz Y
     beim Drucken eine hellgelbe Hintergrundfarbe (#ffffcc) erhalten, um sie hervorzuheben. */
  input#anzahl-loecher,
  input#durchmesser-lochkreis,
  input#durchmesser-loch,
  input#winkel-start,
  input#versatz-x,
  input#versatz-y {
    background-color: #ffffcc !important;
    border: 3px solid #ffcc00 !important;    /* smartphone wlan drucker - Oranger Rahmen als Hervorhebung */
  }

  /* Formulareingaben als Text darstellen */
  input,
  select,
  textarea,
  button {
    border: none !important;
    /* Hintergrundfarbe für Eingabefelder beim Drucken auf hellgrau geändert */
    background: transparent !important;
    color: black !important;
    font-size: 10pt !important; /* anzahl der loecher etc. */
    padding: 0.2rem 0.4rem !important;
    margin: 0 !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
  }

  /* Checkboxen: Keine Änderung der Darstellung, damit Haken sichtbar bleiben */
  /* Daher keine spezielle Regel, die Checkboxen leer macht */

  /* Buttons und interaktive Elemente ausblenden */
  #druck-button,
  #copy-button,
  #qr-code-button,
  #reset-button,
  button.toggle-sign-button,
  #hilfe-button,
  #hilfe-close,
  #qr-code-close,
  #button-row,
  #sprachtext-container,
  #rundung-reset-rwd-container, /* 27102025 */
  #sprachtext-abspiel-div { /* 24102025 */
      display: none !important;
  }

  /* Mini-Grafik ausblenden (spart Platz) */
  #mini-grafik-container {
    display: none !important;
  }

  /* Hilfetext ausblenden */
  #hilfe-accordion {
    display: none !important;
  }

  /* QR-Code Overlay ausblenden */
  #qr-code-overlay {
    display: none !important;
  }

  /* Modal Hilfebild ausblenden */
  #hilfe-modal {
    display: none !important;
  }

  /* Zusatzinfo Checkbox und Container kompakter */
  #zusatzinfo-checkbox-container,
  #zusatzinfo-container {
    margin: 0 0 0.5rem 0 !important;
  }
  #zusatzinfo-textarea {
    font-size: 10pt !important;
    padding: 0.2rem !important;
    min-height: 2rem !important;
    /* Hintergrund hellgrau beim Drucken für textarea */
    background-color: #f0f0f0 !important;
    color: black !important;
  }

  /* Labels kompakter */
  label {
    font-size: 10pt !important;
    margin-bottom: 0.15rem !important;
  }

  /* Fehlermeldung ausblenden beim Drucken */
  #error-msg {
    display: none !important;
  }

  /* Footer kompakter */
  footer {
    font-size: 9pt !important;
    margin: 1rem 0 0 0 !important;
    color: #000 !important;
  }
  footer a {
    color: black !important;
    text-decoration: underline !important;
  }

  /* Abstand und Padding in Formularen reduzieren */
  form {
    gap: 0.3rem 0.5rem !important;
  }

  /* Rundungs-Container kompakter */
  #rundung-container {
    gap: 0.3rem !important;
    padding: 0 !important;
  }

  /* Tabellenüberschriften kleiner */
  #info-ergebnis-table th {
    font-size: 9pt !important;
    padding: 0.2rem 0.4rem !important;
  }

  /* Kleinere Schrift in Tabellenzellen */
  #info-ergebnis-table td {
    font-size: 9pt !important;
    padding: 0.15rem 0.4rem !important;
  }

  /* Kleinere Schrift in Ergebnis-Tabelle */
  #ergebnis-tabelle th,
  #ergebnis-tabelle td {
    font-size: 9pt !important;
    padding: 0.15rem 0.3rem !important;
  }

  /* Kleinere Schrift in Rundungs-Select */
  #rundung-select {
    font-size: 10pt !important;
    padding: 0.2rem 0.4rem !important;
  }

  /* Versatz Container kompakter */
  .versatz-x-container,
  .versatz-y-container {
    gap: 0.15rem !important;
  }

  /* Versatz Input schmaler */
  input#versatz-x,
  input#versatz-y {
    width: 60% !important;
    font-size: 10pt !important;
    padding: 0.2rem 0.4rem !important;
  }

  /* Entferne Rahmen bei Eingabefeldern für Druck */
  input,
  select,
  textarea {
    border: 1px solid #000 !important;
  }

  /* Graue Linie dünner */
  .graue-linie {
    height: 0.5px !important;
    margin: 0.5rem 0 !important;
  }

  /* --- NEU: Druck - Nicht drucken: divs mit IDs zusatzinfo-checkbox-container, rundung-container, max-bohrung-container sollen nicht gedruckt werden --- */
  #zusatzinfo-checkbox-container,
  #rundung-container,
  #max-bohrung-container {
    display: none !important;
  }

  /* --- NEU: Druck - Checkboxen in #vorzeichen-umschaltung-container sollen gedruckt werden --- */
  #vorzeichen-umschaltung-container input[type="checkbox"] {
    /* Checkboxen sollen sichtbar sein beim Drucken */
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0.2rem 0 0 !important;
    vertical-align: middle !important;
  }

  /* --- NEU: Druck - Schriftart und Padding der Labels für bestimmte Labels angleichen --- */
  /* Die Labels, die gedruckt werden sollen, bekommen die gleiche Schriftart und Padding wie die Labels für Versatz Mittelpunkt X und Y */
  label[for="anzahl-loecher"],
  label[for="durchmesser-lochkreis"],
  label[for="durchmesser-loch"],
  label[for="winkel-start"] {
    font-family: Arial, sans-serif;
    font-size: 10pt !important;
    padding: 0.2rem 0.4rem !important;
    color: #2980b9 !important;
    display: block !important;
  }

  /* --- NEU: Footer Text sehr klein beim Drucken --- */
  footer {
    font-size: 8pt !important;
    color: #000 !important;
  }
  /* Standardmäßig ausblenden */
  #visuelle-koordinatenkontrolle {
    display: none;
  }
  /* Wenn die Section die Klasse "sichtbar-beim-drucken" hat, dann anzeigen */
  #visuelle-koordinatenkontrolle.sichtbar-beim-drucken {
    display: block;
  }
#vorzeichen-umschaltung-container { /* 27102025 */
    padding: 0.2rem 0.4rem !important;
    border-width: 1px !important;
  }   
  
}

/* 1261*/