:root {
  /* Sultan Palette */
  --bg-body: #fce7eb;
  --accent: #be123c;
  --accent-soft: rgba(190, 18, 60, 0.08);
  --text-main: #4c0519;
  --text-light: #9f1239;
  --glass: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.8);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  background: #fce7eb;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-top: calc(20px + env(safe-area-inset-top));
}

/* --- DIE KARTE --- */
.contact-card {
  width: 100%;
  max-width: 950px;
  background: var(--glass);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 20px 60px -10px rgba(190, 18, 60, 0.12);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  overflow: hidden;
  position: relative;
}

/* --- LINKE SEITE (Info) --- */
.info-side {
  background: rgba(255, 255, 255, 0.5);
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(255, 255, 255, 0.6);
}

h1 {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--accent);
}

h1 span {
  display: block;
  font-style: italic;
  color: var(--text-main);
  font-size: 2rem;
  font-weight: 400;
}

.info-intro {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  opacity: 0.9;
}

.info-details {
  margin-top: 40px;
}

.detail-group {
  margin-bottom: 30px;
}

.detail-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-light);
  margin-bottom: 8px;
  display: block;
  font-weight: 600;
}

.detail-value {
  font-size: 1.05rem;
  font-family: "Playfair Display", serif;
  color: var(--text-main);
}

.detail-link {
  text-decoration: none;
  color: var(--text-main);
  transition: 0.2s;
  border-bottom: 1px dotted var(--text-light);
}

.detail-link:hover {
  color: var(--accent);
  border-bottom-style: solid;
}

/* --- RECHTE SEITE (Formular) --- */
.form-side {
  padding: 50px 60px;
  position: relative;
}

.input-group {
  margin-bottom: 30px;
}

label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Minimalistische Inputs */
input,
textarea {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(190, 18, 60, 0.2);
  font-family: "Inter", sans-serif;
  font-size: 1.05rem;
  color: var(--text-main);
  outline: none;
  transition: all 0.3s ease;
  border-radius: 0;
}

input:focus,
textarea:focus {
  border-bottom-color: var(--accent);
  box-shadow: 0 4px 10px -2px var(--accent-soft);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

::placeholder {
  color: rgba(190, 18, 60, 0.3);
}

/* Buttons & Links */
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
}

.btn-send {
  background: var(--text-main);
  color: white;
  border: none;
  padding: 14px 40px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-send:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(190, 18, 60, 0.25);
}

/* Zurück Button Styling */
.btn-back {
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: 0.2s;
}

.btn-back:hover {
  color: var(--accent);
}

/* Mobile Back Button (Handy Optimierung) */
.mobile-back-container {
  display: none;
  /* Standardmäßig aus */
  padding: 20px 25px 0 25px;
  /* Weniger Padding links -> Button weiter links */
  text-align: left;
  /* Links ausgerichtet */
}

.visually-hidden {
  display: none;
}

/* --- FLIEGENDE PILLE (Toast) --- */
.toast-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  z-index: 1000;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast-container.show {
  transform: translateX(-50%) translateY(0);
  visibility: visible;
}

.toast-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: #fff;
  border-radius: 50px;
  box-shadow: 0 10px 40px -5px rgba(0, 0, 0, 0.15);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  border: 2px solid transparent;
}

.toast-pill.success {
  border-color: #10b981;
  color: #047857;
  background: #ecfdf5;
}

.toast-pill.error {
  border-color: #ef4444;
  color: #b91c1c;
  background: #fef2f2;
}

/* RESPONSIVE LOGIK */
@media (max-width: 800px) {
  .contact-card {
    grid-template-columns: 1fr;
  }

  /* Zeige Zurück-Button oben */
  .mobile-back-container {
    display: block;
  }

  /* Verstecke den unteren Zurück-Button */
  .desktop-back {
    display: none;
  }

  .info-side {
    padding: 30px 40px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  }

  .form-side {
    padding: 40px;
  }

  /* Button volle Breite */
  .actions {
    justify-content: center;
  }

  .btn-send {
    width: 100%;
  }
}