/* =========================================================
   CONTACT + FORM COMPONENTS
========================================================= */

.contact-items {
  display: flex;
  justify-content: center; 
  gap: 40px;
}

/* =========================================================
   KONTAKTFORMULAR
========================================================= */

#contactContainer,
#our-references {
  scroll-margin-top: 80px;
}

.contact {
  padding: 40px 0 70px;
  text-align: center;
}

.contact h2 {
  color: var(--color-text-bright);
}

form {
  max-width: 600px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input,
textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #0f0f13;
  color: var(--color-text-dark);
}

textarea {
  resize: none;
  overflow-y: auto;
  height: 140px;
}

.connection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 14px;
  margin: 8px 0 4px 0;

  color: var(--color-text-dark);
  font-size: var(--fs-mini);
}

.connection-grid label {
  display: flex;
  align-items: center;
  gap: 6px;

  padding: 6px 8px;
  border-radius: 8px;

  background: var(--color-bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.2);

  color: var(--color-text-dark);
  cursor: pointer;

  transition: background 0.25s ease, border 0.25s ease;
}

.connection-grid label:hover {
  background: rgba(255, 255, 255, 0.05);
  scale: 1.05;
}

.connection-grid label:has(input:checked) {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--color-accent-primary);
}

.connection-grid input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;

  width: 15px !important;
  height: 15px !important;

  border-radius: 3px;
  border: 1px solid var(--color-accent-primary);

  background: var(--color-surface-highlighted);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  box-sizing: border-box;
  margin-left: 5px;
  padding: 0;
}

.connection-grid input[type="checkbox"]:checked {
  background: var(--color-accent-primary);
}

.connection-grid input[type="checkbox"]:checked::after {
  content: "✔";
  position: absolute;

  top: 50%;
  left: 50%;
  transform: translate(-50%, -56%);

  font-size: 9px;
  line-height: 1;
  color: black;
}

.social-big a {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 2px solid var(--color-accent-primary);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: var(--fs-big);
  color: var(--color-accent-primary);
  background: transparent;
  transition: 0.25s ease;
}

/* Hover-Effekt zurück */
.social-big a:hover {
  background: var(--color-accent-primary);
  color: var(--color-bg-primary);
  transform: translateY(-3px) scale(1.05);
}

.social-big a,
.social-big a:visited,
.social-big a:hover,
.social-big a:focus {
  text-decoration: none !important;
}

.social-big a::after,
.social-big a::before {
  content: none !important;
}

.phone {
  color: var(--color-text-bright);
  text-decoration: none;
}

/* Spinner für number inputs entfernen */

/* Chrome, Edge, Safari */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

.event-time-wrapper{
  position: relative;
  width: 100%;           
}

#eventTimeDisplay{
  width: 100%;           
    cursor: pointer;
  caret-color: transparent;  
  user-select: none;   

  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#eventTimeDisplay:focus,
#eventTimeDisplay:active{
  caret-color: transparent; 
  user-select: none;
}

.calendar{
  position: fixed;            
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transform-origin: top center;

  z-index: 1000;

  width: min(360px, 92vw);
  padding: 14px 14px 12px;

  background: var(--color-bg-secondary);
  border: 1px solid var(--color-accent-primary);
  border-radius: 18px;

  box-shadow: 0 25px 45px rgba(0,0,0,0.65);
  animation: calendarIn 0.18s ease;
}

.calendar.hidden{ display:none; }

@keyframes calendarIn{
  from{
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.97);
  }
  to{
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.calendar-trigger{
  all: unset;
  box-sizing: border-box;
  width: 100%;

  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);

  background: #0f0f13;
  color: var(--color-text-dark);

  cursor: pointer;
}

.calendar-trigger:hover {
  scale: 1.05;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.55);
}

/* Klick-Feedback */
.calendar-trigger:active {
  transform: scale(0.97);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.45);
}

/* Tastatur-Fokus */
.calendar-trigger:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.55);
}


.calendar-header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.cal-title{
  color: var(--color-text-bright);
  font-weight: 600;
  font-size: var(--fs-mini);
  letter-spacing: 0.2px;
  text-align:center;
  flex: 1;
}

.cal-nav{
  width: 38px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: #0f0f13;
  color: var(--color-text-bright);
  cursor: pointer;
  transition: transform 0.18s ease, border 0.2s ease, background 0.2s ease;
}

.cal-nav:hover{
  border-color: var(--color-accent-primary);
  transform: translateY(-1px) scale(1.03);
}

.cal-nav:disabled{
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* Wochentage + Grid */
.calendar-weekdays{
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
}

.calendar-weekdays div{
  text-align:center;
  padding: 4px 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;

  min-height: calc(6 * 44px + 5 * 6px);
}

.day{
  text-align:center;
  padding: 9px 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: var(--fs-mini);

  background: var(--color-bg-primary);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--color-text-dark);

  transition: background 0.2s ease, border 0.2s ease, transform 0.18s ease;

  height: 44px;      
  line-height: 44px;
  padding: 0;      
}

.day:hover{
  background: rgba(212,175,55,0.12);
  border-color: rgba(212,175,55,0.35);
  transform: translateY(-1px);
}

.day.muted{
  opacity: 0.45;
}

.day.disabled{
  opacity: 0.28;
  cursor: not-allowed;
  transform: none !important;
}

.day.disabled:hover{
  background: var(--color-bg-primary);
  border-color: rgba(255,255,255,0.10);
}

/* Start/End + Range */
.day.start,
.day.end{
  background: var(--color-accent-primary);
  color: var(--color-bg-primary);
  font-weight: 700;
  border-color: var(--color-accent-primary);
}

.day.in-range{
  background: rgba(212,175,55,0.15);
  border-color: rgba(212,175,55,0.35);
  color: var(--color-text-bright);
}

/* Footer hint */
.calendar-footer{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  text-align: left;
}

.privacy-link{
  color: var(--color-text-dark);
}

.note .privacy-link:hover,
.note .privacy-link:focus {
  color: var(--color-accent-primary);
}

/* =========================================================
   CONTACT MODAL
========================================================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.modal-box {
  position: relative;
  max-width: 500px;
  margin: 10vh auto;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-accent-primary);
  border-radius: 18px;
  padding: 25px 22px;
  color: var(--color-text-dark);
  z-index: 2;
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-box h3 {
  color: var(--color-text-bright);
  margin-bottom: 12px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 28px;
  background: none;
  border: none;
  color: var(--color-accent-primary);
  cursor: pointer;
}

.modal-close:hover {
  transform: scale(1.2);
}


/* =========================================================
   CONTACT RESPONSIVE
========================================================= */

@media (max-width: 900px) {
  .contact-items {
    display: block;
    justify-content: center;
    margin-left: 30px;
  }

  .connection-grid {
    grid-template-columns: 1fr;
  }

  .contact-text {
    margin-left: 30px;
  }
}
