:root {
  --primary-color: #0073aa;
  --secondary-color: #f8f8f8;
  --text-color: #333;
  --border-color: #ddd;
  --header-height: 80px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

/* Header */
.site-header {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: var(--header-height);
}
.logo img {
  height: 60px;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}
.main-nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  transition: color 0.3s;
}
.main-nav a:hover {
  color: var(--primary-color);
}

/* Hero-Bild (nur auf Event-Liste) */
.hero-image {
  width: 100%;
  height: 300px;
  background: url(images/header.jpg) center/cover;
  margin-bottom: 30px;
}

.default-container {
  max-width: 1200px;
  margin: 0 auto;
  padding:0 20px;
}

/* Event-Liste */
.event-card {
  border: 1px solid var(--border-color);
  border-radius: 5px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.event-card:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.event-card-image {
  height: 250px;
  overflow: hidden;
  float: left;
  margin-right:20px;
}
.event-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.event-card:hover .event-card-image img {
  transform: scale(1.05);
}
.event-card-content {
  padding: 20px;
}
.event-card h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}
.event-card p {
  margin-bottom: 5px;
  color: #666;
}
.btn {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 8px 15px;
  border-radius: 3px;
  text-decoration: none;
  margin-top: 10px;
  transition: background 0.3s;
}
.btn:hover {
  background: #005a87;
}

/* Event-Details */
/* Event-Details Layout */
.event-details-container {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}
.event-details-image {
  flex: 0 0 40%;
}
.event-details-image img {
  width: 100%;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.event-details-content {
  flex: 1;
}
.event-details-header {
  margin-bottom: 20px;
}
.event-details-header h1 {
  color: var(--primary-color);
  margin-bottom: 10px;
  padding-top: 100px;
}
.event-details-meta {
  display: grid;
  gap: 15px;
  margin-bottom: 20px;
}
.event-details-meta p {
  display: grid;
  align-items: center;
  color: #666;
}
.event-details-meta i {
  margin-right: 5px;
  color: var(--primary-color);
}
.register-btn-container {
  margin-top: 30px;
}

/* Responsive */
@media (max-width: 768px) {
  .event-details-container {
    flex-direction: column;
  }
  .event-details-image {
    flex: none;
    width: 100%;
  }
}
.event-header {
  background: #fff;
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}
.event-header h1 {
  color: var(--primary-color);
  margin-bottom: 10px;
}
.event-header p {
  color: #666;
  margin-bottom: 5px;
}
.event-content {
  line-height: 1.8;
  margin-bottom: 30px;
}
.register-btn {
  background: var(--primary-color);
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
}
.register-btn:hover {
  background: #005a87;
}

/* Registrierung */
.registration-container {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 3px;
}
.submit-button {
  background: var(--primary-color);
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}
.success-message {
  background: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: 5px;
  margin-top: 20px;
}
/* Form wrapper/card */
    .form-wrapper {
        width: 100%;
        max-width: 42rem; /* max-w-2xl */
        padding: 2.5rem 0; /* p-10 */
        box-sizing: border-box;
    }

    /* Top image styling */
    .form-image {
        margin-bottom: 3rem; /* mb-12 */
        width: 100%;
        border-radius: 0.5rem;
    }

    /* Header section for title and description */
    .form-header {
        margin-bottom: 2rem; /* mb-8 */
    }

    .form-title {
        font-size: 1.875rem; /* text-2xl */
        font-weight: 600; /* font-semibold */
        color: #1f2937; /* text-gray-800 */
    }

    .form-description {
        margin-top: 0.5rem; /* mt-2 */
        font-size: 0.875rem; /* text-sm */
        color: #4b5563; /* text-gray-600 */
        line-height: 1.5;
    }

    /* Container for each form field group */
    .form-group {
        margin-bottom: 1.5rem; /* mb-6 */
    }

    /* Form labels */
    .form-label {
        display: block;
        margin-bottom: 0.5rem; /* mb-2 */
        font-size: 0.875rem; /* text-sm */
        font-weight: 500; /* font-medium */
        color: #4b5563; /* text-gray-600 */
    }

    /* Common styles for input, select, and textarea */
    .form-input,
    .form-select,
    .form-textarea {
        width: 100%;
        border-radius: 0.375rem; /* rounded-md */
        border: 1px solid #d1d5db; /* border-gray-300 */
        padding: 0.75rem; /* p-3 */
        font-size: 0.875rem; /* text-sm */
        color: #1f2937; /* text-gray-800 */
        box-sizing: border-box;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

    .form-input:focus,
    .form-select:focus,
    .form-textarea:focus {
        border-color: #6366f1; /* focus:border-indigo-500 */
        box-shadow: 0 0 0 1px #6366f1; /* focus:ring-1 focus:ring-indigo-500 */
        outline: none;
    }

    /* Radio button group */
    .radio-group {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }

    .option-item {
        display: flex;
        align-items: center;
    }

    .form-radio {
        height: 1rem;
        width: 1rem;
        color: #4f46e5;
        margin-right: 0.5rem;
    }

    /* Consent Checkbox Group */
    .consent-group {
        display: flex;
        align-items: center;
        margin-bottom: 1.5rem;
    }

    .form-checkbox {
        height: 1rem;
        width: 1rem;
        color: #4f46e5;
    }

    .consent-label {
        margin-left: 0.5rem;
        font-size: 0.875rem;
        color: #4b5563;
    }

    .consent-label a {
        color: #4f46e5;
        text-decoration: none;
    }

    .consent-label a:hover {
        text-decoration: underline;
    }

    /* Submit Button */
    .submit-btn {
        width: 100%;
        border-radius: 0.375rem;
        background-color: #0273aa;
        padding: 0.75rem 1.5rem;
        font-weight: 500;
        color: white;
        border: none;
        cursor: pointer;
        transition: background-color 0.3s, box-shadow 0.3s;
    }

    .submit-btn:hover {
        background-color: #4338ca;
    }

    .submit-btn:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.5);
    }

    /* Mobile Responsive Styles */
    @media (max-width: 640px) {
        .main-container {
            padding: 1rem;
        }
        .form-wrapper {
            padding: 1.5rem;
        }
        .form-title {
            font-size: 1.5rem;
        }
    }

/* Responsive */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    height: auto;
    padding: 20px;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
  }
}