* {
  box-sizing: border-box;
}
:root {
  --deepwater: #2e6a76;
  --stone: #56564e;
  --cloudy: #d0d3d1;
  --sky: #a3cedf;
  --coral: #408fa3;
  --white: #ffffff;
  --black: #000000;
}

body {
  font-family: "myriad-pro", sans-serif;
  background-color: var(--sky);
  color: var(--black);
  margin: 0;

  min-height: 100vh;
}

.site-header {
  background-color: var(--deepwater);
  padding: 20px 0;
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between; /* ← Das schiebt den Wal nach rechts */
}

.logo {
  max-height: 90px;
  width: auto;
}

.whale-icon {
  height: 48px;
  width: auto;
  transition: transform 0.3s ease;
}

.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

h1 {
  color: var(--deepwater);
  text-align: center;
  font-size: 2.5rem;
}

.card {
  background-color: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

label {
  color: var(--deepwater);
  font-weight: 700; /* bleibt Titel betont */
}

/* Radio Buttons */
.radio-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* ab Tablet */
@media (min-width: 600px) {
  .radio-group {
    grid-template-columns: 1fr 1fr;
  }
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--cloudy);
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s ease;
  background: white;
}
.radio-card span {
  font-weight: 400;
  opacity: 0.9;
}

/* Input verstecken, aber funktional lassen */
.radio-card input {
  accent-color: var(--deepwater);
  transform: scale(1.2);
}

/* Hover Effekt */
.radio-card:hover {
  border-color: var(--coral);
  transform: translateY(-1px);
}

/* Selected State */
.radio-card:has(input:checked) {
  border-color: var(--deepwater);
  background: rgba(46, 106, 118, 0.08);
}

/*Range*/
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  outline: none;
  box-shadow: none;

  width: 100%;
  background: transparent; /* wichtig! entfernt Browser-Box */
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: var(--cloudy);
  border-radius: 999px;
}

input[type="range"]::-moz-range-track {
  height: 4px;
  background: var(--cloudy);
  border-radius: 999px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;

  width: 16px;
  height: 16px;
  border-radius: 50%;

  background: var(--deepwater);
  border: 2px solid white;

  cursor: pointer;
  margin-top: -6px; /* zentriert auf der Linie */
}

input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;

  background: var(--deepwater);
  border: 2px solid white;

  cursor: pointer;
}
input,
textarea,
select {
  padding: 12px;
  border: 1px solid var(--cloudy);
  border-radius: 8px;
  font-size: 1rem;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--coral);
}

button {
  background-color: var(--deepwater);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.3s;
}

button:hover {
  background-color: var(--coral);
}

.error {
  background-color: #fee2e2;
  color: #b91c1c;
  padding: 10px;
  border-radius: 8px;
}

.sticky-footer {
  background-color: var(--stone);
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

.sticky-footer a {
  color: var(--sky);
  text-decoration: none;
}

.name-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

@media (min-width: 600px) {
  .name-row {
    grid-template-columns: 1fr 1fr;
  }
}
#card-fields .field {
  margin-bottom: 12px;
}
.button-group {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.button-group a,
.button-group button {
  flex: 1;
}

.back-btn {
  background-color: white;
  color: var(--deepwater);
  border: 2px solid var(--deepwater);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  transition: 0.3s;
  box-sizing: content-box;
}

.back-btn:hover {
  background-color: var(--deepwater);
  color: white;
}

/* Footer unten bei wenig Inhalt (nur Confirmation) (Hilfe von Gronk)*/
body.confirmation-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.confirmation-page main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Verhindert, dass die Card zu schmal wird */
body.confirmation-page .container {
  width: 100%;
}

/* Radio Buttons / Checkbox Cards */
.radio-group-three {
  display: grid;
  grid-template-columns: 1fr; /* Mobile: 1 pro Zeile */
  gap: 12px;
}

/* Ab 600px (Tablet und grösser): Immer 3 pro Zeile */
@media (min-width: 600px) {
  .radio-group-three {
    grid-template-columns: repeat(3, 1fr);
  }
}
