
body {
  font-family: 'Segoe UI', sans-serif;
  font-size: 1.1rem;
  margin: 0;
  background: #ffffff;
  color: #111;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: none;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 75px;   /* <--- min-height statt height! */
  padding: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.09);
}

.header-inner {
  width: 98vw;
  max-width: 1200px;
  margin: 0 auto;
  background: url("../assets/background/bg-header.jpg") no-repeat center center, rgba(34,34,34,0.68);
  background-size: cover;
  border-radius: 0 0 36px 36px;
  color: white;
  padding: 22px 22px 18px 22px;
  position: relative;
  text-align: center;
  overflow: hidden;
  min-height: 75px;
  box-shadow: 0 2px 18px rgba(0,0,0,0.06);
}

.header-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0 0 36px 36px;
  background: linear-gradient(
    to bottom,
     rgba(255,255,255,0.5) 40%,
    rgba(255,255,255,0.6) 70%,
    rgba(255,255,255,0.9) 100%
  );
  z-index: 0;
   pointer-events: none;
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

form input[type="text"],
form input[type="date"],
form input[type="time"],
form input[type="url"],
form input[type="file"],
form textarea,
form select {
  font-size: 1rem;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #ccc;
  background: #f9f9f9;
  width: 100%;
  box-sizing: border-box;
}

form textarea {
  min-height: 100px;
  resize: vertical;
}

form button {
  background-color: #007aff;
  color: white;
  border: none;
  padding: 14px;
  font-size: 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

form button:hover {
  background-color: #005ecb;
}

form fieldset {
  border: none;
  padding: 0;
  margin-top: 20px;
}

form legend {
  font-weight: bold;
  margin-bottom: 10px;
}

.form-label {
  font-size: 1em;
  color: #333;
  font-weight: 500;
  margin-bottom: 2px;
  margin-top: 8px;
  display: block;
}

.admin-link {
  position: absolute;
  top: 55px;
  right: 24px;
  font-size: 1.4rem;
  color: white;
  text-decoration: none;
  z-index: 2;
}

.spacer-after-header {
  height: 20px;
}

.fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: #007aff;
  color: white;
  font-size: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 2000;
}

.event-card {
  position: relative;
  margin: 15px 0;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  min-height: 220px; /* Oder je nach Wunsch */
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.event-overlay {
  position: relative;
  background: rgba(255,255,255,0.88);
  border-radius: 12px;
  margin: 0;
  padding: 14px 14px 12px 14px;
  z-index: 2;
  /* Optional, damit das Overlay nicht die ganze Card überdeckt: */
  /* width: 95%; margin: 0 auto; */
}

.event-thumb {
  display: flex;
  flex-direction: row;
  align-items: center;    /* Icons & Bild vertikal mittig */
  gap: 14px;              /* Abstand zw. Bild & Icons */
  min-height: 96px;       /* Bildhöhe */
  width: 100%;
}

.event-thumb {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 96px;
}

.event-thumb img {
  width: 96px;
  height: 96px;
  border-radius: 6px;
  object-fit: cover;
}

.social-icons {
  display: grid;
  grid-auto-flow: column;                     /* Spalten nach rechts */
  grid-template-rows: repeat(3, 32px);        /* 3 Reihen à 32px */
  grid-auto-columns: 32px;                    /* jede Spalte 32px */
  gap: 6px;
  height: 96px;                               /* maximal Bildhöhe */
  align-content: start;
  align-items: start;
  margin-left: 0;
  width: auto;
}

.icon-img {
  width: 32px !important;
  height: 32px !important;
  object-fit: contain;
  display: block;
}
/*.event-thumb a:first-child {
  order: 2;
}*/

/*.header-inner h1 {
/  margin: 0;
/  font-size: 2.1em;
/  color: #fff;
/  font-weight: 700;
/  letter-spacing: .5px;
/  line-height: 1.1;
/  white-space: nowrap;
/  overflow: hidden;
/  text-overflow: ellipsis;
/  text-shadow: 0 2px 14px rgba(255,255,255,0.15);
}*/

.header-inner h1 {
  font-size: 1.8em;
  line-height: 1.1;
  color: #fff;
}
.header-inner h1 span {
  display: block;
}

@media (max-width: 900px) {
  .header-inner h1 { font-size: 2.1em; }
}
@media (max-width: 600px) {
  .header-inner h1 { font-size: 1.8em; }
}

select, input[type="text"], input[type="password"], input[type="url"], input[type="date"], input[type="time"], textarea {
  width: 100%;
  font-size: 1em;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #ccc;
  background: #f9f9f9;
  box-sizing: border-box;
  margin-bottom: 10px;
  appearance: none;      /* entfernt den Browser-Look, wo möglich */
  -webkit-appearance: none;
  -moz-appearance: none;
}

select:focus, input:focus, textarea:focus {
  border-color: #007aff;
  outline: none;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg fill='gray' height='18' viewBox='0 0 20 20' width='18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 24px 24px;
  cursor: pointer;
}
.event-category {
  font-style: italic;
  font-weight: normal;
  font-size: inherit;
  margin-left: 4px;
  color: #666;
}