/* =========================================================
   Neytswiss – Maler & Gipserei (Master CSS)
   Responsive first-class. Preise = Arbeitsleistung exkl. Material.
   ========================================================= */

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

:root{
  /* Brand colors */
  --blue: #1a4fff;
  --blue2:#2b78ff;
  --yellow:#ffd24a;
  --red:#ff3b30;

  /* UI */
  --bg: #0b1020;
  --bg2:#0f1730;
  --surface:#121b38;
  --surface2:#0f1836;
  --card:#121b38;
  --card2:#0e1630;
  --border: rgba(255,255,255,0.10);

  --text:#eef3ff;
  --muted: rgba(238,243,255,0.72);

  --shadow: 0 18px 40px rgba(0,0,0,0.35);
  --shadow2: 0 10px 24px rgba(0,0,0,0.28);

  --radius: 18px;
  --radius2: 22px;

  --container: 1120px;

  --brand-gradient: linear-gradient(90deg, var(--blue) 0%, var(--yellow) 55%, var(--red) 100%);
  --brand-glow: 0 0 0 2px rgba(255,210,74,0.10), 0 0 0 1px rgba(26,79,255,0.20);
}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(1200px 700px at 20% 0%, rgba(43,120,255,0.22), transparent 60%),
    radial-gradient(1000px 600px at 90% 10%, rgba(255,210,74,0.14), transparent 55%),
    radial-gradient(900px 500px at 70% 90%, rgba(255,59,48,0.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, #070b16 100%);
  color: var(--text);
  line-height: 1.5;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: none; }

img{ max-width: 100%; display:block; }

.container{
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

/* ---------- Helpers ---------- */
.section{
  padding: 70px 0;
  position: relative;
}

.section-accent{
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.section-head{
  margin-bottom: 26px;
}

.section-head h2{
  font-size: clamp(26px, 3vw, 36px);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.section-head p{
  margin: 0 0 10px;
  color: var(--muted);
  max-width: 70ch;
}

.badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.86);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  box-shadow: var(--brand-glow);
}

.muted{ color: var(--muted); }
.lead{
  font-size: clamp(16px, 1.6vw, 19px);
  color: rgba(238,243,255,0.80);
  margin-top: 0;
  max-width: 70ch;
}

.small-note{
  font-size: 12.5px;
  color: rgba(238,243,255,0.68);
  margin: 12px 0 0;
}

hr{
  border: 0;
  height: 1px;
  background: rgba(255,255,255,0.10);
  margin: 18px 0;
}

/* ---------- Header / Nav ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(10, 14, 28, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 0;
  padding: 0px 0;
}

/* Brand-Trennlinie unter Header (Blau→Gelb→Rot) */
.site-header::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--brand-gradient);
  opacity: 0.95;
}

.header-inner{
  display: flex;
  align-items: flex-end;
  gap: 18px;
  padding: 10px 0 6px;
  position: relative;
}

/* Logo links */
.brand{
  display:flex;
  align-items:flex-end;
  justify-content:flex-start;
  min-width: 0;
  flex: 0 0 auto;
  padding-bottom: 4px;
}

.brand-logo{
  width: 190px;
  height: auto;
  object-fit: contain;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  transform: scaleX(1.08);
}

/* Firmenname mittig */
.brand-center{
  position: absolute;
  left: 50%;
  bottom: 70px;
  transform: translateX(-50%) translateY(-2px);
  text-align: center;
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.brand-center .brand-name{
  font-size: 24px;
  font-weight: 900;
  line-height: 1.10;
  white-space: nowrap;
  margin: 0;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-center .brand-slogan{
  font-size: 13px;
  font-weight: 800;
  color: rgba(238,243,255,0.75);
  line-height: 1.2;
  margin-top: 2px;
}

.nav{
  display:flex;
  align-items:flex-end;
  justify-content: center;
  flex: 1 1 auto;
  margin-left: 0;
  padding-top: 0;
  padding-bottom: 0px;
}

.nav-list{
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-list::-webkit-scrollbar{ display:none; }

.nav-link{
  display:inline-flex;
  align-items:center;
  padding: 11px 14px;
  border-radius: 999px;
  font-size: 15px;
  color: rgba(238,243,255,0.86);
  border: 1px solid transparent;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.header-cta{
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  flex: 0 0 auto;
  padding-bottom: 6px;
}

.header-cta .btn{
  transform: translateY(-4px);
}

/* ---------- Mobile Nav ---------- */
@media (max-width: 980px){
  .header-inner{ gap: 10px; }
  .brand-logo{ width: 64px; height: 52px; }

  .brand-center{
    position: static;
    transform: none;
    pointer-events: auto;
    text-align: center;
    align-items: center;
  }

  .nav-toggle{ display:inline-flex; }
  .header-cta{ display:none; }

  .nav{
    justify-content: flex-end;
    padding-bottom: 0;
  }

  .nav-list{
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px;
    border-radius: var(--radius2);
    background: rgba(10, 14, 28, 0.92);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: var(--shadow);
  }

  .nav-list.open{ display:flex; }

  .nav-link{
    width: 100%;
    justify-content: space-between;
    padding: 12px 12px;
  }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  font-size: 14px;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
  white-space: nowrap;
}

.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
}

.btn:active{ transform: translateY(0px); }

.btn-primary{
  border: 0;
  color: #071024;
  background: var(--brand-gradient);
  box-shadow: 0 14px 34px rgba(0,0,0,0.30);
}

.btn-primary:hover{
  box-shadow: 0 16px 38px rgba(0,0,0,0.34);
}

.btn-ghost{
  background: rgba(255,255,255,0.02);
}

.btn:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(43,120,255,0.25);
}

/* ---------- Cards / Grid ---------- */
.card{
  background:
    linear-gradient(180deg, rgba(26,79,255,0.10), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius2);
  padding: 18px;
  box-shadow: var(--shadow2);
}

.grid{ display:grid; gap: 16px; }

.cards-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 980px){
  .cards-3{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px){
  .cards-3, .cards-2{ grid-template-columns: 1fr; }
}

/* ---------- Hero ---------- */
.hero{
  padding-top: 64px;
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.hero h1{
  font-size: clamp(30px, 3.4vw, 46px);
  margin: 0 0 10px;
  letter-spacing: -0.03em;
  line-height: 1.06;
}

.callouts{
  display:grid;
  gap: 12px;
  margin: 18px 0 18px;
}

.callout{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  padding: 12px 14px;
}

.callout-title{
  font-weight: 800;
  margin-bottom: 4px;
}

.callout-text{
  color: rgba(238,243,255,0.74);
  font-size: 14px;
}

.hero-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.hero-meta{
  margin-top: 16px;
  display:flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: rgba(238,243,255,0.74);
  font-size: 14px;
}

.hero-card{
  align-self: stretch;
}

.hero-card-inner h3{
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.mini-list{
  display:grid;
  gap: 10px;
  margin-top: 12px;
}

.mini-row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.14);
}

.mini-row span{
  color: rgba(238,243,255,0.68);
  font-size: 13px;
}

.hero-card-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
}

/* ---------- Lists ---------- */
.list{
  margin: 12px 0 0;
  padding-left: 18px;
  color: rgba(238,243,255,0.78);
}
.list li{ margin: 6px 0; }

/* ---------- Notice ---------- */
.notice{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  padding: 12px 14px;
  color: rgba(238,243,255,0.82);
  margin: 12px 0 18px;
}

/* ---------- Packages ---------- */
.pkg{
  position: relative;
  overflow: hidden;
}

.pkg-top{
  display:flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pkg h3{
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.pkg-price{
  font-weight: 900;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.16);
}

.pkg-open{
  width: 100%;
  margin-top: 12px;
}

.pkg.is-open .pkg-open{
  box-shadow: 0 0 0 3px rgba(43,120,255,0.16);
}

.pkg-panel{
  margin-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 14px;
}

.pkg-form .row{
  display:grid;
  gap: 8px;
  margin-bottom: 12px;
}

.pkg-form label{
  font-size: 13px;
  color: rgba(238,243,255,0.72);
}

.row-inline{
  display:flex;
  gap: 10px;
  align-items: center;
}

.pkg-live{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.14);
  padding: 12px 14px;
  margin: 10px 0 12px;
}

.pkg-live-row{
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.pkg-live-row strong{ font-size: 16px; }

/* NEU: Vorschau-Block im Paket */
.pkg-preview{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.14);
  padding: 12px 14px;
  margin: 0 0 12px;
}

.pkg-preview-title{
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.pkg-preview-grid{
  display:grid;
  gap: 8px;
}

.pkg-preview-row{
  display:flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
}

.pkg-preview-row strong{
  font-size: 15px;
}

.pkg-matlist{
  margin: 10px 0 0;
  padding-left: 16px;
  color: rgba(238,243,255,0.78);
  font-size: 13.5px;
}
.pkg-matlist li{ margin: 6px 0; }

.pkg-actions{
  display:flex;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 6px;
}

.pkg-actions .btn{ flex: 1; }
.pkg-actions .btn-ghost{ flex: 0.9; }

.pkg-placeholder{
  padding: 14px;
  border-radius: var(--radius);
  border: 1px dashed rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.02);
}

/* ---------- Inputs ---------- */
input[type="text"],
input[type="number"],
select,
textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.92);
  font-size: 14px;
  outline: none;
  transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}

textarea{ resize: vertical; }

input::placeholder,
textarea::placeholder{
  color: rgba(238,243,255,0.45);
}

input:focus,
select:focus,
textarea:focus{
  border-color: rgba(43,120,255,0.55);
  box-shadow: 0 0 0 3px rgba(43,120,255,0.20);
  background: rgba(0,0,0,0.22);
}

input:disabled{
  opacity: 0.60;
  cursor: not-allowed;
}

/* Checkbox styling (simple + clean) */
.checkbox{
  display:flex;
  align-items:center;
  gap: 10px;
  user-select: none;
}
.checkbox input{
  width: 18px;
  height: 18px;
  border-radius: 6px;
}

/* ---------- Calculator ---------- */
.calculator{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: start;
}

.calc-left .notice{ margin-top: 10px; }
.calc-left .row{ margin-top: 12px; }
.calc-left .row label{ display:block; margin-bottom: 8px; }

.lines{
  margin-top: 12px;
  display:grid;
  gap: 10px;
}

.line{
  display:grid;
  grid-template-columns: 1.1fr 0.5fr 0.4fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.14);
}

.line .line-title{
  font-weight: 800;
}

.line .line-meta{
  color: rgba(238,243,255,0.72);
  font-size: 13px;
}

.line .line-sum{
  font-weight: 900;
  text-align: right;
}

.line button{
  padding: 10px 12px;
  border-radius: 12px;
}

.calc-right .quote-preview{
  position: sticky;
  top: 88px;
}

.preview-header{
  display:flex;
  gap: 12px;
  align-items:center;
}

.preview-logo{
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 8px;
  box-shadow: var(--shadow2);
}

.preview-title{
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 16px;
}

.preview-sub{
  color: rgba(238,243,255,0.70);
  font-size: 13px;
  margin-top: 2px;
}

.preview-meta{
  display:grid;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  color: rgba(238,243,255,0.76);
}

.preview-block .preview-label{
  font-weight: 900;
  margin-bottom: 8px;
}

.preview-lines{
  font-size: 13.5px;
  color: rgba(238,243,255,0.74);
}

.preview-sums{
  display:grid;
  gap: 10px;
  margin-top: 12px;
}

.sum-row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.sum-row.total{
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.10);
  font-size: 16px;
}

@media (max-width: 980px){
  .calculator{ grid-template-columns: 1fr; }
  .calc-right .quote-preview{ position: relative; top: 0; }
}

/* ---------- Price Table ---------- */
.price-table h3{
  margin: 18px 0 8px;
  font-size: 16.5px;
  letter-spacing: -0.01em;
}

.price-table .list{
  margin-top: 8px;
  padding-left: 18px;
}

/* ---------- Gallery ---------- */
.gallery{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 980px){
  .gallery{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px){
  .gallery{ grid-template-columns: 1fr; }
}
.gallery-empty{
  padding: 22px;
}

/* ---------- About ---------- */
.about{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  align-items: center;
}

.about-text p{
  margin: 0 0 12px;
  color: rgba(238,243,255,0.78);
}

.about-photo img{
  width: 100%;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow2);
  object-fit: cover;
}

@media (max-width: 980px){
  .about{ grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer{
  border-top: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.20);
  padding: 22px 0;
}

.footer-inner{
  display:flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand{
  font-weight: 900;
  letter-spacing: -0.02em;
}

.footer-meta{
  color: rgba(238,243,255,0.70);
  font-size: 13px;
  margin-top: 4px;
}

.footer-right{
  display:flex;
  gap: 14px;
  align-items:center;
  flex-wrap: wrap;
  color: rgba(238,243,255,0.74);
  font-size: 13px;
}

.footer-right a{
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
}
.footer-right a:hover{
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
}

.footer-copy{
  opacity: 0.85;
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; scroll-behavior: auto !important; }
}

/* ❌ Weissen Active-Strich im Menü entfernen */
.nav-link::before,
.nav-link::after,
.nav-link:focus::before,
.nav-link:focus::after,
.nav-link.active::before,
.nav-link.active::after{
  display: none !important;
  content: none !important;
}

/* Falls es ein Border ist */
.nav-link{
  border-bottom: none !important;
  box-shadow: none !important;
}
/* ===== Packages (JS-rendered) ===== */
.package-card__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.package-card__title{ font-size:16px; letter-spacing:-0.01em; }
.package-card__min{
  font-weight:900;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(26,79,255,0.10); /* weniger grau, mehr Blau */
}

.package-card__actions{ margin-top:12px; }
.package-card__actions .btn{ width:100%; }

.package-form{
  margin-top:16px;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(43,120,255,0.10), rgba(0,0,0,0.16));
  padding: 16px;
  box-shadow: var(--shadow2);
}

.package-form__top{ margin-bottom:12px; }
.package-form__title{ font-weight:900; font-size:18px; }
.package-form__subtitle{ color: var(--muted); font-size:13px; margin-top:4px; }

.package-form__grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}
@media (max-width: 680px){
  .package-form__grid{ grid-template-columns: 1fr; }
}

.field{ display:grid; gap:8px; }
.field label{ font-size:13px; color: rgba(238,243,255,0.75); }

.tiny{
  font-size:12px;
  color: rgba(238,243,255,0.60);
}

.package-form__result{
  margin-top: 14px;
  padding: 14px;
}

.package-form__result .row{
  display:flex;
  gap:16px;
  justify-content:space-between;
  flex-wrap:wrap;
}
.kicker{ font-size:12px; color: rgba(238,243,255,0.68); }
.big{ font-size:18px; font-weight:900; }
.small{ font-size:13px; color: rgba(238,243,255,0.72); margin-top:6px; }

.actions{
  display:flex;
  gap:10px;
  margin-top:12px;
}
.actions .btn{ flex:1; }
.actions .btn.primary{
  border:0;
  color:#071024;
  background: var(--brand-gradient);
}
/* Beta Modal */
.beta-modal { display: none; position: fixed; inset: 0; z-index: 9999; }
.beta-modal.is-open { display: block; }

.beta-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.6);
}

.beta-modal__panel {
  position: relative;
  max-width: 560px;
  margin: 10vh auto 0;
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: #0b1220;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}

.beta-modal__panel h3 { margin: 0 0 10px; }
.beta-modal__panel p { margin: 0 0 10px; line-height: 1.35; }
.beta-modal__actions { display: flex; justify-content: flex-end; margin-top: 12px; }
