/**
 * Portokalkulator Deutsche Post
 * Version: 1.02
 * Author: Uwe Fenner . mailingdruck24.de
 */

.portokalkulator-container {
  font-family: Arial, sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f9f9f7;
  color: #333;
}

.portokalkulator-header {
  margin-bottom: 20px;
}

.portokalkulator-header h1 {
  font-size: 28px;
  color: #2c3e50;
  margin: 0;
  padding: 10px 0;
}

/* Ergebniskarte */
.portokalkulator-result-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

.portokalkulator-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.portokalkulator-result-header h2 {
  font-size: 24px;
  color: #4285f4;
  margin: 0;
}

.portokalkulator-print-button {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.portokalkulator-print-button:hover {
  background-color: #e9e9e9;
}

.print-icon {
  font-size: 16px;
}

.portokalkulator-result-price {
  font-size: 36px;
  font-weight: bold;
  color: #4caf50;
  text-align: center;
  margin: 20px 0;
}

.portokalkulator-result-einzelpreis {
  background-color: #e3f2fd;
  color: #1565c0;
  padding: 10px;
  border-radius: 4px;
  font-size: 16px;
  text-align: center;
  margin-bottom: 15px;
}

.portokalkulator-result-einzelpreis .portokalkulator-hinweis {
  font-size: 14px;
  color: #1565c0;
  display: block;
  margin-top: 5px;
}

.portokalkulator-result-empty {
  text-align: center;
  color: #666;
  padding: 20px;
}

/* Werbung */
.portokalkulator-ad {
  margin-top: 20px;
  border-radius: 8px;
  overflow: hidden;
}

.portokalkulator-ad-content {
  background: linear-gradient(135deg, #ff7043, #ff5722);
  color: white;
  padding: 15px;
  text-align: center;
}

.portokalkulator-ad-logo {
  max-width: 180px;
  width: auto;
  height: 40px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 10px;
}

.portokalkulator-ad-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.portokalkulator-ad-prices {
  font-size: 20px;
  margin-bottom: 5px;
}

.portokalkulator-ad-note {
  font-size: 12px;
  margin-bottom: 15px;
}

.portokalkulator-ad-button {
  background-color: white;
  color: #ff5722;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.portokalkulator-ad-button:hover {
  background-color: #f5f5f5;
}

/* Dialogpost-Werbung */
.portokalkulator-dialogpost-ad {
  margin-top: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.portokalkulator-dialogpost-ad-content {
  background: linear-gradient(135deg, #3B82F6, #60A5FA);
  color: white;
  padding: 15px;
  text-align: center;
}

.portokalkulator-dialogpost-ad-logo {
  max-width: 180px;
  width: auto;
  height: 40px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 10px;
}

.portokalkulator-dialogpost-ad-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
}

.portokalkulator-dialogpost-ad-button-container {
  margin-top: 25px;
}

.portokalkulator-dialogpost-ad-button {
  background-color: white;
  color: #3B82F6;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  text-decoration: none;
  display: inline-block;
}

.portokalkulator-dialogpost-ad-button:hover {
  background-color: #f5f5f5;
}

/* Formular */
.portokalkulator-form-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.portokalkulator-step {
  margin-bottom: 20px;
}

.portokalkulator-step label {
  display: block;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
}

.portokalkulator-step select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.portokalkulator-inputs-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.portokalkulator-input-column {
  flex: 1;
}

.portokalkulator-input-column label {
  display: block;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
}

.portokalkulator-input-column input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.portokalkulator-hint {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

.portokalkulator-radio-group {
  display: flex;
  gap: 20px;
}

.portokalkulator-radio {
  display: flex;
  align-items: center;
}

.portokalkulator-radio input[type="radio"] {
  margin-right: 8px;
}

.portokalkulator-button-group {
  display: flex;
  gap: 10px;
}

.portokalkulator-button-group button {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f5f5f5;
  font-size: 16px;
  cursor: pointer;
}

.portokalkulator-button-group button.active {
  background-color: #4285f4;
  color: white;
  border-color: #4285f4;
}

.portokalkulator-leitregion {
  font-size: 14px;
  padding: 10px;
  background-color: #f5f5f5;
  border-radius: 4px;
  margin-bottom: 15px;
}

.portokalkulator-leitregion label {
  font-size: 14px;
}

.portokalkulator-umsatzsteuer-hinweis {
  font-size: 14px;
  color: #666;
  margin-top: 10px;
  text-align: center;
}

.portokalkulator-schwere-briefe-hinweis {
  font-size: 14px;
  color: #e67e22;
  margin-top: 10px;
  text-align: center;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .portokalkulator-container {
    padding: 10px;
  }
  
  .portokalkulator-header h1 {
    font-size: 22px;
  }
  
  .portokalkulator-inputs-row {
    flex-direction: column;
    gap: 15px;
  }
  
  .portokalkulator-result-header h2 {
    font-size: 20px;
  }
  
  .portokalkulator-result-price {
    font-size: 30px;
  }
  
  .portokalkulator-ad-title {
    font-size: 20px;
  }
  
  .portokalkulator-ad-prices {
    font-size: 18px;
  }
  
  .portokalkulator-step label {
    font-size: 16px;
  }
}

/* Postkarten-Fehlermeldung */
.portokalkulator-error-message {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 6px;
  padding: 15px;
  color: #856404;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  margin: 10px 0;
}

/* Professioneller Dialogpost-Container */
.portokalkulator-dialogpost-container {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  padding: 20px 0;
  background: none;
  border: none;
}

.portokalkulator-dialogpost-column {
  flex: 1;
  min-width: 0; /* Verhindert Overflow */
}

.portokalkulator-dialogpost-column:last-child {
  /* Rechte Spalte bleibt immer sichtbar (auch wenn leer) */
  min-height: 80px;
}

.portokalkulator-dialogpost-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.4;
}

.portokalkulator-hint-small {
  font-size: 12px;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.3;
}

/* Responsive für mobile Geräte */
@media (max-width: 768px) {
  .portokalkulator-dialogpost-container {
    flex-direction: column;
    gap: 20px;
  }
}



/* Neues Zielland-Layout mit Anzeigen */
.portokalkulator-zielland-container {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.portokalkulator-zielland-left {
  flex: 0 0 200px;
}

.portokalkulator-zielland-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.portokalkulator-radio-group-vertical {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.portokalkulator-radio-group-vertical .portokalkulator-radio {
  display: flex;
  align-items: center;
  gap: 8px;
}

.portokalkulator-radio-group-vertical .portokalkulator-radio input[type="radio"] {
  margin: 0;
}

.portokalkulator-radio-group-vertical .portokalkulator-radio label {
  margin: 0;
  font-weight: normal;
  cursor: pointer;
}

/* Orange Anzeige */
.portokalkulator-ad-orange {
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  color: white;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
  display: none; /* Standardmäßig versteckt */
}

.portokalkulator-ad-orange-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
}

.portokalkulator-ad-orange-price {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.portokalkulator-ad-orange-note {
  font-size: 12px;
  margin-bottom: 12px;
  opacity: 0.9;
}

.portokalkulator-ad-orange-button {
  display: inline-block;
  background-color: white;
  color: #ff6b35;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.3s ease;
}

.portokalkulator-ad-orange-button:hover {
  background-color: #f0f0f0;
  transform: translateY(-1px);
}

/* Blaue Anzeige */
.portokalkulator-ad-blue {
  background: linear-gradient(135deg, #4285f4, #5a9fd4);
  color: white;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
  display: none; /* Standardmäßig versteckt */
}

.portokalkulator-ad-blue-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 5px;
}

.portokalkulator-ad-blue-subtitle {
  font-size: 14px;
  margin-bottom: 12px;
  opacity: 0.9;
}

.portokalkulator-ad-blue-button {
  display: inline-block;
  background-color: white;
  color: #4285f4;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.3s ease;
}

.portokalkulator-ad-blue-button:hover {
  background-color: #f0f0f0;
  transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .portokalkulator-zielland-container {
    flex-direction: column;
    gap: 15px;
  }
  
  .portokalkulator-zielland-left {
    flex: none;
  }
  
  .portokalkulator-zielland-right {
    flex: none;
  }
  
  .portokalkulator-radio-group-vertical {
    flex-direction: row;
    gap: 15px;
  }
}

