/* ========== Basis-Variablen ========== */
:root {
  --brand: #28334a;
  --text: #28334a;
  --border: #d6d9e0;
  --border-strong: #3c4350;
  --gap: 12px;
  --radius: 10px;
}

html, body {
  margin: 0;
  padding: 0;
  font-size: 15px;
}

label,
input,
p,
a,
ul,
ul li {
  font-family: "TT Norms", Arial, Helvetica, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  font-size: 15px;
}

.praemie{
  display: block;
}

div.color{
  width: 20px;
  height: 20px;
  border: solid 4px white;
  border-radius: 50%;
  cursor: pointer;
  margin-left:27%;
  position: relative;
}

div.color:hover{
  border-color: #95c11f;
}

div.color.active {
  border-color: #95c11f !important;
  box-shadow: 0 0 0 2px #95c11f;
}

div.color.active::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
  text-shadow: 0 0 3px rgba(0,0,0,0.5);
}

a:link,
a:visited { 
  color: var(--brand); 
  text-decoration: none; 
}

a:hover,
a:active { 
  text-decoration: underline; 
}

h1, h2, h3, h4 {
  font-family: "TT Norms", Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: var(--brand);
  margin: 0 0 12px 0;
  line-height: 1.3;
  text-align: center;
}

h1 { font-size: 26px; }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
h4 { font-size: 15px; }

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
input[type="number"],
textarea,
select {
  color: var(--text);
  background-color: #ffffff;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  box-sizing: border-box;
  outline: none;
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  margin: 5px 0;
}

::placeholder {
  color: #9ca3af;
  font-weight: 400;
  opacity: 1;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(244, 121, 99, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);
}

input[type="checkbox"],
input[type="radio"] { 
  accent-color: var(--brand);
  margin-right: 6px;
}

input[type="submit"] {
  width: auto;
  min-width: 250px;
  margin: 12px auto 0 auto;
  padding: 13px 40px;
  font-size: 1.05em;
  border: 1px solid #ffffff;
  border-radius: 10px;
  cursor: pointer;
  color: #ffffff;
  background-color: var(--brand);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(244, 121, 99, 0.2);
  transition: all .2s ease;
  display: block;
}

input[type="submit"]:hover {
  background-color: #ffffff;
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: 0 6px 18px rgba(244, 121, 99, 0.35);
  transform: translateY(-2px);
}

.center {
  margin: 20px auto;
  width: 50%;
  border: 1px solid var(--brand);
  padding: 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Grid-Zeilen für nebeneinanderliegende Felder */
form {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-bottom: 0;
}

.row.two-col { grid-template-columns: 1fr 1fr; }
.row.street-row { grid-template-columns: 3fr 1fr; }
.row.plz-ort-row { grid-template-columns: 1fr 3fr; }

/* Neutralisiere alte Breitenklassen im Grid */
.row .fullwidth,
.row .half,
.row .quarter,
.row .threeQuarter { 
  width: 100% !important; 
}

header {
  background: linear-gradient(135deg, #28334A 0%, #1a2235 100%);
  padding: 15px 20px;
  border-bottom: 4px solid #5a6d8f;
  border-radius: 12px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

header h1 {
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  margin: 0;
}

main {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

footer {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.footertext {
  text-align: center;
  color: #8b98b1;
  font-size: 12px;
}

.res {
  display: none;
}

.fullwidth {
  width: 96%;
}

.half {
  width: 50%;
}

.quarter {
  width: 14%;
}

.threeQuarter {
  width: 77%;
}

.flex-container {
  display: flex;
  align-content: flex-end;
}

.flex-container >  div {
  width: 40px;
  text-align: center;
}

.flex-container-a {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
}

.flex-container-a > div {
  width: 50%;
  padding: 5px;
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* ========== Responsiv ========== */
@media (max-width: 1024px) {
  .center { width: 90%; }
}

@media (max-width: 768px) {
  .center { 
    margin: 10px; 
    width: calc(100% - 20px); 
    padding: 16px; 
  }
  
  main {
    padding: 16px;
  }
  
  header {
    margin: -16px -16px 16px -16px;
  }
  
  html, body { font-size: 14px; }
  
  /* Alle Zeilen einspältig auf Mobile */
  .row.two-col,
  .row.street-row,
  .row.plz-ort-row { 
    grid-template-columns: 1fr; 
  }
  
  .fullwidth,
  .half,
  .quarter,
  .threeQuarter {
    width: 100% !important;
  }
}

@media only screen and (max-width: 600px) {
  input[type="submit"] {
    width: 100%;
  }
  .quarter {
    width: 98%;
  }
  .threeQuarter {
    width: 98%;
  }
  .center {
    margin: 0px;
    width: 100%;
    padding: 5px;
  }
}

@media only screen and (min-width: 600px) {
  input[type="submit"] {
    width: 65%;
  }
  .threeQuarter {
    width: 75%;
  }
  .center {
    margin: 0px;
    width: 100%;
    padding: 5px;
  }
}

@media only screen and (min-width: 1200px) {
  input[type="submit"] {
    width: 50%;
  }
  .quarter {
    width: 14%;
  }
  .threeQuarter {
    width: 78%;
  }
  .center {
    margin: auto;
    width: 50%;
    border: 1px solid var(--brand);
    padding: 10px;
  }
}

@media only screen and (min-width: 1900px) {
  input[type="submit"] {
    width: 30%;
  }
  .quarter {
    width: 14%;
  }
  .threeQuarter {
    width: 77%;
  }
  .center {
    margin: auto;
    width: 50%;
    border: 1px solid var(--brand);
    padding: 10px;
  }
}
