/* ==========================================================================
   CADIZ WEB FONTS
   ========================================================================== */

/* Light (300) */
@font-face {
  font-family: 'Cadiz';
  src: url('https://internotes.metzler.com/download/jobs/fonts/CadizWeb-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cadiz';
  src: url('https://internotes.metzler.com/download/jobs/fonts/CadizWeb-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* Book (350 / Light-Regular) */
@font-face {
  font-family: 'Cadiz';
  src: url('https://internotes.metzler.com/download/jobs/fonts/CadizWeb-Book.woff2') format('woff2');
  font-weight: 350;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cadiz';
  src: url('https://internotes.metzler.com/download/jobs/fonts/CadizWeb-BookItalic.woff2') format('woff2');
  font-weight: 350;
  font-style: italic;
  font-display: swap;
}

/* Regular (400) */
@font-face {
  font-family: 'Cadiz';
  src: url('https://internotes.metzler.com/download/jobs/fonts/CadizWeb-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cadiz';
  src: url('https://internotes.metzler.com/download/jobs/fonts/CadizWeb-RegularItalic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* SemiBold (600) */
@font-face {
  font-family: 'Cadiz';
  src: url('https://internotes.metzler.com/download/jobs/fonts/CadizWeb-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cadiz';
  src: url('https://internotes.metzler.com/download/jobs/fonts/CadizWeb-SemiBoldItalic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

/* Bold (700) */
@font-face {
  font-family: 'Cadiz';
  src: url('https://internotes.metzler.com/download/jobs/fonts/CadizWeb-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cadiz';
  src: url('https://internotes.metzler.com/download/jobs/fonts/CadizWeb-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* Black (900) */
@font-face {
  font-family: 'Cadiz';
  src: url('https://internotes.metzler.com/download/jobs/fonts/CadizWeb-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cadiz';
  src: url('https://internotes.metzler.com/download/jobs/fonts/CadizWeb-BlackItalic.woff2') format('woff2');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}


/* ==========================================================================
   NINNA FONTS
   ========================================================================== */

/* Regular (400) */
@font-face {
  font-family: 'Ninna';
  src: url('https://internotes.metzler.com/download/jobs/fonts/Ninna-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ninna';
  src: url('https://internotes.metzler.com/download/jobs/fonts/Ninna-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Book (350 / Light-Regular) */
@font-face {
  font-family: 'Ninna';
  src: url('https://internotes.metzler.com/download/jobs/fonts/Ninna-Book.woff2') format('woff2');
  font-weight: 350;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ninna';
  src: url('https://internotes.metzler.com/download/jobs/fonts/Ninna-BookItalic.woff2') format('woff2');
  font-weight: 350;
  font-style: italic;
  font-display: swap;
}


/* ==========================================================================
   METZLER BUTTON STYLES
   ========================================================================== */

button,
input[type="button"],
input[type="submit"],
input[type="reset"],
input[type="file"]::file-selector-button,
.button,
a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  
  background-color: #A2E8BA;
  color: #141414;
  
  font-family: 'Cadiz', -apple-system, BlinkMacSystemFont, Arial, sans-serif !important;
  font-size: 14px;
  line-height: 1.428;
  font-weight: 400;
  white-space: nowrap;
  text-decoration: none;
  
  padding: 8px 12px;
  border-radius: 9999px;
  border: 0 solid transparent;
  cursor: pointer;
  
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.15s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="file"]::file-selector-button:hover,
.button:hover,
a.button:hover {
  background-color: #93D9AC;
  color: #141414;
}

/* Upload-Button Fallback */
input[type="file"]::-webkit-file-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #A2E8BA;
  color: #141414;
  font-family: 'Cadiz', -apple-system, BlinkMacSystemFont, Arial, sans-serif !important;
  font-size: 14px;
  font-weight: 400;
  padding: 8px 12px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  transition: background-color 0.15s ease;
}

input[type="file"]::-webkit-file-upload-button:hover {
  background-color: #93D9AC;
}


/* ==========================================================================
   INPUTS & TEXTAREAS (Lotus Notes / Domino Overrides)
   ========================================================================== */

/* Alle Texteingabefelder (allgemeine Basis-Stylings) */
input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="file"]):not([type="checkbox"]):not([type="radio"]) {
  display: inline-block !important;
  max-width: 100% !important;
  height: 36px !important;
  padding: 4px 10px !important;
  min-width: 72px !important;
  
  font-family: 'Cadiz', -apple-system, BlinkMacSystemFont, Arial, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.428 !important;
  color: #000000 !important;
  
  background-color: #ffffff !important;
  border: 1px solid #E2E2E2 !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
  
  box-sizing: border-box !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
  outline: none !important;
  vertical-align: middle !important;
}

/* Eingabefelder OHNE Inline-Breite voll aufziehen */
input:not([style*="width"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="file"]):not([type="checkbox"]):not([type="radio"]) {
  width: 100% !important;
  display: block !important;
}

/* Hover & Focus-Effekt für Texteingabefelder */
input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="file"]):not([type="checkbox"]):not([type="radio"]):hover {
  border-color: #D1D1D1 !important;
}

input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="file"]):not([type="checkbox"]):not([type="radio"]):focus {
  border-color: #A2E8BA !important;
  box-shadow: 0 0 0 3px rgba(162, 232, 186, 0.3) !important;
}

/* Mehrzeilige Textfelder (Textareas - Max 2 Zeilen) */
textarea {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 54px !important;
  max-height: 60px !important;
  padding: 6px 12px !important;
  resize: vertical !important;
  
  font-family: 'Cadiz', -apple-system, BlinkMacSystemFont, Arial, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  color: #000000 !important;
  background-color: #ffffff !important;
  border: 1px solid #E2E2E2 !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
  box-sizing: border-box !important;
  outline: none !important;
}

textarea:hover {
  border-color: #D1D1D1 !important;
}

textarea:focus {
  border-color: #A2E8BA !important;
  box-shadow: 0 0 0 3px rgba(162, 232, 186, 0.3) !important;
}


/* ==========================================================================
   METZLER DROPDOWNS (<select>)
   ========================================================================== */

select {
  display: block !important;
  width: 100% !important;
  height: 36px !important;
  padding: 6px 36px 6px 12px !important;
  
  font-family: 'Cadiz', -apple-system, BlinkMacSystemFont, Arial, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.428 !important;
  color: #000000 !important;
  
  background-color: #ffffff !important;
  border: 1px solid #E2E2E2 !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
  cursor: pointer !important;
  
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 16px !important;
  
  box-sizing: border-box !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
  outline: none !important;
}

select:hover {
  border-color: #D1D1D1 !important;
}

select:focus,
select:active {
  color: #000000 !important;
  border-color: #A2E8BA !important;
  box-shadow: 0 0 0 3px rgba(162, 232, 186, 0.3) !important;
}


/* ==========================================================================
   FORMULAR LAYOUT & TABELLEN-SPACING
   ========================================================================== */

/* Vertikales Alignment der Tabellenzellen korrigieren */
td {
  vertical-align: middle !important;
  padding-bottom: 8px !important;
}

/* Radiobuttons Container (Frau / Herr / Divers) */
.radio, 
td font.radio {
  display: inline-flex !important;
  align-items: center !important;
  gap: 20px !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

.radio label,
font.radio label {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  cursor: pointer !important;
  line-height: 1 !important;
}


/* ==========================================================================
   CUSTOM RADIOBUTTONS & CHECKBOXEN (#BEDFB6)
   ========================================================================== */

input[type="radio"],
input[type="checkbox"] {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  
  width: 18px !important;
  height: 18px !important;
  background-color: #ffffff !important;
  border: 2px solid #D1D1D1 !important;
  cursor: pointer !important;
  vertical-align: middle !important;
  margin: 0 8px 0 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease-in-out !important;
  outline: none !important;
}

/* Form-Spezifika (Rund vs. Eckig) */
input[type="radio"] {
  border-radius: 50% !important;
}

input[type="checkbox"] {
  border-radius: 4px !important;
}

/* Hover-Zustand */
input[type="radio"]:hover,
input[type="checkbox"]:hover {
  border-color: #BEDFB6 !important;
}

/* Aktivierter Zustand (Checked) - Erzwingt #BEDFB6 */
input[type="radio"]:checked,
input[type="checkbox"]:checked {
  background-color: #BEDFB6 !important;
  border-color: #BEDFB6 !important;
}

/* Der innere Punkt beim Radiobutton */
input[type="radio"]:checked::before {
  content: "" !important;
  width: 8px !important;
  height: 8px !important;
  background-color: #141414 !important;
  border-radius: 50% !important;
  display: block !important;
}

/* Das Häkchen bei der Checkbox */
input[type="checkbox"]:checked::before {
  content: "" !important;
  width: 4px !important;
  height: 8px !important;
  border: solid #141414 !important;
  border-width: 0 2px 2px 0 !important;
  transform: rotate(45deg) translate(-1px, -1px) !important;
  display: block !important;
}

/* Focus-Zustand für Tastatur-Navigation */
input[type="radio"]:focus-visible,
input[type="checkbox"]:focus-visible {
  box-shadow: 0 0 0 3px rgba(190, 223, 182, 0.5) !important;
}


/* ==========================================================================
   INPUTS BREITEN-ANPASSUNG (VOLLE BREITE & CALC)
   ========================================================================== */

/* Alle standardmäßigen Texteingaben & Selects auf volle Breite strecken */
input[style*="width:294px"],
select[style*="width:300px"],
textarea[name="PreferredContact"] {
  width: 100% !important;
  max-width: 100% !important;
}

/* PLZ & Ort sauber aufteilen */
input[name="Zip"],
input[name*="PLZ"],
input[name*="plz"] {
  width: 72px !important;
  min-width: 72px !important;
  display: inline-block !important;
}

input[name="City"],
input[name*="Ort"],
input[name*="ort"] {
  width: calc(100% - 78px) !important;
  display: inline-block !important;
}

/* Vorwahl & Telefon/Mobil-Nummer sauber aufteilen */
input[name="Fon2"],
input[name="Mobil1"],
input[name*="fon2"] {
  width: 72px !important;
  min-width: 72px !important;
  display: inline-block !important;
}

input[name="Fon3"],
input[name="Mobil2"],
input[name*="fon3"] {
  width: calc(100% - 90px) !important;
  display: inline-block !important;
}