/* CI-Update: helles Layout + Buttig-Rot, passend zu Header/Footer der Originalseite */
:root{
  /* CI */
  --ci-red:#d40000;
  --ci-red2:#b30000;

  /* Light theme */
  --bg:#ffffff;
  --page:#f4f5f7;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;

  /* Lines / effects */
  --line:rgba(17,24,39,.10);
  --line2:rgba(17,24,39,.14);
  --shadow: 0 12px 28px rgba(17,24,39,.10);
  --shadow2: 0 18px 40px rgba(17,24,39,.14);

  /* Backwards compat for existing vars */
  --red:var(--ci-red);
  --red2:var(--ci-red2);

  /* Optional accents */
  --focus: rgba(212,0,0,.22);
  --radius:18px;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1100px 700px at 20% 0%, rgba(212,0,0,.09) 0%, rgba(212,0,0,0) 55%),
    radial-gradient(900px 650px at 90% 10%, rgba(17,24,39,.06) 0%, rgba(17,24,39,0) 60%),
    var(--page);
  color:var(--text);
}

.wrap{max-width:1120px;margin:0 auto;padding:28px 18px 42px;}

.header{
  display:flex;gap:18px;align-items:center;padding:18px;
  border:1px solid var(--line2);
  background:linear-gradient(180deg, rgba(255,255,255,1), rgba(255,255,255,.88));
  border-radius:var(--radius);
  box-shadow:var(--shadow2);
  position:relative;
  overflow:hidden;
}

/* dezente CI-Linie */
.header::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:5px;
  background:linear-gradient(90deg, var(--ci-red), var(--ci-red2));
}

.logo{
  width:260px;height:auto;border-radius:12px;flex:0 0 auto;
  box-shadow: 0 10px 24px rgba(17,24,39,.10);
}

.headText h1{
  margin:0;
  font-size:22px;
  line-height:1.2;
  letter-spacing:.2px;
}

.sub{margin:8px 0 0;color:var(--muted);font-size:14px;line-height:1.45;}

.grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px;}

.card{
  border:1px solid var(--line2);
  background:var(--card);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
}

.card h2{
  margin:0 0 14px;
  font-size:16px;
  letter-spacing:.2px;
  opacity:.95;
}

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

.row{
  display:grid;
  grid-template-columns:1fr 1.25fr;
  gap:10px;
  align-items:center;
  padding:10px;
  border:1px solid var(--line);
  border-radius:14px;
  background:linear-gradient(180deg, rgba(17,24,39,.02), rgba(17,24,39,.01));
}

.row span{color:var(--muted);font-size:13px;line-height:1.25;}

input,select{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line2);
  background:#fff;
  color:var(--text);
  outline:none;
  font-size:14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

input::placeholder{color:rgba(107,114,128,.85);}

input:focus, select:focus{
  border-color: rgba(212,0,0,.55);
  box-shadow: 0 0 0 4px var(--focus);
}

.btn{
  margin-top:8px;
  width:100%;
  border:0;
  padding:14px 16px;
  border-radius:16px;
  background:linear-gradient(180deg, var(--ci-red), var(--ci-red2));
  color:#fff;
  font-size:16px;
  font-weight:800;
  cursor:pointer;
  box-shadow: 0 14px 28px rgba(212,0,0,.18);
}

.btn:hover{filter:brightness(1.03);}
.btn:active{transform: translateY(1px);}

.two{display:grid;grid-template-columns:1fr 1fr;gap:14px;}

.resultBox,.breakdownBox{
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px;
  background:linear-gradient(180deg, rgba(255,255,255,1), rgba(255,255,255,.92));
  box-shadow: var(--shadow);
}

.kpi{
  font-size:16px;
  font-weight:900;
  margin-bottom:10px;
}

.small{margin:0;color:var(--muted);font-size:12px;line-height:1.45;}

.breakdownBox pre{
  margin:10px 0 0;
  white-space:pre-wrap;
  font-size:12px;
  line-height:1.45;
  color:#111827;
  background:rgba(17,24,39,.03);
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px 12px;
}

.disclaimer{
  margin-top:14px;
  padding:12px 14px;
  border:1px dashed rgba(17,24,39,.25);
  border-radius:14px;
  color:var(--muted);
  font-size:12px;
  line-height:1.55;
  background:rgba(255,255,255,.70);
}

.footer{margin-top:12px;color:rgba(17,24,39,.45);font-size:12px;}

@media (max-width: 980px){
  .grid{grid-template-columns: 1fr}
  .two{grid-template-columns: 1fr}
  .row{grid-template-columns: 1fr}

  /* Header: Logo über Text statt daneben */
  .header{
    flex-direction: column;
    align-items: flex-start;
  }
  .logo{
    width: 260px;
    max-width: 100%;
  }
}