/**
 * style.css
 * Visuelles Design für das Widerrufsformular.
 * Verwendet CSS-Variablen für einfache Farbanpassungen.
 */

:root {
  --primary-color: #333334;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --bg-body: #f3f4f6;
  --bg-card: #ffffff;
  --border-color: #d1d5db;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  margin: 0;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  box-sizing: border-box;
}

.container {
  background: var(--bg-card);
  width: 100%;
  max-width: 550px;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

h1 {
  margin-top: 0;
  color: var(--text-main);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p.description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  color: #374151;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  background-color: #fafafa;
}

input[type="text"]:focus,
input[type="email"]:focus {
  outline: none;
  border-color: var(--primary-color);
  /* Ein neutraler Focus-Ring, der zu jeder dynamischen Farbe passt */
  box-shadow: 0 0 0 3px #e5e7eb;
  background-color: #ffffff;
}

button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  border-radius: 6px;
  transition: filter 0.2s, transform 0.1s;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

button:hover {
  /* Macht den Button beim Hover immer etwas dunkler, egal welche Hex-Farbe gewählt ist */
  filter: brightness(0.85); 
}

button:active {
  transform: translateY(1px);
}

.alert-success {
  background-color: #ecfdf5;
  color: #065f46;
  padding: 16px;
  border-radius: 6px;
  margin-bottom: 24px;
  border: 1px solid #a7f3d0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.alert-error {
  background-color: #fef2f2;
  color: #991b1b;
  padding: 16px;
  border-radius: 6px;
  margin-bottom: 24px;
  border: 1px solid #fecaca;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Unsichtbares Feld für Spam-Bots */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Footer Styling für rechtliche Pflichtangaben */
footer {
  width: 100%;
  max-width: 550px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 10px 0;
}

footer a {
  color: var(--text-muted);
  text-decoration: underline;
  margin: 0 10px;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--text-main);
}