@font-face {
  font-family: Univers;
  src: url(/font/LT_44.ttf);
}

body {
  font-family: Univers;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  text-align: left;
  margin: 0;
  padding: 0;
}

label {
  display: block;
  line-height: 1;
  padding-top: 20px;
  padding-bottom: 15px;
}

p,
ol {
  max-width: 720px;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  padding-bottom: 15px;
  margin-right: auto;
  margin-left: auto;
  box-sizing: border-box;
}

h1 {
  font-size: 26px;
  line-height: 30px;
  font-weight: 300;
  max-width: 720px;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
  box-sizing: border-box;
}

h1 strong {
  font-weight: 700;
}

.form-group {
  max-width: 720px;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 1rem;
  box-sizing: border-box;
}

input {
  width: 100%;
  height: calc(1.5em + 0.75rem + 2px);
  box-sizing: border-box;
  padding: 0.375rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  font-size: 1rem;
}

input#data {
  width: 5%;
  height: 15px;
  min-width: 20px;
}

input#news {
  width: 5%;
  height: 15px;
  min-width: 20px;
}

input#optin {
  width: 5%;
  height: 15px;
  min-width: 20px;
}

.navbar {
  background-color: #005aaa !important;
  height: 100px;
  width: auto;
  position: relative;
  margin-top: 8px;
  margin-left: 8px;
  margin-right: 8px;
}

.navbar-logo {
  top: 25px;
  align-self: flex-start;
  height: 40px;
}

.truma-logo {
  max-width: 100%;
  align-self: flex-start;
  height: 40px;
  padding-top: 25px;
  padding-left: 25px;
}

button, .button {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
  background-color: #0069d9;
  color: #fff;
  border: 1px solid transparent;
  border-top-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-left-color: transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
  min-height: 44px;
  min-width: 44px;
  box-sizing: border-box;
}

button:hover, .button:hover {
  background-color: #0056b3;
}

.container {
  background-color: #fff;
  padding: 20px 40px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  box-sizing: border-box;
}

/* Success page specific styles */
.success-container {
  max-width: 600px;
  margin: 40px auto;
  padding: 40px 30px;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  color: #28a745;
  animation: bounce 1s ease-in-out;
}

.message-content {
  margin: 30px 0;
}

.message-content p {
  margin-bottom: 15px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.spam-notice {
  color: #6c757d;
  font-style: italic;
  font-size: 0.95rem !important;
}

.winner-notice {
  color: #005aaa;
  font-weight: 500;
  font-size: 1.05rem !important;
}

/* Error page specific styles */
.error-container {
  max-width: 600px;
  margin: 40px auto;
  padding: 40px 30px;
  border-left: 4px solid #dc3545;
}

.error-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  color: #dc3545;
  animation: shake 0.5s ease-in-out;
}

.error-container h1 {
  color: #dc3545;
  margin-bottom: 20px;
}

.error-container p {
  margin-bottom: 15px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #495057;
}

.error-container strong {
  color: #dc3545;
  font-weight: 600;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* Mobile Optimierungen */
@media (max-width: 768px) {
  body {
    font-size: 0.9rem;
  }
  
  h1 {
    font-size: 22px;
    line-height: 26px;
    padding-right: 10px;
    padding-left: 10px;
  }
  
  p, ol {
    padding-right: 10px;
    padding-left: 10px;
  }
  
  .form-group {
    padding-right: 10px;
    padding-left: 10px;
  }
  
  .container {
    padding: 15px 20px;
    margin: 10px;
  }
  
  .success-container {
    margin: 20px auto;
    padding: 30px 20px;
  }
  
  .error-container {
    margin: 20px auto;
    padding: 30px 20px;
  }
  
  .success-icon {
    font-size: 3rem;
    margin-bottom: 15px;
  }
  
  .error-icon {
    font-size: 3rem;
    margin-bottom: 15px;
  }
  
  .message-content {
    margin: 20px 0;
  }
  
  .message-content p {
    font-size: 1rem;
  }
  
  .error-container p {
    font-size: 1rem;
  }
  
  .navbar {
    height: 80px;
  }
  
  .truma-logo {
    height: 35px;
    padding-top: 20px;
    padding-left: 15px;
  }
  
  button, .button {
    width: auto;
    max-width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1.1rem;
  }
  
  input {
    font-size: 16px; /* Verhindert Zoom auf iOS */
  }
  
  label {
    padding-top: 15px;
    padding-bottom: 10px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 0.85rem;
  }
  
  h1 {
    font-size: 20px;
    line-height: 24px;
  }
  
  .container {
    padding: 10px 15px;
    margin: 5px;
  }
  
  .success-container {
    margin: 15px auto;
    padding: 25px 15px;
  }
  
  .error-container {
    margin: 15px auto;
    padding: 25px 15px;
  }
  
  .success-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
  }
  
  .error-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
  }
  
  .message-content p {
    font-size: 0.95rem;
  }
  
  .error-container p {
    font-size: 0.95rem;
  }
  
  .navbar {
    height: 70px;
  }
  
  .truma-logo {
    height: 30px;
    padding-top: 15px;
    padding-left: 10px;
  }
  
  button, .button {
    width: 100vw;
    max-width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
  }
}

/* Touch-Optimierungen */
@media (hover: none) and (pointer: coarse) {
  button, .button {
    min-height: 48px;
    min-width: 48px;
  }
  
  input {
    min-height: 44px;
  }
  
  input[type="checkbox"] {
    min-width: 24px;
    min-height: 24px;
  }
}

/* Landscape-Modus auf Mobilgeräten */
@media (max-width: 768px) and (orientation: landscape) {
  .navbar {
    height: 60px;
  }
  
  .truma-logo {
    height: 25px;
    padding-top: 15px;
  }
  
  h1 {
    font-size: 18px;
    line-height: 22px;
  }
}