@font-face {
   font-family: 'EuclidFlex';
   src: url(fonts/EuclidFlex-Regular.otf);
}

@font-face {
   font-family: 'EuclidFlex';
   src: url(fonts/EuclidFlex-Bold.otf);
   font-weight: bold;
}

body {
  font-family: 'EuclidFlex';
  font-size: 14px;
  padding: 20px;
}
.header {
  background-image: url("images/background.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom left;
  padding: 20px;
  min-height: 240px;
}
legend {
  font-size: 100%;
}
.logo {
  background-image: url("images/GIV_Warehouse_Vector.svg");
  background-repeat: no-repeat;
  background-size: 60%;
  background-position: center;
  height: 80px;
}
.titel h1{
  color: #76867b;
  text-align: center;
}
.plz {
  margin-left: 12px;
}

.container {
  background: #fff;
  max-width: 800px;
  margin: auto;
  font-size: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.formular {
  background: #fff;
  padding: 20px;
  font-size: 100%;
  max-width: 800px;
}
.plzref {
  display: flex;
  max-width: 100%;
  font-size: 100%;
  flex-flow: row;
  align-items: center;
}
.plzref input[type=text]{
  width: 40%;
  min-width: 14%;
  vertical-align: middle;
}
.plzref fieldset {
  display: flex;
  max-width: 100%;
  flex-flow: row;
  font-size: 100%;
  align-items: center;
  margin: 10px 2px;
  padding: 5px;
}
fieldset {
  border: 1px solid #ccc;
  padding: 5px;
  font-size: 100%;
  margin-bottom: 10px;
}
label {
  display: block;
  font-size: 100%;
  margin: 5px 0;
}
input[type=text], input[type=number] {
  padding: 5px;
  box-sizing: border-box;
  width: 15%;
  display: inline-block;
}
input[type=text]:focus, input[type=number]:focus{
  background-color: #d1e7d0;
  box-sizing: border-box;
  border: 2px solid #4D9D46;
  padding: 5px;
  border-radius: 3px;
  outline: none;
}
input[type=checkbox] {
  accent-color: #4D9D46;
}
.abmessungen fieldset{
  display: flex;
  max-width: 100%;
  flex-flow: row;
  align-items: center;
  margin: 10px 2px;
}
.abmessungen label{
  margin: 5px 10px 5px 10px;
  font-size: 100%;
}
.abmessungen input[type=text], input[type=number]{
  padding: 1%;
  width: 12%;
  min-width: 13%;
  vertical-align: middle;
}
.pack button{
  padding: 8px 14px;
  margin: 0 2px;
  width: 40px;
  height: 35px;
  background: #4D9D46;
  color: #fff;
  border: none;
  cursor: pointer;
}
button {
  padding: 8px 14px;
  margin: 0 2px;
  background: #4D9D46;
  color: #fff;
  border: none;
  cursor: pointer;
}
button:hover {
  background: #d1e7d0;
  color: #000;
}
a.button{
  padding: 8px 14px;
  margin: 5px 0px;
  color: #fff;
  font-size: 14px;
  background-color: #4D9D46;
  text-decoration: none;
}
a.button:hover{
  background: #d1e7d0;
  color: #000;
}
.result {
  background: #f2f2f2;
  padding: 10px;
  margin-top: 30px;
  margin-left: auto;
  margin-right: auto;
  width: 60%;
}
.legende {
  max-width: 800px;
  margin: auto;
  background: #f2f2f2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.footer {
  max-width: 800px;
  margin: auto;
}
.footer a {
  color: #4D9D46;
}
.legende h3{
  padding: 20px 20px 0px;
}
.legende p{
  padding:20px;
  font-size: 14px;
}
.legende hr{
	width: 94%;
}

.result-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.result h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #4D9D46;
}
.result h3 {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 1rem;
}

/* ===== Tabellen ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.packtable th {
  background: #4D9D46;
  color: white;
  text-align: left;
  padding: 8px;
}

.packtable td {
  padding: 8px;
  border-bottom: 1px solid #ccc;
}

.packtable tr:nth-child(even) {
  background: #f9fafb;
}

/* ===== Zusammenfassung ===== */
.summary td {
  padding: 8px;
  text-align: right;
  border-bottom: 1px solid #ccc;
}
.summary tr td:first-child {
  color: #555;
  text-align: left;
}
.summary tr.total td {
  background: #4D9D46;
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
}

/* ===== Gesamtpreis Highlight ===== */
.summary tr.total td:last-child {
  text-align: right;
}

@media screen and (max-width: 1200px) {
  .container {
    max-width: 90%;
  }
  .header {
    max-width: 100%;
  }
  .formular {
    max-width: 100%;
  }
  .legende {
    max-width: 90%;
  }
}