/* ===================================================================
   (C) Copyright 2025 by LMP-MEDIA IT-Solutions e. K. D-25899 Niebüll
   =================================================================== */


/* ========================================================= */
/* Sprach-Auswahl (language-select / language-option)         */
/* ========================================================= */

.language-select {
  min-width: 180px;
  padding: 5px;
  font-size: 15px;
}

.language-option {
  background-repeat: no-repeat;
  background-position: 5px center;
  background-size: 20px 15px;
  padding-left: 30px;
}

/* Für moderne Browser */
.language-select option {
  padding-left: 32px;
}



/* ========================================================= */
/* Hauptcontainer: EU-Umsatzsteuer-Rechner                   */
/* ========================================================= */

#vat-calculator {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  border: 1px solid #1b3974;
  border-radius: 12px;
  background: #fafafa;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  font-family: sans-serif;
}

/* Titel (h2) innerhalb des Containers */
#vat-calculator h2 {
  text-align: center;
  margin-bottom: 20px;
}



.language-wrapper {
  text-align: center;
  margin-bottom: 20px;
}

#langDropdown {
  display: inline-block;
}



/* ========================================================= */
/* Gemeinsame Basis für Dropdowns (Sprache & Land)           */
/* ========================================================= */

.custom-dropdown {
  display: inline-block;
  position: relative;
  font-family: sans-serif;
  text-align: left;
  width: 260px;              /* feste Breite für sauberes Layout */
  vertical-align: top;
}

/* Beschriftungen (Land:, Sprache:) linksbündig mit gleichem Startpunkt */
label.dropdown-label {
  display: inline-block;
  width: 90px;               /* gleichmäßiger Abstand für Labels */
  font-weight: bold;
  text-align: right;
  margin-right: 10px;
  vertical-align: middle;
}

/* Ausgewählter Eintrag im Dropdown */
.dropdown-selected {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px 10px;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
}

/* Flaggen-Darstellung */
.flag-icon {
  width: 20px;
  height: 14px;
  flex-shrink: 0;
  margin-right: 8px;
}

/* Dropdown-Liste */
.dropdown-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border: 1px solid #ccc;
  background: #fff;
  z-index: 1000;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Einzelne Einträge in der Liste */
.dropdown-item {
  padding: 6px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.dropdown-item:hover {
  background: #f3f3f3;
}

/* Pfeil rechts */
.arrow {
  margin-left: auto;
  font-size: 14px;
  color: #666;
}

/* ========================================================= */
/* ?? Style-Erweiterung für die Steuerrechner-Boxen          */
/* ========================================================= */

fieldset {
  margin: 30px auto;
  max-width: 460px;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 22px 24px 26px 24px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

fieldset:hover {
  border-color: #999;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

legend {
  font-weight: 600;
  font-size: 16px;
  color: #222;
  padding: 0 8px;
}

/* Labels in den Boxen */
fieldset label {
  display: block;
  font-size: 15px;
  color: #333;
  margin-bottom: 6px;
}

/* Eingabefelder */
fieldset input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #1b3974;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
  background: #fff;
  color: #000;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none; /* Safari fix */
  appearance: none;
}

/* Readonly-Felder */
fieldset input[readonly] {
  background: #f6f6f6;
  color: #555;
  border-color: #f9c740;
}

/* Fokus-Zustand */
fieldset input:focus {
  border-color: #0077cc;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 119, 204, 0.35);
}

/* Leichte Trennung zwischen mehreren Boxen */
fieldset + fieldset {
  margin-top: 35px;
}



/* ========================================================= */
/* Länder-Auswahl Formular                                   */
/* ========================================================= */

.country-form {
  text-align: center;
  margin-bottom: 25px;
}



/* ========================================================= */
/* Kompakte Dropdown-Stile (Sprache & Land)                  */
/* ========================================================= */

.custom-dropdown {
  display: inline-block;
  position: relative;
  font-family: sans-serif;
  text-align: left;
  width: 260px;
}

.dropdown-selected {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px 10px;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dropdown-selected span {
  font-size: 15px;
}

.dropdown-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border: 1px solid #ccc;
  background: #fff;
  z-index: 1000;
  max-height: 250px;
  overflow-y: auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.dropdown-item {
  padding: 6px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.dropdown-item:hover {
  background: #f3f3f3;
}

.flag-icon {
  width: 20px;
  height: auto;
  margin-right: 8px;
}

.arrow {
  margin-left: auto;
  font-size: 14px;
  color: #666;
}


/* ========================================================= */
/* Steuerrechner-Boxen (Feldsets mit Berechnung)             */
/* ========================================================= */

.tax-box {
  margin: 20px auto;
  max-width: 400px;
  border: 1px solid #aaa;
  border-radius: 8px;
  padding: 15px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Beschriftung (Legende) */
.tax-box legend {
  font-weight: 600;
  font-size: 16px;
  color: #222;
  padding: 0px;
}

/* Eingabegruppen */
.input-group {
  margin-bottom: 15px;
}

.input-group label {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  color: #333;
  font-weight: 500;
}

/* Eingabefelder */
.calc-input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
  background: #fff;
  color: #000;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Readonly-Felder */
.calc-input.readonly {
  background: #f6f6f6;
  color: #555;
}

/* Fokus-Zustand */
.calc-input:focus {
  border-color: #1b3974;
  box-shadow: 0 0 5px rgba(27, 57, 116, 0.3);
  outline: none;
}



