/* PrintCost - 3D Druck Rechner */
/* Dark neon-ish style, aber eigenständig */

:root{
  --bg0:#06080c;
  --bg1:#070a0f;
  --bg2:#0b0f14;
  --card: rgba(15, 22, 34, 0.62);
  --card2: rgba(15, 22, 34, 0.42);
  --text:#eaf1ff;
  --muted:#9fb0c6;
  --line: rgba(255,255,255,.10);
  --line2: rgba(255,255,255,.14);
  --primary:#42ffb6;
  --primary2:#55a7ff;
  --danger:#ff4d6d;
  --radius: 18px;
  --shadow: 0 14px 44px rgba(0,0,0,.55);
  --max: 1100px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background: var(--bg0);
  overflow-x:hidden;
}

body::before{
  content:"";
  position: fixed;
  inset:0;
  z-index:-2;
  background:
    radial-gradient(1000px 560px at 18% 10%, rgba(66,255,182,.12), transparent 60%),
    radial-gradient(1000px 560px at 82% 14%, rgba(85,167,255,.12), transparent 60%),
    linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 55%, var(--bg0) 100%);
}

body::after{
  content:"";
  position: fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.18) 45%, rgba(0,0,0,.58) 100%),
    radial-gradient(1200px 720px at 50% 18%, rgba(0,0,0,.12), rgba(0,0,0,.66));
}

a{ color:inherit; text-decoration:none; }
.wrap{ max-width: var(--max); margin:0 auto; padding:0 18px; }

.topbar{
  position: sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(7,10,15,.80), rgba(7,10,15,.46));
  border-bottom: 1px solid var(--line);
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 220px;
}
.brand-logo{
  height: 36px;
  width:auto;
  display:block;
  filter: brightness(.98);
}
.brand-name{
  font-weight: 750;
  letter-spacing: .2px;
  font-size: 14px;
  color: var(--text);
  opacity: .92;
}

.tabs{
  display:flex;
  gap:10px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
}

.tab{
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  cursor:pointer;
  font-size: 13px;
  font-weight: 650;
  display:flex;
  align-items:center;
  gap:8px;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .06s ease;
}
.tab:hover{
  color: var(--text);
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.tab:active{ transform: translateY(1px); }
.tab.is-active{
  color: var(--text);
  border-color: rgba(66,255,182,.32);
  background: linear-gradient(135deg, rgba(66,255,182,.18), rgba(85,167,255,.10));
  box-shadow: 0 12px 26px rgba(66,255,182,.08);
}

.topbar-actions{ display:flex; gap:10px; align-items:center; }

.btn{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 650;
  font-size: 13px;
  cursor:pointer;
  transition: background .15s ease, border-color .15s ease, transform .06s ease;
}
.btn:hover{
  border-color: var(--line2);
  background: rgba(255,255,255,.06);
}
.btn:active{ transform: translateY(1px); }
.btn.primary{
  border-color: rgba(66,255,182,.38);
  background: linear-gradient(135deg, rgba(66,255,182,.22), rgba(85,167,255,.12));
}
.btn.primary:hover{ border-color: rgba(66,255,182,.56); }
.btn.ghost{
  background: transparent;
}

main{ padding: 22px 0 26px; }

.panel{ display:none; }
.panel.is-active{ display:block; }

.result-card{
  border: 1px solid var(--line);
  background: rgba(15, 22, 34, 0.52);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.result-head{
  padding: 18px 18px 12px;
  text-align:center;
  position:relative;
}
.result-head::before{
  content:"";
  position:absolute;
  inset:-2px;
  pointer-events:none;
  background:
    radial-gradient(640px 250px at 20% 0%, rgba(66,255,182,.16), transparent 60%),
    radial-gradient(640px 250px at 80% 10%, rgba(85,167,255,.16), transparent 60%);
  filter: saturate(1.06);
}
.result-head > *{ position:relative; }

.result-label{
  margin:0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .2px;
}
.result-price{
  margin: 8px 0 4px;
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 900;
  letter-spacing: .3px;
}
.result-profit{
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}
.result-profit b{ color: var(--primary); }

.breakdown-toggle{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
  background: rgba(255,255,255,.03);
  border: none;
  border-top: 1px solid var(--line);
  color: var(--muted);
  cursor:pointer;
  font-weight: 650;
}
.breakdown-toggle:hover{ color: var(--text); background: rgba(255,255,255,.04); }
.breakdown-toggle .chev{ opacity:.85; transition: transform .15s ease; }
.breakdown-toggle[aria-expanded="true"] .chev{ transform: rotate(180deg); }

.breakdown{
  padding: 12px 18px 18px;
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,.10);
}
.breakdown-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: var(--muted);
  font-size: 13px;
}
.breakdown-row b{ color: var(--text); font-weight: 750; }
.breakdown-total{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-top: 12px;
  margin-top: 6px;
  border-top: 1px solid var(--line);
}
.breakdown-total span{ color: var(--text); font-weight: 750; }
.breakdown-total b{ color: var(--text); font-weight: 900; }
.breakdown-hint{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.grid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
  align-items:start;
}

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

.card{
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 10px 34px rgba(0,0,0,.35);
  overflow:hidden;
}

.card.mini{ background: var(--card2); }

.card-head{
  padding: 16px 16px 0;
}
.card-head h2{
  margin: 0 0 6px;
  font-size: 16px;
  letter-spacing: .2px;
}
.card-head p{
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.form-grid{
  padding: 0 16px 16px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field.full{ grid-column: 1 / -1; }

label{
  display:block;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 6px;
}

input{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  color: var(--text);
  outline:none;
  font-size: 14px;
}
input:focus{
  border-color: rgba(66,255,182,.38);
  box-shadow: 0 0 0 6px rgba(66,255,182,.08);
}

.suffix{
  display:flex;
  align-items:stretch;
  gap:10px;
}
.suffix input{ flex: 1 1 auto; }
.suffix span{
  flex: 0 0 auto;
  display:grid;
  place-items:center;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-size: 12px;
}

.card-actions{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  padding: 0 16px 16px;
}
.note{
  color: var(--muted);
  font-size: 12px;
}

.mini-list{ padding: 0 16px 10px; }
.mini-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: var(--muted);
  font-size: 13px;
}
.mini-row b{ color: var(--text); font-weight: 800; }

.divider{
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 8px 16px 10px;
}

.mini-hint{
  padding: 0 16px 16px;
  margin:0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.switch{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding-top: 22px;
}
.switch input{ display:none; }
.switch span:first-child{
  margin-top: -18px;
  font-size: 12px;
  color: var(--muted);
}
.slider{
  width: 46px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  position:relative;
  cursor:pointer;
  flex: 0 0 auto;
}
.slider::after{
  content:"";
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255,255,255,.65);
  position:absolute;
  top: 2px;
  left: 2px;
  transition: transform .16s ease, background .16s ease;
}
.switch input:checked + .slider{
  border-color: rgba(66,255,182,.35);
  background: rgba(66,255,182,.14);
}
.switch input:checked + .slider::after{
  transform: translateX(20px);
  background: rgba(66,255,182,.85);
}

.footer{
  margin-top: 18px;
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,.20);
}
.footer-inner{
  padding: 18px 0 26px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  flex-wrap:wrap;
}
.footer-left{
  display:flex;
  align-items:center;
  gap: 10px;
}
.footer-logo{
  height: 28px;
  opacity: .75;
}
.footer-links{
  display:flex;
  gap: 14px;
}
.footer-links a{
  color: var(--muted);
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
}
.footer-links a:hover{
  color: var(--text);
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

/* Legal pages */
.legal-page{
  padding: 24px 0 34px;
}
.legal-card{
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.legal-card h1{
  margin: 0 0 10px;
  font-size: 20px;
}
.legal-card h2{
  margin: 18px 0 8px;
  font-size: 14px;
}
.legal-card p, .legal-card li{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.legal-card ul{ padding-left: 18px; }
.backlink{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color: var(--muted);
  font-size: 13px;
}
.backlink:hover{ color: var(--text); }

@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr; }
  .brand{ min-width: auto; }
}
@media (max-width: 560px){
  .tabs{ width: 100%; justify-content:space-between; }
  .topbar-inner{ flex-wrap:wrap; }
  .topbar-actions{ width:100%; justify-content:flex-end; }
  .form-grid{ grid-template-columns: 1fr; }
  .switch{ padding-top: 0; }
  .switch span:first-child{ margin-top: 0; }
}
